[2025-03-16 00:00:05] Production.INFO: next invoice date [2025-03-16 00:00:05] Production.INFO: 2025-04-16 [2025-03-16 00:00:05] Production.INFO: getdaysdiff [2025-03-16 00:00:05] Production.INFO: +31 [2025-03-16 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,31,31,'RMScheduler',2025-03-16 00:00:05,1,0,,,0) [2025-03-16 00:00:05] Production.INFO: next invoice date [2025-03-16 00:00:05] Production.INFO: 2025-04-16 [2025-03-16 00:00:05] Production.INFO: getdaysdiff [2025-03-16 00:00:05] Production.INFO: +31 [2025-03-16 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,31,31,'RMScheduler',2025-03-16 00:00:05,1,0,,,0) [2025-03-16 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:00:06 [end_date_ymd] => 2025-03-16 00:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:00:06' and `end` < '2025-03-16 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-03-16 00:00:19] Production.INFO: count ==1082 [2025-03-16 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 21:00:06 - End Time 2025-03-16 00:00:06 [2025-03-16 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689666', 'tblTempUsageDetail_20' ) start [2025-03-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689666', 'tblTempUsageDetail_20' ) end [2025-03-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689666', 'tblTempVendorCDR_20' ) start [2025-03-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689666', 'tblTempVendorCDR_20' ) end [2025-03-16 00:00:19] Production.INFO: ProcessCDR(1,14689666,1,1,2) [2025-03-16 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689666', 'tblTempUsageDetail_20' ) start [2025-03-16 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689666', 'tblTempUsageDetail_20' ) end [2025-03-16 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:00:26] Production.INFO: ==5869== Releasing lock... [2025-03-16 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:00:26] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:01:06 [end_date_ymd] => 2025-03-16 00:01:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:01:06' and `end` < '2025-03-16 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-03-16 00:01:23] Production.INFO: count ==477 [2025-03-16 00:01:23] Production.ERROR: pbx CDR StartTime 2025-03-15 21:01:06 - End Time 2025-03-16 00:01:06 [2025-03-16 00:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689672', 'tblTempUsageDetail_20' ) start [2025-03-16 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689672', 'tblTempUsageDetail_20' ) end [2025-03-16 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689672', 'tblTempVendorCDR_20' ) start [2025-03-16 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689672', 'tblTempVendorCDR_20' ) end [2025-03-16 00:01:23] Production.INFO: ProcessCDR(1,14689672,1,1,2) [2025-03-16 00:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689672', 'tblTempUsageDetail_20' ) start [2025-03-16 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689672', 'tblTempUsageDetail_20' ) end [2025-03-16 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:01:26] Production.INFO: ==5964== Releasing lock... [2025-03-16 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:01:26] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:02:05 [end_date_ymd] => 2025-03-16 00:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:02:05' and `end` < '2025-03-16 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-03-16 00:02:21] Production.INFO: count ==470 [2025-03-16 00:02:21] Production.ERROR: pbx CDR StartTime 2025-03-15 21:02:05 - End Time 2025-03-16 00:02:05 [2025-03-16 00:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689677', 'tblTempUsageDetail_20' ) start [2025-03-16 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689677', 'tblTempUsageDetail_20' ) end [2025-03-16 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689677', 'tblTempVendorCDR_20' ) start [2025-03-16 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689677', 'tblTempVendorCDR_20' ) end [2025-03-16 00:02:21] Production.INFO: ProcessCDR(1,14689677,1,1,2) [2025-03-16 00:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689677', 'tblTempUsageDetail_20' ) start [2025-03-16 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689677', 'tblTempUsageDetail_20' ) end [2025-03-16 00:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:02:24] Production.INFO: ==6035== Releasing lock... [2025-03-16 00:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:02:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:03:06 [end_date_ymd] => 2025-03-16 00:03:06 [RateCDR] => 1 ) [2025-03-16 00:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:03:06' and `end` < '2025-03-16 00:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 00:03:19] Production.INFO: count ==461 [2025-03-16 00:03:19] Production.ERROR: pbx CDR StartTime 2025-03-15 21:03:06 - End Time 2025-03-16 00:03:06 [2025-03-16 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689682', 'tblTempUsageDetail_20' ) start [2025-03-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689682', 'tblTempUsageDetail_20' ) end [2025-03-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689682', 'tblTempVendorCDR_20' ) start [2025-03-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689682', 'tblTempVendorCDR_20' ) end [2025-03-16 00:03:19] Production.INFO: ProcessCDR(1,14689682,1,1,2) [2025-03-16 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689682', 'tblTempUsageDetail_20' ) start [2025-03-16 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689682', 'tblTempUsageDetail_20' ) end [2025-03-16 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:03:22] Production.INFO: ==6150== Releasing lock... [2025-03-16 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:03:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:04:05 [end_date_ymd] => 2025-03-16 00:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:04:05' and `end` < '2025-03-16 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-03-16 00:04:27] Production.INFO: count ==461 [2025-03-16 00:04:27] Production.ERROR: pbx CDR StartTime 2025-03-15 21:04:05 - End Time 2025-03-16 00:04:05 [2025-03-16 00:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689687', 'tblTempUsageDetail_20' ) start [2025-03-16 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689687', 'tblTempUsageDetail_20' ) end [2025-03-16 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689687', 'tblTempVendorCDR_20' ) start [2025-03-16 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689687', 'tblTempVendorCDR_20' ) end [2025-03-16 00:04:27] Production.INFO: ProcessCDR(1,14689687,1,1,2) [2025-03-16 00:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689687', 'tblTempUsageDetail_20' ) start [2025-03-16 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689687', 'tblTempUsageDetail_20' ) end [2025-03-16 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:04:32] Production.INFO: ==6226== Releasing lock... [2025-03-16 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:04:32] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:05:05 [end_date_ymd] => 2025-03-16 00:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:05:05' and `end` < '2025-03-16 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-03-16 00:05:24] Production.INFO: count ==460 [2025-03-16 00:05:24] Production.ERROR: pbx CDR StartTime 2025-03-15 21:05:05 - End Time 2025-03-16 00:05:05 [2025-03-16 00:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689692', 'tblTempUsageDetail_20' ) start [2025-03-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689692', 'tblTempUsageDetail_20' ) end [2025-03-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689692', 'tblTempVendorCDR_20' ) start [2025-03-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689692', 'tblTempVendorCDR_20' ) end [2025-03-16 00:05:24] Production.INFO: ProcessCDR(1,14689692,1,1,2) [2025-03-16 00:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689692', 'tblTempUsageDetail_20' ) start [2025-03-16 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689692', 'tblTempUsageDetail_20' ) end [2025-03-16 00:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:05:27] Production.INFO: ==6298== Releasing lock... [2025-03-16 00:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:05:27] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:06:05 [end_date_ymd] => 2025-03-16 00:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:06:05' and `end` < '2025-03-16 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-03-16 00:06:30] Production.INFO: count ==462 [2025-03-16 00:06:30] Production.ERROR: pbx CDR StartTime 2025-03-15 21:06:05 - End Time 2025-03-16 00:06:05 [2025-03-16 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689697', 'tblTempUsageDetail_20' ) start [2025-03-16 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689697', 'tblTempUsageDetail_20' ) end [2025-03-16 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689697', 'tblTempVendorCDR_20' ) start [2025-03-16 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689697', 'tblTempVendorCDR_20' ) end [2025-03-16 00:06:30] Production.INFO: ProcessCDR(1,14689697,1,1,2) [2025-03-16 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689697', 'tblTempUsageDetail_20' ) start [2025-03-16 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689697', 'tblTempUsageDetail_20' ) end [2025-03-16 00:06:35] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:06:35] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:06:35] Production.INFO: ==6376== Releasing lock... [2025-03-16 00:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:06:35] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:07:05 [end_date_ymd] => 2025-03-16 00:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:07:05' and `end` < '2025-03-16 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-03-16 00:07:21] Production.INFO: count ==463 [2025-03-16 00:07:22] Production.ERROR: pbx CDR StartTime 2025-03-15 21:07:05 - End Time 2025-03-16 00:07:05 [2025-03-16 00:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689702', 'tblTempUsageDetail_20' ) start [2025-03-16 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689702', 'tblTempUsageDetail_20' ) end [2025-03-16 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689702', 'tblTempVendorCDR_20' ) start [2025-03-16 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689702', 'tblTempVendorCDR_20' ) end [2025-03-16 00:07:22] Production.INFO: ProcessCDR(1,14689702,1,1,2) [2025-03-16 00:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689702', 'tblTempUsageDetail_20' ) start [2025-03-16 00:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689702', 'tblTempUsageDetail_20' ) end [2025-03-16 00:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:07:26] Production.INFO: ==6448== Releasing lock... [2025-03-16 00:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:07:26] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:08:06 [end_date_ymd] => 2025-03-16 00:08:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:08:06' and `end` < '2025-03-16 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-03-16 00:08:18] Production.INFO: count ==464 [2025-03-16 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:08:06 - End Time 2025-03-16 00:08:06 [2025-03-16 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689707', 'tblTempUsageDetail_20' ) start [2025-03-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689707', 'tblTempUsageDetail_20' ) end [2025-03-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689707', 'tblTempVendorCDR_20' ) start [2025-03-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689707', 'tblTempVendorCDR_20' ) end [2025-03-16 00:08:18] Production.INFO: ProcessCDR(1,14689707,1,1,2) [2025-03-16 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689707', 'tblTempUsageDetail_20' ) start [2025-03-16 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689707', 'tblTempUsageDetail_20' ) end [2025-03-16 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:08:21] Production.INFO: ==6524== Releasing lock... [2025-03-16 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:09:05 [end_date_ymd] => 2025-03-16 00:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:09:05' and `end` < '2025-03-16 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-03-16 00:09:17] Production.INFO: count ==463 [2025-03-16 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:09:05 - End Time 2025-03-16 00:09:05 [2025-03-16 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689712', 'tblTempUsageDetail_20' ) start [2025-03-16 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689712', 'tblTempUsageDetail_20' ) end [2025-03-16 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689712', 'tblTempVendorCDR_20' ) start [2025-03-16 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689712', 'tblTempVendorCDR_20' ) end [2025-03-16 00:09:18] Production.INFO: ProcessCDR(1,14689712,1,1,2) [2025-03-16 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689712', 'tblTempUsageDetail_20' ) start [2025-03-16 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689712', 'tblTempUsageDetail_20' ) end [2025-03-16 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:09:21] Production.INFO: ==6595== Releasing lock... [2025-03-16 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:10:07 [end_date_ymd] => 2025-03-16 00:10:07 [RateCDR] => 1 ) [2025-03-16 00: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-03-15 21:10:07' and `end` < '2025-03-16 00: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-03-16 00:10:19] Production.INFO: count ==478 [2025-03-16 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 21:10:07 - End Time 2025-03-16 00:10:07 [2025-03-16 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689718', 'tblTempUsageDetail_20' ) start [2025-03-16 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689718', 'tblTempUsageDetail_20' ) end [2025-03-16 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689718', 'tblTempVendorCDR_20' ) start [2025-03-16 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689718', 'tblTempVendorCDR_20' ) end [2025-03-16 00:10:19] Production.INFO: ProcessCDR(1,14689718,1,1,2) [2025-03-16 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689718', 'tblTempUsageDetail_20' ) start [2025-03-16 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689718', 'tblTempUsageDetail_20' ) end [2025-03-16 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:10:23] Production.INFO: ==6673== Releasing lock... [2025-03-16 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:10:23] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:11:05 [end_date_ymd] => 2025-03-16 00:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:11:05' and `end` < '2025-03-16 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-03-16 00:11:18] Production.INFO: count ==479 [2025-03-16 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:11:05 - End Time 2025-03-16 00:11:05 [2025-03-16 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689723', 'tblTempUsageDetail_20' ) start [2025-03-16 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689723', 'tblTempUsageDetail_20' ) end [2025-03-16 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689723', 'tblTempVendorCDR_20' ) start [2025-03-16 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689723', 'tblTempVendorCDR_20' ) end [2025-03-16 00:11:18] Production.INFO: ProcessCDR(1,14689723,1,1,2) [2025-03-16 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689723', 'tblTempUsageDetail_20' ) start [2025-03-16 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689723', 'tblTempUsageDetail_20' ) end [2025-03-16 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:11:21] Production.INFO: ==6749== Releasing lock... [2025-03-16 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:12:06 [end_date_ymd] => 2025-03-16 00:12:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:12:06' and `end` < '2025-03-16 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-03-16 00:12:18] Production.INFO: count ==478 [2025-03-16 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:12:06 - End Time 2025-03-16 00:12:06 [2025-03-16 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689728', 'tblTempUsageDetail_20' ) start [2025-03-16 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689728', 'tblTempUsageDetail_20' ) end [2025-03-16 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689728', 'tblTempVendorCDR_20' ) start [2025-03-16 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689728', 'tblTempVendorCDR_20' ) end [2025-03-16 00:12:18] Production.INFO: ProcessCDR(1,14689728,1,1,2) [2025-03-16 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689728', 'tblTempUsageDetail_20' ) start [2025-03-16 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689728', 'tblTempUsageDetail_20' ) end [2025-03-16 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:12:21] Production.INFO: ==6823== Releasing lock... [2025-03-16 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:12:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:13:05 [end_date_ymd] => 2025-03-16 00:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:13:05' and `end` < '2025-03-16 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-03-16 00:13:17] Production.INFO: count ==471 [2025-03-16 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:13:05 - End Time 2025-03-16 00:13:05 [2025-03-16 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689733', 'tblTempUsageDetail_20' ) start [2025-03-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689733', 'tblTempUsageDetail_20' ) end [2025-03-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689733', 'tblTempVendorCDR_20' ) start [2025-03-16 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689733', 'tblTempVendorCDR_20' ) end [2025-03-16 00:13:17] Production.INFO: ProcessCDR(1,14689733,1,1,2) [2025-03-16 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689733', 'tblTempUsageDetail_20' ) start [2025-03-16 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689733', 'tblTempUsageDetail_20' ) end [2025-03-16 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:13:21] Production.INFO: ==6902== Releasing lock... [2025-03-16 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:14:05 [end_date_ymd] => 2025-03-16 00:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:14:05' and `end` < '2025-03-16 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-03-16 00:14:17] Production.INFO: count ==466 [2025-03-16 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:14:05 - End Time 2025-03-16 00:14:05 [2025-03-16 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689738', 'tblTempUsageDetail_20' ) start [2025-03-16 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689738', 'tblTempUsageDetail_20' ) end [2025-03-16 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689738', 'tblTempVendorCDR_20' ) start [2025-03-16 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689738', 'tblTempVendorCDR_20' ) end [2025-03-16 00:14:17] Production.INFO: ProcessCDR(1,14689738,1,1,2) [2025-03-16 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689738', 'tblTempUsageDetail_20' ) start [2025-03-16 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689738', 'tblTempUsageDetail_20' ) end [2025-03-16 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:14:20] Production.INFO: ==6978== Releasing lock... [2025-03-16 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:14:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:15:05 [end_date_ymd] => 2025-03-16 00:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:15:05' and `end` < '2025-03-16 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-03-16 00:15:17] Production.INFO: count ==465 [2025-03-16 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:15:05 - End Time 2025-03-16 00:15:05 [2025-03-16 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689743', 'tblTempUsageDetail_20' ) start [2025-03-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689743', 'tblTempUsageDetail_20' ) end [2025-03-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689743', 'tblTempVendorCDR_20' ) start [2025-03-16 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689743', 'tblTempVendorCDR_20' ) end [2025-03-16 00:15:17] Production.INFO: ProcessCDR(1,14689743,1,1,2) [2025-03-16 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689743', 'tblTempUsageDetail_20' ) start [2025-03-16 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689743', 'tblTempUsageDetail_20' ) end [2025-03-16 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:15:20] Production.INFO: ==7053== Releasing lock... [2025-03-16 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:15:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:16:05 [end_date_ymd] => 2025-03-16 00:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:16:05' and `end` < '2025-03-16 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-03-16 00:16:17] Production.INFO: count ==469 [2025-03-16 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:16:05 - End Time 2025-03-16 00:16:05 [2025-03-16 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689748', 'tblTempUsageDetail_20' ) start [2025-03-16 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689748', 'tblTempUsageDetail_20' ) end [2025-03-16 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689748', 'tblTempVendorCDR_20' ) start [2025-03-16 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689748', 'tblTempVendorCDR_20' ) end [2025-03-16 00:16:17] Production.INFO: ProcessCDR(1,14689748,1,1,2) [2025-03-16 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689748', 'tblTempUsageDetail_20' ) start [2025-03-16 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689748', 'tblTempUsageDetail_20' ) end [2025-03-16 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:16:21] Production.INFO: ==7126== Releasing lock... [2025-03-16 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:16:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:17:05 [end_date_ymd] => 2025-03-16 00:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:17:05' and `end` < '2025-03-16 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-03-16 00:17:17] Production.INFO: count ==467 [2025-03-16 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:17:05 - End Time 2025-03-16 00:17:05 [2025-03-16 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689753', 'tblTempUsageDetail_20' ) start [2025-03-16 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689753', 'tblTempUsageDetail_20' ) end [2025-03-16 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689753', 'tblTempVendorCDR_20' ) start [2025-03-16 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689753', 'tblTempVendorCDR_20' ) end [2025-03-16 00:17:17] Production.INFO: ProcessCDR(1,14689753,1,1,2) [2025-03-16 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689753', 'tblTempUsageDetail_20' ) start [2025-03-16 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689753', 'tblTempUsageDetail_20' ) end [2025-03-16 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:17:20] Production.INFO: ==7209== Releasing lock... [2025-03-16 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:17:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:18:06 [end_date_ymd] => 2025-03-16 00:18:06 [RateCDR] => 1 ) [2025-03-16 00: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-03-15 21:18:06' and `end` < '2025-03-16 00: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-03-16 00:18:18] Production.INFO: count ==468 [2025-03-16 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:18:06 - End Time 2025-03-16 00:18:06 [2025-03-16 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689758', 'tblTempUsageDetail_20' ) start [2025-03-16 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689758', 'tblTempUsageDetail_20' ) end [2025-03-16 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689758', 'tblTempVendorCDR_20' ) start [2025-03-16 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689758', 'tblTempVendorCDR_20' ) end [2025-03-16 00:18:18] Production.INFO: ProcessCDR(1,14689758,1,1,2) [2025-03-16 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689758', 'tblTempUsageDetail_20' ) start [2025-03-16 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689758', 'tblTempUsageDetail_20' ) end [2025-03-16 00:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:18:23] Production.INFO: ==7324== Releasing lock... [2025-03-16 00:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:18:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:19:05 [end_date_ymd] => 2025-03-16 00:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:19:05' and `end` < '2025-03-16 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-03-16 00:19:17] Production.INFO: count ==476 [2025-03-16 00:19:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:19:05 - End Time 2025-03-16 00:19:05 [2025-03-16 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689763', 'tblTempUsageDetail_20' ) start [2025-03-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689763', 'tblTempUsageDetail_20' ) end [2025-03-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689763', 'tblTempVendorCDR_20' ) start [2025-03-16 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689763', 'tblTempVendorCDR_20' ) end [2025-03-16 00:19:17] Production.INFO: ProcessCDR(1,14689763,1,1,2) [2025-03-16 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689763', 'tblTempUsageDetail_20' ) start [2025-03-16 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689763', 'tblTempUsageDetail_20' ) end [2025-03-16 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:19:20] Production.INFO: ==7405== Releasing lock... [2025-03-16 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:19:20] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:20:06 [end_date_ymd] => 2025-03-16 00:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:20:06' and `end` < '2025-03-16 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-03-16 00:20:18] Production.INFO: count ==484 [2025-03-16 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:20:06 - End Time 2025-03-16 00:20:06 [2025-03-16 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689769', 'tblTempUsageDetail_20' ) start [2025-03-16 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689769', 'tblTempUsageDetail_20' ) end [2025-03-16 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689769', 'tblTempVendorCDR_20' ) start [2025-03-16 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689769', 'tblTempVendorCDR_20' ) end [2025-03-16 00:20:18] Production.INFO: ProcessCDR(1,14689769,1,1,2) [2025-03-16 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689769', 'tblTempUsageDetail_20' ) start [2025-03-16 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689769', 'tblTempUsageDetail_20' ) end [2025-03-16 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:20:22] Production.INFO: ==7487== Releasing lock... [2025-03-16 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:21:05 [end_date_ymd] => 2025-03-16 00:21:05 [RateCDR] => 1 ) [2025-03-16 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:21:05' and `end` < '2025-03-16 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 00:21:17] Production.INFO: count ==496 [2025-03-16 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:21:05 - End Time 2025-03-16 00:21:05 [2025-03-16 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689774', 'tblTempUsageDetail_20' ) start [2025-03-16 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689774', 'tblTempUsageDetail_20' ) end [2025-03-16 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689774', 'tblTempVendorCDR_20' ) start [2025-03-16 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689774', 'tblTempVendorCDR_20' ) end [2025-03-16 00:21:17] Production.INFO: ProcessCDR(1,14689774,1,1,2) [2025-03-16 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689774', 'tblTempUsageDetail_20' ) start [2025-03-16 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689774', 'tblTempUsageDetail_20' ) end [2025-03-16 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:21:20] Production.INFO: ==7562== Releasing lock... [2025-03-16 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:21:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:22:05 [end_date_ymd] => 2025-03-16 00:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:22:05' and `end` < '2025-03-16 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-03-16 00:22:17] Production.INFO: count ==498 [2025-03-16 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:22:05 - End Time 2025-03-16 00:22:05 [2025-03-16 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689779', 'tblTempUsageDetail_20' ) start [2025-03-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689779', 'tblTempUsageDetail_20' ) end [2025-03-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689779', 'tblTempVendorCDR_20' ) start [2025-03-16 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689779', 'tblTempVendorCDR_20' ) end [2025-03-16 00:22:17] Production.INFO: ProcessCDR(1,14689779,1,1,2) [2025-03-16 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689779', 'tblTempUsageDetail_20' ) start [2025-03-16 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689779', 'tblTempUsageDetail_20' ) end [2025-03-16 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:22:21] Production.INFO: ==7639== Releasing lock... [2025-03-16 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:23:04 [end_date_ymd] => 2025-03-16 00:23:04 [RateCDR] => 1 ) [2025-03-16 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:23:04' and `end` < '2025-03-16 00: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-03-16 00:23:17] Production.INFO: count ==498 [2025-03-16 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:23:04 - End Time 2025-03-16 00:23:04 [2025-03-16 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689784', 'tblTempUsageDetail_20' ) start [2025-03-16 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689784', 'tblTempUsageDetail_20' ) end [2025-03-16 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689784', 'tblTempVendorCDR_20' ) start [2025-03-16 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689784', 'tblTempVendorCDR_20' ) end [2025-03-16 00:23:17] Production.INFO: ProcessCDR(1,14689784,1,1,2) [2025-03-16 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689784', 'tblTempUsageDetail_20' ) start [2025-03-16 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689784', 'tblTempUsageDetail_20' ) end [2025-03-16 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:23:20] Production.INFO: ==7712== Releasing lock... [2025-03-16 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:23:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:24:05 [end_date_ymd] => 2025-03-16 00:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:24:05' and `end` < '2025-03-16 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-03-16 00:24:17] Production.INFO: count ==494 [2025-03-16 00:24:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:24:05 - End Time 2025-03-16 00:24:05 [2025-03-16 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689789', 'tblTempUsageDetail_20' ) start [2025-03-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689789', 'tblTempUsageDetail_20' ) end [2025-03-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689789', 'tblTempVendorCDR_20' ) start [2025-03-16 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689789', 'tblTempVendorCDR_20' ) end [2025-03-16 00:24:17] Production.INFO: ProcessCDR(1,14689789,1,1,2) [2025-03-16 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689789', 'tblTempUsageDetail_20' ) start [2025-03-16 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689789', 'tblTempUsageDetail_20' ) end [2025-03-16 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:24:21] Production.INFO: ==7785== Releasing lock... [2025-03-16 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:25:05 [end_date_ymd] => 2025-03-16 00:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:25:05' and `end` < '2025-03-16 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-03-16 00:25:17] Production.INFO: count ==495 [2025-03-16 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:25:05 - End Time 2025-03-16 00:25:05 [2025-03-16 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689794', 'tblTempUsageDetail_20' ) start [2025-03-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689794', 'tblTempUsageDetail_20' ) end [2025-03-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689794', 'tblTempVendorCDR_20' ) start [2025-03-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689794', 'tblTempVendorCDR_20' ) end [2025-03-16 00:25:17] Production.INFO: ProcessCDR(1,14689794,1,1,2) [2025-03-16 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689794', 'tblTempUsageDetail_20' ) start [2025-03-16 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689794', 'tblTempUsageDetail_20' ) end [2025-03-16 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:25:22] Production.INFO: ==7860== Releasing lock... [2025-03-16 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:25:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:26:05 [end_date_ymd] => 2025-03-16 00:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:26:05' and `end` < '2025-03-16 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-03-16 00:26:18] Production.INFO: count ==495 [2025-03-16 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:26:05 - End Time 2025-03-16 00:26:05 [2025-03-16 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689799', 'tblTempUsageDetail_20' ) start [2025-03-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689799', 'tblTempUsageDetail_20' ) end [2025-03-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689799', 'tblTempVendorCDR_20' ) start [2025-03-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689799', 'tblTempVendorCDR_20' ) end [2025-03-16 00:26:18] Production.INFO: ProcessCDR(1,14689799,1,1,2) [2025-03-16 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689799', 'tblTempUsageDetail_20' ) start [2025-03-16 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689799', 'tblTempUsageDetail_20' ) end [2025-03-16 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:26:21] Production.INFO: ==7935== Releasing lock... [2025-03-16 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:27:06 [end_date_ymd] => 2025-03-16 00:27:06 [RateCDR] => 1 ) [2025-03-16 00: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-03-15 21:27:06' and `end` < '2025-03-16 00: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-03-16 00:27:18] Production.INFO: count ==492 [2025-03-16 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:27:06 - End Time 2025-03-16 00:27:06 [2025-03-16 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689804', 'tblTempUsageDetail_20' ) start [2025-03-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689804', 'tblTempUsageDetail_20' ) end [2025-03-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689804', 'tblTempVendorCDR_20' ) start [2025-03-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689804', 'tblTempVendorCDR_20' ) end [2025-03-16 00:27:18] Production.INFO: ProcessCDR(1,14689804,1,1,2) [2025-03-16 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689804', 'tblTempUsageDetail_20' ) start [2025-03-16 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689804', 'tblTempUsageDetail_20' ) end [2025-03-16 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:27:21] Production.INFO: ==8016== Releasing lock... [2025-03-16 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:28:05 [end_date_ymd] => 2025-03-16 00:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:28:05' and `end` < '2025-03-16 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-03-16 00:28:17] Production.INFO: count ==494 [2025-03-16 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:28:05 - End Time 2025-03-16 00:28:05 [2025-03-16 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689809', 'tblTempUsageDetail_20' ) start [2025-03-16 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689809', 'tblTempUsageDetail_20' ) end [2025-03-16 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689809', 'tblTempVendorCDR_20' ) start [2025-03-16 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689809', 'tblTempVendorCDR_20' ) end [2025-03-16 00:28:18] Production.INFO: ProcessCDR(1,14689809,1,1,2) [2025-03-16 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689809', 'tblTempUsageDetail_20' ) start [2025-03-16 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689809', 'tblTempUsageDetail_20' ) end [2025-03-16 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:28:21] Production.INFO: ==8089== Releasing lock... [2025-03-16 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:29:05 [end_date_ymd] => 2025-03-16 00:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:29:05' and `end` < '2025-03-16 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-03-16 00:29:18] Production.INFO: count ==494 [2025-03-16 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:29:05 - End Time 2025-03-16 00:29:05 [2025-03-16 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689814', 'tblTempUsageDetail_20' ) start [2025-03-16 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689814', 'tblTempUsageDetail_20' ) end [2025-03-16 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689814', 'tblTempVendorCDR_20' ) start [2025-03-16 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689814', 'tblTempVendorCDR_20' ) end [2025-03-16 00:29:18] Production.INFO: ProcessCDR(1,14689814,1,1,2) [2025-03-16 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689814', 'tblTempUsageDetail_20' ) start [2025-03-16 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689814', 'tblTempUsageDetail_20' ) end [2025-03-16 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:29:21] Production.INFO: ==8161== Releasing lock... [2025-03-16 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:30:06 [end_date_ymd] => 2025-03-16 00:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:30:06' and `end` < '2025-03-16 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-03-16 00:30:18] Production.INFO: count ==499 [2025-03-16 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:30:06 - End Time 2025-03-16 00:30:06 [2025-03-16 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689820', 'tblTempUsageDetail_20' ) start [2025-03-16 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689820', 'tblTempUsageDetail_20' ) end [2025-03-16 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689820', 'tblTempVendorCDR_20' ) start [2025-03-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689820', 'tblTempVendorCDR_20' ) end [2025-03-16 00:30:19] Production.INFO: ProcessCDR(1,14689820,1,1,2) [2025-03-16 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689820', 'tblTempUsageDetail_20' ) start [2025-03-16 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689820', 'tblTempUsageDetail_20' ) end [2025-03-16 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:30:22] Production.INFO: ==8238== Releasing lock... [2025-03-16 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:31:05 [end_date_ymd] => 2025-03-16 00:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:31:05' and `end` < '2025-03-16 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-03-16 00:31:18] Production.INFO: count ==521 [2025-03-16 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:31:05 - End Time 2025-03-16 00:31:05 [2025-03-16 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689825', 'tblTempUsageDetail_20' ) start [2025-03-16 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689825', 'tblTempUsageDetail_20' ) end [2025-03-16 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689825', 'tblTempVendorCDR_20' ) start [2025-03-16 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689825', 'tblTempVendorCDR_20' ) end [2025-03-16 00:31:18] Production.INFO: ProcessCDR(1,14689825,1,1,2) [2025-03-16 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689825', 'tblTempUsageDetail_20' ) start [2025-03-16 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689825', 'tblTempUsageDetail_20' ) end [2025-03-16 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:31:21] Production.INFO: ==8312== Releasing lock... [2025-03-16 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:32:05 [end_date_ymd] => 2025-03-16 00:32:05 [RateCDR] => 1 ) [2025-03-16 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:32:05' and `end` < '2025-03-16 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 00:32:17] Production.INFO: count ==524 [2025-03-16 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:32:05 - End Time 2025-03-16 00:32:05 [2025-03-16 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689830', 'tblTempUsageDetail_20' ) start [2025-03-16 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689830', 'tblTempUsageDetail_20' ) end [2025-03-16 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689830', 'tblTempVendorCDR_20' ) start [2025-03-16 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689830', 'tblTempVendorCDR_20' ) end [2025-03-16 00:32:17] Production.INFO: ProcessCDR(1,14689830,1,1,2) [2025-03-16 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689830', 'tblTempUsageDetail_20' ) start [2025-03-16 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689830', 'tblTempUsageDetail_20' ) end [2025-03-16 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:32:21] Production.INFO: ==8381== Releasing lock... [2025-03-16 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:33:05 [end_date_ymd] => 2025-03-16 00:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:33:05' and `end` < '2025-03-16 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-03-16 00:33:17] Production.INFO: count ==522 [2025-03-16 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:33:05 - End Time 2025-03-16 00:33:05 [2025-03-16 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689835', 'tblTempUsageDetail_20' ) start [2025-03-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689835', 'tblTempUsageDetail_20' ) end [2025-03-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689835', 'tblTempVendorCDR_20' ) start [2025-03-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689835', 'tblTempVendorCDR_20' ) end [2025-03-16 00:33:17] Production.INFO: ProcessCDR(1,14689835,1,1,2) [2025-03-16 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689835', 'tblTempUsageDetail_20' ) start [2025-03-16 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689835', 'tblTempUsageDetail_20' ) end [2025-03-16 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:33:21] Production.INFO: ==8468== Releasing lock... [2025-03-16 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:34:05 [end_date_ymd] => 2025-03-16 00:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:34:05' and `end` < '2025-03-16 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-03-16 00:34:17] Production.INFO: count ==521 [2025-03-16 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:34:05 - End Time 2025-03-16 00:34:05 [2025-03-16 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689840', 'tblTempUsageDetail_20' ) start [2025-03-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689840', 'tblTempUsageDetail_20' ) end [2025-03-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689840', 'tblTempVendorCDR_20' ) start [2025-03-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689840', 'tblTempVendorCDR_20' ) end [2025-03-16 00:34:18] Production.INFO: ProcessCDR(1,14689840,1,1,2) [2025-03-16 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689840', 'tblTempUsageDetail_20' ) start [2025-03-16 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689840', 'tblTempUsageDetail_20' ) end [2025-03-16 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:34:21] Production.INFO: ==8580== Releasing lock... [2025-03-16 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:35:05 [end_date_ymd] => 2025-03-16 00:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:35:05' and `end` < '2025-03-16 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-03-16 00:35:17] Production.INFO: count ==529 [2025-03-16 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:35:05 - End Time 2025-03-16 00:35:05 [2025-03-16 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689845', 'tblTempUsageDetail_20' ) start [2025-03-16 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689845', 'tblTempUsageDetail_20' ) end [2025-03-16 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689845', 'tblTempVendorCDR_20' ) start [2025-03-16 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689845', 'tblTempVendorCDR_20' ) end [2025-03-16 00:35:18] Production.INFO: ProcessCDR(1,14689845,1,1,2) [2025-03-16 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689845', 'tblTempUsageDetail_20' ) start [2025-03-16 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689845', 'tblTempUsageDetail_20' ) end [2025-03-16 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:35:21] Production.INFO: ==8656== Releasing lock... [2025-03-16 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:35:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:36:05 [end_date_ymd] => 2025-03-16 00:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:36:05' and `end` < '2025-03-16 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-03-16 00:36:17] Production.INFO: count ==529 [2025-03-16 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:36:05 - End Time 2025-03-16 00:36:05 [2025-03-16 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689850', 'tblTempUsageDetail_20' ) start [2025-03-16 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689850', 'tblTempUsageDetail_20' ) end [2025-03-16 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689850', 'tblTempVendorCDR_20' ) start [2025-03-16 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689850', 'tblTempVendorCDR_20' ) end [2025-03-16 00:36:17] Production.INFO: ProcessCDR(1,14689850,1,1,2) [2025-03-16 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689850', 'tblTempUsageDetail_20' ) start [2025-03-16 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689850', 'tblTempUsageDetail_20' ) end [2025-03-16 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:36:21] Production.INFO: ==8730== Releasing lock... [2025-03-16 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:37:05 [end_date_ymd] => 2025-03-16 00:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:37:05' and `end` < '2025-03-16 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-03-16 00:37:17] Production.INFO: count ==525 [2025-03-16 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:37:05 - End Time 2025-03-16 00:37:05 [2025-03-16 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689855', 'tblTempUsageDetail_20' ) start [2025-03-16 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689855', 'tblTempUsageDetail_20' ) end [2025-03-16 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689855', 'tblTempVendorCDR_20' ) start [2025-03-16 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689855', 'tblTempVendorCDR_20' ) end [2025-03-16 00:37:18] Production.INFO: ProcessCDR(1,14689855,1,1,2) [2025-03-16 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689855', 'tblTempUsageDetail_20' ) start [2025-03-16 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689855', 'tblTempUsageDetail_20' ) end [2025-03-16 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:37:21] Production.INFO: ==8803== Releasing lock... [2025-03-16 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:38:05 [end_date_ymd] => 2025-03-16 00:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:38:05' and `end` < '2025-03-16 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-03-16 00:38:17] Production.INFO: count ==516 [2025-03-16 00:38:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:38:05 - End Time 2025-03-16 00:38:05 [2025-03-16 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689860', 'tblTempUsageDetail_20' ) start [2025-03-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689860', 'tblTempUsageDetail_20' ) end [2025-03-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689860', 'tblTempVendorCDR_20' ) start [2025-03-16 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689860', 'tblTempVendorCDR_20' ) end [2025-03-16 00:38:17] Production.INFO: ProcessCDR(1,14689860,1,1,2) [2025-03-16 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689860', 'tblTempUsageDetail_20' ) start [2025-03-16 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689860', 'tblTempUsageDetail_20' ) end [2025-03-16 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:38:20] Production.INFO: ==8880== Releasing lock... [2025-03-16 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:38:20] Production.INFO: 32 MB #Memory Used# [2025-03-16 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:39:05 [end_date_ymd] => 2025-03-16 00:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:39:05' and `end` < '2025-03-16 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-03-16 00:39:18] Production.INFO: count ==505 [2025-03-16 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:39:05 - End Time 2025-03-16 00:39:05 [2025-03-16 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689865', 'tblTempUsageDetail_20' ) start [2025-03-16 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689865', 'tblTempUsageDetail_20' ) end [2025-03-16 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689865', 'tblTempVendorCDR_20' ) start [2025-03-16 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689865', 'tblTempVendorCDR_20' ) end [2025-03-16 00:39:18] Production.INFO: ProcessCDR(1,14689865,1,1,2) [2025-03-16 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689865', 'tblTempUsageDetail_20' ) start [2025-03-16 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689865', 'tblTempUsageDetail_20' ) end [2025-03-16 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:39:21] Production.INFO: ==8954== Releasing lock... [2025-03-16 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:40:07 [end_date_ymd] => 2025-03-16 00:40:07 [RateCDR] => 1 ) [2025-03-16 00: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-03-15 21:40:07' and `end` < '2025-03-16 00: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-03-16 00:40:19] Production.INFO: count ==510 [2025-03-16 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 21:40:07 - End Time 2025-03-16 00:40:07 [2025-03-16 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689871', 'tblTempUsageDetail_20' ) start [2025-03-16 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689871', 'tblTempUsageDetail_20' ) end [2025-03-16 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689871', 'tblTempVendorCDR_20' ) start [2025-03-16 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689871', 'tblTempVendorCDR_20' ) end [2025-03-16 00:40:19] Production.INFO: ProcessCDR(1,14689871,1,1,2) [2025-03-16 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689871', 'tblTempUsageDetail_20' ) start [2025-03-16 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689871', 'tblTempUsageDetail_20' ) end [2025-03-16 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:40:22] Production.INFO: ==9036== Releasing lock... [2025-03-16 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:41:06 [end_date_ymd] => 2025-03-16 00:41:06 [RateCDR] => 1 ) [2025-03-16 00: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-03-15 21:41:06' and `end` < '2025-03-16 00: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-03-16 00:41:18] Production.INFO: count ==533 [2025-03-16 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:41:06 - End Time 2025-03-16 00:41:06 [2025-03-16 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689876', 'tblTempUsageDetail_20' ) start [2025-03-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689876', 'tblTempUsageDetail_20' ) end [2025-03-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689876', 'tblTempVendorCDR_20' ) start [2025-03-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689876', 'tblTempVendorCDR_20' ) end [2025-03-16 00:41:18] Production.INFO: ProcessCDR(1,14689876,1,1,2) [2025-03-16 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689876', 'tblTempUsageDetail_20' ) start [2025-03-16 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689876', 'tblTempUsageDetail_20' ) end [2025-03-16 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:41:23] Production.INFO: ==9125== Releasing lock... [2025-03-16 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:41:23] Production.INFO: 33 MB #Memory Used# [2025-03-16 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:42:05 [end_date_ymd] => 2025-03-16 00:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:42:05' and `end` < '2025-03-16 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-03-16 00:42:17] Production.INFO: count ==530 [2025-03-16 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:42:05 - End Time 2025-03-16 00:42:05 [2025-03-16 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689881', 'tblTempUsageDetail_20' ) start [2025-03-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689881', 'tblTempUsageDetail_20' ) end [2025-03-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689881', 'tblTempVendorCDR_20' ) start [2025-03-16 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689881', 'tblTempVendorCDR_20' ) end [2025-03-16 00:42:17] Production.INFO: ProcessCDR(1,14689881,1,1,2) [2025-03-16 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689881', 'tblTempUsageDetail_20' ) start [2025-03-16 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689881', 'tblTempUsageDetail_20' ) end [2025-03-16 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:42:21] Production.INFO: ==9198== Releasing lock... [2025-03-16 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:43:05 [end_date_ymd] => 2025-03-16 00:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:43:05' and `end` < '2025-03-16 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-03-16 00:43:17] Production.INFO: count ==526 [2025-03-16 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:43:05 - End Time 2025-03-16 00:43:05 [2025-03-16 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689886', 'tblTempUsageDetail_20' ) start [2025-03-16 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689886', 'tblTempUsageDetail_20' ) end [2025-03-16 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689886', 'tblTempVendorCDR_20' ) start [2025-03-16 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689886', 'tblTempVendorCDR_20' ) end [2025-03-16 00:43:17] Production.INFO: ProcessCDR(1,14689886,1,1,2) [2025-03-16 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689886', 'tblTempUsageDetail_20' ) start [2025-03-16 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689886', 'tblTempUsageDetail_20' ) end [2025-03-16 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:43:21] Production.INFO: ==9273== Releasing lock... [2025-03-16 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:44:05 [end_date_ymd] => 2025-03-16 00:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:44:05' and `end` < '2025-03-16 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-03-16 00:44:17] Production.INFO: count ==523 [2025-03-16 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:44:05 - End Time 2025-03-16 00:44:05 [2025-03-16 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689891', 'tblTempUsageDetail_20' ) start [2025-03-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689891', 'tblTempUsageDetail_20' ) end [2025-03-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689891', 'tblTempVendorCDR_20' ) start [2025-03-16 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689891', 'tblTempVendorCDR_20' ) end [2025-03-16 00:44:17] Production.INFO: ProcessCDR(1,14689891,1,1,2) [2025-03-16 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689891', 'tblTempUsageDetail_20' ) start [2025-03-16 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689891', 'tblTempUsageDetail_20' ) end [2025-03-16 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:44:21] Production.INFO: ==9347== Releasing lock... [2025-03-16 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:45:05 [end_date_ymd] => 2025-03-16 00:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:45:05' and `end` < '2025-03-16 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-03-16 00:45:17] Production.INFO: count ==519 [2025-03-16 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:45:05 - End Time 2025-03-16 00:45:05 [2025-03-16 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689896', 'tblTempUsageDetail_20' ) start [2025-03-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689896', 'tblTempUsageDetail_20' ) end [2025-03-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689896', 'tblTempVendorCDR_20' ) start [2025-03-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689896', 'tblTempVendorCDR_20' ) end [2025-03-16 00:45:18] Production.INFO: ProcessCDR(1,14689896,1,1,2) [2025-03-16 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689896', 'tblTempUsageDetail_20' ) start [2025-03-16 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689896', 'tblTempUsageDetail_20' ) end [2025-03-16 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:45:21] Production.INFO: ==9421== Releasing lock... [2025-03-16 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:46:05 [end_date_ymd] => 2025-03-16 00:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:46:05' and `end` < '2025-03-16 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-03-16 00:46:17] Production.INFO: count ==515 [2025-03-16 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:46:05 - End Time 2025-03-16 00:46:05 [2025-03-16 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689901', 'tblTempUsageDetail_20' ) start [2025-03-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689901', 'tblTempUsageDetail_20' ) end [2025-03-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689901', 'tblTempVendorCDR_20' ) start [2025-03-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689901', 'tblTempVendorCDR_20' ) end [2025-03-16 00:46:17] Production.INFO: ProcessCDR(1,14689901,1,1,2) [2025-03-16 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689901', 'tblTempUsageDetail_20' ) start [2025-03-16 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689901', 'tblTempUsageDetail_20' ) end [2025-03-16 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:46:21] Production.INFO: ==9492== Releasing lock... [2025-03-16 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:46:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:47:05 [end_date_ymd] => 2025-03-16 00:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:47:05' and `end` < '2025-03-16 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-03-16 00:47:17] Production.INFO: count ==515 [2025-03-16 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:47:05 - End Time 2025-03-16 00:47:05 [2025-03-16 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689906', 'tblTempUsageDetail_20' ) start [2025-03-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689906', 'tblTempUsageDetail_20' ) end [2025-03-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689906', 'tblTempVendorCDR_20' ) start [2025-03-16 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689906', 'tblTempVendorCDR_20' ) end [2025-03-16 00:47:17] Production.INFO: ProcessCDR(1,14689906,1,1,2) [2025-03-16 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689906', 'tblTempUsageDetail_20' ) start [2025-03-16 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689906', 'tblTempUsageDetail_20' ) end [2025-03-16 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:47:22] Production.INFO: ==9568== Releasing lock... [2025-03-16 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:48:05 [end_date_ymd] => 2025-03-16 00:48:05 [RateCDR] => 1 ) [2025-03-16 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:48:05' and `end` < '2025-03-16 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 00:48:18] Production.INFO: count ==514 [2025-03-16 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:48:05 - End Time 2025-03-16 00:48:05 [2025-03-16 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689911', 'tblTempUsageDetail_20' ) start [2025-03-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689911', 'tblTempUsageDetail_20' ) end [2025-03-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689911', 'tblTempVendorCDR_20' ) start [2025-03-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689911', 'tblTempVendorCDR_20' ) end [2025-03-16 00:48:18] Production.INFO: ProcessCDR(1,14689911,1,1,2) [2025-03-16 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689911', 'tblTempUsageDetail_20' ) start [2025-03-16 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689911', 'tblTempUsageDetail_20' ) end [2025-03-16 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:48:21] Production.INFO: ==9641== Releasing lock... [2025-03-16 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:49:04 [end_date_ymd] => 2025-03-16 00:49:04 [RateCDR] => 1 ) [2025-03-16 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:49:04' and `end` < '2025-03-16 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 00:49:16] Production.INFO: count ==506 [2025-03-16 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:49:04 - End Time 2025-03-16 00:49:04 [2025-03-16 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689916', 'tblTempUsageDetail_20' ) start [2025-03-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689916', 'tblTempUsageDetail_20' ) end [2025-03-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689916', 'tblTempVendorCDR_20' ) start [2025-03-16 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689916', 'tblTempVendorCDR_20' ) end [2025-03-16 00:49:17] Production.INFO: ProcessCDR(1,14689916,1,1,2) [2025-03-16 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689916', 'tblTempUsageDetail_20' ) start [2025-03-16 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689916', 'tblTempUsageDetail_20' ) end [2025-03-16 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:49:20] Production.INFO: ==9754== Releasing lock... [2025-03-16 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:49:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:50:06 [end_date_ymd] => 2025-03-16 00:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:50:06' and `end` < '2025-03-16 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-03-16 00:50:18] Production.INFO: count ==513 [2025-03-16 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:50:06 - End Time 2025-03-16 00:50:06 [2025-03-16 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689922', 'tblTempUsageDetail_20' ) start [2025-03-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689922', 'tblTempUsageDetail_20' ) end [2025-03-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689922', 'tblTempVendorCDR_20' ) start [2025-03-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689922', 'tblTempVendorCDR_20' ) end [2025-03-16 00:50:18] Production.INFO: ProcessCDR(1,14689922,1,1,2) [2025-03-16 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689922', 'tblTempUsageDetail_20' ) start [2025-03-16 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689922', 'tblTempUsageDetail_20' ) end [2025-03-16 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:50:21] Production.INFO: ==9829== Releasing lock... [2025-03-16 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:50:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:51:05 [end_date_ymd] => 2025-03-16 00:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:51:05' and `end` < '2025-03-16 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-03-16 00:51:17] Production.INFO: count ==511 [2025-03-16 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:51:05 - End Time 2025-03-16 00:51:05 [2025-03-16 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689927', 'tblTempUsageDetail_20' ) start [2025-03-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689927', 'tblTempUsageDetail_20' ) end [2025-03-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689927', 'tblTempVendorCDR_20' ) start [2025-03-16 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689927', 'tblTempVendorCDR_20' ) end [2025-03-16 00:51:17] Production.INFO: ProcessCDR(1,14689927,1,1,2) [2025-03-16 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689927', 'tblTempUsageDetail_20' ) start [2025-03-16 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689927', 'tblTempUsageDetail_20' ) end [2025-03-16 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:51:20] Production.INFO: ==9906== Releasing lock... [2025-03-16 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:51:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:52:06 [end_date_ymd] => 2025-03-16 00:52:06 [RateCDR] => 1 ) [2025-03-16 00: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-03-15 21:52:06' and `end` < '2025-03-16 00: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-03-16 00:52:18] Production.INFO: count ==512 [2025-03-16 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:52:06 - End Time 2025-03-16 00:52:06 [2025-03-16 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689932', 'tblTempUsageDetail_20' ) start [2025-03-16 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689932', 'tblTempUsageDetail_20' ) end [2025-03-16 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689932', 'tblTempVendorCDR_20' ) start [2025-03-16 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689932', 'tblTempVendorCDR_20' ) end [2025-03-16 00:52:18] Production.INFO: ProcessCDR(1,14689932,1,1,2) [2025-03-16 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689932', 'tblTempUsageDetail_20' ) start [2025-03-16 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689932', 'tblTempUsageDetail_20' ) end [2025-03-16 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:52:23] Production.INFO: ==9979== Releasing lock... [2025-03-16 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:52:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:53:05 [end_date_ymd] => 2025-03-16 00:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:53:05' and `end` < '2025-03-16 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-03-16 00:53:17] Production.INFO: count ==511 [2025-03-16 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:53:05 - End Time 2025-03-16 00:53:05 [2025-03-16 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689937', 'tblTempUsageDetail_20' ) start [2025-03-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689937', 'tblTempUsageDetail_20' ) end [2025-03-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689937', 'tblTempVendorCDR_20' ) start [2025-03-16 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689937', 'tblTempVendorCDR_20' ) end [2025-03-16 00:53:17] Production.INFO: ProcessCDR(1,14689937,1,1,2) [2025-03-16 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689937', 'tblTempUsageDetail_20' ) start [2025-03-16 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689937', 'tblTempUsageDetail_20' ) end [2025-03-16 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:53:21] Production.INFO: ==10056== Releasing lock... [2025-03-16 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:54:05 [end_date_ymd] => 2025-03-16 00:54:05 [RateCDR] => 1 ) [2025-03-16 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:54:05' and `end` < '2025-03-16 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 00:54:17] Production.INFO: count ==512 [2025-03-16 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:54:05 - End Time 2025-03-16 00:54:05 [2025-03-16 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689942', 'tblTempUsageDetail_20' ) start [2025-03-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689942', 'tblTempUsageDetail_20' ) end [2025-03-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689942', 'tblTempVendorCDR_20' ) start [2025-03-16 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689942', 'tblTempVendorCDR_20' ) end [2025-03-16 00:54:17] Production.INFO: ProcessCDR(1,14689942,1,1,2) [2025-03-16 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689942', 'tblTempUsageDetail_20' ) start [2025-03-16 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689942', 'tblTempUsageDetail_20' ) end [2025-03-16 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:54:20] Production.INFO: ==10136== Releasing lock... [2025-03-16 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:54:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:55:05 [end_date_ymd] => 2025-03-16 00:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:55:05' and `end` < '2025-03-16 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-03-16 00:55:17] Production.INFO: count ==512 [2025-03-16 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:55:05 - End Time 2025-03-16 00:55:05 [2025-03-16 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689947', 'tblTempUsageDetail_20' ) start [2025-03-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689947', 'tblTempUsageDetail_20' ) end [2025-03-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689947', 'tblTempVendorCDR_20' ) start [2025-03-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689947', 'tblTempVendorCDR_20' ) end [2025-03-16 00:55:17] Production.INFO: ProcessCDR(1,14689947,1,1,2) [2025-03-16 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689947', 'tblTempUsageDetail_20' ) start [2025-03-16 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689947', 'tblTempUsageDetail_20' ) end [2025-03-16 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:55:21] Production.INFO: ==10207== Releasing lock... [2025-03-16 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:56:05 [end_date_ymd] => 2025-03-16 00:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:56:05' and `end` < '2025-03-16 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-03-16 00:56:18] Production.INFO: count ==512 [2025-03-16 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:56:05 - End Time 2025-03-16 00:56:05 [2025-03-16 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689952', 'tblTempUsageDetail_20' ) start [2025-03-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689952', 'tblTempUsageDetail_20' ) end [2025-03-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689952', 'tblTempVendorCDR_20' ) start [2025-03-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689952', 'tblTempVendorCDR_20' ) end [2025-03-16 00:56:18] Production.INFO: ProcessCDR(1,14689952,1,1,2) [2025-03-16 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689952', 'tblTempUsageDetail_20' ) start [2025-03-16 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689952', 'tblTempUsageDetail_20' ) end [2025-03-16 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:56:21] Production.INFO: ==10281== Releasing lock... [2025-03-16 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:57:05 [end_date_ymd] => 2025-03-16 00:57:05 [RateCDR] => 1 ) [2025-03-16 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 21:57:05' and `end` < '2025-03-16 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 00:57:17] Production.INFO: count ==513 [2025-03-16 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:57:05 - End Time 2025-03-16 00:57:05 [2025-03-16 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689957', 'tblTempUsageDetail_20' ) start [2025-03-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689957', 'tblTempUsageDetail_20' ) end [2025-03-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689957', 'tblTempVendorCDR_20' ) start [2025-03-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689957', 'tblTempVendorCDR_20' ) end [2025-03-16 00:57:17] Production.INFO: ProcessCDR(1,14689957,1,1,2) [2025-03-16 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689957', 'tblTempUsageDetail_20' ) start [2025-03-16 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689957', 'tblTempUsageDetail_20' ) end [2025-03-16 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:57:20] Production.INFO: ==10354== Releasing lock... [2025-03-16 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:57:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:58:05 [end_date_ymd] => 2025-03-16 00:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:58:05' and `end` < '2025-03-16 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-03-16 00:58:18] Production.INFO: count ==504 [2025-03-16 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 21:58:05 - End Time 2025-03-16 00:58:05 [2025-03-16 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689962', 'tblTempUsageDetail_20' ) start [2025-03-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689962', 'tblTempUsageDetail_20' ) end [2025-03-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689962', 'tblTempVendorCDR_20' ) start [2025-03-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689962', 'tblTempVendorCDR_20' ) end [2025-03-16 00:58:18] Production.INFO: ProcessCDR(1,14689962,1,1,2) [2025-03-16 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689962', 'tblTempUsageDetail_20' ) start [2025-03-16 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689962', 'tblTempUsageDetail_20' ) end [2025-03-16 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:58:21] Production.INFO: ==10428== Releasing lock... [2025-03-16 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 21:59:05 [end_date_ymd] => 2025-03-16 00:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 21:59:05' and `end` < '2025-03-16 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-03-16 00:59:17] Production.INFO: count ==500 [2025-03-16 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 21:59:05 - End Time 2025-03-16 00:59:05 [2025-03-16 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689967', 'tblTempUsageDetail_20' ) start [2025-03-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689967', 'tblTempUsageDetail_20' ) end [2025-03-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689967', 'tblTempVendorCDR_20' ) start [2025-03-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689967', 'tblTempVendorCDR_20' ) end [2025-03-16 00:59:17] Production.INFO: ProcessCDR(1,14689967,1,1,2) [2025-03-16 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689967', 'tblTempUsageDetail_20' ) start [2025-03-16 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689967', 'tblTempUsageDetail_20' ) end [2025-03-16 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 00:59:20] Production.INFO: ==10501== Releasing lock... [2025-03-16 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 00:59:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:00:06 [end_date_ymd] => 2025-03-16 01:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:00:06' and `end` < '2025-03-16 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-03-16 01:00:18] Production.INFO: count ==506 [2025-03-16 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:00:06 - End Time 2025-03-16 01:00:06 [2025-03-16 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689973', 'tblTempUsageDetail_20' ) start [2025-03-16 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689973', 'tblTempUsageDetail_20' ) end [2025-03-16 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689973', 'tblTempVendorCDR_20' ) start [2025-03-16 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689973', 'tblTempVendorCDR_20' ) end [2025-03-16 01:00:19] Production.INFO: ProcessCDR(1,14689973,1,1,2) [2025-03-16 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689973', 'tblTempUsageDetail_20' ) start [2025-03-16 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689973', 'tblTempUsageDetail_20' ) end [2025-03-16 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:00:22] Production.INFO: ==10577== Releasing lock... [2025-03-16 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:00:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:01:04 [end_date_ymd] => 2025-03-16 01:01:04 [RateCDR] => 1 ) [2025-03-16 01: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-03-15 22:01:04' and `end` < '2025-03-16 01: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-03-16 01:01:17] Production.INFO: count ==517 [2025-03-16 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:01:04 - End Time 2025-03-16 01:01:04 [2025-03-16 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689978', 'tblTempUsageDetail_20' ) start [2025-03-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689978', 'tblTempUsageDetail_20' ) end [2025-03-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689978', 'tblTempVendorCDR_20' ) start [2025-03-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689978', 'tblTempVendorCDR_20' ) end [2025-03-16 01:01:17] Production.INFO: ProcessCDR(1,14689978,1,1,2) [2025-03-16 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689978', 'tblTempUsageDetail_20' ) start [2025-03-16 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689978', 'tblTempUsageDetail_20' ) end [2025-03-16 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:01:20] Production.INFO: ==10668== Releasing lock... [2025-03-16 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:01:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:02:05 [end_date_ymd] => 2025-03-16 01:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:02:05' and `end` < '2025-03-16 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-03-16 01:02:17] Production.INFO: count ==518 [2025-03-16 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:02:05 - End Time 2025-03-16 01:02:05 [2025-03-16 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689983', 'tblTempUsageDetail_20' ) start [2025-03-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689983', 'tblTempUsageDetail_20' ) end [2025-03-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689983', 'tblTempVendorCDR_20' ) start [2025-03-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689983', 'tblTempVendorCDR_20' ) end [2025-03-16 01:02:18] Production.INFO: ProcessCDR(1,14689983,1,1,2) [2025-03-16 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689983', 'tblTempUsageDetail_20' ) start [2025-03-16 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689983', 'tblTempUsageDetail_20' ) end [2025-03-16 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:02:23] Production.INFO: ==10741== Releasing lock... [2025-03-16 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:02:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:03:05 [end_date_ymd] => 2025-03-16 01:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:03:05' and `end` < '2025-03-16 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-03-16 01:03:17] Production.INFO: count ==526 [2025-03-16 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:03:05 - End Time 2025-03-16 01:03:05 [2025-03-16 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689988', 'tblTempUsageDetail_20' ) start [2025-03-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689988', 'tblTempUsageDetail_20' ) end [2025-03-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689988', 'tblTempVendorCDR_20' ) start [2025-03-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689988', 'tblTempVendorCDR_20' ) end [2025-03-16 01:03:17] Production.INFO: ProcessCDR(1,14689988,1,1,2) [2025-03-16 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689988', 'tblTempUsageDetail_20' ) start [2025-03-16 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689988', 'tblTempUsageDetail_20' ) end [2025-03-16 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:03:21] Production.INFO: ==10818== Releasing lock... [2025-03-16 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:04:05 [end_date_ymd] => 2025-03-16 01:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:04:05' and `end` < '2025-03-16 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-03-16 01:04:18] Production.INFO: count ==523 [2025-03-16 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:04:05 - End Time 2025-03-16 01:04:05 [2025-03-16 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689993', 'tblTempUsageDetail_20' ) start [2025-03-16 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689993', 'tblTempUsageDetail_20' ) end [2025-03-16 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689993', 'tblTempVendorCDR_20' ) start [2025-03-16 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689993', 'tblTempVendorCDR_20' ) end [2025-03-16 01:04:18] Production.INFO: ProcessCDR(1,14689993,1,1,2) [2025-03-16 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689993', 'tblTempUsageDetail_20' ) start [2025-03-16 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689993', 'tblTempUsageDetail_20' ) end [2025-03-16 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:04:21] Production.INFO: ==10900== Releasing lock... [2025-03-16 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:04:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:05:06 [end_date_ymd] => 2025-03-16 01:05:06 [RateCDR] => 1 ) [2025-03-16 01: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-03-15 22:05:06' and `end` < '2025-03-16 01: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-03-16 01:05:18] Production.INFO: count ==528 [2025-03-16 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:05:06 - End Time 2025-03-16 01:05:06 [2025-03-16 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689998', 'tblTempUsageDetail_20' ) start [2025-03-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689998', 'tblTempUsageDetail_20' ) end [2025-03-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689998', 'tblTempVendorCDR_20' ) start [2025-03-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689998', 'tblTempVendorCDR_20' ) end [2025-03-16 01:05:18] Production.INFO: ProcessCDR(1,14689998,1,1,2) [2025-03-16 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689998', 'tblTempUsageDetail_20' ) start [2025-03-16 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689998', 'tblTempUsageDetail_20' ) end [2025-03-16 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:05:23] Production.INFO: ==11028== Releasing lock... [2025-03-16 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:05:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:06:05 [end_date_ymd] => 2025-03-16 01:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:06:05' and `end` < '2025-03-16 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-03-16 01:06:17] Production.INFO: count ==528 [2025-03-16 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:06:05 - End Time 2025-03-16 01:06:05 [2025-03-16 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690003', 'tblTempUsageDetail_20' ) start [2025-03-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690003', 'tblTempUsageDetail_20' ) end [2025-03-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690003', 'tblTempVendorCDR_20' ) start [2025-03-16 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690003', 'tblTempVendorCDR_20' ) end [2025-03-16 01:06:17] Production.INFO: ProcessCDR(1,14690003,1,1,2) [2025-03-16 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690003', 'tblTempUsageDetail_20' ) start [2025-03-16 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690003', 'tblTempUsageDetail_20' ) end [2025-03-16 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:06:21] Production.INFO: ==11115== Releasing lock... [2025-03-16 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:07:05 [end_date_ymd] => 2025-03-16 01:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:07:05' and `end` < '2025-03-16 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-03-16 01:07:17] Production.INFO: count ==530 [2025-03-16 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:07:05 - End Time 2025-03-16 01:07:05 [2025-03-16 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690008', 'tblTempUsageDetail_20' ) start [2025-03-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690008', 'tblTempUsageDetail_20' ) end [2025-03-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690008', 'tblTempVendorCDR_20' ) start [2025-03-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690008', 'tblTempVendorCDR_20' ) end [2025-03-16 01:07:18] Production.INFO: ProcessCDR(1,14690008,1,1,2) [2025-03-16 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690008', 'tblTempUsageDetail_20' ) start [2025-03-16 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690008', 'tblTempUsageDetail_20' ) end [2025-03-16 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:07:21] Production.INFO: ==11204== Releasing lock... [2025-03-16 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:08:05 [end_date_ymd] => 2025-03-16 01:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:08:05' and `end` < '2025-03-16 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-03-16 01:08:17] Production.INFO: count ==530 [2025-03-16 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:08:05 - End Time 2025-03-16 01:08:05 [2025-03-16 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690013', 'tblTempUsageDetail_20' ) start [2025-03-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690013', 'tblTempUsageDetail_20' ) end [2025-03-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690013', 'tblTempVendorCDR_20' ) start [2025-03-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690013', 'tblTempVendorCDR_20' ) end [2025-03-16 01:08:17] Production.INFO: ProcessCDR(1,14690013,1,1,2) [2025-03-16 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690013', 'tblTempUsageDetail_20' ) start [2025-03-16 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690013', 'tblTempUsageDetail_20' ) end [2025-03-16 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:08:20] Production.INFO: ==11294== Releasing lock... [2025-03-16 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:08:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:09:05 [end_date_ymd] => 2025-03-16 01:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:09:05' and `end` < '2025-03-16 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-03-16 01:09:18] Production.INFO: count ==529 [2025-03-16 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:09:05 - End Time 2025-03-16 01:09:05 [2025-03-16 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690018', 'tblTempUsageDetail_20' ) start [2025-03-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690018', 'tblTempUsageDetail_20' ) end [2025-03-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690018', 'tblTempVendorCDR_20' ) start [2025-03-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690018', 'tblTempVendorCDR_20' ) end [2025-03-16 01:09:18] Production.INFO: ProcessCDR(1,14690018,1,1,2) [2025-03-16 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690018', 'tblTempUsageDetail_20' ) start [2025-03-16 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690018', 'tblTempUsageDetail_20' ) end [2025-03-16 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:09:21] Production.INFO: ==11384== Releasing lock... [2025-03-16 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:09:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:10:06 [end_date_ymd] => 2025-03-16 01:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:10:06' and `end` < '2025-03-16 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-03-16 01:10:18] Production.INFO: count ==537 [2025-03-16 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:10:06 - End Time 2025-03-16 01:10:06 [2025-03-16 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690023', 'tblTempUsageDetail_20' ) start [2025-03-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690023', 'tblTempUsageDetail_20' ) end [2025-03-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690023', 'tblTempVendorCDR_20' ) start [2025-03-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690023', 'tblTempVendorCDR_20' ) end [2025-03-16 01:10:18] Production.INFO: ProcessCDR(1,14690023,1,1,2) [2025-03-16 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690023', 'tblTempUsageDetail_20' ) start [2025-03-16 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690023', 'tblTempUsageDetail_20' ) end [2025-03-16 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:10:21] Production.INFO: ==11474== Releasing lock... [2025-03-16 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:10:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:11:05 [end_date_ymd] => 2025-03-16 01:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:11:05' and `end` < '2025-03-16 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-03-16 01:11:17] Production.INFO: count ==560 [2025-03-16 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:11:05 - End Time 2025-03-16 01:11:05 [2025-03-16 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690029', 'tblTempUsageDetail_20' ) start [2025-03-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690029', 'tblTempUsageDetail_20' ) end [2025-03-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690029', 'tblTempVendorCDR_20' ) start [2025-03-16 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690029', 'tblTempVendorCDR_20' ) end [2025-03-16 01:11:17] Production.INFO: ProcessCDR(1,14690029,1,1,2) [2025-03-16 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690029', 'tblTempUsageDetail_20' ) start [2025-03-16 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690029', 'tblTempUsageDetail_20' ) end [2025-03-16 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:11:21] Production.INFO: ==11568== Releasing lock... [2025-03-16 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:12:05 [end_date_ymd] => 2025-03-16 01:12:05 [RateCDR] => 1 ) [2025-03-16 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:12:05' and `end` < '2025-03-16 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:12:17] Production.INFO: count ==559 [2025-03-16 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:12:05 - End Time 2025-03-16 01:12:05 [2025-03-16 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690034', 'tblTempUsageDetail_20' ) start [2025-03-16 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690034', 'tblTempUsageDetail_20' ) end [2025-03-16 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690034', 'tblTempVendorCDR_20' ) start [2025-03-16 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690034', 'tblTempVendorCDR_20' ) end [2025-03-16 01:12:17] Production.INFO: ProcessCDR(1,14690034,1,1,2) [2025-03-16 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690034', 'tblTempUsageDetail_20' ) start [2025-03-16 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690034', 'tblTempUsageDetail_20' ) end [2025-03-16 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:12:20] Production.INFO: ==11658== Releasing lock... [2025-03-16 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:12:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:13:06 [end_date_ymd] => 2025-03-16 01:13:06 [RateCDR] => 1 ) [2025-03-16 01: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-03-15 22:13:06' and `end` < '2025-03-16 01: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-03-16 01:13:18] Production.INFO: count ==560 [2025-03-16 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:13:06 - End Time 2025-03-16 01:13:06 [2025-03-16 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690039', 'tblTempUsageDetail_20' ) start [2025-03-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690039', 'tblTempUsageDetail_20' ) end [2025-03-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690039', 'tblTempVendorCDR_20' ) start [2025-03-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690039', 'tblTempVendorCDR_20' ) end [2025-03-16 01:13:18] Production.INFO: ProcessCDR(1,14690039,1,1,2) [2025-03-16 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690039', 'tblTempUsageDetail_20' ) start [2025-03-16 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690039', 'tblTempUsageDetail_20' ) end [2025-03-16 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:13:21] Production.INFO: ==11744== Releasing lock... [2025-03-16 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:14:05 [end_date_ymd] => 2025-03-16 01:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:14:05' and `end` < '2025-03-16 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-03-16 01:14:17] Production.INFO: count ==560 [2025-03-16 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:14:05 - End Time 2025-03-16 01:14:05 [2025-03-16 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690044', 'tblTempUsageDetail_20' ) start [2025-03-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690044', 'tblTempUsageDetail_20' ) end [2025-03-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690044', 'tblTempVendorCDR_20' ) start [2025-03-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690044', 'tblTempVendorCDR_20' ) end [2025-03-16 01:14:17] Production.INFO: ProcessCDR(1,14690044,1,1,2) [2025-03-16 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690044', 'tblTempUsageDetail_20' ) start [2025-03-16 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690044', 'tblTempUsageDetail_20' ) end [2025-03-16 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:14:21] Production.INFO: ==11834== Releasing lock... [2025-03-16 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:14:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:15:05 [end_date_ymd] => 2025-03-16 01:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:15:05' and `end` < '2025-03-16 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-03-16 01:15:17] Production.INFO: count ==558 [2025-03-16 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:15:05 - End Time 2025-03-16 01:15:05 [2025-03-16 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690049', 'tblTempUsageDetail_20' ) start [2025-03-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690049', 'tblTempUsageDetail_20' ) end [2025-03-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690049', 'tblTempVendorCDR_20' ) start [2025-03-16 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690049', 'tblTempVendorCDR_20' ) end [2025-03-16 01:15:17] Production.INFO: ProcessCDR(1,14690049,1,1,2) [2025-03-16 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690049', 'tblTempUsageDetail_20' ) start [2025-03-16 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690049', 'tblTempUsageDetail_20' ) end [2025-03-16 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:15:20] Production.INFO: ==11931== Releasing lock... [2025-03-16 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:15:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:16:05 [end_date_ymd] => 2025-03-16 01:16:05 [RateCDR] => 1 ) [2025-03-16 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:16:05' and `end` < '2025-03-16 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:16:17] Production.INFO: count ==563 [2025-03-16 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:16:05 - End Time 2025-03-16 01:16:05 [2025-03-16 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690054', 'tblTempUsageDetail_20' ) start [2025-03-16 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690054', 'tblTempUsageDetail_20' ) end [2025-03-16 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690054', 'tblTempVendorCDR_20' ) start [2025-03-16 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690054', 'tblTempVendorCDR_20' ) end [2025-03-16 01:16:17] Production.INFO: ProcessCDR(1,14690054,1,1,2) [2025-03-16 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690054', 'tblTempUsageDetail_20' ) start [2025-03-16 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690054', 'tblTempUsageDetail_20' ) end [2025-03-16 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:16:21] Production.INFO: ==12020== Releasing lock... [2025-03-16 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:16:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:17:05 [end_date_ymd] => 2025-03-16 01:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:17:05' and `end` < '2025-03-16 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-03-16 01:17:18] Production.INFO: count ==564 [2025-03-16 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:17:05 - End Time 2025-03-16 01:17:05 [2025-03-16 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690059', 'tblTempUsageDetail_20' ) start [2025-03-16 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690059', 'tblTempUsageDetail_20' ) end [2025-03-16 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690059', 'tblTempVendorCDR_20' ) start [2025-03-16 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690059', 'tblTempVendorCDR_20' ) end [2025-03-16 01:17:18] Production.INFO: ProcessCDR(1,14690059,1,1,2) [2025-03-16 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690059', 'tblTempUsageDetail_20' ) start [2025-03-16 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690059', 'tblTempUsageDetail_20' ) end [2025-03-16 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:17:22] Production.INFO: ==12112== Releasing lock... [2025-03-16 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:17:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:18:05 [end_date_ymd] => 2025-03-16 01:18:05 [RateCDR] => 1 ) [2025-03-16 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:18:05' and `end` < '2025-03-16 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:18:17] Production.INFO: count ==567 [2025-03-16 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:18:05 - End Time 2025-03-16 01:18:05 [2025-03-16 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690064', 'tblTempUsageDetail_20' ) start [2025-03-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690064', 'tblTempUsageDetail_20' ) end [2025-03-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690064', 'tblTempVendorCDR_20' ) start [2025-03-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690064', 'tblTempVendorCDR_20' ) end [2025-03-16 01:18:17] Production.INFO: ProcessCDR(1,14690064,1,1,2) [2025-03-16 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690064', 'tblTempUsageDetail_20' ) start [2025-03-16 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690064', 'tblTempUsageDetail_20' ) end [2025-03-16 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:18:20] Production.INFO: ==12206== Releasing lock... [2025-03-16 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:19:05 [end_date_ymd] => 2025-03-16 01:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:19:05' and `end` < '2025-03-16 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-03-16 01:19:17] Production.INFO: count ==569 [2025-03-16 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:19:05 - End Time 2025-03-16 01:19:05 [2025-03-16 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690069', 'tblTempUsageDetail_20' ) start [2025-03-16 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690069', 'tblTempUsageDetail_20' ) end [2025-03-16 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690069', 'tblTempVendorCDR_20' ) start [2025-03-16 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690069', 'tblTempVendorCDR_20' ) end [2025-03-16 01:19:18] Production.INFO: ProcessCDR(1,14690069,1,1,2) [2025-03-16 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690069', 'tblTempUsageDetail_20' ) start [2025-03-16 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690069', 'tblTempUsageDetail_20' ) end [2025-03-16 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:19:21] Production.INFO: ==12295== Releasing lock... [2025-03-16 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:20:05 [end_date_ymd] => 2025-03-16 01:20:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:20:05' and `end` < '2025-03-16 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-03-16 01:20:17] Production.INFO: count ==580 [2025-03-16 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:20:05 - End Time 2025-03-16 01:20:05 [2025-03-16 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690075', 'tblTempUsageDetail_20' ) start [2025-03-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690075', 'tblTempUsageDetail_20' ) end [2025-03-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690075', 'tblTempVendorCDR_20' ) start [2025-03-16 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690075', 'tblTempVendorCDR_20' ) end [2025-03-16 01:20:18] Production.INFO: ProcessCDR(1,14690075,1,1,2) [2025-03-16 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690075', 'tblTempUsageDetail_20' ) start [2025-03-16 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690075', 'tblTempUsageDetail_20' ) end [2025-03-16 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:20:21] Production.INFO: ==12421== Releasing lock... [2025-03-16 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:20:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:21:05 [end_date_ymd] => 2025-03-16 01:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:21:05' and `end` < '2025-03-16 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-03-16 01:21:17] Production.INFO: count ==587 [2025-03-16 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:21:05 - End Time 2025-03-16 01:21:05 [2025-03-16 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690080', 'tblTempUsageDetail_20' ) start [2025-03-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690080', 'tblTempUsageDetail_20' ) end [2025-03-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690080', 'tblTempVendorCDR_20' ) start [2025-03-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690080', 'tblTempVendorCDR_20' ) end [2025-03-16 01:21:17] Production.INFO: ProcessCDR(1,14690080,1,1,2) [2025-03-16 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690080', 'tblTempUsageDetail_20' ) start [2025-03-16 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690080', 'tblTempUsageDetail_20' ) end [2025-03-16 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:21:21] Production.INFO: ==12513== Releasing lock... [2025-03-16 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:22:05 [end_date_ymd] => 2025-03-16 01:22:05 [RateCDR] => 1 ) [2025-03-16 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:22:05' and `end` < '2025-03-16 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:22:17] Production.INFO: count ==588 [2025-03-16 01:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:22:05 - End Time 2025-03-16 01:22:05 [2025-03-16 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690085', 'tblTempUsageDetail_20' ) start [2025-03-16 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690085', 'tblTempUsageDetail_20' ) end [2025-03-16 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690085', 'tblTempVendorCDR_20' ) start [2025-03-16 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690085', 'tblTempVendorCDR_20' ) end [2025-03-16 01:22:17] Production.INFO: ProcessCDR(1,14690085,1,1,2) [2025-03-16 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690085', 'tblTempUsageDetail_20' ) start [2025-03-16 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690085', 'tblTempUsageDetail_20' ) end [2025-03-16 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:22:21] Production.INFO: ==12596== Releasing lock... [2025-03-16 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:23:05 [end_date_ymd] => 2025-03-16 01:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:23:05' and `end` < '2025-03-16 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-03-16 01:23:17] Production.INFO: count ==588 [2025-03-16 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:23:05 - End Time 2025-03-16 01:23:05 [2025-03-16 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690090', 'tblTempUsageDetail_20' ) start [2025-03-16 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690090', 'tblTempUsageDetail_20' ) end [2025-03-16 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690090', 'tblTempVendorCDR_20' ) start [2025-03-16 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690090', 'tblTempVendorCDR_20' ) end [2025-03-16 01:23:17] Production.INFO: ProcessCDR(1,14690090,1,1,2) [2025-03-16 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690090', 'tblTempUsageDetail_20' ) start [2025-03-16 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690090', 'tblTempUsageDetail_20' ) end [2025-03-16 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:23:21] Production.INFO: ==12689== Releasing lock... [2025-03-16 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:24:05 [end_date_ymd] => 2025-03-16 01:24:05 [RateCDR] => 1 ) [2025-03-16 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:24:05' and `end` < '2025-03-16 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:24:17] Production.INFO: count ==577 [2025-03-16 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:24:05 - End Time 2025-03-16 01:24:05 [2025-03-16 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690095', 'tblTempUsageDetail_20' ) start [2025-03-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690095', 'tblTempUsageDetail_20' ) end [2025-03-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690095', 'tblTempVendorCDR_20' ) start [2025-03-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690095', 'tblTempVendorCDR_20' ) end [2025-03-16 01:24:18] Production.INFO: ProcessCDR(1,14690095,1,1,2) [2025-03-16 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690095', 'tblTempUsageDetail_20' ) start [2025-03-16 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690095', 'tblTempUsageDetail_20' ) end [2025-03-16 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:24:21] Production.INFO: ==12775== Releasing lock... [2025-03-16 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:24:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:25:05 [end_date_ymd] => 2025-03-16 01:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:25:05' and `end` < '2025-03-16 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-03-16 01:25:18] Production.INFO: count ==576 [2025-03-16 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:25:05 - End Time 2025-03-16 01:25:05 [2025-03-16 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690100', 'tblTempUsageDetail_20' ) start [2025-03-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690100', 'tblTempUsageDetail_20' ) end [2025-03-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690100', 'tblTempVendorCDR_20' ) start [2025-03-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690100', 'tblTempVendorCDR_20' ) end [2025-03-16 01:25:18] Production.INFO: ProcessCDR(1,14690100,1,1,2) [2025-03-16 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690100', 'tblTempUsageDetail_20' ) start [2025-03-16 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690100', 'tblTempUsageDetail_20' ) end [2025-03-16 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:25:21] Production.INFO: ==12860== Releasing lock... [2025-03-16 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:26:06 [end_date_ymd] => 2025-03-16 01:26:06 [RateCDR] => 1 ) [2025-03-16 01: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-03-15 22:26:06' and `end` < '2025-03-16 01: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-03-16 01:26:18] Production.INFO: count ==576 [2025-03-16 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:26:06 - End Time 2025-03-16 01:26:06 [2025-03-16 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690105', 'tblTempUsageDetail_20' ) start [2025-03-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690105', 'tblTempUsageDetail_20' ) end [2025-03-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690105', 'tblTempVendorCDR_20' ) start [2025-03-16 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690105', 'tblTempVendorCDR_20' ) end [2025-03-16 01:26:18] Production.INFO: ProcessCDR(1,14690105,1,1,2) [2025-03-16 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690105', 'tblTempUsageDetail_20' ) start [2025-03-16 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690105', 'tblTempUsageDetail_20' ) end [2025-03-16 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:26:21] Production.INFO: ==12951== Releasing lock... [2025-03-16 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:27:05 [end_date_ymd] => 2025-03-16 01:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:27:05' and `end` < '2025-03-16 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-03-16 01:27:17] Production.INFO: count ==577 [2025-03-16 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:27:05 - End Time 2025-03-16 01:27:05 [2025-03-16 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690110', 'tblTempUsageDetail_20' ) start [2025-03-16 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690110', 'tblTempUsageDetail_20' ) end [2025-03-16 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690110', 'tblTempVendorCDR_20' ) start [2025-03-16 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690110', 'tblTempVendorCDR_20' ) end [2025-03-16 01:27:17] Production.INFO: ProcessCDR(1,14690110,1,1,2) [2025-03-16 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690110', 'tblTempUsageDetail_20' ) start [2025-03-16 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690110', 'tblTempUsageDetail_20' ) end [2025-03-16 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:27:21] Production.INFO: ==13033== Releasing lock... [2025-03-16 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:28:05 [end_date_ymd] => 2025-03-16 01:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:28:05' and `end` < '2025-03-16 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-03-16 01:28:17] Production.INFO: count ==571 [2025-03-16 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:28:05 - End Time 2025-03-16 01:28:05 [2025-03-16 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690115', 'tblTempUsageDetail_20' ) start [2025-03-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690115', 'tblTempUsageDetail_20' ) end [2025-03-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690115', 'tblTempVendorCDR_20' ) start [2025-03-16 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690115', 'tblTempVendorCDR_20' ) end [2025-03-16 01:28:17] Production.INFO: ProcessCDR(1,14690115,1,1,2) [2025-03-16 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690115', 'tblTempUsageDetail_20' ) start [2025-03-16 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690115', 'tblTempUsageDetail_20' ) end [2025-03-16 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:28:21] Production.INFO: ==13118== Releasing lock... [2025-03-16 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:28:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:29:05 [end_date_ymd] => 2025-03-16 01:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:29:05' and `end` < '2025-03-16 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-03-16 01:29:17] Production.INFO: count ==564 [2025-03-16 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:29:05 - End Time 2025-03-16 01:29:05 [2025-03-16 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690120', 'tblTempUsageDetail_20' ) start [2025-03-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690120', 'tblTempUsageDetail_20' ) end [2025-03-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690120', 'tblTempVendorCDR_20' ) start [2025-03-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690120', 'tblTempVendorCDR_20' ) end [2025-03-16 01:29:17] Production.INFO: ProcessCDR(1,14690120,1,1,2) [2025-03-16 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690120', 'tblTempUsageDetail_20' ) start [2025-03-16 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690120', 'tblTempUsageDetail_20' ) end [2025-03-16 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:29:21] Production.INFO: ==13209== Releasing lock... [2025-03-16 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:29:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:30:06 [end_date_ymd] => 2025-03-16 01:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:30:06' and `end` < '2025-03-16 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-03-16 01:30:18] Production.INFO: count ==570 [2025-03-16 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:30:06 - End Time 2025-03-16 01:30:06 [2025-03-16 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690126', 'tblTempUsageDetail_20' ) start [2025-03-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690126', 'tblTempUsageDetail_20' ) end [2025-03-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690126', 'tblTempVendorCDR_20' ) start [2025-03-16 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690126', 'tblTempVendorCDR_20' ) end [2025-03-16 01:30:18] Production.INFO: ProcessCDR(1,14690126,1,1,2) [2025-03-16 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690126', 'tblTempUsageDetail_20' ) start [2025-03-16 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690126', 'tblTempUsageDetail_20' ) end [2025-03-16 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:30:22] Production.INFO: ==13299== Releasing lock... [2025-03-16 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:31:05 [end_date_ymd] => 2025-03-16 01:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:31:05' and `end` < '2025-03-16 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-03-16 01:31:17] Production.INFO: count ==576 [2025-03-16 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:31:05 - End Time 2025-03-16 01:31:05 [2025-03-16 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690131', 'tblTempUsageDetail_20' ) start [2025-03-16 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690131', 'tblTempUsageDetail_20' ) end [2025-03-16 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690131', 'tblTempVendorCDR_20' ) start [2025-03-16 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690131', 'tblTempVendorCDR_20' ) end [2025-03-16 01:31:17] Production.INFO: ProcessCDR(1,14690131,1,1,2) [2025-03-16 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690131', 'tblTempUsageDetail_20' ) start [2025-03-16 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690131', 'tblTempUsageDetail_20' ) end [2025-03-16 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:31:21] Production.INFO: ==13388== Releasing lock... [2025-03-16 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:31:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:32:06 [end_date_ymd] => 2025-03-16 01:32:06 [RateCDR] => 1 ) [2025-03-16 01: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-03-15 22:32:06' and `end` < '2025-03-16 01: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-03-16 01:32:18] Production.INFO: count ==576 [2025-03-16 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:32:06 - End Time 2025-03-16 01:32:06 [2025-03-16 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690136', 'tblTempUsageDetail_20' ) start [2025-03-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690136', 'tblTempUsageDetail_20' ) end [2025-03-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690136', 'tblTempVendorCDR_20' ) start [2025-03-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690136', 'tblTempVendorCDR_20' ) end [2025-03-16 01:32:18] Production.INFO: ProcessCDR(1,14690136,1,1,2) [2025-03-16 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690136', 'tblTempUsageDetail_20' ) start [2025-03-16 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690136', 'tblTempUsageDetail_20' ) end [2025-03-16 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:32:22] Production.INFO: ==13479== Releasing lock... [2025-03-16 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:32:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:33:05 [end_date_ymd] => 2025-03-16 01:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:33:05' and `end` < '2025-03-16 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-03-16 01:33:17] Production.INFO: count ==574 [2025-03-16 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:33:05 - End Time 2025-03-16 01:33:05 [2025-03-16 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690141', 'tblTempUsageDetail_20' ) start [2025-03-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690141', 'tblTempUsageDetail_20' ) end [2025-03-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690141', 'tblTempVendorCDR_20' ) start [2025-03-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690141', 'tblTempVendorCDR_20' ) end [2025-03-16 01:33:17] Production.INFO: ProcessCDR(1,14690141,1,1,2) [2025-03-16 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690141', 'tblTempUsageDetail_20' ) start [2025-03-16 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690141', 'tblTempUsageDetail_20' ) end [2025-03-16 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:33:21] Production.INFO: ==13562== Releasing lock... [2025-03-16 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:34:06 [end_date_ymd] => 2025-03-16 01:34:06 [RateCDR] => 1 ) [2025-03-16 01: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-03-15 22:34:06' and `end` < '2025-03-16 01: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-03-16 01:34:18] Production.INFO: count ==571 [2025-03-16 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:34:06 - End Time 2025-03-16 01:34:06 [2025-03-16 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690146', 'tblTempUsageDetail_20' ) start [2025-03-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690146', 'tblTempUsageDetail_20' ) end [2025-03-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690146', 'tblTempVendorCDR_20' ) start [2025-03-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690146', 'tblTempVendorCDR_20' ) end [2025-03-16 01:34:18] Production.INFO: ProcessCDR(1,14690146,1,1,2) [2025-03-16 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690146', 'tblTempUsageDetail_20' ) start [2025-03-16 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690146', 'tblTempUsageDetail_20' ) end [2025-03-16 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:34:21] Production.INFO: ==13650== Releasing lock... [2025-03-16 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:35:05 [end_date_ymd] => 2025-03-16 01:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:35:05' and `end` < '2025-03-16 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-03-16 01:35:17] Production.INFO: count ==568 [2025-03-16 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:35:05 - End Time 2025-03-16 01:35:05 [2025-03-16 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690151', 'tblTempUsageDetail_20' ) start [2025-03-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690151', 'tblTempUsageDetail_20' ) end [2025-03-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690151', 'tblTempVendorCDR_20' ) start [2025-03-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690151', 'tblTempVendorCDR_20' ) end [2025-03-16 01:35:17] Production.INFO: ProcessCDR(1,14690151,1,1,2) [2025-03-16 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690151', 'tblTempUsageDetail_20' ) start [2025-03-16 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690151', 'tblTempUsageDetail_20' ) end [2025-03-16 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:35:21] Production.INFO: ==13737== Releasing lock... [2025-03-16 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:35:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:36:05 [end_date_ymd] => 2025-03-16 01:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:36:05' and `end` < '2025-03-16 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-03-16 01:36:17] Production.INFO: count ==566 [2025-03-16 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:36:05 - End Time 2025-03-16 01:36:05 [2025-03-16 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690156', 'tblTempUsageDetail_20' ) start [2025-03-16 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690156', 'tblTempUsageDetail_20' ) end [2025-03-16 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690156', 'tblTempVendorCDR_20' ) start [2025-03-16 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690156', 'tblTempVendorCDR_20' ) end [2025-03-16 01:36:18] Production.INFO: ProcessCDR(1,14690156,1,1,2) [2025-03-16 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690156', 'tblTempUsageDetail_20' ) start [2025-03-16 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690156', 'tblTempUsageDetail_20' ) end [2025-03-16 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:36:21] Production.INFO: ==13860== Releasing lock... [2025-03-16 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:36:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:37:05 [end_date_ymd] => 2025-03-16 01:37:05 [RateCDR] => 1 ) [2025-03-16 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:37:05' and `end` < '2025-03-16 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:37:17] Production.INFO: count ==567 [2025-03-16 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:37:05 - End Time 2025-03-16 01:37:05 [2025-03-16 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690161', 'tblTempUsageDetail_20' ) start [2025-03-16 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690161', 'tblTempUsageDetail_20' ) end [2025-03-16 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690161', 'tblTempVendorCDR_20' ) start [2025-03-16 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690161', 'tblTempVendorCDR_20' ) end [2025-03-16 01:37:17] Production.INFO: ProcessCDR(1,14690161,1,1,2) [2025-03-16 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690161', 'tblTempUsageDetail_20' ) start [2025-03-16 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690161', 'tblTempUsageDetail_20' ) end [2025-03-16 01:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:37:20] Production.INFO: ==13947== Releasing lock... [2025-03-16 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:37:20] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:38:05 [end_date_ymd] => 2025-03-16 01:38:05 [RateCDR] => 1 ) [2025-03-16 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:38:05' and `end` < '2025-03-16 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:38:18] Production.INFO: count ==567 [2025-03-16 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:38:05 - End Time 2025-03-16 01:38:05 [2025-03-16 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690166', 'tblTempUsageDetail_20' ) start [2025-03-16 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690166', 'tblTempUsageDetail_20' ) end [2025-03-16 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690166', 'tblTempVendorCDR_20' ) start [2025-03-16 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690166', 'tblTempVendorCDR_20' ) end [2025-03-16 01:38:18] Production.INFO: ProcessCDR(1,14690166,1,1,2) [2025-03-16 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690166', 'tblTempUsageDetail_20' ) start [2025-03-16 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690166', 'tblTempUsageDetail_20' ) end [2025-03-16 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:38:21] Production.INFO: ==14035== Releasing lock... [2025-03-16 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:39:05 [end_date_ymd] => 2025-03-16 01:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:39:05' and `end` < '2025-03-16 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-03-16 01:39:17] Production.INFO: count ==567 [2025-03-16 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:39:05 - End Time 2025-03-16 01:39:05 [2025-03-16 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690171', 'tblTempUsageDetail_20' ) start [2025-03-16 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690171', 'tblTempUsageDetail_20' ) end [2025-03-16 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690171', 'tblTempVendorCDR_20' ) start [2025-03-16 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690171', 'tblTempVendorCDR_20' ) end [2025-03-16 01:39:17] Production.INFO: ProcessCDR(1,14690171,1,1,2) [2025-03-16 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690171', 'tblTempUsageDetail_20' ) start [2025-03-16 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690171', 'tblTempUsageDetail_20' ) end [2025-03-16 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:39:20] Production.INFO: ==14120== Releasing lock... [2025-03-16 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:39:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:40:06 [end_date_ymd] => 2025-03-16 01:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:40:06' and `end` < '2025-03-16 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-03-16 01:40:18] Production.INFO: count ==576 [2025-03-16 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:40:06 - End Time 2025-03-16 01:40:06 [2025-03-16 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690177', 'tblTempUsageDetail_20' ) start [2025-03-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690177', 'tblTempUsageDetail_20' ) end [2025-03-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690177', 'tblTempVendorCDR_20' ) start [2025-03-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690177', 'tblTempVendorCDR_20' ) end [2025-03-16 01:40:18] Production.INFO: ProcessCDR(1,14690177,1,1,2) [2025-03-16 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690177', 'tblTempUsageDetail_20' ) start [2025-03-16 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690177', 'tblTempUsageDetail_20' ) end [2025-03-16 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:40:22] Production.INFO: ==14208== Releasing lock... [2025-03-16 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:40:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:41:05 [end_date_ymd] => 2025-03-16 01:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:41:05' and `end` < '2025-03-16 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-03-16 01:41:17] Production.INFO: count ==601 [2025-03-16 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:41:05 - End Time 2025-03-16 01:41:05 [2025-03-16 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690182', 'tblTempUsageDetail_20' ) start [2025-03-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690182', 'tblTempUsageDetail_20' ) end [2025-03-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690182', 'tblTempVendorCDR_20' ) start [2025-03-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690182', 'tblTempVendorCDR_20' ) end [2025-03-16 01:41:17] Production.INFO: ProcessCDR(1,14690182,1,1,2) [2025-03-16 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690182', 'tblTempUsageDetail_20' ) start [2025-03-16 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690182', 'tblTempUsageDetail_20' ) end [2025-03-16 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:41:22] Production.INFO: ==14295== Releasing lock... [2025-03-16 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:42:05 [end_date_ymd] => 2025-03-16 01:42:05 [RateCDR] => 1 ) [2025-03-16 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:42:05' and `end` < '2025-03-16 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:42:18] Production.INFO: count ==600 [2025-03-16 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:42:05 - End Time 2025-03-16 01:42:05 [2025-03-16 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690187', 'tblTempUsageDetail_20' ) start [2025-03-16 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690187', 'tblTempUsageDetail_20' ) end [2025-03-16 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690187', 'tblTempVendorCDR_20' ) start [2025-03-16 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690187', 'tblTempVendorCDR_20' ) end [2025-03-16 01:42:18] Production.INFO: ProcessCDR(1,14690187,1,1,2) [2025-03-16 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690187', 'tblTempUsageDetail_20' ) start [2025-03-16 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690187', 'tblTempUsageDetail_20' ) end [2025-03-16 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:42:21] Production.INFO: ==14384== Releasing lock... [2025-03-16 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:43:06 [end_date_ymd] => 2025-03-16 01:43:06 [RateCDR] => 1 ) [2025-03-16 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:43:06' and `end` < '2025-03-16 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:43:18] Production.INFO: count ==592 [2025-03-16 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:43:06 - End Time 2025-03-16 01:43:06 [2025-03-16 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690192', 'tblTempUsageDetail_20' ) start [2025-03-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690192', 'tblTempUsageDetail_20' ) end [2025-03-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690192', 'tblTempVendorCDR_20' ) start [2025-03-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690192', 'tblTempVendorCDR_20' ) end [2025-03-16 01:43:18] Production.INFO: ProcessCDR(1,14690192,1,1,2) [2025-03-16 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690192', 'tblTempUsageDetail_20' ) start [2025-03-16 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690192', 'tblTempUsageDetail_20' ) end [2025-03-16 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:43:21] Production.INFO: ==14471== Releasing lock... [2025-03-16 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:44:05 [end_date_ymd] => 2025-03-16 01:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:44:05' and `end` < '2025-03-16 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-03-16 01:44:17] Production.INFO: count ==592 [2025-03-16 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:44:05 - End Time 2025-03-16 01:44:05 [2025-03-16 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690197', 'tblTempUsageDetail_20' ) start [2025-03-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690197', 'tblTempUsageDetail_20' ) end [2025-03-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690197', 'tblTempVendorCDR_20' ) start [2025-03-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690197', 'tblTempVendorCDR_20' ) end [2025-03-16 01:44:18] Production.INFO: ProcessCDR(1,14690197,1,1,2) [2025-03-16 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690197', 'tblTempUsageDetail_20' ) start [2025-03-16 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690197', 'tblTempUsageDetail_20' ) end [2025-03-16 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:44:21] Production.INFO: ==14555== Releasing lock... [2025-03-16 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:45:05 [end_date_ymd] => 2025-03-16 01:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:45:05' and `end` < '2025-03-16 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-03-16 01:45:18] Production.INFO: count ==592 [2025-03-16 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:45:05 - End Time 2025-03-16 01:45:05 [2025-03-16 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690202', 'tblTempUsageDetail_20' ) start [2025-03-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690202', 'tblTempUsageDetail_20' ) end [2025-03-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690202', 'tblTempVendorCDR_20' ) start [2025-03-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690202', 'tblTempVendorCDR_20' ) end [2025-03-16 01:45:18] Production.INFO: ProcessCDR(1,14690202,1,1,2) [2025-03-16 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690202', 'tblTempUsageDetail_20' ) start [2025-03-16 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690202', 'tblTempUsageDetail_20' ) end [2025-03-16 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:45:21] Production.INFO: ==14642== Releasing lock... [2025-03-16 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:46:05 [end_date_ymd] => 2025-03-16 01:46:05 [RateCDR] => 1 ) [2025-03-16 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:46:05' and `end` < '2025-03-16 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:46:17] Production.INFO: count ==592 [2025-03-16 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:46:05 - End Time 2025-03-16 01:46:05 [2025-03-16 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690207', 'tblTempUsageDetail_20' ) start [2025-03-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690207', 'tblTempUsageDetail_20' ) end [2025-03-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690207', 'tblTempVendorCDR_20' ) start [2025-03-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690207', 'tblTempVendorCDR_20' ) end [2025-03-16 01:46:18] Production.INFO: ProcessCDR(1,14690207,1,1,2) [2025-03-16 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690207', 'tblTempUsageDetail_20' ) start [2025-03-16 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690207', 'tblTempUsageDetail_20' ) end [2025-03-16 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:46:21] Production.INFO: ==14729== Releasing lock... [2025-03-16 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:47:05 [end_date_ymd] => 2025-03-16 01:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:47:05' and `end` < '2025-03-16 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-03-16 01:47:18] Production.INFO: count ==591 [2025-03-16 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:47:05 - End Time 2025-03-16 01:47:05 [2025-03-16 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690212', 'tblTempUsageDetail_20' ) start [2025-03-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690212', 'tblTempUsageDetail_20' ) end [2025-03-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690212', 'tblTempVendorCDR_20' ) start [2025-03-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690212', 'tblTempVendorCDR_20' ) end [2025-03-16 01:47:18] Production.INFO: ProcessCDR(1,14690212,1,1,2) [2025-03-16 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690212', 'tblTempUsageDetail_20' ) start [2025-03-16 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690212', 'tblTempUsageDetail_20' ) end [2025-03-16 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:47:23] Production.INFO: ==14814== Releasing lock... [2025-03-16 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:47:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:48:05 [end_date_ymd] => 2025-03-16 01:48:05 [RateCDR] => 1 ) [2025-03-16 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:48:05' and `end` < '2025-03-16 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:48:17] Production.INFO: count ==591 [2025-03-16 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:48:05 - End Time 2025-03-16 01:48:05 [2025-03-16 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690217', 'tblTempUsageDetail_20' ) start [2025-03-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690217', 'tblTempUsageDetail_20' ) end [2025-03-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690217', 'tblTempVendorCDR_20' ) start [2025-03-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690217', 'tblTempVendorCDR_20' ) end [2025-03-16 01:48:18] Production.INFO: ProcessCDR(1,14690217,1,1,2) [2025-03-16 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690217', 'tblTempUsageDetail_20' ) start [2025-03-16 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690217', 'tblTempUsageDetail_20' ) end [2025-03-16 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:48:21] Production.INFO: ==14903== Releasing lock... [2025-03-16 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:49:05 [end_date_ymd] => 2025-03-16 01:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:49:05' and `end` < '2025-03-16 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-03-16 01:49:17] Production.INFO: count ==591 [2025-03-16 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:49:05 - End Time 2025-03-16 01:49:05 [2025-03-16 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690222', 'tblTempUsageDetail_20' ) start [2025-03-16 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690222', 'tblTempUsageDetail_20' ) end [2025-03-16 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690222', 'tblTempVendorCDR_20' ) start [2025-03-16 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690222', 'tblTempVendorCDR_20' ) end [2025-03-16 01:49:18] Production.INFO: ProcessCDR(1,14690222,1,1,2) [2025-03-16 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690222', 'tblTempUsageDetail_20' ) start [2025-03-16 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690222', 'tblTempUsageDetail_20' ) end [2025-03-16 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:49:21] Production.INFO: ==14990== Releasing lock... [2025-03-16 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:50:06 [end_date_ymd] => 2025-03-16 01:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:50:06' and `end` < '2025-03-16 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-03-16 01:50:18] Production.INFO: count ==606 [2025-03-16 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:50:06 - End Time 2025-03-16 01:50:06 [2025-03-16 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690227', 'tblTempUsageDetail_20' ) start [2025-03-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690227', 'tblTempUsageDetail_20' ) end [2025-03-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690227', 'tblTempVendorCDR_20' ) start [2025-03-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690227', 'tblTempVendorCDR_20' ) end [2025-03-16 01:50:18] Production.INFO: ProcessCDR(1,14690227,1,1,2) [2025-03-16 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690227', 'tblTempUsageDetail_20' ) start [2025-03-16 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690227', 'tblTempUsageDetail_20' ) end [2025-03-16 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:50:22] Production.INFO: ==15078== Releasing lock... [2025-03-16 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:51:05 [end_date_ymd] => 2025-03-16 01:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:51:05' and `end` < '2025-03-16 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-03-16 01:51:17] Production.INFO: count ==644 [2025-03-16 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:51:05 - End Time 2025-03-16 01:51:05 [2025-03-16 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690233', 'tblTempUsageDetail_20' ) start [2025-03-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690233', 'tblTempUsageDetail_20' ) end [2025-03-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690233', 'tblTempVendorCDR_20' ) start [2025-03-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690233', 'tblTempVendorCDR_20' ) end [2025-03-16 01:51:17] Production.INFO: ProcessCDR(1,14690233,1,1,2) [2025-03-16 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690233', 'tblTempUsageDetail_20' ) start [2025-03-16 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690233', 'tblTempUsageDetail_20' ) end [2025-03-16 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:51:22] Production.INFO: ==15214== Releasing lock... [2025-03-16 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:52:05 [end_date_ymd] => 2025-03-16 01:52:05 [RateCDR] => 1 ) [2025-03-16 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:52:05' and `end` < '2025-03-16 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:52:17] Production.INFO: count ==640 [2025-03-16 01:52:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:52:05 - End Time 2025-03-16 01:52:05 [2025-03-16 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690238', 'tblTempUsageDetail_20' ) start [2025-03-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690238', 'tblTempUsageDetail_20' ) end [2025-03-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690238', 'tblTempVendorCDR_20' ) start [2025-03-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690238', 'tblTempVendorCDR_20' ) end [2025-03-16 01:52:17] Production.INFO: ProcessCDR(1,14690238,1,1,2) [2025-03-16 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690238', 'tblTempUsageDetail_20' ) start [2025-03-16 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690238', 'tblTempUsageDetail_20' ) end [2025-03-16 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:52:22] Production.INFO: ==15299== Releasing lock... [2025-03-16 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:53:06 [end_date_ymd] => 2025-03-16 01:53:06 [RateCDR] => 1 ) [2025-03-16 01: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-03-15 22:53:06' and `end` < '2025-03-16 01: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-03-16 01:53:18] Production.INFO: count ==643 [2025-03-16 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:53:06 - End Time 2025-03-16 01:53:06 [2025-03-16 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690243', 'tblTempUsageDetail_20' ) start [2025-03-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690243', 'tblTempUsageDetail_20' ) end [2025-03-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690243', 'tblTempVendorCDR_20' ) start [2025-03-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690243', 'tblTempVendorCDR_20' ) end [2025-03-16 01:53:18] Production.INFO: ProcessCDR(1,14690243,1,1,2) [2025-03-16 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690243', 'tblTempUsageDetail_20' ) start [2025-03-16 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690243', 'tblTempUsageDetail_20' ) end [2025-03-16 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:53:22] Production.INFO: ==15387== Releasing lock... [2025-03-16 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:54:06 [end_date_ymd] => 2025-03-16 01:54:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:54:06' and `end` < '2025-03-16 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-03-16 01:54:18] Production.INFO: count ==646 [2025-03-16 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:54:06 - End Time 2025-03-16 01:54:06 [2025-03-16 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690248', 'tblTempUsageDetail_20' ) start [2025-03-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690248', 'tblTempUsageDetail_20' ) end [2025-03-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690248', 'tblTempVendorCDR_20' ) start [2025-03-16 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690248', 'tblTempVendorCDR_20' ) end [2025-03-16 01:54:18] Production.INFO: ProcessCDR(1,14690248,1,1,2) [2025-03-16 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690248', 'tblTempUsageDetail_20' ) start [2025-03-16 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690248', 'tblTempUsageDetail_20' ) end [2025-03-16 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:54:21] Production.INFO: ==15476== Releasing lock... [2025-03-16 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:55:05 [end_date_ymd] => 2025-03-16 01:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:55:05' and `end` < '2025-03-16 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-03-16 01:55:17] Production.INFO: count ==646 [2025-03-16 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:55:05 - End Time 2025-03-16 01:55:05 [2025-03-16 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690253', 'tblTempUsageDetail_20' ) start [2025-03-16 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690253', 'tblTempUsageDetail_20' ) end [2025-03-16 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690253', 'tblTempVendorCDR_20' ) start [2025-03-16 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690253', 'tblTempVendorCDR_20' ) end [2025-03-16 01:55:17] Production.INFO: ProcessCDR(1,14690253,1,1,2) [2025-03-16 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690253', 'tblTempUsageDetail_20' ) start [2025-03-16 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690253', 'tblTempUsageDetail_20' ) end [2025-03-16 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:55:21] Production.INFO: ==15561== Releasing lock... [2025-03-16 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:56:06 [end_date_ymd] => 2025-03-16 01:56:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:56:06' and `end` < '2025-03-16 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-03-16 01:56:18] Production.INFO: count ==643 [2025-03-16 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:56:06 - End Time 2025-03-16 01:56:06 [2025-03-16 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690258', 'tblTempUsageDetail_20' ) start [2025-03-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690258', 'tblTempUsageDetail_20' ) end [2025-03-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690258', 'tblTempVendorCDR_20' ) start [2025-03-16 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690258', 'tblTempVendorCDR_20' ) end [2025-03-16 01:56:18] Production.INFO: ProcessCDR(1,14690258,1,1,2) [2025-03-16 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690258', 'tblTempUsageDetail_20' ) start [2025-03-16 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690258', 'tblTempUsageDetail_20' ) end [2025-03-16 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:56:22] Production.INFO: ==15647== Releasing lock... [2025-03-16 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:56:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:57:05 [end_date_ymd] => 2025-03-16 01:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 22:57:05' and `end` < '2025-03-16 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-03-16 01:57:17] Production.INFO: count ==644 [2025-03-16 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:57:05 - End Time 2025-03-16 01:57:05 [2025-03-16 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690263', 'tblTempUsageDetail_20' ) start [2025-03-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690263', 'tblTempUsageDetail_20' ) end [2025-03-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690263', 'tblTempVendorCDR_20' ) start [2025-03-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690263', 'tblTempVendorCDR_20' ) end [2025-03-16 01:57:17] Production.INFO: ProcessCDR(1,14690263,1,1,2) [2025-03-16 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690263', 'tblTempUsageDetail_20' ) start [2025-03-16 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690263', 'tblTempUsageDetail_20' ) end [2025-03-16 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:57:21] Production.INFO: ==15732== Releasing lock... [2025-03-16 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:58:06 [end_date_ymd] => 2025-03-16 01:58:06 [RateCDR] => 1 ) [2025-03-16 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:58:06' and `end` < '2025-03-16 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:58:18] Production.INFO: count ==638 [2025-03-16 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 22:58:06 - End Time 2025-03-16 01:58:06 [2025-03-16 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690268', 'tblTempUsageDetail_20' ) start [2025-03-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690268', 'tblTempUsageDetail_20' ) end [2025-03-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690268', 'tblTempVendorCDR_20' ) start [2025-03-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690268', 'tblTempVendorCDR_20' ) end [2025-03-16 01:58:18] Production.INFO: ProcessCDR(1,14690268,1,1,2) [2025-03-16 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690268', 'tblTempUsageDetail_20' ) start [2025-03-16 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690268', 'tblTempUsageDetail_20' ) end [2025-03-16 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:58:21] Production.INFO: ==15822== Releasing lock... [2025-03-16 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 22:59:05 [end_date_ymd] => 2025-03-16 01:59:05 [RateCDR] => 1 ) [2025-03-16 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 22:59:05' and `end` < '2025-03-16 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 01:59:17] Production.INFO: count ==635 [2025-03-16 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 22:59:05 - End Time 2025-03-16 01:59:05 [2025-03-16 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690273', 'tblTempUsageDetail_20' ) start [2025-03-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690273', 'tblTempUsageDetail_20' ) end [2025-03-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690273', 'tblTempVendorCDR_20' ) start [2025-03-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690273', 'tblTempVendorCDR_20' ) end [2025-03-16 01:59:17] Production.INFO: ProcessCDR(1,14690273,1,1,2) [2025-03-16 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690273', 'tblTempUsageDetail_20' ) start [2025-03-16 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690273', 'tblTempUsageDetail_20' ) end [2025-03-16 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 01:59:20] Production.INFO: ==15906== Releasing lock... [2025-03-16 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 01:59:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:00:06 [end_date_ymd] => 2025-03-16 02:00:06 [RateCDR] => 1 ) [2025-03-16 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:00:06' and `end` < '2025-03-16 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:00:18] Production.INFO: count ==639 [2025-03-16 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:00:06 - End Time 2025-03-16 02:00:06 [2025-03-16 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690279', 'tblTempUsageDetail_20' ) start [2025-03-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690279', 'tblTempUsageDetail_20' ) end [2025-03-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690279', 'tblTempVendorCDR_20' ) start [2025-03-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690279', 'tblTempVendorCDR_20' ) end [2025-03-16 02:00:18] Production.INFO: ProcessCDR(1,14690279,1,1,2) [2025-03-16 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690279', 'tblTempUsageDetail_20' ) start [2025-03-16 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690279', 'tblTempUsageDetail_20' ) end [2025-03-16 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:00:22] Production.INFO: ==15996== Releasing lock... [2025-03-16 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:01:05 [end_date_ymd] => 2025-03-16 02:01:05 [RateCDR] => 1 ) [2025-03-16 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:01:05' and `end` < '2025-03-16 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-03-16 02:01:18] Production.INFO: count ==635 [2025-03-16 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:01:05 - End Time 2025-03-16 02:01:05 [2025-03-16 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690284', 'tblTempUsageDetail_20' ) start [2025-03-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690284', 'tblTempUsageDetail_20' ) end [2025-03-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690284', 'tblTempVendorCDR_20' ) start [2025-03-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690284', 'tblTempVendorCDR_20' ) end [2025-03-16 02:01:18] Production.INFO: ProcessCDR(1,14690284,1,1,2) [2025-03-16 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690284', 'tblTempUsageDetail_20' ) start [2025-03-16 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690284', 'tblTempUsageDetail_20' ) end [2025-03-16 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:01:21] Production.INFO: ==16101== Releasing lock... [2025-03-16 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:02:05 [end_date_ymd] => 2025-03-16 02:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:02:05' and `end` < '2025-03-16 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-03-16 02:02:17] Production.INFO: count ==635 [2025-03-16 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:02:05 - End Time 2025-03-16 02:02:05 [2025-03-16 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690289', 'tblTempUsageDetail_20' ) start [2025-03-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690289', 'tblTempUsageDetail_20' ) end [2025-03-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690289', 'tblTempVendorCDR_20' ) start [2025-03-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690289', 'tblTempVendorCDR_20' ) end [2025-03-16 02:02:18] Production.INFO: ProcessCDR(1,14690289,1,1,2) [2025-03-16 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690289', 'tblTempUsageDetail_20' ) start [2025-03-16 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690289', 'tblTempUsageDetail_20' ) end [2025-03-16 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:02:21] Production.INFO: ==16271== Releasing lock... [2025-03-16 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:02:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:03:05 [end_date_ymd] => 2025-03-16 02:03:05 [RateCDR] => 1 ) [2025-03-16 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:03:05' and `end` < '2025-03-16 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:03:17] Production.INFO: count ==638 [2025-03-16 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:03:05 - End Time 2025-03-16 02:03:05 [2025-03-16 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690294', 'tblTempUsageDetail_20' ) start [2025-03-16 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690294', 'tblTempUsageDetail_20' ) end [2025-03-16 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690294', 'tblTempVendorCDR_20' ) start [2025-03-16 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690294', 'tblTempVendorCDR_20' ) end [2025-03-16 02:03:18] Production.INFO: ProcessCDR(1,14690294,1,1,2) [2025-03-16 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690294', 'tblTempUsageDetail_20' ) start [2025-03-16 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690294', 'tblTempUsageDetail_20' ) end [2025-03-16 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:03:21] Production.INFO: ==16358== Releasing lock... [2025-03-16 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:04:06 [end_date_ymd] => 2025-03-16 02:04:06 [RateCDR] => 1 ) [2025-03-16 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:04:06' and `end` < '2025-03-16 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:04:18] Production.INFO: count ==635 [2025-03-16 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:04:06 - End Time 2025-03-16 02:04:06 [2025-03-16 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690299', 'tblTempUsageDetail_20' ) start [2025-03-16 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690299', 'tblTempUsageDetail_20' ) end [2025-03-16 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690299', 'tblTempVendorCDR_20' ) start [2025-03-16 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690299', 'tblTempVendorCDR_20' ) end [2025-03-16 02:04:18] Production.INFO: ProcessCDR(1,14690299,1,1,2) [2025-03-16 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690299', 'tblTempUsageDetail_20' ) start [2025-03-16 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690299', 'tblTempUsageDetail_20' ) end [2025-03-16 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:04:22] Production.INFO: ==16444== Releasing lock... [2025-03-16 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:05:05 [end_date_ymd] => 2025-03-16 02:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:05:05' and `end` < '2025-03-16 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-03-16 02:05:17] Production.INFO: count ==634 [2025-03-16 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:05:05 - End Time 2025-03-16 02:05:05 [2025-03-16 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690304', 'tblTempUsageDetail_20' ) start [2025-03-16 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690304', 'tblTempUsageDetail_20' ) end [2025-03-16 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690304', 'tblTempVendorCDR_20' ) start [2025-03-16 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690304', 'tblTempVendorCDR_20' ) end [2025-03-16 02:05:17] Production.INFO: ProcessCDR(1,14690304,1,1,2) [2025-03-16 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690304', 'tblTempUsageDetail_20' ) start [2025-03-16 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690304', 'tblTempUsageDetail_20' ) end [2025-03-16 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:05:20] Production.INFO: ==16531== Releasing lock... [2025-03-16 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:05:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:06:05 [end_date_ymd] => 2025-03-16 02:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:06:05' and `end` < '2025-03-16 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-03-16 02:06:18] Production.INFO: count ==633 [2025-03-16 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:06:05 - End Time 2025-03-16 02:06:05 [2025-03-16 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690309', 'tblTempUsageDetail_20' ) start [2025-03-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690309', 'tblTempUsageDetail_20' ) end [2025-03-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690309', 'tblTempVendorCDR_20' ) start [2025-03-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690309', 'tblTempVendorCDR_20' ) end [2025-03-16 02:06:18] Production.INFO: ProcessCDR(1,14690309,1,1,2) [2025-03-16 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690309', 'tblTempUsageDetail_20' ) start [2025-03-16 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690309', 'tblTempUsageDetail_20' ) end [2025-03-16 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:06:23] Production.INFO: ==16617== Releasing lock... [2025-03-16 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:06:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:07:05 [end_date_ymd] => 2025-03-16 02:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:07:05' and `end` < '2025-03-16 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-03-16 02:07:17] Production.INFO: count ==632 [2025-03-16 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:07:05 - End Time 2025-03-16 02:07:05 [2025-03-16 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690314', 'tblTempUsageDetail_20' ) start [2025-03-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690314', 'tblTempUsageDetail_20' ) end [2025-03-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690314', 'tblTempVendorCDR_20' ) start [2025-03-16 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690314', 'tblTempVendorCDR_20' ) end [2025-03-16 02:07:18] Production.INFO: ProcessCDR(1,14690314,1,1,2) [2025-03-16 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690314', 'tblTempUsageDetail_20' ) start [2025-03-16 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690314', 'tblTempUsageDetail_20' ) end [2025-03-16 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:07:21] Production.INFO: ==16740== Releasing lock... [2025-03-16 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:08:06 [end_date_ymd] => 2025-03-16 02:08:06 [RateCDR] => 1 ) [2025-03-16 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:08:06' and `end` < '2025-03-16 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:08:18] Production.INFO: count ==635 [2025-03-16 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:08:06 - End Time 2025-03-16 02:08:06 [2025-03-16 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690319', 'tblTempUsageDetail_20' ) start [2025-03-16 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690319', 'tblTempUsageDetail_20' ) end [2025-03-16 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690319', 'tblTempVendorCDR_20' ) start [2025-03-16 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690319', 'tblTempVendorCDR_20' ) end [2025-03-16 02:08:18] Production.INFO: ProcessCDR(1,14690319,1,1,2) [2025-03-16 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690319', 'tblTempUsageDetail_20' ) start [2025-03-16 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690319', 'tblTempUsageDetail_20' ) end [2025-03-16 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:08:21] Production.INFO: ==16826== Releasing lock... [2025-03-16 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:08:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:09:05 [end_date_ymd] => 2025-03-16 02:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:09:05' and `end` < '2025-03-16 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-03-16 02:09:17] Production.INFO: count ==635 [2025-03-16 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:09:05 - End Time 2025-03-16 02:09:05 [2025-03-16 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690321', 'tblTempUsageDetail_20' ) start [2025-03-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690321', 'tblTempUsageDetail_20' ) end [2025-03-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690321', 'tblTempVendorCDR_20' ) start [2025-03-16 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690321', 'tblTempVendorCDR_20' ) end [2025-03-16 02:09:17] Production.INFO: ProcessCDR(1,14690321,1,1,2) [2025-03-16 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690321', 'tblTempUsageDetail_20' ) start [2025-03-16 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690321', 'tblTempUsageDetail_20' ) end [2025-03-16 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:09:21] Production.INFO: ==16911== Releasing lock... [2025-03-16 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:10:06 [end_date_ymd] => 2025-03-16 02:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:10:06' and `end` < '2025-03-16 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-03-16 02:10:19] Production.INFO: count ==647 [2025-03-16 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 23:10:06 - End Time 2025-03-16 02:10:06 [2025-03-16 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690330', 'tblTempUsageDetail_20' ) start [2025-03-16 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690330', 'tblTempUsageDetail_20' ) end [2025-03-16 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690330', 'tblTempVendorCDR_20' ) start [2025-03-16 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690330', 'tblTempVendorCDR_20' ) end [2025-03-16 02:10:19] Production.INFO: ProcessCDR(1,14690330,1,1,2) [2025-03-16 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690330', 'tblTempUsageDetail_20' ) start [2025-03-16 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690330', 'tblTempUsageDetail_20' ) end [2025-03-16 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:10:24] Production.INFO: ==17004== Releasing lock... [2025-03-16 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:10:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:11:05 [end_date_ymd] => 2025-03-16 02:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:11:05' and `end` < '2025-03-16 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-03-16 02:11:17] Production.INFO: count ==665 [2025-03-16 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:11:05 - End Time 2025-03-16 02:11:05 [2025-03-16 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690335', 'tblTempUsageDetail_20' ) start [2025-03-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690335', 'tblTempUsageDetail_20' ) end [2025-03-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690335', 'tblTempVendorCDR_20' ) start [2025-03-16 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690335', 'tblTempVendorCDR_20' ) end [2025-03-16 02:11:17] Production.INFO: ProcessCDR(1,14690335,1,1,2) [2025-03-16 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690335', 'tblTempUsageDetail_20' ) start [2025-03-16 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690335', 'tblTempUsageDetail_20' ) end [2025-03-16 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:11:22] Production.INFO: ==17093== Releasing lock... [2025-03-16 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:12:04 [end_date_ymd] => 2025-03-16 02:12:04 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:12:04' and `end` < '2025-03-16 02: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-03-16 02:12:17] Production.INFO: count ==662 [2025-03-16 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:12:04 - End Time 2025-03-16 02:12:04 [2025-03-16 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690340', 'tblTempUsageDetail_20' ) start [2025-03-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690340', 'tblTempUsageDetail_20' ) end [2025-03-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690340', 'tblTempVendorCDR_20' ) start [2025-03-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690340', 'tblTempVendorCDR_20' ) end [2025-03-16 02:12:17] Production.INFO: ProcessCDR(1,14690340,1,1,2) [2025-03-16 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690340', 'tblTempUsageDetail_20' ) start [2025-03-16 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690340', 'tblTempUsageDetail_20' ) end [2025-03-16 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:12:22] Production.INFO: ==17181== Releasing lock... [2025-03-16 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:12:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:13:05 [end_date_ymd] => 2025-03-16 02:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:13:05' and `end` < '2025-03-16 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-03-16 02:13:18] Production.INFO: count ==663 [2025-03-16 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:13:05 - End Time 2025-03-16 02:13:05 [2025-03-16 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690345', 'tblTempUsageDetail_20' ) start [2025-03-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690345', 'tblTempUsageDetail_20' ) end [2025-03-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690345', 'tblTempVendorCDR_20' ) start [2025-03-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690345', 'tblTempVendorCDR_20' ) end [2025-03-16 02:13:18] Production.INFO: ProcessCDR(1,14690345,1,1,2) [2025-03-16 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690345', 'tblTempUsageDetail_20' ) start [2025-03-16 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690345', 'tblTempUsageDetail_20' ) end [2025-03-16 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:13:22] Production.INFO: ==17268== Releasing lock... [2025-03-16 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:13:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:14:05 [end_date_ymd] => 2025-03-16 02:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:14:05' and `end` < '2025-03-16 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-03-16 02:14:18] Production.INFO: count ==659 [2025-03-16 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:14:05 - End Time 2025-03-16 02:14:05 [2025-03-16 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690350', 'tblTempUsageDetail_20' ) start [2025-03-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690350', 'tblTempUsageDetail_20' ) end [2025-03-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690350', 'tblTempVendorCDR_20' ) start [2025-03-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690350', 'tblTempVendorCDR_20' ) end [2025-03-16 02:14:18] Production.INFO: ProcessCDR(1,14690350,1,1,2) [2025-03-16 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690350', 'tblTempUsageDetail_20' ) start [2025-03-16 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690350', 'tblTempUsageDetail_20' ) end [2025-03-16 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:14:21] Production.INFO: ==17358== Releasing lock... [2025-03-16 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:14:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:15:05 [end_date_ymd] => 2025-03-16 02:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:15:05' and `end` < '2025-03-16 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-03-16 02:15:17] Production.INFO: count ==660 [2025-03-16 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:15:05 - End Time 2025-03-16 02:15:05 [2025-03-16 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690355', 'tblTempUsageDetail_20' ) start [2025-03-16 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690355', 'tblTempUsageDetail_20' ) end [2025-03-16 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690355', 'tblTempVendorCDR_20' ) start [2025-03-16 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690355', 'tblTempVendorCDR_20' ) end [2025-03-16 02:15:17] Production.INFO: ProcessCDR(1,14690355,1,1,2) [2025-03-16 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690355', 'tblTempUsageDetail_20' ) start [2025-03-16 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690355', 'tblTempUsageDetail_20' ) end [2025-03-16 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:15:21] Production.INFO: ==17446== Releasing lock... [2025-03-16 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:16:05 [end_date_ymd] => 2025-03-16 02:16:05 [RateCDR] => 1 ) [2025-03-16 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:16:05' and `end` < '2025-03-16 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:16:18] Production.INFO: count ==661 [2025-03-16 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:16:05 - End Time 2025-03-16 02:16:05 [2025-03-16 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690360', 'tblTempUsageDetail_20' ) start [2025-03-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690360', 'tblTempUsageDetail_20' ) end [2025-03-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690360', 'tblTempVendorCDR_20' ) start [2025-03-16 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690360', 'tblTempVendorCDR_20' ) end [2025-03-16 02:16:18] Production.INFO: ProcessCDR(1,14690360,1,1,2) [2025-03-16 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690360', 'tblTempUsageDetail_20' ) start [2025-03-16 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690360', 'tblTempUsageDetail_20' ) end [2025-03-16 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:16:21] Production.INFO: ==17532== Releasing lock... [2025-03-16 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:17:06 [end_date_ymd] => 2025-03-16 02:17:06 [RateCDR] => 1 ) [2025-03-16 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:17:06' and `end` < '2025-03-16 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:17:18] Production.INFO: count ==657 [2025-03-16 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:17:06 - End Time 2025-03-16 02:17:06 [2025-03-16 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690365', 'tblTempUsageDetail_20' ) start [2025-03-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690365', 'tblTempUsageDetail_20' ) end [2025-03-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690365', 'tblTempVendorCDR_20' ) start [2025-03-16 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690365', 'tblTempVendorCDR_20' ) end [2025-03-16 02:17:18] Production.INFO: ProcessCDR(1,14690365,1,1,2) [2025-03-16 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690365', 'tblTempUsageDetail_20' ) start [2025-03-16 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690365', 'tblTempUsageDetail_20' ) end [2025-03-16 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:17:21] Production.INFO: ==17615== Releasing lock... [2025-03-16 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:18:04 [end_date_ymd] => 2025-03-16 02:18:04 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:18:04' and `end` < '2025-03-16 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-03-16 02:18:17] Production.INFO: count ==656 [2025-03-16 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:18:04 - End Time 2025-03-16 02:18:04 [2025-03-16 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690370', 'tblTempUsageDetail_20' ) start [2025-03-16 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690370', 'tblTempUsageDetail_20' ) end [2025-03-16 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690370', 'tblTempVendorCDR_20' ) start [2025-03-16 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690370', 'tblTempVendorCDR_20' ) end [2025-03-16 02:18:17] Production.INFO: ProcessCDR(1,14690370,1,1,2) [2025-03-16 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690370', 'tblTempUsageDetail_20' ) start [2025-03-16 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690370', 'tblTempUsageDetail_20' ) end [2025-03-16 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:18:20] Production.INFO: ==17698== Releasing lock... [2025-03-16 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:18:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:19:05 [end_date_ymd] => 2025-03-16 02:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:19:05' and `end` < '2025-03-16 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-03-16 02:19:18] Production.INFO: count ==657 [2025-03-16 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:19:05 - End Time 2025-03-16 02:19:05 [2025-03-16 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690375', 'tblTempUsageDetail_20' ) start [2025-03-16 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690375', 'tblTempUsageDetail_20' ) end [2025-03-16 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690375', 'tblTempVendorCDR_20' ) start [2025-03-16 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690375', 'tblTempVendorCDR_20' ) end [2025-03-16 02:19:18] Production.INFO: ProcessCDR(1,14690375,1,1,2) [2025-03-16 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690375', 'tblTempUsageDetail_20' ) start [2025-03-16 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690375', 'tblTempUsageDetail_20' ) end [2025-03-16 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:19:21] Production.INFO: ==17785== Releasing lock... [2025-03-16 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:20:06 [end_date_ymd] => 2025-03-16 02:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:20:06' and `end` < '2025-03-16 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-03-16 02:20:18] Production.INFO: count ==668 [2025-03-16 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:20:06 - End Time 2025-03-16 02:20:06 [2025-03-16 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690381', 'tblTempUsageDetail_20' ) start [2025-03-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690381', 'tblTempUsageDetail_20' ) end [2025-03-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690381', 'tblTempVendorCDR_20' ) start [2025-03-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690381', 'tblTempVendorCDR_20' ) end [2025-03-16 02:20:18] Production.INFO: ProcessCDR(1,14690381,1,1,2) [2025-03-16 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690381', 'tblTempUsageDetail_20' ) start [2025-03-16 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690381', 'tblTempUsageDetail_20' ) end [2025-03-16 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:20:23] Production.INFO: ==17872== Releasing lock... [2025-03-16 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:21:05 [end_date_ymd] => 2025-03-16 02:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:21:05' and `end` < '2025-03-16 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-03-16 02:21:17] Production.INFO: count ==691 [2025-03-16 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:21:05 - End Time 2025-03-16 02:21:05 [2025-03-16 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690386', 'tblTempUsageDetail_20' ) start [2025-03-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690386', 'tblTempUsageDetail_20' ) end [2025-03-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690386', 'tblTempVendorCDR_20' ) start [2025-03-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690386', 'tblTempVendorCDR_20' ) end [2025-03-16 02:21:18] Production.INFO: ProcessCDR(1,14690386,1,1,2) [2025-03-16 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690386', 'tblTempUsageDetail_20' ) start [2025-03-16 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690386', 'tblTempUsageDetail_20' ) end [2025-03-16 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:21:22] Production.INFO: ==17961== Releasing lock... [2025-03-16 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:21:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:22:05 [end_date_ymd] => 2025-03-16 02:22:05 [RateCDR] => 1 ) [2025-03-16 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:22:05' and `end` < '2025-03-16 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:22:17] Production.INFO: count ==689 [2025-03-16 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:22:05 - End Time 2025-03-16 02:22:05 [2025-03-16 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690391', 'tblTempUsageDetail_20' ) start [2025-03-16 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690391', 'tblTempUsageDetail_20' ) end [2025-03-16 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690391', 'tblTempVendorCDR_20' ) start [2025-03-16 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690391', 'tblTempVendorCDR_20' ) end [2025-03-16 02:22:17] Production.INFO: ProcessCDR(1,14690391,1,1,2) [2025-03-16 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690391', 'tblTempUsageDetail_20' ) start [2025-03-16 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690391', 'tblTempUsageDetail_20' ) end [2025-03-16 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:22:22] Production.INFO: ==18097== Releasing lock... [2025-03-16 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:23:05 [end_date_ymd] => 2025-03-16 02:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:23:05' and `end` < '2025-03-16 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-03-16 02:23:17] Production.INFO: count ==689 [2025-03-16 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:23:05 - End Time 2025-03-16 02:23:05 [2025-03-16 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690396', 'tblTempUsageDetail_20' ) start [2025-03-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690396', 'tblTempUsageDetail_20' ) end [2025-03-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690396', 'tblTempVendorCDR_20' ) start [2025-03-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690396', 'tblTempVendorCDR_20' ) end [2025-03-16 02:23:18] Production.INFO: ProcessCDR(1,14690396,1,1,2) [2025-03-16 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690396', 'tblTempUsageDetail_20' ) start [2025-03-16 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690396', 'tblTempUsageDetail_20' ) end [2025-03-16 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:23:21] Production.INFO: ==18183== Releasing lock... [2025-03-16 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:23:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:24:05 [end_date_ymd] => 2025-03-16 02:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:24:05' and `end` < '2025-03-16 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-03-16 02:24:17] Production.INFO: count ==687 [2025-03-16 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:24:05 - End Time 2025-03-16 02:24:05 [2025-03-16 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690401', 'tblTempUsageDetail_20' ) start [2025-03-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690401', 'tblTempUsageDetail_20' ) end [2025-03-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690401', 'tblTempVendorCDR_20' ) start [2025-03-16 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690401', 'tblTempVendorCDR_20' ) end [2025-03-16 02:24:17] Production.INFO: ProcessCDR(1,14690401,1,1,2) [2025-03-16 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690401', 'tblTempUsageDetail_20' ) start [2025-03-16 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690401', 'tblTempUsageDetail_20' ) end [2025-03-16 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:24:20] Production.INFO: ==18268== Releasing lock... [2025-03-16 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:24:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:25:06 [end_date_ymd] => 2025-03-16 02:25:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:25:06' and `end` < '2025-03-16 02: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-03-16 02:25:18] Production.INFO: count ==693 [2025-03-16 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:25:06 - End Time 2025-03-16 02:25:06 [2025-03-16 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690406', 'tblTempUsageDetail_20' ) start [2025-03-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690406', 'tblTempUsageDetail_20' ) end [2025-03-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690406', 'tblTempVendorCDR_20' ) start [2025-03-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690406', 'tblTempVendorCDR_20' ) end [2025-03-16 02:25:18] Production.INFO: ProcessCDR(1,14690406,1,1,2) [2025-03-16 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690406', 'tblTempUsageDetail_20' ) start [2025-03-16 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690406', 'tblTempUsageDetail_20' ) end [2025-03-16 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:25:21] Production.INFO: ==18355== Releasing lock... [2025-03-16 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:26:05 [end_date_ymd] => 2025-03-16 02:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:26:05' and `end` < '2025-03-16 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-03-16 02:26:17] Production.INFO: count ==693 [2025-03-16 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:26:05 - End Time 2025-03-16 02:26:05 [2025-03-16 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690411', 'tblTempUsageDetail_20' ) start [2025-03-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690411', 'tblTempUsageDetail_20' ) end [2025-03-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690411', 'tblTempVendorCDR_20' ) start [2025-03-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690411', 'tblTempVendorCDR_20' ) end [2025-03-16 02:26:17] Production.INFO: ProcessCDR(1,14690411,1,1,2) [2025-03-16 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690411', 'tblTempUsageDetail_20' ) start [2025-03-16 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690411', 'tblTempUsageDetail_20' ) end [2025-03-16 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:26:21] Production.INFO: ==18442== Releasing lock... [2025-03-16 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:26:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:27:05 [end_date_ymd] => 2025-03-16 02:27:05 [RateCDR] => 1 ) [2025-03-16 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:27:05' and `end` < '2025-03-16 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:27:18] Production.INFO: count ==692 [2025-03-16 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:27:05 - End Time 2025-03-16 02:27:05 [2025-03-16 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690416', 'tblTempUsageDetail_20' ) start [2025-03-16 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690416', 'tblTempUsageDetail_20' ) end [2025-03-16 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690416', 'tblTempVendorCDR_20' ) start [2025-03-16 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690416', 'tblTempVendorCDR_20' ) end [2025-03-16 02:27:18] Production.INFO: ProcessCDR(1,14690416,1,1,2) [2025-03-16 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690416', 'tblTempUsageDetail_20' ) start [2025-03-16 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690416', 'tblTempUsageDetail_20' ) end [2025-03-16 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:27:21] Production.INFO: ==18526== Releasing lock... [2025-03-16 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:28:05 [end_date_ymd] => 2025-03-16 02:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:28:05' and `end` < '2025-03-16 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-03-16 02:28:17] Production.INFO: count ==692 [2025-03-16 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:28:05 - End Time 2025-03-16 02:28:05 [2025-03-16 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690421', 'tblTempUsageDetail_20' ) start [2025-03-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690421', 'tblTempUsageDetail_20' ) end [2025-03-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690421', 'tblTempVendorCDR_20' ) start [2025-03-16 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690421', 'tblTempVendorCDR_20' ) end [2025-03-16 02:28:17] Production.INFO: ProcessCDR(1,14690421,1,1,2) [2025-03-16 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690421', 'tblTempUsageDetail_20' ) start [2025-03-16 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690421', 'tblTempUsageDetail_20' ) end [2025-03-16 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:28:21] Production.INFO: ==18643== Releasing lock... [2025-03-16 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:29:05 [end_date_ymd] => 2025-03-16 02:29:05 [RateCDR] => 1 ) [2025-03-16 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:29:05' and `end` < '2025-03-16 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:29:17] Production.INFO: count ==683 [2025-03-16 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:29:05 - End Time 2025-03-16 02:29:05 [2025-03-16 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690426', 'tblTempUsageDetail_20' ) start [2025-03-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690426', 'tblTempUsageDetail_20' ) end [2025-03-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690426', 'tblTempVendorCDR_20' ) start [2025-03-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690426', 'tblTempVendorCDR_20' ) end [2025-03-16 02:29:18] Production.INFO: ProcessCDR(1,14690426,1,1,2) [2025-03-16 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690426', 'tblTempUsageDetail_20' ) start [2025-03-16 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690426', 'tblTempUsageDetail_20' ) end [2025-03-16 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:29:21] Production.INFO: ==18763== Releasing lock... [2025-03-16 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:29:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:30:05 [end_date_ymd] => 2025-03-16 02:30:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:30:05' and `end` < '2025-03-16 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-03-16 02:30:17] Production.INFO: count ==680 [2025-03-16 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:30:05 - End Time 2025-03-16 02:30:05 [2025-03-16 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690432', 'tblTempUsageDetail_20' ) start [2025-03-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690432', 'tblTempUsageDetail_20' ) end [2025-03-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690432', 'tblTempVendorCDR_20' ) start [2025-03-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690432', 'tblTempVendorCDR_20' ) end [2025-03-16 02:30:18] Production.INFO: ProcessCDR(1,14690432,1,1,2) [2025-03-16 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690432', 'tblTempUsageDetail_20' ) start [2025-03-16 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690432', 'tblTempUsageDetail_20' ) end [2025-03-16 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:30:23] Production.INFO: ==18891== Releasing lock... [2025-03-16 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:31:05 [end_date_ymd] => 2025-03-16 02:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:31:05' and `end` < '2025-03-16 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-03-16 02:31:17] Production.INFO: count ==678 [2025-03-16 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:31:05 - End Time 2025-03-16 02:31:05 [2025-03-16 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690437', 'tblTempUsageDetail_20' ) start [2025-03-16 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690437', 'tblTempUsageDetail_20' ) end [2025-03-16 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690437', 'tblTempVendorCDR_20' ) start [2025-03-16 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690437', 'tblTempVendorCDR_20' ) end [2025-03-16 02:31:18] Production.INFO: ProcessCDR(1,14690437,1,1,2) [2025-03-16 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690437', 'tblTempUsageDetail_20' ) start [2025-03-16 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690437', 'tblTempUsageDetail_20' ) end [2025-03-16 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:31:22] Production.INFO: ==19008== Releasing lock... [2025-03-16 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:31:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:32:05 [end_date_ymd] => 2025-03-16 02:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:32:05' and `end` < '2025-03-16 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-03-16 02:32:17] Production.INFO: count ==676 [2025-03-16 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:32:05 - End Time 2025-03-16 02:32:05 [2025-03-16 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690442', 'tblTempUsageDetail_20' ) start [2025-03-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690442', 'tblTempUsageDetail_20' ) end [2025-03-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690442', 'tblTempVendorCDR_20' ) start [2025-03-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690442', 'tblTempVendorCDR_20' ) end [2025-03-16 02:32:18] Production.INFO: ProcessCDR(1,14690442,1,1,2) [2025-03-16 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690442', 'tblTempUsageDetail_20' ) start [2025-03-16 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690442', 'tblTempUsageDetail_20' ) end [2025-03-16 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:32:21] Production.INFO: ==19130== Releasing lock... [2025-03-16 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:32:21] Production.INFO: 34 MB #Memory Used# [2025-03-16 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:33:05 [end_date_ymd] => 2025-03-16 02:33:05 [RateCDR] => 1 ) [2025-03-16 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:33:05' and `end` < '2025-03-16 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:33:17] Production.INFO: count ==675 [2025-03-16 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:33:05 - End Time 2025-03-16 02:33:05 [2025-03-16 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690447', 'tblTempUsageDetail_20' ) start [2025-03-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690447', 'tblTempUsageDetail_20' ) end [2025-03-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690447', 'tblTempVendorCDR_20' ) start [2025-03-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690447', 'tblTempVendorCDR_20' ) end [2025-03-16 02:33:17] Production.INFO: ProcessCDR(1,14690447,1,1,2) [2025-03-16 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690447', 'tblTempUsageDetail_20' ) start [2025-03-16 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690447', 'tblTempUsageDetail_20' ) end [2025-03-16 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:33:21] Production.INFO: ==19249== Releasing lock... [2025-03-16 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:34:06 [end_date_ymd] => 2025-03-16 02:34:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:34:06' and `end` < '2025-03-16 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-03-16 02:34:18] Production.INFO: count ==676 [2025-03-16 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:34:06 - End Time 2025-03-16 02:34:06 [2025-03-16 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690452', 'tblTempUsageDetail_20' ) start [2025-03-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690452', 'tblTempUsageDetail_20' ) end [2025-03-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690452', 'tblTempVendorCDR_20' ) start [2025-03-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690452', 'tblTempVendorCDR_20' ) end [2025-03-16 02:34:18] Production.INFO: ProcessCDR(1,14690452,1,1,2) [2025-03-16 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690452', 'tblTempUsageDetail_20' ) start [2025-03-16 02:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690452', 'tblTempUsageDetail_20' ) end [2025-03-16 02:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:34:24] Production.INFO: ==19367== Releasing lock... [2025-03-16 02:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:34:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:35:05 [end_date_ymd] => 2025-03-16 02:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:35:05' and `end` < '2025-03-16 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:35:18] Production.INFO: count ==676 [2025-03-16 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:35:05 - End Time 2025-03-16 02:35:05 [2025-03-16 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690457', 'tblTempUsageDetail_20' ) start [2025-03-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690457', 'tblTempUsageDetail_20' ) end [2025-03-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690457', 'tblTempVendorCDR_20' ) start [2025-03-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690457', 'tblTempVendorCDR_20' ) end [2025-03-16 02:35:18] Production.INFO: ProcessCDR(1,14690457,1,1,2) [2025-03-16 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690457', 'tblTempUsageDetail_20' ) start [2025-03-16 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690457', 'tblTempUsageDetail_20' ) end [2025-03-16 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:35:22] Production.INFO: ==19478== Releasing lock... [2025-03-16 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:36:06 [end_date_ymd] => 2025-03-16 02:36:06 [RateCDR] => 1 ) [2025-03-16 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:36:06' and `end` < '2025-03-16 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:36:18] Production.INFO: count ==674 [2025-03-16 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:36:06 - End Time 2025-03-16 02:36:06 [2025-03-16 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690462', 'tblTempUsageDetail_20' ) start [2025-03-16 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690462', 'tblTempUsageDetail_20' ) end [2025-03-16 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690462', 'tblTempVendorCDR_20' ) start [2025-03-16 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690462', 'tblTempVendorCDR_20' ) end [2025-03-16 02:36:18] Production.INFO: ProcessCDR(1,14690462,1,1,2) [2025-03-16 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690462', 'tblTempUsageDetail_20' ) start [2025-03-16 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690462', 'tblTempUsageDetail_20' ) end [2025-03-16 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:36:22] Production.INFO: ==19591== Releasing lock... [2025-03-16 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:36:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:37:06 [end_date_ymd] => 2025-03-16 02:37:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:37:06' and `end` < '2025-03-16 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-03-16 02:37:18] Production.INFO: count ==677 [2025-03-16 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:37:06 - End Time 2025-03-16 02:37:06 [2025-03-16 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690467', 'tblTempUsageDetail_20' ) start [2025-03-16 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690467', 'tblTempUsageDetail_20' ) end [2025-03-16 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690467', 'tblTempVendorCDR_20' ) start [2025-03-16 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690467', 'tblTempVendorCDR_20' ) end [2025-03-16 02:37:18] Production.INFO: ProcessCDR(1,14690467,1,1,2) [2025-03-16 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690467', 'tblTempUsageDetail_20' ) start [2025-03-16 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690467', 'tblTempUsageDetail_20' ) end [2025-03-16 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:37:22] Production.INFO: ==19696== Releasing lock... [2025-03-16 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:37:22] Production.INFO: 34 MB #Memory Used# [2025-03-16 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:38:05 [end_date_ymd] => 2025-03-16 02:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:38:05' and `end` < '2025-03-16 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-03-16 02:38:17] Production.INFO: count ==677 [2025-03-16 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:38:05 - End Time 2025-03-16 02:38:05 [2025-03-16 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690472', 'tblTempUsageDetail_20' ) start [2025-03-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690472', 'tblTempUsageDetail_20' ) end [2025-03-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690472', 'tblTempVendorCDR_20' ) start [2025-03-16 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690472', 'tblTempVendorCDR_20' ) end [2025-03-16 02:38:18] Production.INFO: ProcessCDR(1,14690472,1,1,2) [2025-03-16 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690472', 'tblTempUsageDetail_20' ) start [2025-03-16 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690472', 'tblTempUsageDetail_20' ) end [2025-03-16 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:38:23] Production.INFO: ==19858== Releasing lock... [2025-03-16 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:38:23] Production.INFO: 34 MB #Memory Used# [2025-03-16 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:39:06 [end_date_ymd] => 2025-03-16 02:39:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:39:06' and `end` < '2025-03-16 02: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-03-16 02:39:18] Production.INFO: count ==674 [2025-03-16 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:39:06 - End Time 2025-03-16 02:39:06 [2025-03-16 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690477', 'tblTempUsageDetail_20' ) start [2025-03-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690477', 'tblTempUsageDetail_20' ) end [2025-03-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690477', 'tblTempVendorCDR_20' ) start [2025-03-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690477', 'tblTempVendorCDR_20' ) end [2025-03-16 02:39:18] Production.INFO: ProcessCDR(1,14690477,1,1,2) [2025-03-16 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690477', 'tblTempUsageDetail_20' ) start [2025-03-16 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690477', 'tblTempUsageDetail_20' ) end [2025-03-16 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:39:22] Production.INFO: ==19974== Releasing lock... [2025-03-16 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:40:07 [end_date_ymd] => 2025-03-16 02:40:07 [RateCDR] => 1 ) [2025-03-16 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:40:07' and `end` < '2025-03-16 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:40:19] Production.INFO: count ==687 [2025-03-16 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-15 23:40:07 - End Time 2025-03-16 02:40:07 [2025-03-16 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690482', 'tblTempUsageDetail_20' ) start [2025-03-16 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690482', 'tblTempUsageDetail_20' ) end [2025-03-16 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690482', 'tblTempVendorCDR_20' ) start [2025-03-16 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690482', 'tblTempVendorCDR_20' ) end [2025-03-16 02:40:20] Production.INFO: ProcessCDR(1,14690482,1,1,2) [2025-03-16 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690482', 'tblTempUsageDetail_20' ) start [2025-03-16 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690482', 'tblTempUsageDetail_20' ) end [2025-03-16 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:40:24] Production.INFO: ==20099== Releasing lock... [2025-03-16 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:40:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:41:06 [end_date_ymd] => 2025-03-16 02:41:06 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:41:06' and `end` < '2025-03-16 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-03-16 02:41:18] Production.INFO: count ==705 [2025-03-16 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:41:06 - End Time 2025-03-16 02:41:06 [2025-03-16 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690488', 'tblTempUsageDetail_20' ) start [2025-03-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690488', 'tblTempUsageDetail_20' ) end [2025-03-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690488', 'tblTempVendorCDR_20' ) start [2025-03-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690488', 'tblTempVendorCDR_20' ) end [2025-03-16 02:41:18] Production.INFO: ProcessCDR(1,14690488,1,1,2) [2025-03-16 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690488', 'tblTempUsageDetail_20' ) start [2025-03-16 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690488', 'tblTempUsageDetail_20' ) end [2025-03-16 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:41:22] Production.INFO: ==20205== Releasing lock... [2025-03-16 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:42:06 [end_date_ymd] => 2025-03-16 02:42:06 [RateCDR] => 1 ) [2025-03-16 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:42:06' and `end` < '2025-03-16 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:42:18] Production.INFO: count ==700 [2025-03-16 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:42:06 - End Time 2025-03-16 02:42:06 [2025-03-16 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690493', 'tblTempUsageDetail_20' ) start [2025-03-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690493', 'tblTempUsageDetail_20' ) end [2025-03-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690493', 'tblTempVendorCDR_20' ) start [2025-03-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690493', 'tblTempVendorCDR_20' ) end [2025-03-16 02:42:18] Production.INFO: ProcessCDR(1,14690493,1,1,2) [2025-03-16 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690493', 'tblTempUsageDetail_20' ) start [2025-03-16 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690493', 'tblTempUsageDetail_20' ) end [2025-03-16 02:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:42:24] Production.INFO: ==20288== Releasing lock... [2025-03-16 02:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:43:06 [end_date_ymd] => 2025-03-16 02:43:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:43:06' and `end` < '2025-03-16 02: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-03-16 02:43:18] Production.INFO: count ==700 [2025-03-16 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:43:06 - End Time 2025-03-16 02:43:06 [2025-03-16 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690498', 'tblTempUsageDetail_20' ) start [2025-03-16 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690498', 'tblTempUsageDetail_20' ) end [2025-03-16 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690498', 'tblTempVendorCDR_20' ) start [2025-03-16 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690498', 'tblTempVendorCDR_20' ) end [2025-03-16 02:43:18] Production.INFO: ProcessCDR(1,14690498,1,1,2) [2025-03-16 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690498', 'tblTempUsageDetail_20' ) start [2025-03-16 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690498', 'tblTempUsageDetail_20' ) end [2025-03-16 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:43:22] Production.INFO: ==20377== Releasing lock... [2025-03-16 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:44:05 [end_date_ymd] => 2025-03-16 02:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:44:05' and `end` < '2025-03-16 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-03-16 02:44:17] Production.INFO: count ==699 [2025-03-16 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:44:05 - End Time 2025-03-16 02:44:05 [2025-03-16 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690503', 'tblTempUsageDetail_20' ) start [2025-03-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690503', 'tblTempUsageDetail_20' ) end [2025-03-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690503', 'tblTempVendorCDR_20' ) start [2025-03-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690503', 'tblTempVendorCDR_20' ) end [2025-03-16 02:44:18] Production.INFO: ProcessCDR(1,14690503,1,1,2) [2025-03-16 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690503', 'tblTempUsageDetail_20' ) start [2025-03-16 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690503', 'tblTempUsageDetail_20' ) end [2025-03-16 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:44:21] Production.INFO: ==20465== Releasing lock... [2025-03-16 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:45:06 [end_date_ymd] => 2025-03-16 02:45:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:45:06' and `end` < '2025-03-16 02: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-03-16 02:45:18] Production.INFO: count ==700 [2025-03-16 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:45:06 - End Time 2025-03-16 02:45:06 [2025-03-16 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690508', 'tblTempUsageDetail_20' ) start [2025-03-16 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690508', 'tblTempUsageDetail_20' ) end [2025-03-16 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690508', 'tblTempVendorCDR_20' ) start [2025-03-16 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690508', 'tblTempVendorCDR_20' ) end [2025-03-16 02:45:18] Production.INFO: ProcessCDR(1,14690508,1,1,2) [2025-03-16 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690508', 'tblTempUsageDetail_20' ) start [2025-03-16 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690508', 'tblTempUsageDetail_20' ) end [2025-03-16 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:45:22] Production.INFO: ==20545== Releasing lock... [2025-03-16 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:46:05 [end_date_ymd] => 2025-03-16 02:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:46:05' and `end` < '2025-03-16 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-03-16 02:46:17] Production.INFO: count ==700 [2025-03-16 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:46:05 - End Time 2025-03-16 02:46:05 [2025-03-16 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690513', 'tblTempUsageDetail_20' ) start [2025-03-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690513', 'tblTempUsageDetail_20' ) end [2025-03-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690513', 'tblTempVendorCDR_20' ) start [2025-03-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690513', 'tblTempVendorCDR_20' ) end [2025-03-16 02:46:18] Production.INFO: ProcessCDR(1,14690513,1,1,2) [2025-03-16 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690513', 'tblTempUsageDetail_20' ) start [2025-03-16 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690513', 'tblTempUsageDetail_20' ) end [2025-03-16 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:46:21] Production.INFO: ==20616== Releasing lock... [2025-03-16 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:46:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:47:06 [end_date_ymd] => 2025-03-16 02:47:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:47:06' and `end` < '2025-03-16 02: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-03-16 02:47:18] Production.INFO: count ==700 [2025-03-16 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:47:06 - End Time 2025-03-16 02:47:06 [2025-03-16 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690518', 'tblTempUsageDetail_20' ) start [2025-03-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690518', 'tblTempUsageDetail_20' ) end [2025-03-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690518', 'tblTempVendorCDR_20' ) start [2025-03-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690518', 'tblTempVendorCDR_20' ) end [2025-03-16 02:47:18] Production.INFO: ProcessCDR(1,14690518,1,1,2) [2025-03-16 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690518', 'tblTempUsageDetail_20' ) start [2025-03-16 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690518', 'tblTempUsageDetail_20' ) end [2025-03-16 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:47:22] Production.INFO: ==20690== Releasing lock... [2025-03-16 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:48:05 [end_date_ymd] => 2025-03-16 02:48:05 [RateCDR] => 1 ) [2025-03-16 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:48:05' and `end` < '2025-03-16 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:48:17] Production.INFO: count ==700 [2025-03-16 02:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:48:05 - End Time 2025-03-16 02:48:05 [2025-03-16 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690523', 'tblTempUsageDetail_20' ) start [2025-03-16 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690523', 'tblTempUsageDetail_20' ) end [2025-03-16 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690523', 'tblTempVendorCDR_20' ) start [2025-03-16 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690523', 'tblTempVendorCDR_20' ) end [2025-03-16 02:48:17] Production.INFO: ProcessCDR(1,14690523,1,1,2) [2025-03-16 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690523', 'tblTempUsageDetail_20' ) start [2025-03-16 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690523', 'tblTempUsageDetail_20' ) end [2025-03-16 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:48:21] Production.INFO: ==20774== Releasing lock... [2025-03-16 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:49:06 [end_date_ymd] => 2025-03-16 02:49:06 [RateCDR] => 1 ) [2025-03-16 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:49:06' and `end` < '2025-03-16 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:49:18] Production.INFO: count ==700 [2025-03-16 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:49:06 - End Time 2025-03-16 02:49:06 [2025-03-16 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690528', 'tblTempUsageDetail_20' ) start [2025-03-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690528', 'tblTempUsageDetail_20' ) end [2025-03-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690528', 'tblTempVendorCDR_20' ) start [2025-03-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690528', 'tblTempVendorCDR_20' ) end [2025-03-16 02:49:18] Production.INFO: ProcessCDR(1,14690528,1,1,2) [2025-03-16 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690528', 'tblTempUsageDetail_20' ) start [2025-03-16 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690528', 'tblTempUsageDetail_20' ) end [2025-03-16 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:49:22] Production.INFO: ==20865== Releasing lock... [2025-03-16 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:50:06 [end_date_ymd] => 2025-03-16 02:50:06 [RateCDR] => 1 ) [2025-03-16 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:50:06' and `end` < '2025-03-16 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:50:18] Production.INFO: count ==703 [2025-03-16 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 23:50:06 - End Time 2025-03-16 02:50:06 [2025-03-16 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690533', 'tblTempUsageDetail_20' ) start [2025-03-16 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690533', 'tblTempUsageDetail_20' ) end [2025-03-16 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690533', 'tblTempVendorCDR_20' ) start [2025-03-16 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690533', 'tblTempVendorCDR_20' ) end [2025-03-16 02:50:19] Production.INFO: ProcessCDR(1,14690533,1,1,2) [2025-03-16 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690533', 'tblTempUsageDetail_20' ) start [2025-03-16 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690533', 'tblTempUsageDetail_20' ) end [2025-03-16 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:50:25] Production.INFO: ==20957== Releasing lock... [2025-03-16 02:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:50:25] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:51:06 [end_date_ymd] => 2025-03-16 02:51:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:51:06' and `end` < '2025-03-16 02: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-03-16 02:51:18] Production.INFO: count ==709 [2025-03-16 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:51:06 - End Time 2025-03-16 02:51:06 [2025-03-16 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690539', 'tblTempUsageDetail_20' ) start [2025-03-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690539', 'tblTempUsageDetail_20' ) end [2025-03-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690539', 'tblTempVendorCDR_20' ) start [2025-03-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690539', 'tblTempVendorCDR_20' ) end [2025-03-16 02:51:18] Production.INFO: ProcessCDR(1,14690539,1,1,2) [2025-03-16 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690539', 'tblTempUsageDetail_20' ) start [2025-03-16 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690539', 'tblTempUsageDetail_20' ) end [2025-03-16 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:51:23] Production.INFO: ==21048== Releasing lock... [2025-03-16 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:51:23] Production.INFO: 33 MB #Memory Used# [2025-03-16 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:52:05 [end_date_ymd] => 2025-03-16 02:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:52:05' and `end` < '2025-03-16 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-03-16 02:52:18] Production.INFO: count ==707 [2025-03-16 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:52:05 - End Time 2025-03-16 02:52:05 [2025-03-16 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690544', 'tblTempUsageDetail_20' ) start [2025-03-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690544', 'tblTempUsageDetail_20' ) end [2025-03-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690544', 'tblTempVendorCDR_20' ) start [2025-03-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690544', 'tblTempVendorCDR_20' ) end [2025-03-16 02:52:18] Production.INFO: ProcessCDR(1,14690544,1,1,2) [2025-03-16 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690544', 'tblTempUsageDetail_20' ) start [2025-03-16 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690544', 'tblTempUsageDetail_20' ) end [2025-03-16 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:52:21] Production.INFO: ==21136== Releasing lock... [2025-03-16 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:53:06 [end_date_ymd] => 2025-03-16 02:53:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:53:06' and `end` < '2025-03-16 02: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-03-16 02:53:18] Production.INFO: count ==707 [2025-03-16 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:53:06 - End Time 2025-03-16 02:53:06 [2025-03-16 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690549', 'tblTempUsageDetail_20' ) start [2025-03-16 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690549', 'tblTempUsageDetail_20' ) end [2025-03-16 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690549', 'tblTempVendorCDR_20' ) start [2025-03-16 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690549', 'tblTempVendorCDR_20' ) end [2025-03-16 02:53:18] Production.INFO: ProcessCDR(1,14690549,1,1,2) [2025-03-16 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690549', 'tblTempUsageDetail_20' ) start [2025-03-16 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690549', 'tblTempUsageDetail_20' ) end [2025-03-16 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:53:21] Production.INFO: ==21261== Releasing lock... [2025-03-16 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:54:05 [end_date_ymd] => 2025-03-16 02:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:54:05' and `end` < '2025-03-16 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-03-16 02:54:17] Production.INFO: count ==706 [2025-03-16 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:54:05 - End Time 2025-03-16 02:54:05 [2025-03-16 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690554', 'tblTempUsageDetail_20' ) start [2025-03-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690554', 'tblTempUsageDetail_20' ) end [2025-03-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690554', 'tblTempVendorCDR_20' ) start [2025-03-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690554', 'tblTempVendorCDR_20' ) end [2025-03-16 02:54:18] Production.INFO: ProcessCDR(1,14690554,1,1,2) [2025-03-16 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690554', 'tblTempUsageDetail_20' ) start [2025-03-16 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690554', 'tblTempUsageDetail_20' ) end [2025-03-16 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:54:21] Production.INFO: ==21347== Releasing lock... [2025-03-16 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:54:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:55:05 [end_date_ymd] => 2025-03-16 02:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-15 23:55:05' and `end` < '2025-03-16 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-03-16 02:55:17] Production.INFO: count ==702 [2025-03-16 02:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:55:05 - End Time 2025-03-16 02:55:05 [2025-03-16 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690559', 'tblTempUsageDetail_20' ) start [2025-03-16 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690559', 'tblTempUsageDetail_20' ) end [2025-03-16 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690559', 'tblTempVendorCDR_20' ) start [2025-03-16 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690559', 'tblTempVendorCDR_20' ) end [2025-03-16 02:55:17] Production.INFO: ProcessCDR(1,14690559,1,1,2) [2025-03-16 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690559', 'tblTempUsageDetail_20' ) start [2025-03-16 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690559', 'tblTempUsageDetail_20' ) end [2025-03-16 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:55:21] Production.INFO: ==21436== Releasing lock... [2025-03-16 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:56:05 [end_date_ymd] => 2025-03-16 02:56:05 [RateCDR] => 1 ) [2025-03-16 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:56:05' and `end` < '2025-03-16 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:56:17] Production.INFO: count ==705 [2025-03-16 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-15 23:56:05 - End Time 2025-03-16 02:56:05 [2025-03-16 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690564', 'tblTempUsageDetail_20' ) start [2025-03-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690564', 'tblTempUsageDetail_20' ) end [2025-03-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690564', 'tblTempVendorCDR_20' ) start [2025-03-16 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690564', 'tblTempVendorCDR_20' ) end [2025-03-16 02:56:17] Production.INFO: ProcessCDR(1,14690564,1,1,2) [2025-03-16 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690564', 'tblTempUsageDetail_20' ) start [2025-03-16 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690564', 'tblTempUsageDetail_20' ) end [2025-03-16 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:56:21] Production.INFO: ==21524== Releasing lock... [2025-03-16 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:56:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:57:06 [end_date_ymd] => 2025-03-16 02:57:06 [RateCDR] => 1 ) [2025-03-16 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:57:06' and `end` < '2025-03-16 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:57:18] Production.INFO: count ==698 [2025-03-16 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:57:06 - End Time 2025-03-16 02:57:06 [2025-03-16 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690569', 'tblTempUsageDetail_20' ) start [2025-03-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690569', 'tblTempUsageDetail_20' ) end [2025-03-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690569', 'tblTempVendorCDR_20' ) start [2025-03-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690569', 'tblTempVendorCDR_20' ) end [2025-03-16 02:57:18] Production.INFO: ProcessCDR(1,14690569,1,1,2) [2025-03-16 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690569', 'tblTempUsageDetail_20' ) start [2025-03-16 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690569', 'tblTempUsageDetail_20' ) end [2025-03-16 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:57:22] Production.INFO: ==21617== Releasing lock... [2025-03-16 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:57:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:58:05 [end_date_ymd] => 2025-03-16 02:58:05 [RateCDR] => 1 ) [2025-03-16 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 23:58:05' and `end` < '2025-03-16 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 02:58:18] Production.INFO: count ==696 [2025-03-16 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:58:05 - End Time 2025-03-16 02:58:05 [2025-03-16 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690574', 'tblTempUsageDetail_20' ) start [2025-03-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690574', 'tblTempUsageDetail_20' ) end [2025-03-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690574', 'tblTempVendorCDR_20' ) start [2025-03-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690574', 'tblTempVendorCDR_20' ) end [2025-03-16 02:58:18] Production.INFO: ProcessCDR(1,14690574,1,1,2) [2025-03-16 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690574', 'tblTempUsageDetail_20' ) start [2025-03-16 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690574', 'tblTempUsageDetail_20' ) end [2025-03-16 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:58:22] Production.INFO: ==21702== Releasing lock... [2025-03-16 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 23:59:06 [end_date_ymd] => 2025-03-16 02:59:06 [RateCDR] => 1 ) [2025-03-16 02: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-03-15 23:59:06' and `end` < '2025-03-16 02: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-03-16 02:59:18] Production.INFO: count ==701 [2025-03-16 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 23:59:06 - End Time 2025-03-16 02:59:06 [2025-03-16 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690579', 'tblTempUsageDetail_20' ) start [2025-03-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690579', 'tblTempUsageDetail_20' ) end [2025-03-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690579', 'tblTempVendorCDR_20' ) start [2025-03-16 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690579', 'tblTempVendorCDR_20' ) end [2025-03-16 02:59:18] Production.INFO: ProcessCDR(1,14690579,1,1,2) [2025-03-16 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 02:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 02:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690579', 'tblTempUsageDetail_20' ) start [2025-03-16 02:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690579', 'tblTempUsageDetail_20' ) end [2025-03-16 02:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 02:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 02:59:24] Production.INFO: ==21794== Releasing lock... [2025-03-16 02:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 02:59:24] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:00:06 [end_date_ymd] => 2025-03-16 03:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:00:06' and `end` < '2025-03-16 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-03-16 03:00:18] Production.INFO: count ==700 [2025-03-16 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-16 00:00:06 - End Time 2025-03-16 03:00:06 [2025-03-16 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690585', 'tblTempUsageDetail_20' ) start [2025-03-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690585', 'tblTempUsageDetail_20' ) end [2025-03-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690585', 'tblTempVendorCDR_20' ) start [2025-03-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690585', 'tblTempVendorCDR_20' ) end [2025-03-16 03:00:19] Production.INFO: ProcessCDR(1,14690585,1,1,2) [2025-03-16 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690585', 'tblTempUsageDetail_20' ) start [2025-03-16 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690585', 'tblTempUsageDetail_20' ) end [2025-03-16 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:00:23] Production.INFO: ==21880== Releasing lock... [2025-03-16 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:00:23] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:01:06 [end_date_ymd] => 2025-03-16 03:01:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:01:06' and `end` < '2025-03-16 03: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-03-16 03:01:18] Production.INFO: count ==700 [2025-03-16 03:01:19] Production.ERROR: pbx CDR StartTime 2025-03-16 00:01:06 - End Time 2025-03-16 03:01:06 [2025-03-16 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690590', 'tblTempUsageDetail_20' ) start [2025-03-16 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690590', 'tblTempUsageDetail_20' ) end [2025-03-16 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690590', 'tblTempVendorCDR_20' ) start [2025-03-16 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690590', 'tblTempVendorCDR_20' ) end [2025-03-16 03:01:19] Production.INFO: ProcessCDR(1,14690590,1,1,2) [2025-03-16 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690590', 'tblTempUsageDetail_20' ) start [2025-03-16 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690590', 'tblTempUsageDetail_20' ) end [2025-03-16 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:01:23] Production.INFO: ==21984== Releasing lock... [2025-03-16 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:01:23] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:02:06 [end_date_ymd] => 2025-03-16 03:02:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:02:06' and `end` < '2025-03-16 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-03-16 03:02:18] Production.INFO: count ==699 [2025-03-16 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:02:06 - End Time 2025-03-16 03:02:06 [2025-03-16 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690595', 'tblTempUsageDetail_20' ) start [2025-03-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690595', 'tblTempUsageDetail_20' ) end [2025-03-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690595', 'tblTempVendorCDR_20' ) start [2025-03-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690595', 'tblTempVendorCDR_20' ) end [2025-03-16 03:02:18] Production.INFO: ProcessCDR(1,14690595,1,1,2) [2025-03-16 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690595', 'tblTempUsageDetail_20' ) start [2025-03-16 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690595', 'tblTempUsageDetail_20' ) end [2025-03-16 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:02:22] Production.INFO: ==22147== Releasing lock... [2025-03-16 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:02:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:03:06 [end_date_ymd] => 2025-03-16 03:03:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:03:06' and `end` < '2025-03-16 03: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-03-16 03:03:18] Production.INFO: count ==699 [2025-03-16 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:03:06 - End Time 2025-03-16 03:03:06 [2025-03-16 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690600', 'tblTempUsageDetail_20' ) start [2025-03-16 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690600', 'tblTempUsageDetail_20' ) end [2025-03-16 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690600', 'tblTempVendorCDR_20' ) start [2025-03-16 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690600', 'tblTempVendorCDR_20' ) end [2025-03-16 03:03:18] Production.INFO: ProcessCDR(1,14690600,1,1,2) [2025-03-16 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690600', 'tblTempUsageDetail_20' ) start [2025-03-16 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690600', 'tblTempUsageDetail_20' ) end [2025-03-16 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:03:22] Production.INFO: ==22232== Releasing lock... [2025-03-16 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:03:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:04:05 [end_date_ymd] => 2025-03-16 03:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:04:05' and `end` < '2025-03-16 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-03-16 03:04:18] Production.INFO: count ==698 [2025-03-16 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:04:05 - End Time 2025-03-16 03:04:05 [2025-03-16 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690605', 'tblTempUsageDetail_20' ) start [2025-03-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690605', 'tblTempUsageDetail_20' ) end [2025-03-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690605', 'tblTempVendorCDR_20' ) start [2025-03-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690605', 'tblTempVendorCDR_20' ) end [2025-03-16 03:04:18] Production.INFO: ProcessCDR(1,14690605,1,1,2) [2025-03-16 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690605', 'tblTempUsageDetail_20' ) start [2025-03-16 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690605', 'tblTempUsageDetail_20' ) end [2025-03-16 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:04:21] Production.INFO: ==22318== Releasing lock... [2025-03-16 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:04:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:05:06 [end_date_ymd] => 2025-03-16 03:05:06 [RateCDR] => 1 ) [2025-03-16 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:05:06' and `end` < '2025-03-16 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:05:18] Production.INFO: count ==698 [2025-03-16 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:05:06 - End Time 2025-03-16 03:05:06 [2025-03-16 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690610', 'tblTempUsageDetail_20' ) start [2025-03-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690610', 'tblTempUsageDetail_20' ) end [2025-03-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690610', 'tblTempVendorCDR_20' ) start [2025-03-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690610', 'tblTempVendorCDR_20' ) end [2025-03-16 03:05:18] Production.INFO: ProcessCDR(1,14690610,1,1,2) [2025-03-16 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690610', 'tblTempUsageDetail_20' ) start [2025-03-16 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690610', 'tblTempUsageDetail_20' ) end [2025-03-16 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:05:22] Production.INFO: ==22444== Releasing lock... [2025-03-16 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:06:06 [end_date_ymd] => 2025-03-16 03:06:06 [RateCDR] => 1 ) [2025-03-16 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:06:06' and `end` < '2025-03-16 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:06:18] Production.INFO: count ==693 [2025-03-16 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:06:06 - End Time 2025-03-16 03:06:06 [2025-03-16 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690615', 'tblTempUsageDetail_20' ) start [2025-03-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690615', 'tblTempUsageDetail_20' ) end [2025-03-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690615', 'tblTempVendorCDR_20' ) start [2025-03-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690615', 'tblTempVendorCDR_20' ) end [2025-03-16 03:06:18] Production.INFO: ProcessCDR(1,14690615,1,1,2) [2025-03-16 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690615', 'tblTempUsageDetail_20' ) start [2025-03-16 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690615', 'tblTempUsageDetail_20' ) end [2025-03-16 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:06:22] Production.INFO: ==22572== Releasing lock... [2025-03-16 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:06:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:07:06 [end_date_ymd] => 2025-03-16 03:07:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:07:06' and `end` < '2025-03-16 03: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-03-16 03:07:18] Production.INFO: count ==688 [2025-03-16 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:07:06 - End Time 2025-03-16 03:07:06 [2025-03-16 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690620', 'tblTempUsageDetail_20' ) start [2025-03-16 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690620', 'tblTempUsageDetail_20' ) end [2025-03-16 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690620', 'tblTempVendorCDR_20' ) start [2025-03-16 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690620', 'tblTempVendorCDR_20' ) end [2025-03-16 03:07:19] Production.INFO: ProcessCDR(1,14690620,1,1,2) [2025-03-16 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690620', 'tblTempUsageDetail_20' ) start [2025-03-16 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690620', 'tblTempUsageDetail_20' ) end [2025-03-16 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:07:22] Production.INFO: ==22659== Releasing lock... [2025-03-16 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:07:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:08:06 [end_date_ymd] => 2025-03-16 03:08:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:08:06' and `end` < '2025-03-16 03: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-03-16 03:08:18] Production.INFO: count ==684 [2025-03-16 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:08:06 - End Time 2025-03-16 03:08:06 [2025-03-16 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690625', 'tblTempUsageDetail_20' ) start [2025-03-16 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690625', 'tblTempUsageDetail_20' ) end [2025-03-16 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690625', 'tblTempVendorCDR_20' ) start [2025-03-16 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690625', 'tblTempVendorCDR_20' ) end [2025-03-16 03:08:18] Production.INFO: ProcessCDR(1,14690625,1,1,2) [2025-03-16 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690625', 'tblTempUsageDetail_20' ) start [2025-03-16 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690625', 'tblTempUsageDetail_20' ) end [2025-03-16 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:08:22] Production.INFO: ==22786== Releasing lock... [2025-03-16 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:09:06 [end_date_ymd] => 2025-03-16 03:09:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:09:06' and `end` < '2025-03-16 03: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-03-16 03:09:18] Production.INFO: count ==684 [2025-03-16 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:09:06 - End Time 2025-03-16 03:09:06 [2025-03-16 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690630', 'tblTempUsageDetail_20' ) start [2025-03-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690630', 'tblTempUsageDetail_20' ) end [2025-03-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690630', 'tblTempVendorCDR_20' ) start [2025-03-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690630', 'tblTempVendorCDR_20' ) end [2025-03-16 03:09:18] Production.INFO: ProcessCDR(1,14690630,1,1,2) [2025-03-16 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690630', 'tblTempUsageDetail_20' ) start [2025-03-16 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690630', 'tblTempUsageDetail_20' ) end [2025-03-16 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:09:22] Production.INFO: ==22950== Releasing lock... [2025-03-16 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:09:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:10:06 [end_date_ymd] => 2025-03-16 03:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:10:06' and `end` < '2025-03-16 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-03-16 03:10:18] Production.INFO: count ==674 [2025-03-16 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:10:06 - End Time 2025-03-16 03:10:06 [2025-03-16 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690636', 'tblTempUsageDetail_20' ) start [2025-03-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690636', 'tblTempUsageDetail_20' ) end [2025-03-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690636', 'tblTempVendorCDR_20' ) start [2025-03-16 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690636', 'tblTempVendorCDR_20' ) end [2025-03-16 03:10:18] Production.INFO: ProcessCDR(1,14690636,1,1,2) [2025-03-16 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690636', 'tblTempUsageDetail_20' ) start [2025-03-16 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690636', 'tblTempUsageDetail_20' ) end [2025-03-16 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:10:22] Production.INFO: ==23036== Releasing lock... [2025-03-16 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:10:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:11:05 [end_date_ymd] => 2025-03-16 03:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:11:05' and `end` < '2025-03-16 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-03-16 03:11:17] Production.INFO: count ==664 [2025-03-16 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:11:05 - End Time 2025-03-16 03:11:05 [2025-03-16 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690641', 'tblTempUsageDetail_20' ) start [2025-03-16 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690641', 'tblTempUsageDetail_20' ) end [2025-03-16 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690641', 'tblTempVendorCDR_20' ) start [2025-03-16 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690641', 'tblTempVendorCDR_20' ) end [2025-03-16 03:11:17] Production.INFO: ProcessCDR(1,14690641,1,1,2) [2025-03-16 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690641', 'tblTempUsageDetail_20' ) start [2025-03-16 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690641', 'tblTempUsageDetail_20' ) end [2025-03-16 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:11:21] Production.INFO: ==23138== Releasing lock... [2025-03-16 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:11:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:12:05 [end_date_ymd] => 2025-03-16 03:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:12:05' and `end` < '2025-03-16 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-03-16 03:12:17] Production.INFO: count ==660 [2025-03-16 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:12:05 - End Time 2025-03-16 03:12:05 [2025-03-16 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690646', 'tblTempUsageDetail_20' ) start [2025-03-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690646', 'tblTempUsageDetail_20' ) end [2025-03-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690646', 'tblTempVendorCDR_20' ) start [2025-03-16 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690646', 'tblTempVendorCDR_20' ) end [2025-03-16 03:12:17] Production.INFO: ProcessCDR(1,14690646,1,1,2) [2025-03-16 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690646', 'tblTempUsageDetail_20' ) start [2025-03-16 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690646', 'tblTempUsageDetail_20' ) end [2025-03-16 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:12:20] Production.INFO: ==23222== Releasing lock... [2025-03-16 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:12:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:13:06 [end_date_ymd] => 2025-03-16 03:13:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:13:06' and `end` < '2025-03-16 03: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-03-16 03:13:18] Production.INFO: count ==658 [2025-03-16 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:13:06 - End Time 2025-03-16 03:13:06 [2025-03-16 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690651', 'tblTempUsageDetail_20' ) start [2025-03-16 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690651', 'tblTempUsageDetail_20' ) end [2025-03-16 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690651', 'tblTempVendorCDR_20' ) start [2025-03-16 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690651', 'tblTempVendorCDR_20' ) end [2025-03-16 03:13:18] Production.INFO: ProcessCDR(1,14690651,1,1,2) [2025-03-16 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690651', 'tblTempUsageDetail_20' ) start [2025-03-16 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690651', 'tblTempUsageDetail_20' ) end [2025-03-16 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:13:23] Production.INFO: ==23393== Releasing lock... [2025-03-16 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:13:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:14:05 [end_date_ymd] => 2025-03-16 03:14:05 [RateCDR] => 1 ) [2025-03-16 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:14:05' and `end` < '2025-03-16 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:14:17] Production.INFO: count ==652 [2025-03-16 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:14:05 - End Time 2025-03-16 03:14:05 [2025-03-16 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690656', 'tblTempUsageDetail_20' ) start [2025-03-16 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690656', 'tblTempUsageDetail_20' ) end [2025-03-16 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690656', 'tblTempVendorCDR_20' ) start [2025-03-16 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690656', 'tblTempVendorCDR_20' ) end [2025-03-16 03:14:17] Production.INFO: ProcessCDR(1,14690656,1,1,2) [2025-03-16 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690656', 'tblTempUsageDetail_20' ) start [2025-03-16 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690656', 'tblTempUsageDetail_20' ) end [2025-03-16 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:14:20] Production.INFO: ==23483== Releasing lock... [2025-03-16 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:14:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:15:05 [end_date_ymd] => 2025-03-16 03:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:15:05' and `end` < '2025-03-16 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-03-16 03:15:17] Production.INFO: count ==656 [2025-03-16 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:15:05 - End Time 2025-03-16 03:15:05 [2025-03-16 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690661', 'tblTempUsageDetail_20' ) start [2025-03-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690661', 'tblTempUsageDetail_20' ) end [2025-03-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690661', 'tblTempVendorCDR_20' ) start [2025-03-16 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690661', 'tblTempVendorCDR_20' ) end [2025-03-16 03:15:17] Production.INFO: ProcessCDR(1,14690661,1,1,2) [2025-03-16 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690661', 'tblTempUsageDetail_20' ) start [2025-03-16 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690661', 'tblTempUsageDetail_20' ) end [2025-03-16 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:15:21] Production.INFO: ==23573== Releasing lock... [2025-03-16 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:16:05 [end_date_ymd] => 2025-03-16 03:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:16:05' and `end` < '2025-03-16 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-03-16 03:16:17] Production.INFO: count ==654 [2025-03-16 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:16:05 - End Time 2025-03-16 03:16:05 [2025-03-16 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690666', 'tblTempUsageDetail_20' ) start [2025-03-16 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690666', 'tblTempUsageDetail_20' ) end [2025-03-16 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690666', 'tblTempVendorCDR_20' ) start [2025-03-16 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690666', 'tblTempVendorCDR_20' ) end [2025-03-16 03:16:17] Production.INFO: ProcessCDR(1,14690666,1,1,2) [2025-03-16 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690666', 'tblTempUsageDetail_20' ) start [2025-03-16 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690666', 'tblTempUsageDetail_20' ) end [2025-03-16 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:16:20] Production.INFO: ==23662== Releasing lock... [2025-03-16 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:16:20] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:17:05 [end_date_ymd] => 2025-03-16 03:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:17:05' and `end` < '2025-03-16 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-03-16 03:17:17] Production.INFO: count ==650 [2025-03-16 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:17:05 - End Time 2025-03-16 03:17:05 [2025-03-16 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690671', 'tblTempUsageDetail_20' ) start [2025-03-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690671', 'tblTempUsageDetail_20' ) end [2025-03-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690671', 'tblTempVendorCDR_20' ) start [2025-03-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690671', 'tblTempVendorCDR_20' ) end [2025-03-16 03:17:17] Production.INFO: ProcessCDR(1,14690671,1,1,2) [2025-03-16 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690671', 'tblTempUsageDetail_20' ) start [2025-03-16 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690671', 'tblTempUsageDetail_20' ) end [2025-03-16 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:17:20] Production.INFO: ==23825== Releasing lock... [2025-03-16 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:17:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:18:04 [end_date_ymd] => 2025-03-16 03:18:04 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:18:04' and `end` < '2025-03-16 03: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-03-16 03:18:16] Production.INFO: count ==642 [2025-03-16 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:18:04 - End Time 2025-03-16 03:18:04 [2025-03-16 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690676', 'tblTempUsageDetail_20' ) start [2025-03-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690676', 'tblTempUsageDetail_20' ) end [2025-03-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690676', 'tblTempVendorCDR_20' ) start [2025-03-16 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690676', 'tblTempVendorCDR_20' ) end [2025-03-16 03:18:17] Production.INFO: ProcessCDR(1,14690676,1,1,2) [2025-03-16 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690676', 'tblTempUsageDetail_20' ) start [2025-03-16 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690676', 'tblTempUsageDetail_20' ) end [2025-03-16 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:18:20] Production.INFO: ==23916== Releasing lock... [2025-03-16 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:19:05 [end_date_ymd] => 2025-03-16 03:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:19:05' and `end` < '2025-03-16 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-03-16 03:19:17] Production.INFO: count ==639 [2025-03-16 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:19:05 - End Time 2025-03-16 03:19:05 [2025-03-16 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690681', 'tblTempUsageDetail_20' ) start [2025-03-16 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690681', 'tblTempUsageDetail_20' ) end [2025-03-16 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690681', 'tblTempVendorCDR_20' ) start [2025-03-16 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690681', 'tblTempVendorCDR_20' ) end [2025-03-16 03:19:18] Production.INFO: ProcessCDR(1,14690681,1,1,2) [2025-03-16 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690681', 'tblTempUsageDetail_20' ) start [2025-03-16 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690681', 'tblTempUsageDetail_20' ) end [2025-03-16 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:19:21] Production.INFO: ==24010== Releasing lock... [2025-03-16 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:20:06 [end_date_ymd] => 2025-03-16 03:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:20:06' and `end` < '2025-03-16 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-03-16 03:20:18] Production.INFO: count ==632 [2025-03-16 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:20:06 - End Time 2025-03-16 03:20:06 [2025-03-16 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690687', 'tblTempUsageDetail_20' ) start [2025-03-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690687', 'tblTempUsageDetail_20' ) end [2025-03-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690687', 'tblTempVendorCDR_20' ) start [2025-03-16 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690687', 'tblTempVendorCDR_20' ) end [2025-03-16 03:20:18] Production.INFO: ProcessCDR(1,14690687,1,1,2) [2025-03-16 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690687', 'tblTempUsageDetail_20' ) start [2025-03-16 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690687', 'tblTempUsageDetail_20' ) end [2025-03-16 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:20:22] Production.INFO: ==24107== Releasing lock... [2025-03-16 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:21:05 [end_date_ymd] => 2025-03-16 03:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:21:05' and `end` < '2025-03-16 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-03-16 03:21:17] Production.INFO: count ==617 [2025-03-16 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:21:05 - End Time 2025-03-16 03:21:05 [2025-03-16 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690692', 'tblTempUsageDetail_20' ) start [2025-03-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690692', 'tblTempUsageDetail_20' ) end [2025-03-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690692', 'tblTempVendorCDR_20' ) start [2025-03-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690692', 'tblTempVendorCDR_20' ) end [2025-03-16 03:21:17] Production.INFO: ProcessCDR(1,14690692,1,1,2) [2025-03-16 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690692', 'tblTempUsageDetail_20' ) start [2025-03-16 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690692', 'tblTempUsageDetail_20' ) end [2025-03-16 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:21:21] Production.INFO: ==24199== Releasing lock... [2025-03-16 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:22:06 [end_date_ymd] => 2025-03-16 03:22:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:22:06' and `end` < '2025-03-16 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-03-16 03:22:18] Production.INFO: count ==616 [2025-03-16 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:22:06 - End Time 2025-03-16 03:22:06 [2025-03-16 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690697', 'tblTempUsageDetail_20' ) start [2025-03-16 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690697', 'tblTempUsageDetail_20' ) end [2025-03-16 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690697', 'tblTempVendorCDR_20' ) start [2025-03-16 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690697', 'tblTempVendorCDR_20' ) end [2025-03-16 03:22:18] Production.INFO: ProcessCDR(1,14690697,1,1,2) [2025-03-16 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690697', 'tblTempUsageDetail_20' ) start [2025-03-16 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690697', 'tblTempUsageDetail_20' ) end [2025-03-16 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:22:23] Production.INFO: ==24292== Releasing lock... [2025-03-16 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:22:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:23:05 [end_date_ymd] => 2025-03-16 03:23:05 [RateCDR] => 1 ) [2025-03-16 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:23:05' and `end` < '2025-03-16 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:23:17] Production.INFO: count ==612 [2025-03-16 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:23:05 - End Time 2025-03-16 03:23:05 [2025-03-16 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690702', 'tblTempUsageDetail_20' ) start [2025-03-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690702', 'tblTempUsageDetail_20' ) end [2025-03-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690702', 'tblTempVendorCDR_20' ) start [2025-03-16 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690702', 'tblTempVendorCDR_20' ) end [2025-03-16 03:23:17] Production.INFO: ProcessCDR(1,14690702,1,1,2) [2025-03-16 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690702', 'tblTempUsageDetail_20' ) start [2025-03-16 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690702', 'tblTempUsageDetail_20' ) end [2025-03-16 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:23:20] Production.INFO: ==24383== Releasing lock... [2025-03-16 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:23:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:24:05 [end_date_ymd] => 2025-03-16 03:24:05 [RateCDR] => 1 ) [2025-03-16 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:24:05' and `end` < '2025-03-16 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:24:17] Production.INFO: count ==609 [2025-03-16 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:24:05 - End Time 2025-03-16 03:24:05 [2025-03-16 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690707', 'tblTempUsageDetail_20' ) start [2025-03-16 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690707', 'tblTempUsageDetail_20' ) end [2025-03-16 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690707', 'tblTempVendorCDR_20' ) start [2025-03-16 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690707', 'tblTempVendorCDR_20' ) end [2025-03-16 03:24:18] Production.INFO: ProcessCDR(1,14690707,1,1,2) [2025-03-16 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690707', 'tblTempUsageDetail_20' ) start [2025-03-16 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690707', 'tblTempUsageDetail_20' ) end [2025-03-16 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:24:21] Production.INFO: ==24476== Releasing lock... [2025-03-16 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:25:05 [end_date_ymd] => 2025-03-16 03:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:25:05' and `end` < '2025-03-16 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-03-16 03:25:17] Production.INFO: count ==608 [2025-03-16 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:25:05 - End Time 2025-03-16 03:25:05 [2025-03-16 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690712', 'tblTempUsageDetail_20' ) start [2025-03-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690712', 'tblTempUsageDetail_20' ) end [2025-03-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690712', 'tblTempVendorCDR_20' ) start [2025-03-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690712', 'tblTempVendorCDR_20' ) end [2025-03-16 03:25:17] Production.INFO: ProcessCDR(1,14690712,1,1,2) [2025-03-16 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690712', 'tblTempUsageDetail_20' ) start [2025-03-16 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690712', 'tblTempUsageDetail_20' ) end [2025-03-16 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:25:23] Production.INFO: ==24572== Releasing lock... [2025-03-16 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:25:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:26:05 [end_date_ymd] => 2025-03-16 03:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:26:05' and `end` < '2025-03-16 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-03-16 03:26:17] Production.INFO: count ==608 [2025-03-16 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:26:05 - End Time 2025-03-16 03:26:05 [2025-03-16 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690717', 'tblTempUsageDetail_20' ) start [2025-03-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690717', 'tblTempUsageDetail_20' ) end [2025-03-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690717', 'tblTempVendorCDR_20' ) start [2025-03-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690717', 'tblTempVendorCDR_20' ) end [2025-03-16 03:26:17] Production.INFO: ProcessCDR(1,14690717,1,1,2) [2025-03-16 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690717', 'tblTempUsageDetail_20' ) start [2025-03-16 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690717', 'tblTempUsageDetail_20' ) end [2025-03-16 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:26:21] Production.INFO: ==24713== Releasing lock... [2025-03-16 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:27:05 [end_date_ymd] => 2025-03-16 03:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:27:05' and `end` < '2025-03-16 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-03-16 03:27:17] Production.INFO: count ==605 [2025-03-16 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:27:05 - End Time 2025-03-16 03:27:05 [2025-03-16 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690722', 'tblTempUsageDetail_20' ) start [2025-03-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690722', 'tblTempUsageDetail_20' ) end [2025-03-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690722', 'tblTempVendorCDR_20' ) start [2025-03-16 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690722', 'tblTempVendorCDR_20' ) end [2025-03-16 03:27:17] Production.INFO: ProcessCDR(1,14690722,1,1,2) [2025-03-16 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690722', 'tblTempUsageDetail_20' ) start [2025-03-16 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690722', 'tblTempUsageDetail_20' ) end [2025-03-16 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:27:21] Production.INFO: ==24820== Releasing lock... [2025-03-16 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:28:05 [end_date_ymd] => 2025-03-16 03:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:28:05' and `end` < '2025-03-16 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-03-16 03:28:17] Production.INFO: count ==605 [2025-03-16 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:28:05 - End Time 2025-03-16 03:28:05 [2025-03-16 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690727', 'tblTempUsageDetail_20' ) start [2025-03-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690727', 'tblTempUsageDetail_20' ) end [2025-03-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690727', 'tblTempVendorCDR_20' ) start [2025-03-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690727', 'tblTempVendorCDR_20' ) end [2025-03-16 03:28:17] Production.INFO: ProcessCDR(1,14690727,1,1,2) [2025-03-16 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690727', 'tblTempUsageDetail_20' ) start [2025-03-16 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690727', 'tblTempUsageDetail_20' ) end [2025-03-16 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:28:21] Production.INFO: ==24929== Releasing lock... [2025-03-16 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:29:05 [end_date_ymd] => 2025-03-16 03:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:29:05' and `end` < '2025-03-16 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-03-16 03:29:18] Production.INFO: count ==608 [2025-03-16 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:29:05 - End Time 2025-03-16 03:29:05 [2025-03-16 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690732', 'tblTempUsageDetail_20' ) start [2025-03-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690732', 'tblTempUsageDetail_20' ) end [2025-03-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690732', 'tblTempVendorCDR_20' ) start [2025-03-16 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690732', 'tblTempVendorCDR_20' ) end [2025-03-16 03:29:18] Production.INFO: ProcessCDR(1,14690732,1,1,2) [2025-03-16 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690732', 'tblTempUsageDetail_20' ) start [2025-03-16 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690732', 'tblTempUsageDetail_20' ) end [2025-03-16 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:29:21] Production.INFO: ==25038== Releasing lock... [2025-03-16 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:30:06 [end_date_ymd] => 2025-03-16 03:30:06 [RateCDR] => 1 ) [2025-03-16 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:30:06' and `end` < '2025-03-16 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:30:19] Production.INFO: count ==609 [2025-03-16 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 00:30:06 - End Time 2025-03-16 03:30:06 [2025-03-16 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690738', 'tblTempUsageDetail_20' ) start [2025-03-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690738', 'tblTempUsageDetail_20' ) end [2025-03-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690738', 'tblTempVendorCDR_20' ) start [2025-03-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690738', 'tblTempVendorCDR_20' ) end [2025-03-16 03:30:19] Production.INFO: ProcessCDR(1,14690738,1,1,2) [2025-03-16 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690738', 'tblTempUsageDetail_20' ) start [2025-03-16 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690738', 'tblTempUsageDetail_20' ) end [2025-03-16 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:30:22] Production.INFO: ==25144== Releasing lock... [2025-03-16 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:31:06 [end_date_ymd] => 2025-03-16 03:31:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:31:06' and `end` < '2025-03-16 03: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-03-16 03:31:18] Production.INFO: count ==585 [2025-03-16 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:31:06 - End Time 2025-03-16 03:31:06 [2025-03-16 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690743', 'tblTempUsageDetail_20' ) start [2025-03-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690743', 'tblTempUsageDetail_20' ) end [2025-03-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690743', 'tblTempVendorCDR_20' ) start [2025-03-16 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690743', 'tblTempVendorCDR_20' ) end [2025-03-16 03:31:18] Production.INFO: ProcessCDR(1,14690743,1,1,2) [2025-03-16 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690743', 'tblTempUsageDetail_20' ) start [2025-03-16 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690743', 'tblTempUsageDetail_20' ) end [2025-03-16 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:31:22] Production.INFO: ==25237== Releasing lock... [2025-03-16 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:32:06 [end_date_ymd] => 2025-03-16 03:32:06 [RateCDR] => 1 ) [2025-03-16 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:32:06' and `end` < '2025-03-16 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:32:18] Production.INFO: count ==581 [2025-03-16 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:32:06 - End Time 2025-03-16 03:32:06 [2025-03-16 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690748', 'tblTempUsageDetail_20' ) start [2025-03-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690748', 'tblTempUsageDetail_20' ) end [2025-03-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690748', 'tblTempVendorCDR_20' ) start [2025-03-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690748', 'tblTempVendorCDR_20' ) end [2025-03-16 03:32:18] Production.INFO: ProcessCDR(1,14690748,1,1,2) [2025-03-16 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690748', 'tblTempUsageDetail_20' ) start [2025-03-16 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690748', 'tblTempUsageDetail_20' ) end [2025-03-16 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:32:22] Production.INFO: ==25352== Releasing lock... [2025-03-16 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:33:06 [end_date_ymd] => 2025-03-16 03:33:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:33:06' and `end` < '2025-03-16 03: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-03-16 03:33:18] Production.INFO: count ==575 [2025-03-16 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:33:06 - End Time 2025-03-16 03:33:06 [2025-03-16 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690753', 'tblTempUsageDetail_20' ) start [2025-03-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690753', 'tblTempUsageDetail_20' ) end [2025-03-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690753', 'tblTempVendorCDR_20' ) start [2025-03-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690753', 'tblTempVendorCDR_20' ) end [2025-03-16 03:33:18] Production.INFO: ProcessCDR(1,14690753,1,1,2) [2025-03-16 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690753', 'tblTempUsageDetail_20' ) start [2025-03-16 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690753', 'tblTempUsageDetail_20' ) end [2025-03-16 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:33:22] Production.INFO: ==25468== Releasing lock... [2025-03-16 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:34:05 [end_date_ymd] => 2025-03-16 03:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:34:05' and `end` < '2025-03-16 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-03-16 03:34:18] Production.INFO: count ==578 [2025-03-16 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:34:05 - End Time 2025-03-16 03:34:05 [2025-03-16 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690758', 'tblTempUsageDetail_20' ) start [2025-03-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690758', 'tblTempUsageDetail_20' ) end [2025-03-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690758', 'tblTempVendorCDR_20' ) start [2025-03-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690758', 'tblTempVendorCDR_20' ) end [2025-03-16 03:34:18] Production.INFO: ProcessCDR(1,14690758,1,1,2) [2025-03-16 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690758', 'tblTempUsageDetail_20' ) start [2025-03-16 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690758', 'tblTempUsageDetail_20' ) end [2025-03-16 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:34:21] Production.INFO: ==25564== Releasing lock... [2025-03-16 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:35:05 [end_date_ymd] => 2025-03-16 03:35:05 [RateCDR] => 1 ) [2025-03-16 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:35:05' and `end` < '2025-03-16 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:35:18] Production.INFO: count ==583 [2025-03-16 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:35:05 - End Time 2025-03-16 03:35:05 [2025-03-16 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690763', 'tblTempUsageDetail_20' ) start [2025-03-16 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690763', 'tblTempUsageDetail_20' ) end [2025-03-16 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690763', 'tblTempVendorCDR_20' ) start [2025-03-16 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690763', 'tblTempVendorCDR_20' ) end [2025-03-16 03:35:18] Production.INFO: ProcessCDR(1,14690763,1,1,2) [2025-03-16 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690763', 'tblTempUsageDetail_20' ) start [2025-03-16 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690763', 'tblTempUsageDetail_20' ) end [2025-03-16 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:35:22] Production.INFO: ==25653== Releasing lock... [2025-03-16 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:36:05 [end_date_ymd] => 2025-03-16 03:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:36:05' and `end` < '2025-03-16 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-03-16 03:36:18] Production.INFO: count ==587 [2025-03-16 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:36:05 - End Time 2025-03-16 03:36:05 [2025-03-16 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690768', 'tblTempUsageDetail_20' ) start [2025-03-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690768', 'tblTempUsageDetail_20' ) end [2025-03-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690768', 'tblTempVendorCDR_20' ) start [2025-03-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690768', 'tblTempVendorCDR_20' ) end [2025-03-16 03:36:18] Production.INFO: ProcessCDR(1,14690768,1,1,2) [2025-03-16 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690768', 'tblTempUsageDetail_20' ) start [2025-03-16 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690768', 'tblTempUsageDetail_20' ) end [2025-03-16 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:36:22] Production.INFO: ==25744== Releasing lock... [2025-03-16 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:37:06 [end_date_ymd] => 2025-03-16 03:37:06 [RateCDR] => 1 ) [2025-03-16 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:37:06' and `end` < '2025-03-16 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:37:18] Production.INFO: count ==593 [2025-03-16 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:37:06 - End Time 2025-03-16 03:37:06 [2025-03-16 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690773', 'tblTempUsageDetail_20' ) start [2025-03-16 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690773', 'tblTempUsageDetail_20' ) end [2025-03-16 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690773', 'tblTempVendorCDR_20' ) start [2025-03-16 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690773', 'tblTempVendorCDR_20' ) end [2025-03-16 03:37:18] Production.INFO: ProcessCDR(1,14690773,1,1,2) [2025-03-16 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690773', 'tblTempUsageDetail_20' ) start [2025-03-16 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690773', 'tblTempUsageDetail_20' ) end [2025-03-16 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:37:22] Production.INFO: ==25836== Releasing lock... [2025-03-16 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:38:06 [end_date_ymd] => 2025-03-16 03:38:06 [RateCDR] => 1 ) [2025-03-16 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:38:06' and `end` < '2025-03-16 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:38:18] Production.INFO: count ==602 [2025-03-16 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:38:06 - End Time 2025-03-16 03:38:06 [2025-03-16 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690778', 'tblTempUsageDetail_20' ) start [2025-03-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690778', 'tblTempUsageDetail_20' ) end [2025-03-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690778', 'tblTempVendorCDR_20' ) start [2025-03-16 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690778', 'tblTempVendorCDR_20' ) end [2025-03-16 03:38:18] Production.INFO: ProcessCDR(1,14690778,1,1,2) [2025-03-16 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690778', 'tblTempUsageDetail_20' ) start [2025-03-16 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690778', 'tblTempUsageDetail_20' ) end [2025-03-16 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:38:22] Production.INFO: ==25932== Releasing lock... [2025-03-16 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:38:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:39:06 [end_date_ymd] => 2025-03-16 03:39:06 [RateCDR] => 1 ) [2025-03-16 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:39:06' and `end` < '2025-03-16 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:39:19] Production.INFO: count ==602 [2025-03-16 03:39:19] Production.ERROR: pbx CDR StartTime 2025-03-16 00:39:06 - End Time 2025-03-16 03:39:06 [2025-03-16 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690783', 'tblTempUsageDetail_20' ) start [2025-03-16 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690783', 'tblTempUsageDetail_20' ) end [2025-03-16 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690783', 'tblTempVendorCDR_20' ) start [2025-03-16 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690783', 'tblTempVendorCDR_20' ) end [2025-03-16 03:39:19] Production.INFO: ProcessCDR(1,14690783,1,1,2) [2025-03-16 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690783', 'tblTempUsageDetail_20' ) start [2025-03-16 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690783', 'tblTempUsageDetail_20' ) end [2025-03-16 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:39:23] Production.INFO: ==26028== Releasing lock... [2025-03-16 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:39:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:40:06 [end_date_ymd] => 2025-03-16 03:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:40:06' and `end` < '2025-03-16 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-03-16 03:40:19] Production.INFO: count ==610 [2025-03-16 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-16 00:40:06 - End Time 2025-03-16 03:40:06 [2025-03-16 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690789', 'tblTempUsageDetail_20' ) start [2025-03-16 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690789', 'tblTempUsageDetail_20' ) end [2025-03-16 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690789', 'tblTempVendorCDR_20' ) start [2025-03-16 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690789', 'tblTempVendorCDR_20' ) end [2025-03-16 03:40:19] Production.INFO: ProcessCDR(1,14690789,1,1,2) [2025-03-16 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690789', 'tblTempUsageDetail_20' ) start [2025-03-16 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690789', 'tblTempUsageDetail_20' ) end [2025-03-16 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:40:23] Production.INFO: ==26126== Releasing lock... [2025-03-16 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:40:23] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:41:05 [end_date_ymd] => 2025-03-16 03:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:41:05' and `end` < '2025-03-16 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-03-16 03:41:17] Production.INFO: count ==591 [2025-03-16 03:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:41:05 - End Time 2025-03-16 03:41:05 [2025-03-16 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690794', 'tblTempUsageDetail_20' ) start [2025-03-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690794', 'tblTempUsageDetail_20' ) end [2025-03-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690794', 'tblTempVendorCDR_20' ) start [2025-03-16 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690794', 'tblTempVendorCDR_20' ) end [2025-03-16 03:41:17] Production.INFO: ProcessCDR(1,14690794,1,1,2) [2025-03-16 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690794', 'tblTempUsageDetail_20' ) start [2025-03-16 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690794', 'tblTempUsageDetail_20' ) end [2025-03-16 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:41:21] Production.INFO: ==26258== Releasing lock... [2025-03-16 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:42:06 [end_date_ymd] => 2025-03-16 03:42:06 [RateCDR] => 1 ) [2025-03-16 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:42:06' and `end` < '2025-03-16 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:42:18] Production.INFO: count ==591 [2025-03-16 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:42:06 - End Time 2025-03-16 03:42:06 [2025-03-16 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690799', 'tblTempUsageDetail_20' ) start [2025-03-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690799', 'tblTempUsageDetail_20' ) end [2025-03-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690799', 'tblTempVendorCDR_20' ) start [2025-03-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690799', 'tblTempVendorCDR_20' ) end [2025-03-16 03:42:18] Production.INFO: ProcessCDR(1,14690799,1,1,2) [2025-03-16 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690799', 'tblTempUsageDetail_20' ) start [2025-03-16 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690799', 'tblTempUsageDetail_20' ) end [2025-03-16 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:42:22] Production.INFO: ==26349== Releasing lock... [2025-03-16 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:43:05 [end_date_ymd] => 2025-03-16 03:43:05 [RateCDR] => 1 ) [2025-03-16 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:43:05' and `end` < '2025-03-16 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:43:17] Production.INFO: count ==591 [2025-03-16 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:43:05 - End Time 2025-03-16 03:43:05 [2025-03-16 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690804', 'tblTempUsageDetail_20' ) start [2025-03-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690804', 'tblTempUsageDetail_20' ) end [2025-03-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690804', 'tblTempVendorCDR_20' ) start [2025-03-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690804', 'tblTempVendorCDR_20' ) end [2025-03-16 03:43:18] Production.INFO: ProcessCDR(1,14690804,1,1,2) [2025-03-16 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690804', 'tblTempUsageDetail_20' ) start [2025-03-16 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690804', 'tblTempUsageDetail_20' ) end [2025-03-16 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:43:21] Production.INFO: ==26446== Releasing lock... [2025-03-16 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:44:06 [end_date_ymd] => 2025-03-16 03:44:06 [RateCDR] => 1 ) [2025-03-16 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:44:06' and `end` < '2025-03-16 03: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-03-16 03:44:18] Production.INFO: count ==594 [2025-03-16 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:44:06 - End Time 2025-03-16 03:44:06 [2025-03-16 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690809', 'tblTempUsageDetail_20' ) start [2025-03-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690809', 'tblTempUsageDetail_20' ) end [2025-03-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690809', 'tblTempVendorCDR_20' ) start [2025-03-16 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690809', 'tblTempVendorCDR_20' ) end [2025-03-16 03:44:18] Production.INFO: ProcessCDR(1,14690809,1,1,2) [2025-03-16 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690809', 'tblTempUsageDetail_20' ) start [2025-03-16 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690809', 'tblTempUsageDetail_20' ) end [2025-03-16 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:44:22] Production.INFO: ==26539== Releasing lock... [2025-03-16 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:44:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:45:05 [end_date_ymd] => 2025-03-16 03:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:45:05' and `end` < '2025-03-16 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-03-16 03:45:17] Production.INFO: count ==594 [2025-03-16 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:45:05 - End Time 2025-03-16 03:45:05 [2025-03-16 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690814', 'tblTempUsageDetail_20' ) start [2025-03-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690814', 'tblTempUsageDetail_20' ) end [2025-03-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690814', 'tblTempVendorCDR_20' ) start [2025-03-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690814', 'tblTempVendorCDR_20' ) end [2025-03-16 03:45:18] Production.INFO: ProcessCDR(1,14690814,1,1,2) [2025-03-16 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690814', 'tblTempUsageDetail_20' ) start [2025-03-16 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690814', 'tblTempUsageDetail_20' ) end [2025-03-16 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:45:21] Production.INFO: ==26637== Releasing lock... [2025-03-16 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:45:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:46:05 [end_date_ymd] => 2025-03-16 03:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:46:05' and `end` < '2025-03-16 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:46:18] Production.INFO: count ==595 [2025-03-16 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:46:05 - End Time 2025-03-16 03:46:05 [2025-03-16 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690819', 'tblTempUsageDetail_20' ) start [2025-03-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690819', 'tblTempUsageDetail_20' ) end [2025-03-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690819', 'tblTempVendorCDR_20' ) start [2025-03-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690819', 'tblTempVendorCDR_20' ) end [2025-03-16 03:46:18] Production.INFO: ProcessCDR(1,14690819,1,1,2) [2025-03-16 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690819', 'tblTempUsageDetail_20' ) start [2025-03-16 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690819', 'tblTempUsageDetail_20' ) end [2025-03-16 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:46:21] Production.INFO: ==26727== Releasing lock... [2025-03-16 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:46:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:47:05 [end_date_ymd] => 2025-03-16 03:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:47:05' and `end` < '2025-03-16 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-03-16 03:47:17] Production.INFO: count ==597 [2025-03-16 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:47:05 - End Time 2025-03-16 03:47:05 [2025-03-16 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690824', 'tblTempUsageDetail_20' ) start [2025-03-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690824', 'tblTempUsageDetail_20' ) end [2025-03-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690824', 'tblTempVendorCDR_20' ) start [2025-03-16 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690824', 'tblTempVendorCDR_20' ) end [2025-03-16 03:47:17] Production.INFO: ProcessCDR(1,14690824,1,1,2) [2025-03-16 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690824', 'tblTempUsageDetail_20' ) start [2025-03-16 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690824', 'tblTempUsageDetail_20' ) end [2025-03-16 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:47:21] Production.INFO: ==26821== Releasing lock... [2025-03-16 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:48:05 [end_date_ymd] => 2025-03-16 03:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:48:05' and `end` < '2025-03-16 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-03-16 03:48:17] Production.INFO: count ==597 [2025-03-16 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:48:05 - End Time 2025-03-16 03:48:05 [2025-03-16 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690829', 'tblTempUsageDetail_20' ) start [2025-03-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690829', 'tblTempUsageDetail_20' ) end [2025-03-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690829', 'tblTempVendorCDR_20' ) start [2025-03-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690829', 'tblTempVendorCDR_20' ) end [2025-03-16 03:48:18] Production.INFO: ProcessCDR(1,14690829,1,1,2) [2025-03-16 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690829', 'tblTempUsageDetail_20' ) start [2025-03-16 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690829', 'tblTempUsageDetail_20' ) end [2025-03-16 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:48:21] Production.INFO: ==26912== Releasing lock... [2025-03-16 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:49:05 [end_date_ymd] => 2025-03-16 03:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:49:05' and `end` < '2025-03-16 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-03-16 03:49:17] Production.INFO: count ==597 [2025-03-16 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:49:05 - End Time 2025-03-16 03:49:05 [2025-03-16 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690834', 'tblTempUsageDetail_20' ) start [2025-03-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690834', 'tblTempUsageDetail_20' ) end [2025-03-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690834', 'tblTempVendorCDR_20' ) start [2025-03-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690834', 'tblTempVendorCDR_20' ) end [2025-03-16 03:49:17] Production.INFO: ProcessCDR(1,14690834,1,1,2) [2025-03-16 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690834', 'tblTempUsageDetail_20' ) start [2025-03-16 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690834', 'tblTempUsageDetail_20' ) end [2025-03-16 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:49:21] Production.INFO: ==27006== Releasing lock... [2025-03-16 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:50:07 [end_date_ymd] => 2025-03-16 03:50:07 [RateCDR] => 1 ) [2025-03-16 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:50:07' and `end` < '2025-03-16 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:50:19] Production.INFO: count ==597 [2025-03-16 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-16 00:50:07 - End Time 2025-03-16 03:50:07 [2025-03-16 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690839', 'tblTempUsageDetail_20' ) start [2025-03-16 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690839', 'tblTempUsageDetail_20' ) end [2025-03-16 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690839', 'tblTempVendorCDR_20' ) start [2025-03-16 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690839', 'tblTempVendorCDR_20' ) end [2025-03-16 03:50:19] Production.INFO: ProcessCDR(1,14690839,1,1,2) [2025-03-16 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690839', 'tblTempUsageDetail_20' ) start [2025-03-16 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690839', 'tblTempUsageDetail_20' ) end [2025-03-16 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:50:23] Production.INFO: ==27099== Releasing lock... [2025-03-16 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:50:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:51:05 [end_date_ymd] => 2025-03-16 03:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:51:05' and `end` < '2025-03-16 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-03-16 03:51:17] Production.INFO: count ==594 [2025-03-16 03:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:51:05 - End Time 2025-03-16 03:51:05 [2025-03-16 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690845', 'tblTempUsageDetail_20' ) start [2025-03-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690845', 'tblTempUsageDetail_20' ) end [2025-03-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690845', 'tblTempVendorCDR_20' ) start [2025-03-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690845', 'tblTempVendorCDR_20' ) end [2025-03-16 03:51:17] Production.INFO: ProcessCDR(1,14690845,1,1,2) [2025-03-16 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690845', 'tblTempUsageDetail_20' ) start [2025-03-16 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690845', 'tblTempUsageDetail_20' ) end [2025-03-16 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:51:21] Production.INFO: ==27193== Releasing lock... [2025-03-16 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:51:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:52:06 [end_date_ymd] => 2025-03-16 03:52:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:52:06' and `end` < '2025-03-16 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-03-16 03:52:18] Production.INFO: count ==596 [2025-03-16 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:52:06 - End Time 2025-03-16 03:52:06 [2025-03-16 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690850', 'tblTempUsageDetail_20' ) start [2025-03-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690850', 'tblTempUsageDetail_20' ) end [2025-03-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690850', 'tblTempVendorCDR_20' ) start [2025-03-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690850', 'tblTempVendorCDR_20' ) end [2025-03-16 03:52:18] Production.INFO: ProcessCDR(1,14690850,1,1,2) [2025-03-16 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690850', 'tblTempUsageDetail_20' ) start [2025-03-16 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690850', 'tblTempUsageDetail_20' ) end [2025-03-16 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:52:21] Production.INFO: ==27284== Releasing lock... [2025-03-16 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:52:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:53:05 [end_date_ymd] => 2025-03-16 03:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:53:05' and `end` < '2025-03-16 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-03-16 03:53:17] Production.INFO: count ==597 [2025-03-16 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:53:05 - End Time 2025-03-16 03:53:05 [2025-03-16 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690855', 'tblTempUsageDetail_20' ) start [2025-03-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690855', 'tblTempUsageDetail_20' ) end [2025-03-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690855', 'tblTempVendorCDR_20' ) start [2025-03-16 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690855', 'tblTempVendorCDR_20' ) end [2025-03-16 03:53:17] Production.INFO: ProcessCDR(1,14690855,1,1,2) [2025-03-16 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690855', 'tblTempUsageDetail_20' ) start [2025-03-16 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690855', 'tblTempUsageDetail_20' ) end [2025-03-16 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:53:21] Production.INFO: ==27374== Releasing lock... [2025-03-16 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:54:06 [end_date_ymd] => 2025-03-16 03:54:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:54:06' and `end` < '2025-03-16 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-03-16 03:54:18] Production.INFO: count ==596 [2025-03-16 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:54:06 - End Time 2025-03-16 03:54:06 [2025-03-16 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690860', 'tblTempUsageDetail_20' ) start [2025-03-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690860', 'tblTempUsageDetail_20' ) end [2025-03-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690860', 'tblTempVendorCDR_20' ) start [2025-03-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690860', 'tblTempVendorCDR_20' ) end [2025-03-16 03:54:18] Production.INFO: ProcessCDR(1,14690860,1,1,2) [2025-03-16 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690860', 'tblTempUsageDetail_20' ) start [2025-03-16 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690860', 'tblTempUsageDetail_20' ) end [2025-03-16 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:54:22] Production.INFO: ==27465== Releasing lock... [2025-03-16 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:55:06 [end_date_ymd] => 2025-03-16 03:55:06 [RateCDR] => 1 ) [2025-03-16 03: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-03-16 00:55:06' and `end` < '2025-03-16 03: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-03-16 03:55:18] Production.INFO: count ==596 [2025-03-16 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:55:06 - End Time 2025-03-16 03:55:06 [2025-03-16 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690865', 'tblTempUsageDetail_20' ) start [2025-03-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690865', 'tblTempUsageDetail_20' ) end [2025-03-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690865', 'tblTempVendorCDR_20' ) start [2025-03-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690865', 'tblTempVendorCDR_20' ) end [2025-03-16 03:55:18] Production.INFO: ProcessCDR(1,14690865,1,1,2) [2025-03-16 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690865', 'tblTempUsageDetail_20' ) start [2025-03-16 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690865', 'tblTempUsageDetail_20' ) end [2025-03-16 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:55:22] Production.INFO: ==27553== Releasing lock... [2025-03-16 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:56:06 [end_date_ymd] => 2025-03-16 03:56:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 00:56:06' and `end` < '2025-03-16 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-03-16 03:56:18] Production.INFO: count ==595 [2025-03-16 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:56:06 - End Time 2025-03-16 03:56:06 [2025-03-16 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690870', 'tblTempUsageDetail_20' ) start [2025-03-16 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690870', 'tblTempUsageDetail_20' ) end [2025-03-16 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690870', 'tblTempVendorCDR_20' ) start [2025-03-16 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690870', 'tblTempVendorCDR_20' ) end [2025-03-16 03:56:19] Production.INFO: ProcessCDR(1,14690870,1,1,2) [2025-03-16 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690870', 'tblTempUsageDetail_20' ) start [2025-03-16 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690870', 'tblTempUsageDetail_20' ) end [2025-03-16 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:56:22] Production.INFO: ==27680== Releasing lock... [2025-03-16 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:56:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:57:06 [end_date_ymd] => 2025-03-16 03:57:06 [RateCDR] => 1 ) [2025-03-16 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:57:06' and `end` < '2025-03-16 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:57:18] Production.INFO: count ==595 [2025-03-16 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:57:06 - End Time 2025-03-16 03:57:06 [2025-03-16 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690875', 'tblTempUsageDetail_20' ) start [2025-03-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690875', 'tblTempUsageDetail_20' ) end [2025-03-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690875', 'tblTempVendorCDR_20' ) start [2025-03-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690875', 'tblTempVendorCDR_20' ) end [2025-03-16 03:57:18] Production.INFO: ProcessCDR(1,14690875,1,1,2) [2025-03-16 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690875', 'tblTempUsageDetail_20' ) start [2025-03-16 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690875', 'tblTempUsageDetail_20' ) end [2025-03-16 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:57:22] Production.INFO: ==27767== Releasing lock... [2025-03-16 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:57:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:58:06 [end_date_ymd] => 2025-03-16 03:58:06 [RateCDR] => 1 ) [2025-03-16 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:58:06' and `end` < '2025-03-16 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 03:58:18] Production.INFO: count ==592 [2025-03-16 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 00:58:06 - End Time 2025-03-16 03:58:06 [2025-03-16 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690880', 'tblTempUsageDetail_20' ) start [2025-03-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690880', 'tblTempUsageDetail_20' ) end [2025-03-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690880', 'tblTempVendorCDR_20' ) start [2025-03-16 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690880', 'tblTempVendorCDR_20' ) end [2025-03-16 03:58:18] Production.INFO: ProcessCDR(1,14690880,1,1,2) [2025-03-16 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690880', 'tblTempUsageDetail_20' ) start [2025-03-16 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690880', 'tblTempUsageDetail_20' ) end [2025-03-16 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:58:22] Production.INFO: ==27858== Releasing lock... [2025-03-16 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 00:59:05 [end_date_ymd] => 2025-03-16 03:59:05 [RateCDR] => 1 ) [2025-03-16 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 00:59:05' and `end` < '2025-03-16 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-03-16 03:59:17] Production.INFO: count ==592 [2025-03-16 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 00:59:05 - End Time 2025-03-16 03:59:05 [2025-03-16 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690885', 'tblTempUsageDetail_20' ) start [2025-03-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690885', 'tblTempUsageDetail_20' ) end [2025-03-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690885', 'tblTempVendorCDR_20' ) start [2025-03-16 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690885', 'tblTempVendorCDR_20' ) end [2025-03-16 03:59:17] Production.INFO: ProcessCDR(1,14690885,1,1,2) [2025-03-16 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690885', 'tblTempUsageDetail_20' ) start [2025-03-16 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690885', 'tblTempUsageDetail_20' ) end [2025-03-16 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 03:59:21] Production.INFO: ==27946== Releasing lock... [2025-03-16 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 03:59:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:00:06 [end_date_ymd] => 2025-03-16 04:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:00:06' and `end` < '2025-03-16 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-03-16 04:00:18] Production.INFO: count ==583 [2025-03-16 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:00:06 - End Time 2025-03-16 04:00:06 [2025-03-16 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690891', 'tblTempUsageDetail_20' ) start [2025-03-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690891', 'tblTempUsageDetail_20' ) end [2025-03-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690891', 'tblTempVendorCDR_20' ) start [2025-03-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690891', 'tblTempVendorCDR_20' ) end [2025-03-16 04:00:18] Production.INFO: ProcessCDR(1,14690891,1,1,2) [2025-03-16 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690891', 'tblTempUsageDetail_20' ) start [2025-03-16 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690891', 'tblTempUsageDetail_20' ) end [2025-03-16 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:00:22] Production.INFO: ==28039== Releasing lock... [2025-03-16 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:00:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:01:06 [end_date_ymd] => 2025-03-16 04:01:06 [RateCDR] => 1 ) [2025-03-16 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:01:06' and `end` < '2025-03-16 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:01:18] Production.INFO: count ==571 [2025-03-16 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-16 01:01:06 - End Time 2025-03-16 04:01:06 [2025-03-16 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690897', 'tblTempUsageDetail_20' ) start [2025-03-16 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690897', 'tblTempUsageDetail_20' ) end [2025-03-16 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690897', 'tblTempVendorCDR_20' ) start [2025-03-16 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690897', 'tblTempVendorCDR_20' ) end [2025-03-16 04:01:19] Production.INFO: ProcessCDR(1,14690897,1,1,2) [2025-03-16 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690897', 'tblTempUsageDetail_20' ) start [2025-03-16 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690897', 'tblTempUsageDetail_20' ) end [2025-03-16 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:01:22] Production.INFO: ==28141== Releasing lock... [2025-03-16 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:02:06 [end_date_ymd] => 2025-03-16 04:02:06 [RateCDR] => 1 ) [2025-03-16 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:02:06' and `end` < '2025-03-16 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:02:18] Production.INFO: count ==565 [2025-03-16 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:02:06 - End Time 2025-03-16 04:02:06 [2025-03-16 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690902', 'tblTempUsageDetail_20' ) start [2025-03-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690902', 'tblTempUsageDetail_20' ) end [2025-03-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690902', 'tblTempVendorCDR_20' ) start [2025-03-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690902', 'tblTempVendorCDR_20' ) end [2025-03-16 04:02:18] Production.INFO: ProcessCDR(1,14690902,1,1,2) [2025-03-16 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690902', 'tblTempUsageDetail_20' ) start [2025-03-16 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690902', 'tblTempUsageDetail_20' ) end [2025-03-16 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:02:22] Production.INFO: ==28231== Releasing lock... [2025-03-16 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:02:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:03:05 [end_date_ymd] => 2025-03-16 04:03:05 [RateCDR] => 1 ) [2025-03-16 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:03:05' and `end` < '2025-03-16 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:03:17] Production.INFO: count ==565 [2025-03-16 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:03:05 - End Time 2025-03-16 04:03:05 [2025-03-16 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690907', 'tblTempUsageDetail_20' ) start [2025-03-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690907', 'tblTempUsageDetail_20' ) end [2025-03-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690907', 'tblTempVendorCDR_20' ) start [2025-03-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690907', 'tblTempVendorCDR_20' ) end [2025-03-16 04:03:17] Production.INFO: ProcessCDR(1,14690907,1,1,2) [2025-03-16 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690907', 'tblTempUsageDetail_20' ) start [2025-03-16 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690907', 'tblTempUsageDetail_20' ) end [2025-03-16 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:03:21] Production.INFO: ==28316== Releasing lock... [2025-03-16 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:04:05 [end_date_ymd] => 2025-03-16 04:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:04:05' and `end` < '2025-03-16 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-03-16 04:04:18] Production.INFO: count ==565 [2025-03-16 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:04:05 - End Time 2025-03-16 04:04:05 [2025-03-16 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690912', 'tblTempUsageDetail_20' ) start [2025-03-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690912', 'tblTempUsageDetail_20' ) end [2025-03-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690912', 'tblTempVendorCDR_20' ) start [2025-03-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690912', 'tblTempVendorCDR_20' ) end [2025-03-16 04:04:18] Production.INFO: ProcessCDR(1,14690912,1,1,2) [2025-03-16 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690912', 'tblTempUsageDetail_20' ) start [2025-03-16 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690912', 'tblTempUsageDetail_20' ) end [2025-03-16 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:04:21] Production.INFO: ==28404== Releasing lock... [2025-03-16 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:05:05 [end_date_ymd] => 2025-03-16 04:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:05:05' and `end` < '2025-03-16 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-03-16 04:05:17] Production.INFO: count ==560 [2025-03-16 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:05:05 - End Time 2025-03-16 04:05:05 [2025-03-16 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690917', 'tblTempUsageDetail_20' ) start [2025-03-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690917', 'tblTempUsageDetail_20' ) end [2025-03-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690917', 'tblTempVendorCDR_20' ) start [2025-03-16 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690917', 'tblTempVendorCDR_20' ) end [2025-03-16 04:05:17] Production.INFO: ProcessCDR(1,14690917,1,1,2) [2025-03-16 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690917', 'tblTempUsageDetail_20' ) start [2025-03-16 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690917', 'tblTempUsageDetail_20' ) end [2025-03-16 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:05:21] Production.INFO: ==28490== Releasing lock... [2025-03-16 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:06:05 [end_date_ymd] => 2025-03-16 04:06:05 [RateCDR] => 1 ) [2025-03-16 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:06:05' and `end` < '2025-03-16 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:06:18] Production.INFO: count ==560 [2025-03-16 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:06:05 - End Time 2025-03-16 04:06:05 [2025-03-16 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690922', 'tblTempUsageDetail_20' ) start [2025-03-16 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690922', 'tblTempUsageDetail_20' ) end [2025-03-16 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690922', 'tblTempVendorCDR_20' ) start [2025-03-16 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690922', 'tblTempVendorCDR_20' ) end [2025-03-16 04:06:18] Production.INFO: ProcessCDR(1,14690922,1,1,2) [2025-03-16 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690922', 'tblTempUsageDetail_20' ) start [2025-03-16 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690922', 'tblTempUsageDetail_20' ) end [2025-03-16 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:06:21] Production.INFO: ==28584== Releasing lock... [2025-03-16 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:07:05 [end_date_ymd] => 2025-03-16 04:07:05 [RateCDR] => 1 ) [2025-03-16 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:07:05' and `end` < '2025-03-16 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:07:17] Production.INFO: count ==556 [2025-03-16 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:07:05 - End Time 2025-03-16 04:07:05 [2025-03-16 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690927', 'tblTempUsageDetail_20' ) start [2025-03-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690927', 'tblTempUsageDetail_20' ) end [2025-03-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690927', 'tblTempVendorCDR_20' ) start [2025-03-16 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690927', 'tblTempVendorCDR_20' ) end [2025-03-16 04:07:17] Production.INFO: ProcessCDR(1,14690927,1,1,2) [2025-03-16 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690927', 'tblTempUsageDetail_20' ) start [2025-03-16 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690927', 'tblTempUsageDetail_20' ) end [2025-03-16 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:07:21] Production.INFO: ==28676== Releasing lock... [2025-03-16 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:08:05 [end_date_ymd] => 2025-03-16 04:08:05 [RateCDR] => 1 ) [2025-03-16 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:08:05' and `end` < '2025-03-16 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:08:18] Production.INFO: count ==552 [2025-03-16 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:08:05 - End Time 2025-03-16 04:08:05 [2025-03-16 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690932', 'tblTempUsageDetail_20' ) start [2025-03-16 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690932', 'tblTempUsageDetail_20' ) end [2025-03-16 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690932', 'tblTempVendorCDR_20' ) start [2025-03-16 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690932', 'tblTempVendorCDR_20' ) end [2025-03-16 04:08:18] Production.INFO: ProcessCDR(1,14690932,1,1,2) [2025-03-16 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690932', 'tblTempUsageDetail_20' ) start [2025-03-16 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690932', 'tblTempUsageDetail_20' ) end [2025-03-16 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:08:22] Production.INFO: ==28771== Releasing lock... [2025-03-16 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:09:05 [end_date_ymd] => 2025-03-16 04:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:09:05' and `end` < '2025-03-16 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-03-16 04:09:18] Production.INFO: count ==551 [2025-03-16 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:09:05 - End Time 2025-03-16 04:09:05 [2025-03-16 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690937', 'tblTempUsageDetail_20' ) start [2025-03-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690937', 'tblTempUsageDetail_20' ) end [2025-03-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690937', 'tblTempVendorCDR_20' ) start [2025-03-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690937', 'tblTempVendorCDR_20' ) end [2025-03-16 04:09:18] Production.INFO: ProcessCDR(1,14690937,1,1,2) [2025-03-16 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690937', 'tblTempUsageDetail_20' ) start [2025-03-16 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690937', 'tblTempUsageDetail_20' ) end [2025-03-16 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:09:21] Production.INFO: ==28863== Releasing lock... [2025-03-16 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:09:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:10:06 [end_date_ymd] => 2025-03-16 04:10:06 [RateCDR] => 1 ) [2025-03-16 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:10:06' and `end` < '2025-03-16 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:10:18] Production.INFO: count ==547 [2025-03-16 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:10:06 - End Time 2025-03-16 04:10:06 [2025-03-16 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690942', 'tblTempUsageDetail_20' ) start [2025-03-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690942', 'tblTempUsageDetail_20' ) end [2025-03-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690942', 'tblTempVendorCDR_20' ) start [2025-03-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690942', 'tblTempVendorCDR_20' ) end [2025-03-16 04:10:18] Production.INFO: ProcessCDR(1,14690942,1,1,2) [2025-03-16 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690942', 'tblTempUsageDetail_20' ) start [2025-03-16 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690942', 'tblTempUsageDetail_20' ) end [2025-03-16 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:10:22] Production.INFO: ==28960== Releasing lock... [2025-03-16 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:11:05 [end_date_ymd] => 2025-03-16 04:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:11:05' and `end` < '2025-03-16 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-03-16 04:11:17] Production.INFO: count ==517 [2025-03-16 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:11:05 - End Time 2025-03-16 04:11:05 [2025-03-16 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690948', 'tblTempUsageDetail_20' ) start [2025-03-16 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690948', 'tblTempUsageDetail_20' ) end [2025-03-16 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690948', 'tblTempVendorCDR_20' ) start [2025-03-16 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690948', 'tblTempVendorCDR_20' ) end [2025-03-16 04:11:17] Production.INFO: ProcessCDR(1,14690948,1,1,2) [2025-03-16 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690948', 'tblTempUsageDetail_20' ) start [2025-03-16 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690948', 'tblTempUsageDetail_20' ) end [2025-03-16 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:11:20] Production.INFO: ==29053== Releasing lock... [2025-03-16 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:11:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:12:05 [end_date_ymd] => 2025-03-16 04:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:12:05' and `end` < '2025-03-16 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-03-16 04:12:17] Production.INFO: count ==516 [2025-03-16 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:12:05 - End Time 2025-03-16 04:12:05 [2025-03-16 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690953', 'tblTempUsageDetail_20' ) start [2025-03-16 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690953', 'tblTempUsageDetail_20' ) end [2025-03-16 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690953', 'tblTempVendorCDR_20' ) start [2025-03-16 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690953', 'tblTempVendorCDR_20' ) end [2025-03-16 04:12:18] Production.INFO: ProcessCDR(1,14690953,1,1,2) [2025-03-16 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690953', 'tblTempUsageDetail_20' ) start [2025-03-16 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690953', 'tblTempUsageDetail_20' ) end [2025-03-16 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:12:21] Production.INFO: ==29184== Releasing lock... [2025-03-16 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:12:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:13:05 [end_date_ymd] => 2025-03-16 04:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:13:05' and `end` < '2025-03-16 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-03-16 04:13:17] Production.INFO: count ==514 [2025-03-16 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:13:05 - End Time 2025-03-16 04:13:05 [2025-03-16 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690958', 'tblTempUsageDetail_20' ) start [2025-03-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690958', 'tblTempUsageDetail_20' ) end [2025-03-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690958', 'tblTempVendorCDR_20' ) start [2025-03-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690958', 'tblTempVendorCDR_20' ) end [2025-03-16 04:13:17] Production.INFO: ProcessCDR(1,14690958,1,1,2) [2025-03-16 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690958', 'tblTempUsageDetail_20' ) start [2025-03-16 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690958', 'tblTempUsageDetail_20' ) end [2025-03-16 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:13:20] Production.INFO: ==29279== Releasing lock... [2025-03-16 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:13:20] Production.INFO: 32 MB #Memory Used# [2025-03-16 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:14:06 [end_date_ymd] => 2025-03-16 04:14:06 [RateCDR] => 1 ) [2025-03-16 04: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-03-16 01:14:06' and `end` < '2025-03-16 04: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-03-16 04:14:18] Production.INFO: count ==505 [2025-03-16 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:14:06 - End Time 2025-03-16 04:14:06 [2025-03-16 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690963', 'tblTempUsageDetail_20' ) start [2025-03-16 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690963', 'tblTempUsageDetail_20' ) end [2025-03-16 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690963', 'tblTempVendorCDR_20' ) start [2025-03-16 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690963', 'tblTempVendorCDR_20' ) end [2025-03-16 04:14:18] Production.INFO: ProcessCDR(1,14690963,1,1,2) [2025-03-16 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690963', 'tblTempUsageDetail_20' ) start [2025-03-16 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690963', 'tblTempUsageDetail_20' ) end [2025-03-16 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:14:21] Production.INFO: ==29369== Releasing lock... [2025-03-16 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:14:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:15:05 [end_date_ymd] => 2025-03-16 04:15:05 [RateCDR] => 1 ) [2025-03-16 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:15:05' and `end` < '2025-03-16 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:15:17] Production.INFO: count ==501 [2025-03-16 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:15:05 - End Time 2025-03-16 04:15:05 [2025-03-16 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690968', 'tblTempUsageDetail_20' ) start [2025-03-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690968', 'tblTempUsageDetail_20' ) end [2025-03-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690968', 'tblTempVendorCDR_20' ) start [2025-03-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690968', 'tblTempVendorCDR_20' ) end [2025-03-16 04:15:17] Production.INFO: ProcessCDR(1,14690968,1,1,2) [2025-03-16 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690968', 'tblTempUsageDetail_20' ) start [2025-03-16 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690968', 'tblTempUsageDetail_20' ) end [2025-03-16 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:15:20] Production.INFO: ==29470== Releasing lock... [2025-03-16 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:15:20] Production.INFO: 32 MB #Memory Used# [2025-03-16 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:16:05 [end_date_ymd] => 2025-03-16 04:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:16:05' and `end` < '2025-03-16 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-03-16 04:16:18] Production.INFO: count ==493 [2025-03-16 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:16:05 - End Time 2025-03-16 04:16:05 [2025-03-16 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690973', 'tblTempUsageDetail_20' ) start [2025-03-16 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690973', 'tblTempUsageDetail_20' ) end [2025-03-16 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690973', 'tblTempVendorCDR_20' ) start [2025-03-16 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690973', 'tblTempVendorCDR_20' ) end [2025-03-16 04:16:18] Production.INFO: ProcessCDR(1,14690973,1,1,2) [2025-03-16 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690973', 'tblTempUsageDetail_20' ) start [2025-03-16 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690973', 'tblTempUsageDetail_20' ) end [2025-03-16 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:16:21] Production.INFO: ==29561== Releasing lock... [2025-03-16 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-16 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:17:05 [end_date_ymd] => 2025-03-16 04:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:17:05' and `end` < '2025-03-16 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-03-16 04:17:17] Production.INFO: count ==493 [2025-03-16 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:17:05 - End Time 2025-03-16 04:17:05 [2025-03-16 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690978', 'tblTempUsageDetail_20' ) start [2025-03-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690978', 'tblTempUsageDetail_20' ) end [2025-03-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690978', 'tblTempVendorCDR_20' ) start [2025-03-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690978', 'tblTempVendorCDR_20' ) end [2025-03-16 04:17:17] Production.INFO: ProcessCDR(1,14690978,1,1,2) [2025-03-16 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690978', 'tblTempUsageDetail_20' ) start [2025-03-16 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690978', 'tblTempUsageDetail_20' ) end [2025-03-16 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:17:20] Production.INFO: ==29656== Releasing lock... [2025-03-16 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:17:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-16 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:18:05 [end_date_ymd] => 2025-03-16 04:18:05 [RateCDR] => 1 ) [2025-03-16 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:18:05' and `end` < '2025-03-16 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:18:17] Production.INFO: count ==489 [2025-03-16 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:18:05 - End Time 2025-03-16 04:18:05 [2025-03-16 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690983', 'tblTempUsageDetail_20' ) start [2025-03-16 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690983', 'tblTempUsageDetail_20' ) end [2025-03-16 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690983', 'tblTempVendorCDR_20' ) start [2025-03-16 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690983', 'tblTempVendorCDR_20' ) end [2025-03-16 04:18:17] Production.INFO: ProcessCDR(1,14690983,1,1,2) [2025-03-16 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690983', 'tblTempUsageDetail_20' ) start [2025-03-16 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690983', 'tblTempUsageDetail_20' ) end [2025-03-16 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:18:21] Production.INFO: ==29750== Releasing lock... [2025-03-16 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:18:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:19:06 [end_date_ymd] => 2025-03-16 04:19:06 [RateCDR] => 1 ) [2025-03-16 04: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-03-16 01:19:06' and `end` < '2025-03-16 04: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-03-16 04:19:18] Production.INFO: count ==483 [2025-03-16 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:19:06 - End Time 2025-03-16 04:19:06 [2025-03-16 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690988', 'tblTempUsageDetail_20' ) start [2025-03-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690988', 'tblTempUsageDetail_20' ) end [2025-03-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690988', 'tblTempVendorCDR_20' ) start [2025-03-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690988', 'tblTempVendorCDR_20' ) end [2025-03-16 04:19:18] Production.INFO: ProcessCDR(1,14690988,1,1,2) [2025-03-16 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690988', 'tblTempUsageDetail_20' ) start [2025-03-16 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690988', 'tblTempUsageDetail_20' ) end [2025-03-16 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:19:21] Production.INFO: ==29833== Releasing lock... [2025-03-16 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:20:06 [end_date_ymd] => 2025-03-16 04:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:20:06' and `end` < '2025-03-16 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-03-16 04:20:18] Production.INFO: count ==474 [2025-03-16 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:20:06 - End Time 2025-03-16 04:20:06 [2025-03-16 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690994', 'tblTempUsageDetail_20' ) start [2025-03-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690994', 'tblTempUsageDetail_20' ) end [2025-03-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690994', 'tblTempVendorCDR_20' ) start [2025-03-16 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690994', 'tblTempVendorCDR_20' ) end [2025-03-16 04:20:18] Production.INFO: ProcessCDR(1,14690994,1,1,2) [2025-03-16 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690994', 'tblTempUsageDetail_20' ) start [2025-03-16 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690994', 'tblTempUsageDetail_20' ) end [2025-03-16 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:20:21] Production.INFO: ==29916== Releasing lock... [2025-03-16 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:20:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:21:05 [end_date_ymd] => 2025-03-16 04:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:21:05' and `end` < '2025-03-16 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-03-16 04:21:17] Production.INFO: count ==466 [2025-03-16 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:21:05 - End Time 2025-03-16 04:21:05 [2025-03-16 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690999', 'tblTempUsageDetail_20' ) start [2025-03-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14690999', 'tblTempUsageDetail_20' ) end [2025-03-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690999', 'tblTempVendorCDR_20' ) start [2025-03-16 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14690999', 'tblTempVendorCDR_20' ) end [2025-03-16 04:21:17] Production.INFO: ProcessCDR(1,14690999,1,1,2) [2025-03-16 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14690999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14690999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14690999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14690999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690999', 'tblTempUsageDetail_20' ) start [2025-03-16 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14690999', 'tblTempUsageDetail_20' ) end [2025-03-16 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:21:21] Production.INFO: ==29997== Releasing lock... [2025-03-16 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-16 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:22:05 [end_date_ymd] => 2025-03-16 04:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:22:05' and `end` < '2025-03-16 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-03-16 04:22:17] Production.INFO: count ==465 [2025-03-16 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:22:05 - End Time 2025-03-16 04:22:05 [2025-03-16 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691004', 'tblTempUsageDetail_20' ) start [2025-03-16 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691004', 'tblTempUsageDetail_20' ) end [2025-03-16 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691004', 'tblTempVendorCDR_20' ) start [2025-03-16 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691004', 'tblTempVendorCDR_20' ) end [2025-03-16 04:22:17] Production.INFO: ProcessCDR(1,14691004,1,1,2) [2025-03-16 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691004', 'tblTempUsageDetail_20' ) start [2025-03-16 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691004', 'tblTempUsageDetail_20' ) end [2025-03-16 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:22:20] Production.INFO: ==30080== Releasing lock... [2025-03-16 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:22:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:23:05 [end_date_ymd] => 2025-03-16 04:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:23:05' and `end` < '2025-03-16 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-03-16 04:23:17] Production.INFO: count ==465 [2025-03-16 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:23:05 - End Time 2025-03-16 04:23:05 [2025-03-16 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691009', 'tblTempUsageDetail_20' ) start [2025-03-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691009', 'tblTempUsageDetail_20' ) end [2025-03-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691009', 'tblTempVendorCDR_20' ) start [2025-03-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691009', 'tblTempVendorCDR_20' ) end [2025-03-16 04:23:17] Production.INFO: ProcessCDR(1,14691009,1,1,2) [2025-03-16 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691009', 'tblTempUsageDetail_20' ) start [2025-03-16 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691009', 'tblTempUsageDetail_20' ) end [2025-03-16 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:23:21] Production.INFO: ==30162== Releasing lock... [2025-03-16 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:24:05 [end_date_ymd] => 2025-03-16 04:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:24:05' and `end` < '2025-03-16 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-03-16 04:24:17] Production.INFO: count ==464 [2025-03-16 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:24:05 - End Time 2025-03-16 04:24:05 [2025-03-16 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691014', 'tblTempUsageDetail_20' ) start [2025-03-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691014', 'tblTempUsageDetail_20' ) end [2025-03-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691014', 'tblTempVendorCDR_20' ) start [2025-03-16 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691014', 'tblTempVendorCDR_20' ) end [2025-03-16 04:24:17] Production.INFO: ProcessCDR(1,14691014,1,1,2) [2025-03-16 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691014', 'tblTempUsageDetail_20' ) start [2025-03-16 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691014', 'tblTempUsageDetail_20' ) end [2025-03-16 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:24:20] Production.INFO: ==30238== Releasing lock... [2025-03-16 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:24:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:25:05 [end_date_ymd] => 2025-03-16 04:25:05 [RateCDR] => 1 ) [2025-03-16 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:25:05' and `end` < '2025-03-16 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:25:17] Production.INFO: count ==464 [2025-03-16 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:25:05 - End Time 2025-03-16 04:25:05 [2025-03-16 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691019', 'tblTempUsageDetail_20' ) start [2025-03-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691019', 'tblTempUsageDetail_20' ) end [2025-03-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691019', 'tblTempVendorCDR_20' ) start [2025-03-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691019', 'tblTempVendorCDR_20' ) end [2025-03-16 04:25:17] Production.INFO: ProcessCDR(1,14691019,1,1,2) [2025-03-16 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691019', 'tblTempUsageDetail_20' ) start [2025-03-16 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691019', 'tblTempUsageDetail_20' ) end [2025-03-16 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:25:20] Production.INFO: ==30322== Releasing lock... [2025-03-16 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:25:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:26:05 [end_date_ymd] => 2025-03-16 04:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:26:05' and `end` < '2025-03-16 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-03-16 04:26:17] Production.INFO: count ==460 [2025-03-16 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:26:05 - End Time 2025-03-16 04:26:05 [2025-03-16 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691024', 'tblTempUsageDetail_20' ) start [2025-03-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691024', 'tblTempUsageDetail_20' ) end [2025-03-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691024', 'tblTempVendorCDR_20' ) start [2025-03-16 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691024', 'tblTempVendorCDR_20' ) end [2025-03-16 04:26:17] Production.INFO: ProcessCDR(1,14691024,1,1,2) [2025-03-16 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691024', 'tblTempUsageDetail_20' ) start [2025-03-16 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691024', 'tblTempUsageDetail_20' ) end [2025-03-16 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:26:20] Production.INFO: ==30406== Releasing lock... [2025-03-16 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:26:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:27:05 [end_date_ymd] => 2025-03-16 04:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:27:05' and `end` < '2025-03-16 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-03-16 04:27:17] Production.INFO: count ==460 [2025-03-16 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:27:05 - End Time 2025-03-16 04:27:05 [2025-03-16 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691029', 'tblTempUsageDetail_20' ) start [2025-03-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691029', 'tblTempUsageDetail_20' ) end [2025-03-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691029', 'tblTempVendorCDR_20' ) start [2025-03-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691029', 'tblTempVendorCDR_20' ) end [2025-03-16 04:27:17] Production.INFO: ProcessCDR(1,14691029,1,1,2) [2025-03-16 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691029', 'tblTempUsageDetail_20' ) start [2025-03-16 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691029', 'tblTempUsageDetail_20' ) end [2025-03-16 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:27:21] Production.INFO: ==30521== Releasing lock... [2025-03-16 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:27:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:28:05 [end_date_ymd] => 2025-03-16 04:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:28:05' and `end` < '2025-03-16 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-03-16 04:28:17] Production.INFO: count ==460 [2025-03-16 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:28:05 - End Time 2025-03-16 04:28:05 [2025-03-16 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691034', 'tblTempUsageDetail_20' ) start [2025-03-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691034', 'tblTempUsageDetail_20' ) end [2025-03-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691034', 'tblTempVendorCDR_20' ) start [2025-03-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691034', 'tblTempVendorCDR_20' ) end [2025-03-16 04:28:17] Production.INFO: ProcessCDR(1,14691034,1,1,2) [2025-03-16 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691034', 'tblTempUsageDetail_20' ) start [2025-03-16 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691034', 'tblTempUsageDetail_20' ) end [2025-03-16 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:28:21] Production.INFO: ==30611== Releasing lock... [2025-03-16 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:29:05 [end_date_ymd] => 2025-03-16 04:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:29:05' and `end` < '2025-03-16 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-03-16 04:29:17] Production.INFO: count ==460 [2025-03-16 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:29:05 - End Time 2025-03-16 04:29:05 [2025-03-16 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691039', 'tblTempUsageDetail_20' ) start [2025-03-16 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691039', 'tblTempUsageDetail_20' ) end [2025-03-16 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691039', 'tblTempVendorCDR_20' ) start [2025-03-16 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691039', 'tblTempVendorCDR_20' ) end [2025-03-16 04:29:17] Production.INFO: ProcessCDR(1,14691039,1,1,2) [2025-03-16 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691039', 'tblTempUsageDetail_20' ) start [2025-03-16 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691039', 'tblTempUsageDetail_20' ) end [2025-03-16 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:29:21] Production.INFO: ==30710== Releasing lock... [2025-03-16 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:30:07 [end_date_ymd] => 2025-03-16 04:30:07 [RateCDR] => 1 ) [2025-03-16 04: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-03-16 01:30:07' and `end` < '2025-03-16 04: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-03-16 04:30:19] Production.INFO: count ==448 [2025-03-16 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 01:30:07 - End Time 2025-03-16 04:30:07 [2025-03-16 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691046', 'tblTempUsageDetail_20' ) start [2025-03-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691046', 'tblTempUsageDetail_20' ) end [2025-03-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691046', 'tblTempVendorCDR_20' ) start [2025-03-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691046', 'tblTempVendorCDR_20' ) end [2025-03-16 04:30:19] Production.INFO: ProcessCDR(1,14691046,1,1,2) [2025-03-16 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691046', 'tblTempUsageDetail_20' ) start [2025-03-16 04:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691046', 'tblTempUsageDetail_20' ) end [2025-03-16 04:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:30:26] Production.INFO: ==30814== Releasing lock... [2025-03-16 04:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:30:26] Production.INFO: 31.75 MB #Memory Used# [2025-03-16 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:31:05 [end_date_ymd] => 2025-03-16 04:31:05 [RateCDR] => 1 ) [2025-03-16 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:31:05' and `end` < '2025-03-16 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:31:17] Production.INFO: count ==440 [2025-03-16 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:31:05 - End Time 2025-03-16 04:31:05 [2025-03-16 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691051', 'tblTempUsageDetail_20' ) start [2025-03-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691051', 'tblTempUsageDetail_20' ) end [2025-03-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691051', 'tblTempVendorCDR_20' ) start [2025-03-16 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691051', 'tblTempVendorCDR_20' ) end [2025-03-16 04:31:17] Production.INFO: ProcessCDR(1,14691051,1,1,2) [2025-03-16 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691051', 'tblTempUsageDetail_20' ) start [2025-03-16 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691051', 'tblTempUsageDetail_20' ) end [2025-03-16 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:31:21] Production.INFO: ==31007== Releasing lock... [2025-03-16 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:32:05 [end_date_ymd] => 2025-03-16 04:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:32:05' and `end` < '2025-03-16 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-03-16 04:32:17] Production.INFO: count ==440 [2025-03-16 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:32:05 - End Time 2025-03-16 04:32:05 [2025-03-16 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691056', 'tblTempUsageDetail_20' ) start [2025-03-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691056', 'tblTempUsageDetail_20' ) end [2025-03-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691056', 'tblTempVendorCDR_20' ) start [2025-03-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691056', 'tblTempVendorCDR_20' ) end [2025-03-16 04:32:17] Production.INFO: ProcessCDR(1,14691056,1,1,2) [2025-03-16 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691056', 'tblTempUsageDetail_20' ) start [2025-03-16 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691056', 'tblTempUsageDetail_20' ) end [2025-03-16 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:32:21] Production.INFO: ==31110== Releasing lock... [2025-03-16 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:33:05 [end_date_ymd] => 2025-03-16 04:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:33:05' and `end` < '2025-03-16 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-03-16 04:33:17] Production.INFO: count ==440 [2025-03-16 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:33:05 - End Time 2025-03-16 04:33:05 [2025-03-16 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691061', 'tblTempUsageDetail_20' ) start [2025-03-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691061', 'tblTempUsageDetail_20' ) end [2025-03-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691061', 'tblTempVendorCDR_20' ) start [2025-03-16 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691061', 'tblTempVendorCDR_20' ) end [2025-03-16 04:33:17] Production.INFO: ProcessCDR(1,14691061,1,1,2) [2025-03-16 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691061', 'tblTempUsageDetail_20' ) start [2025-03-16 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691061', 'tblTempUsageDetail_20' ) end [2025-03-16 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:33:20] Production.INFO: ==31204== Releasing lock... [2025-03-16 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:33:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:34:05 [end_date_ymd] => 2025-03-16 04:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:34:05' and `end` < '2025-03-16 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-03-16 04:34:17] Production.INFO: count ==440 [2025-03-16 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:34:05 - End Time 2025-03-16 04:34:05 [2025-03-16 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691066', 'tblTempUsageDetail_20' ) start [2025-03-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691066', 'tblTempUsageDetail_20' ) end [2025-03-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691066', 'tblTempVendorCDR_20' ) start [2025-03-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691066', 'tblTempVendorCDR_20' ) end [2025-03-16 04:34:17] Production.INFO: ProcessCDR(1,14691066,1,1,2) [2025-03-16 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691066', 'tblTempUsageDetail_20' ) start [2025-03-16 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691066', 'tblTempUsageDetail_20' ) end [2025-03-16 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:34:21] Production.INFO: ==31306== Releasing lock... [2025-03-16 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:35:05 [end_date_ymd] => 2025-03-16 04:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:35:05' and `end` < '2025-03-16 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-03-16 04:35:17] Production.INFO: count ==440 [2025-03-16 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:35:05 - End Time 2025-03-16 04:35:05 [2025-03-16 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691071', 'tblTempUsageDetail_20' ) start [2025-03-16 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691071', 'tblTempUsageDetail_20' ) end [2025-03-16 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691071', 'tblTempVendorCDR_20' ) start [2025-03-16 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691071', 'tblTempVendorCDR_20' ) end [2025-03-16 04:35:17] Production.INFO: ProcessCDR(1,14691071,1,1,2) [2025-03-16 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691071', 'tblTempUsageDetail_20' ) start [2025-03-16 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691071', 'tblTempUsageDetail_20' ) end [2025-03-16 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:35:20] Production.INFO: ==31400== Releasing lock... [2025-03-16 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:35:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:36:05 [end_date_ymd] => 2025-03-16 04:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:36:05' and `end` < '2025-03-16 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-03-16 04:36:17] Production.INFO: count ==440 [2025-03-16 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:36:05 - End Time 2025-03-16 04:36:05 [2025-03-16 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691076', 'tblTempUsageDetail_20' ) start [2025-03-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691076', 'tblTempUsageDetail_20' ) end [2025-03-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691076', 'tblTempVendorCDR_20' ) start [2025-03-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691076', 'tblTempVendorCDR_20' ) end [2025-03-16 04:36:17] Production.INFO: ProcessCDR(1,14691076,1,1,2) [2025-03-16 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691076', 'tblTempUsageDetail_20' ) start [2025-03-16 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691076', 'tblTempUsageDetail_20' ) end [2025-03-16 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:36:20] Production.INFO: ==31496== Releasing lock... [2025-03-16 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:36:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:37:04 [end_date_ymd] => 2025-03-16 04:37:04 [RateCDR] => 1 ) [2025-03-16 04:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:37:04' and `end` < '2025-03-16 04:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:37:16] Production.INFO: count ==434 [2025-03-16 04:37:16] Production.ERROR: pbx CDR StartTime 2025-03-16 01:37:04 - End Time 2025-03-16 04:37:04 [2025-03-16 04:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691081', 'tblTempUsageDetail_20' ) start [2025-03-16 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691081', 'tblTempUsageDetail_20' ) end [2025-03-16 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691081', 'tblTempVendorCDR_20' ) start [2025-03-16 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691081', 'tblTempVendorCDR_20' ) end [2025-03-16 04:37:16] Production.INFO: ProcessCDR(1,14691081,1,1,2) [2025-03-16 04:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691081', 'tblTempUsageDetail_20' ) start [2025-03-16 04:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691081', 'tblTempUsageDetail_20' ) end [2025-03-16 04:37:19] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:37:19] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:37:20] Production.INFO: ==31598== Releasing lock... [2025-03-16 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:37:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:38:05 [end_date_ymd] => 2025-03-16 04:38:05 [RateCDR] => 1 ) [2025-03-16 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:38:05' and `end` < '2025-03-16 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:38:17] Production.INFO: count ==434 [2025-03-16 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:38:05 - End Time 2025-03-16 04:38:05 [2025-03-16 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691086', 'tblTempUsageDetail_20' ) start [2025-03-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691086', 'tblTempUsageDetail_20' ) end [2025-03-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691086', 'tblTempVendorCDR_20' ) start [2025-03-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691086', 'tblTempVendorCDR_20' ) end [2025-03-16 04:38:18] Production.INFO: ProcessCDR(1,14691086,1,1,2) [2025-03-16 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691086', 'tblTempUsageDetail_20' ) start [2025-03-16 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691086', 'tblTempUsageDetail_20' ) end [2025-03-16 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:38:21] Production.INFO: ==31693== Releasing lock... [2025-03-16 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:39:05 [end_date_ymd] => 2025-03-16 04:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:39:05' and `end` < '2025-03-16 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-03-16 04:39:17] Production.INFO: count ==433 [2025-03-16 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:39:05 - End Time 2025-03-16 04:39:05 [2025-03-16 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691091', 'tblTempUsageDetail_20' ) start [2025-03-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691091', 'tblTempUsageDetail_20' ) end [2025-03-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691091', 'tblTempVendorCDR_20' ) start [2025-03-16 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691091', 'tblTempVendorCDR_20' ) end [2025-03-16 04:39:17] Production.INFO: ProcessCDR(1,14691091,1,1,2) [2025-03-16 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691091', 'tblTempUsageDetail_20' ) start [2025-03-16 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691091', 'tblTempUsageDetail_20' ) end [2025-03-16 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:39:20] Production.INFO: ==31789== Releasing lock... [2025-03-16 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:39:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:40:06 [end_date_ymd] => 2025-03-16 04:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:40:06' and `end` < '2025-03-16 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-03-16 04:40:18] Production.INFO: count ==424 [2025-03-16 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:40:06 - End Time 2025-03-16 04:40:06 [2025-03-16 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691097', 'tblTempUsageDetail_20' ) start [2025-03-16 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691097', 'tblTempUsageDetail_20' ) end [2025-03-16 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691097', 'tblTempVendorCDR_20' ) start [2025-03-16 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691097', 'tblTempVendorCDR_20' ) end [2025-03-16 04:40:18] Production.INFO: ProcessCDR(1,14691097,1,1,2) [2025-03-16 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691097', 'tblTempUsageDetail_20' ) start [2025-03-16 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691097', 'tblTempUsageDetail_20' ) end [2025-03-16 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:40:22] Production.INFO: ==31887== Releasing lock... [2025-03-16 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:41:05 [end_date_ymd] => 2025-03-16 04:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:41:05' and `end` < '2025-03-16 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-03-16 04:41:17] Production.INFO: count ==399 [2025-03-16 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:41:05 - End Time 2025-03-16 04:41:05 [2025-03-16 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691102', 'tblTempUsageDetail_20' ) start [2025-03-16 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691102', 'tblTempUsageDetail_20' ) end [2025-03-16 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691102', 'tblTempVendorCDR_20' ) start [2025-03-16 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691102', 'tblTempVendorCDR_20' ) end [2025-03-16 04:41:17] Production.INFO: ProcessCDR(1,14691102,1,1,2) [2025-03-16 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691102', 'tblTempUsageDetail_20' ) start [2025-03-16 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691102', 'tblTempUsageDetail_20' ) end [2025-03-16 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:41:20] Production.INFO: ==31988== Releasing lock... [2025-03-16 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:41:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:42:05 [end_date_ymd] => 2025-03-16 04:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:42:05' and `end` < '2025-03-16 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-03-16 04:42:17] Production.INFO: count ==399 [2025-03-16 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:42:05 - End Time 2025-03-16 04:42:05 [2025-03-16 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691107', 'tblTempUsageDetail_20' ) start [2025-03-16 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691107', 'tblTempUsageDetail_20' ) end [2025-03-16 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691107', 'tblTempVendorCDR_20' ) start [2025-03-16 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691107', 'tblTempVendorCDR_20' ) end [2025-03-16 04:42:17] Production.INFO: ProcessCDR(1,14691107,1,1,2) [2025-03-16 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691107', 'tblTempUsageDetail_20' ) start [2025-03-16 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691107', 'tblTempUsageDetail_20' ) end [2025-03-16 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:42:21] Production.INFO: ==32089== Releasing lock... [2025-03-16 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:43:05 [end_date_ymd] => 2025-03-16 04:43:05 [RateCDR] => 1 ) [2025-03-16 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:43:05' and `end` < '2025-03-16 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:43:17] Production.INFO: count ==400 [2025-03-16 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:43:05 - End Time 2025-03-16 04:43:05 [2025-03-16 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691112', 'tblTempUsageDetail_20' ) start [2025-03-16 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691112', 'tblTempUsageDetail_20' ) end [2025-03-16 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691112', 'tblTempVendorCDR_20' ) start [2025-03-16 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691112', 'tblTempVendorCDR_20' ) end [2025-03-16 04:43:17] Production.INFO: ProcessCDR(1,14691112,1,1,2) [2025-03-16 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691112', 'tblTempUsageDetail_20' ) start [2025-03-16 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691112', 'tblTempUsageDetail_20' ) end [2025-03-16 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:43:22] Production.INFO: ==32226== Releasing lock... [2025-03-16 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:44:05 [end_date_ymd] => 2025-03-16 04:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:44:05' and `end` < '2025-03-16 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-03-16 04:44:17] Production.INFO: count ==401 [2025-03-16 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:44:05 - End Time 2025-03-16 04:44:05 [2025-03-16 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691117', 'tblTempUsageDetail_20' ) start [2025-03-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691117', 'tblTempUsageDetail_20' ) end [2025-03-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691117', 'tblTempVendorCDR_20' ) start [2025-03-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691117', 'tblTempVendorCDR_20' ) end [2025-03-16 04:44:17] Production.INFO: ProcessCDR(1,14691117,1,1,2) [2025-03-16 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691117', 'tblTempUsageDetail_20' ) start [2025-03-16 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691117', 'tblTempUsageDetail_20' ) end [2025-03-16 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:44:22] Production.INFO: ==32319== Releasing lock... [2025-03-16 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:45:05 [end_date_ymd] => 2025-03-16 04:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:45:05' and `end` < '2025-03-16 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-03-16 04:45:18] Production.INFO: count ==401 [2025-03-16 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:45:05 - End Time 2025-03-16 04:45:05 [2025-03-16 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691122', 'tblTempUsageDetail_20' ) start [2025-03-16 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691122', 'tblTempUsageDetail_20' ) end [2025-03-16 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691122', 'tblTempVendorCDR_20' ) start [2025-03-16 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691122', 'tblTempVendorCDR_20' ) end [2025-03-16 04:45:18] Production.INFO: ProcessCDR(1,14691122,1,1,2) [2025-03-16 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691122', 'tblTempUsageDetail_20' ) start [2025-03-16 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691122', 'tblTempUsageDetail_20' ) end [2025-03-16 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:45:21] Production.INFO: ==32425== Releasing lock... [2025-03-16 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:46:05 [end_date_ymd] => 2025-03-16 04:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:46:05' and `end` < '2025-03-16 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-03-16 04:46:18] Production.INFO: count ==401 [2025-03-16 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:46:05 - End Time 2025-03-16 04:46:05 [2025-03-16 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691127', 'tblTempUsageDetail_20' ) start [2025-03-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691127', 'tblTempUsageDetail_20' ) end [2025-03-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691127', 'tblTempVendorCDR_20' ) start [2025-03-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691127', 'tblTempVendorCDR_20' ) end [2025-03-16 04:46:18] Production.INFO: ProcessCDR(1,14691127,1,1,2) [2025-03-16 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691127', 'tblTempUsageDetail_20' ) start [2025-03-16 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691127', 'tblTempUsageDetail_20' ) end [2025-03-16 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:46:21] Production.INFO: ==32521== Releasing lock... [2025-03-16 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:47:05 [end_date_ymd] => 2025-03-16 04:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:47:05' and `end` < '2025-03-16 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-03-16 04:47:18] Production.INFO: count ==400 [2025-03-16 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:47:05 - End Time 2025-03-16 04:47:05 [2025-03-16 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691132', 'tblTempUsageDetail_20' ) start [2025-03-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691132', 'tblTempUsageDetail_20' ) end [2025-03-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691132', 'tblTempVendorCDR_20' ) start [2025-03-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691132', 'tblTempVendorCDR_20' ) end [2025-03-16 04:47:18] Production.INFO: ProcessCDR(1,14691132,1,1,2) [2025-03-16 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691132', 'tblTempUsageDetail_20' ) start [2025-03-16 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691132', 'tblTempUsageDetail_20' ) end [2025-03-16 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:47:21] Production.INFO: ==32630== Releasing lock... [2025-03-16 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:48:05 [end_date_ymd] => 2025-03-16 04:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:48:05' and `end` < '2025-03-16 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-03-16 04:48:18] Production.INFO: count ==400 [2025-03-16 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:48:05 - End Time 2025-03-16 04:48:05 [2025-03-16 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691137', 'tblTempUsageDetail_20' ) start [2025-03-16 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691137', 'tblTempUsageDetail_20' ) end [2025-03-16 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691137', 'tblTempVendorCDR_20' ) start [2025-03-16 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691137', 'tblTempVendorCDR_20' ) end [2025-03-16 04:48:18] Production.INFO: ProcessCDR(1,14691137,1,1,2) [2025-03-16 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691137', 'tblTempUsageDetail_20' ) start [2025-03-16 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691137', 'tblTempUsageDetail_20' ) end [2025-03-16 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:48:21] Production.INFO: ==32730== Releasing lock... [2025-03-16 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:49:05 [end_date_ymd] => 2025-03-16 04:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:49:05' and `end` < '2025-03-16 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-03-16 04:49:19] Production.INFO: count ==400 [2025-03-16 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-16 01:49:05 - End Time 2025-03-16 04:49:05 [2025-03-16 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691142', 'tblTempUsageDetail_20' ) start [2025-03-16 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691142', 'tblTempUsageDetail_20' ) end [2025-03-16 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691142', 'tblTempVendorCDR_20' ) start [2025-03-16 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691142', 'tblTempVendorCDR_20' ) end [2025-03-16 04:49:19] Production.INFO: ProcessCDR(1,14691142,1,1,2) [2025-03-16 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691142', 'tblTempUsageDetail_20' ) start [2025-03-16 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691142', 'tblTempUsageDetail_20' ) end [2025-03-16 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:49:23] Production.INFO: ==377== Releasing lock... [2025-03-16 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:49:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:50:06 [end_date_ymd] => 2025-03-16 04:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:50:06' and `end` < '2025-03-16 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-03-16 04:50:18] Production.INFO: count ==383 [2025-03-16 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:50:06 - End Time 2025-03-16 04:50:06 [2025-03-16 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691148', 'tblTempUsageDetail_20' ) start [2025-03-16 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691148', 'tblTempUsageDetail_20' ) end [2025-03-16 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691148', 'tblTempVendorCDR_20' ) start [2025-03-16 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691148', 'tblTempVendorCDR_20' ) end [2025-03-16 04:50:18] Production.INFO: ProcessCDR(1,14691148,1,1,2) [2025-03-16 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691148', 'tblTempUsageDetail_20' ) start [2025-03-16 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691148', 'tblTempUsageDetail_20' ) end [2025-03-16 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:50:22] Production.INFO: ==476== Releasing lock... [2025-03-16 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:51:05 [end_date_ymd] => 2025-03-16 04:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:51:05' and `end` < '2025-03-16 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-03-16 04:51:18] Production.INFO: count ==342 [2025-03-16 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:51:05 - End Time 2025-03-16 04:51:05 [2025-03-16 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691153', 'tblTempUsageDetail_20' ) start [2025-03-16 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691153', 'tblTempUsageDetail_20' ) end [2025-03-16 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691153', 'tblTempVendorCDR_20' ) start [2025-03-16 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691153', 'tblTempVendorCDR_20' ) end [2025-03-16 04:51:18] Production.INFO: ProcessCDR(1,14691153,1,1,2) [2025-03-16 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691153', 'tblTempUsageDetail_20' ) start [2025-03-16 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691153', 'tblTempUsageDetail_20' ) end [2025-03-16 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:51:22] Production.INFO: ==577== Releasing lock... [2025-03-16 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:52:05 [end_date_ymd] => 2025-03-16 04:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:52:05' and `end` < '2025-03-16 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-03-16 04:52:19] Production.INFO: count ==339 [2025-03-16 04:52:19] Production.ERROR: pbx CDR StartTime 2025-03-16 01:52:05 - End Time 2025-03-16 04:52:05 [2025-03-16 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691158', 'tblTempUsageDetail_20' ) start [2025-03-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691158', 'tblTempUsageDetail_20' ) end [2025-03-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691158', 'tblTempVendorCDR_20' ) start [2025-03-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691158', 'tblTempVendorCDR_20' ) end [2025-03-16 04:52:19] Production.INFO: ProcessCDR(1,14691158,1,1,2) [2025-03-16 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691158', 'tblTempUsageDetail_20' ) start [2025-03-16 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691158', 'tblTempUsageDetail_20' ) end [2025-03-16 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:52:22] Production.INFO: ==708== Releasing lock... [2025-03-16 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:53:05 [end_date_ymd] => 2025-03-16 04:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:53:05' and `end` < '2025-03-16 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-03-16 04:53:17] Production.INFO: count ==342 [2025-03-16 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:53:05 - End Time 2025-03-16 04:53:05 [2025-03-16 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691163', 'tblTempUsageDetail_20' ) start [2025-03-16 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691163', 'tblTempUsageDetail_20' ) end [2025-03-16 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691163', 'tblTempVendorCDR_20' ) start [2025-03-16 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691163', 'tblTempVendorCDR_20' ) end [2025-03-16 04:53:17] Production.INFO: ProcessCDR(1,14691163,1,1,2) [2025-03-16 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691163', 'tblTempUsageDetail_20' ) start [2025-03-16 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691163', 'tblTempUsageDetail_20' ) end [2025-03-16 04:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:53:21] Production.INFO: ==822== Releasing lock... [2025-03-16 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:54:05 [end_date_ymd] => 2025-03-16 04:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:54:05' and `end` < '2025-03-16 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-03-16 04:54:17] Production.INFO: count ==341 [2025-03-16 04:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:54:05 - End Time 2025-03-16 04:54:05 [2025-03-16 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691168', 'tblTempUsageDetail_20' ) start [2025-03-16 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691168', 'tblTempUsageDetail_20' ) end [2025-03-16 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691168', 'tblTempVendorCDR_20' ) start [2025-03-16 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691168', 'tblTempVendorCDR_20' ) end [2025-03-16 04:54:17] Production.INFO: ProcessCDR(1,14691168,1,1,2) [2025-03-16 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691168', 'tblTempUsageDetail_20' ) start [2025-03-16 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691168', 'tblTempUsageDetail_20' ) end [2025-03-16 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:54:21] Production.INFO: ==915== Releasing lock... [2025-03-16 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:54:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:55:06 [end_date_ymd] => 2025-03-16 04:55:06 [RateCDR] => 1 ) [2025-03-16 04: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-03-16 01:55:06' and `end` < '2025-03-16 04: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-03-16 04:55:18] Production.INFO: count ==340 [2025-03-16 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:55:06 - End Time 2025-03-16 04:55:06 [2025-03-16 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691173', 'tblTempUsageDetail_20' ) start [2025-03-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691173', 'tblTempUsageDetail_20' ) end [2025-03-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691173', 'tblTempVendorCDR_20' ) start [2025-03-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691173', 'tblTempVendorCDR_20' ) end [2025-03-16 04:55:18] Production.INFO: ProcessCDR(1,14691173,1,1,2) [2025-03-16 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691173', 'tblTempUsageDetail_20' ) start [2025-03-16 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691173', 'tblTempUsageDetail_20' ) end [2025-03-16 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:55:21] Production.INFO: ==1009== Releasing lock... [2025-03-16 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:55:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:56:04 [end_date_ymd] => 2025-03-16 04:56:04 [RateCDR] => 1 ) [2025-03-16 04: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-03-16 01:56:04' and `end` < '2025-03-16 04: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-03-16 04:56:17] Production.INFO: count ==340 [2025-03-16 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:56:04 - End Time 2025-03-16 04:56:04 [2025-03-16 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691178', 'tblTempUsageDetail_20' ) start [2025-03-16 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691178', 'tblTempUsageDetail_20' ) end [2025-03-16 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691178', 'tblTempVendorCDR_20' ) start [2025-03-16 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691178', 'tblTempVendorCDR_20' ) end [2025-03-16 04:56:17] Production.INFO: ProcessCDR(1,14691178,1,1,2) [2025-03-16 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691178', 'tblTempUsageDetail_20' ) start [2025-03-16 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691178', 'tblTempUsageDetail_20' ) end [2025-03-16 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:56:20] Production.INFO: ==1105== Releasing lock... [2025-03-16 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:56:20] Production.INFO: 31 MB #Memory Used# [2025-03-16 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:57:05 [end_date_ymd] => 2025-03-16 04:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 01:57:05' and `end` < '2025-03-16 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-03-16 04:57:17] Production.INFO: count ==339 [2025-03-16 04:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:57:05 - End Time 2025-03-16 04:57:05 [2025-03-16 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691183', 'tblTempUsageDetail_20' ) start [2025-03-16 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691183', 'tblTempUsageDetail_20' ) end [2025-03-16 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691183', 'tblTempVendorCDR_20' ) start [2025-03-16 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691183', 'tblTempVendorCDR_20' ) end [2025-03-16 04:57:17] Production.INFO: ProcessCDR(1,14691183,1,1,2) [2025-03-16 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691183', 'tblTempUsageDetail_20' ) start [2025-03-16 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691183', 'tblTempUsageDetail_20' ) end [2025-03-16 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:57:21] Production.INFO: ==1203== Releasing lock... [2025-03-16 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:57:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:58:04 [end_date_ymd] => 2025-03-16 04:58:04 [RateCDR] => 1 ) [2025-03-16 04: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-03-16 01:58:04' and `end` < '2025-03-16 04: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-03-16 04:58:17] Production.INFO: count ==342 [2025-03-16 04:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 01:58:04 - End Time 2025-03-16 04:58:04 [2025-03-16 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691188', 'tblTempUsageDetail_20' ) start [2025-03-16 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691188', 'tblTempUsageDetail_20' ) end [2025-03-16 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691188', 'tblTempVendorCDR_20' ) start [2025-03-16 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691188', 'tblTempVendorCDR_20' ) end [2025-03-16 04:58:17] Production.INFO: ProcessCDR(1,14691188,1,1,2) [2025-03-16 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691188', 'tblTempUsageDetail_20' ) start [2025-03-16 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691188', 'tblTempUsageDetail_20' ) end [2025-03-16 04:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:58:20] Production.INFO: ==1344== Releasing lock... [2025-03-16 04:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:58:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 01:59:05 [end_date_ymd] => 2025-03-16 04:59:05 [RateCDR] => 1 ) [2025-03-16 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 01:59:05' and `end` < '2025-03-16 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 04:59:18] Production.INFO: count ==338 [2025-03-16 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 01:59:05 - End Time 2025-03-16 04:59:05 [2025-03-16 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691193', 'tblTempUsageDetail_20' ) start [2025-03-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691193', 'tblTempUsageDetail_20' ) end [2025-03-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691193', 'tblTempVendorCDR_20' ) start [2025-03-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691193', 'tblTempVendorCDR_20' ) end [2025-03-16 04:59:18] Production.INFO: ProcessCDR(1,14691193,1,1,2) [2025-03-16 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691193', 'tblTempUsageDetail_20' ) start [2025-03-16 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691193', 'tblTempUsageDetail_20' ) end [2025-03-16 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 04:59:21] Production.INFO: ==1440== Releasing lock... [2025-03-16 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 04:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:00:07 [end_date_ymd] => 2025-03-16 05:00:07 [RateCDR] => 1 ) [2025-03-16 05: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-03-16 02:00:07' and `end` < '2025-03-16 05: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-03-16 05:00:19] Production.INFO: count ==334 [2025-03-16 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-16 02:00:07 - End Time 2025-03-16 05:00:07 [2025-03-16 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691199', 'tblTempUsageDetail_20' ) start [2025-03-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691199', 'tblTempUsageDetail_20' ) end [2025-03-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691199', 'tblTempVendorCDR_20' ) start [2025-03-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691199', 'tblTempVendorCDR_20' ) end [2025-03-16 05:00:19] Production.INFO: ProcessCDR(1,14691199,1,1,2) [2025-03-16 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691199', 'tblTempUsageDetail_20' ) start [2025-03-16 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691199', 'tblTempUsageDetail_20' ) end [2025-03-16 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:00:22] Production.INFO: ==1573== Releasing lock... [2025-03-16 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:01:05 [end_date_ymd] => 2025-03-16 05:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:01:05' and `end` < '2025-03-16 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-03-16 05:01:18] Production.INFO: count ==334 [2025-03-16 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:01:05 - End Time 2025-03-16 05:01:05 [2025-03-16 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691204', 'tblTempUsageDetail_20' ) start [2025-03-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691204', 'tblTempUsageDetail_20' ) end [2025-03-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691204', 'tblTempVendorCDR_20' ) start [2025-03-16 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691204', 'tblTempVendorCDR_20' ) end [2025-03-16 05:01:18] Production.INFO: ProcessCDR(1,14691204,1,1,2) [2025-03-16 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691204', 'tblTempUsageDetail_20' ) start [2025-03-16 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691204', 'tblTempUsageDetail_20' ) end [2025-03-16 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:01:21] Production.INFO: ==1680== Releasing lock... [2025-03-16 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:02:06 [end_date_ymd] => 2025-03-16 05:02:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:02:06' and `end` < '2025-03-16 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-03-16 05:02:18] Production.INFO: count ==334 [2025-03-16 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:02:06 - End Time 2025-03-16 05:02:06 [2025-03-16 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691209', 'tblTempUsageDetail_20' ) start [2025-03-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691209', 'tblTempUsageDetail_20' ) end [2025-03-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691209', 'tblTempVendorCDR_20' ) start [2025-03-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691209', 'tblTempVendorCDR_20' ) end [2025-03-16 05:02:18] Production.INFO: ProcessCDR(1,14691209,1,1,2) [2025-03-16 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691209', 'tblTempUsageDetail_20' ) start [2025-03-16 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691209', 'tblTempUsageDetail_20' ) end [2025-03-16 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:02:21] Production.INFO: ==1772== Releasing lock... [2025-03-16 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:03:05 [end_date_ymd] => 2025-03-16 05:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:03:05' and `end` < '2025-03-16 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-03-16 05:03:17] Production.INFO: count ==330 [2025-03-16 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:03:05 - End Time 2025-03-16 05:03:05 [2025-03-16 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691214', 'tblTempUsageDetail_20' ) start [2025-03-16 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691214', 'tblTempUsageDetail_20' ) end [2025-03-16 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691214', 'tblTempVendorCDR_20' ) start [2025-03-16 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691214', 'tblTempVendorCDR_20' ) end [2025-03-16 05:03:17] Production.INFO: ProcessCDR(1,14691214,1,1,2) [2025-03-16 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691214', 'tblTempUsageDetail_20' ) start [2025-03-16 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691214', 'tblTempUsageDetail_20' ) end [2025-03-16 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:03:20] Production.INFO: ==1869== Releasing lock... [2025-03-16 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:03:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:04:05 [end_date_ymd] => 2025-03-16 05:04:05 [RateCDR] => 1 ) [2025-03-16 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:04:05' and `end` < '2025-03-16 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:04:18] Production.INFO: count ==330 [2025-03-16 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:04:05 - End Time 2025-03-16 05:04:05 [2025-03-16 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691219', 'tblTempUsageDetail_20' ) start [2025-03-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691219', 'tblTempUsageDetail_20' ) end [2025-03-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691219', 'tblTempVendorCDR_20' ) start [2025-03-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691219', 'tblTempVendorCDR_20' ) end [2025-03-16 05:04:18] Production.INFO: ProcessCDR(1,14691219,1,1,2) [2025-03-16 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691219', 'tblTempUsageDetail_20' ) start [2025-03-16 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691219', 'tblTempUsageDetail_20' ) end [2025-03-16 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:04:21] Production.INFO: ==1965== Releasing lock... [2025-03-16 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:05:05 [end_date_ymd] => 2025-03-16 05:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:05:05' and `end` < '2025-03-16 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-03-16 05:05:17] Production.INFO: count ==330 [2025-03-16 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:05:05 - End Time 2025-03-16 05:05:05 [2025-03-16 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691224', 'tblTempUsageDetail_20' ) start [2025-03-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691224', 'tblTempUsageDetail_20' ) end [2025-03-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691224', 'tblTempVendorCDR_20' ) start [2025-03-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691224', 'tblTempVendorCDR_20' ) end [2025-03-16 05:05:17] Production.INFO: ProcessCDR(1,14691224,1,1,2) [2025-03-16 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691224', 'tblTempUsageDetail_20' ) start [2025-03-16 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691224', 'tblTempUsageDetail_20' ) end [2025-03-16 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:05:21] Production.INFO: ==2063== Releasing lock... [2025-03-16 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:06:05 [end_date_ymd] => 2025-03-16 05:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:06:05' and `end` < '2025-03-16 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-03-16 05:06:18] Production.INFO: count ==329 [2025-03-16 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:06:05 - End Time 2025-03-16 05:06:05 [2025-03-16 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691229', 'tblTempUsageDetail_20' ) start [2025-03-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691229', 'tblTempUsageDetail_20' ) end [2025-03-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691229', 'tblTempVendorCDR_20' ) start [2025-03-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691229', 'tblTempVendorCDR_20' ) end [2025-03-16 05:06:18] Production.INFO: ProcessCDR(1,14691229,1,1,2) [2025-03-16 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691229', 'tblTempUsageDetail_20' ) start [2025-03-16 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691229', 'tblTempUsageDetail_20' ) end [2025-03-16 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:06:21] Production.INFO: ==2158== Releasing lock... [2025-03-16 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:07:05 [end_date_ymd] => 2025-03-16 05:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:07:05' and `end` < '2025-03-16 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-03-16 05:07:18] Production.INFO: count ==329 [2025-03-16 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:07:05 - End Time 2025-03-16 05:07:05 [2025-03-16 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691234', 'tblTempUsageDetail_20' ) start [2025-03-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691234', 'tblTempUsageDetail_20' ) end [2025-03-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691234', 'tblTempVendorCDR_20' ) start [2025-03-16 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691234', 'tblTempVendorCDR_20' ) end [2025-03-16 05:07:18] Production.INFO: ProcessCDR(1,14691234,1,1,2) [2025-03-16 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691234', 'tblTempUsageDetail_20' ) start [2025-03-16 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691234', 'tblTempUsageDetail_20' ) end [2025-03-16 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:07:21] Production.INFO: ==2254== Releasing lock... [2025-03-16 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:08:05 [end_date_ymd] => 2025-03-16 05:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:08:05' and `end` < '2025-03-16 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-03-16 05:08:17] Production.INFO: count ==325 [2025-03-16 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:08:05 - End Time 2025-03-16 05:08:05 [2025-03-16 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691239', 'tblTempUsageDetail_20' ) start [2025-03-16 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691239', 'tblTempUsageDetail_20' ) end [2025-03-16 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691239', 'tblTempVendorCDR_20' ) start [2025-03-16 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691239', 'tblTempVendorCDR_20' ) end [2025-03-16 05:08:17] Production.INFO: ProcessCDR(1,14691239,1,1,2) [2025-03-16 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691239', 'tblTempUsageDetail_20' ) start [2025-03-16 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691239', 'tblTempUsageDetail_20' ) end [2025-03-16 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:08:21] Production.INFO: ==2348== Releasing lock... [2025-03-16 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:09:05 [end_date_ymd] => 2025-03-16 05:09:05 [RateCDR] => 1 ) [2025-03-16 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:09:05' and `end` < '2025-03-16 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:09:17] Production.INFO: count ==325 [2025-03-16 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:09:05 - End Time 2025-03-16 05:09:05 [2025-03-16 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691244', 'tblTempUsageDetail_20' ) start [2025-03-16 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691244', 'tblTempUsageDetail_20' ) end [2025-03-16 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691244', 'tblTempVendorCDR_20' ) start [2025-03-16 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691244', 'tblTempVendorCDR_20' ) end [2025-03-16 05:09:17] Production.INFO: ProcessCDR(1,14691244,1,1,2) [2025-03-16 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691244', 'tblTempUsageDetail_20' ) start [2025-03-16 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691244', 'tblTempUsageDetail_20' ) end [2025-03-16 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:09:20] Production.INFO: ==2439== Releasing lock... [2025-03-16 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:09:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:10:06 [end_date_ymd] => 2025-03-16 05:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:10:06' and `end` < '2025-03-16 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-03-16 05:10:18] Production.INFO: count ==318 [2025-03-16 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-16 02:10:06 - End Time 2025-03-16 05:10:06 [2025-03-16 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691250', 'tblTempUsageDetail_20' ) start [2025-03-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691250', 'tblTempUsageDetail_20' ) end [2025-03-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691250', 'tblTempVendorCDR_20' ) start [2025-03-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691250', 'tblTempVendorCDR_20' ) end [2025-03-16 05:10:19] Production.INFO: ProcessCDR(1,14691250,1,1,2) [2025-03-16 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691250', 'tblTempUsageDetail_20' ) start [2025-03-16 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691250', 'tblTempUsageDetail_20' ) end [2025-03-16 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:10:22] Production.INFO: ==2536== Releasing lock... [2025-03-16 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:11:04 [end_date_ymd] => 2025-03-16 05:11:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:11:04' and `end` < '2025-03-16 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-03-16 05:11:17] Production.INFO: count ==302 [2025-03-16 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:11:04 - End Time 2025-03-16 05:11:04 [2025-03-16 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691255', 'tblTempUsageDetail_20' ) start [2025-03-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691255', 'tblTempUsageDetail_20' ) end [2025-03-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691255', 'tblTempVendorCDR_20' ) start [2025-03-16 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691255', 'tblTempVendorCDR_20' ) end [2025-03-16 05:11:17] Production.INFO: ProcessCDR(1,14691255,1,1,2) [2025-03-16 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691255', 'tblTempUsageDetail_20' ) start [2025-03-16 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691255', 'tblTempUsageDetail_20' ) end [2025-03-16 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:11:20] Production.INFO: ==2629== Releasing lock... [2025-03-16 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:11:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:12:05 [end_date_ymd] => 2025-03-16 05:12:05 [RateCDR] => 1 ) [2025-03-16 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:12:05' and `end` < '2025-03-16 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:12:17] Production.INFO: count ==302 [2025-03-16 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:12:05 - End Time 2025-03-16 05:12:05 [2025-03-16 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691260', 'tblTempUsageDetail_20' ) start [2025-03-16 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691260', 'tblTempUsageDetail_20' ) end [2025-03-16 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691260', 'tblTempVendorCDR_20' ) start [2025-03-16 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691260', 'tblTempVendorCDR_20' ) end [2025-03-16 05:12:17] Production.INFO: ProcessCDR(1,14691260,1,1,2) [2025-03-16 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691260', 'tblTempUsageDetail_20' ) start [2025-03-16 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691260', 'tblTempUsageDetail_20' ) end [2025-03-16 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:12:22] Production.INFO: ==2721== Releasing lock... [2025-03-16 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:13:04 [end_date_ymd] => 2025-03-16 05:13:04 [RateCDR] => 1 ) [2025-03-16 05: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-03-16 02:13:04' and `end` < '2025-03-16 05: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-03-16 05:13:17] Production.INFO: count ==301 [2025-03-16 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:13:04 - End Time 2025-03-16 05:13:04 [2025-03-16 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691265', 'tblTempUsageDetail_20' ) start [2025-03-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691265', 'tblTempUsageDetail_20' ) end [2025-03-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691265', 'tblTempVendorCDR_20' ) start [2025-03-16 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691265', 'tblTempVendorCDR_20' ) end [2025-03-16 05:13:17] Production.INFO: ProcessCDR(1,14691265,1,1,2) [2025-03-16 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691265', 'tblTempUsageDetail_20' ) start [2025-03-16 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691265', 'tblTempUsageDetail_20' ) end [2025-03-16 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:13:20] Production.INFO: ==2818== Releasing lock... [2025-03-16 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:13:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:14:05 [end_date_ymd] => 2025-03-16 05:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:14:05' and `end` < '2025-03-16 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-03-16 05:14:17] Production.INFO: count ==298 [2025-03-16 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:14:05 - End Time 2025-03-16 05:14:05 [2025-03-16 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691270', 'tblTempUsageDetail_20' ) start [2025-03-16 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691270', 'tblTempUsageDetail_20' ) end [2025-03-16 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691270', 'tblTempVendorCDR_20' ) start [2025-03-16 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691270', 'tblTempVendorCDR_20' ) end [2025-03-16 05:14:17] Production.INFO: ProcessCDR(1,14691270,1,1,2) [2025-03-16 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691270', 'tblTempUsageDetail_20' ) start [2025-03-16 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691270', 'tblTempUsageDetail_20' ) end [2025-03-16 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:14:21] Production.INFO: ==2948== Releasing lock... [2025-03-16 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:15:06 [end_date_ymd] => 2025-03-16 05:15:06 [RateCDR] => 1 ) [2025-03-16 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:15:06' and `end` < '2025-03-16 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:15:18] Production.INFO: count ==295 [2025-03-16 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:15:06 - End Time 2025-03-16 05:15:06 [2025-03-16 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691275', 'tblTempUsageDetail_20' ) start [2025-03-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691275', 'tblTempUsageDetail_20' ) end [2025-03-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691275', 'tblTempVendorCDR_20' ) start [2025-03-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691275', 'tblTempVendorCDR_20' ) end [2025-03-16 05:15:18] Production.INFO: ProcessCDR(1,14691275,1,1,2) [2025-03-16 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691275', 'tblTempUsageDetail_20' ) start [2025-03-16 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691275', 'tblTempUsageDetail_20' ) end [2025-03-16 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:15:22] Production.INFO: ==3049== Releasing lock... [2025-03-16 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:16:05 [end_date_ymd] => 2025-03-16 05:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:16:05' and `end` < '2025-03-16 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-03-16 05:16:17] Production.INFO: count ==293 [2025-03-16 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:16:05 - End Time 2025-03-16 05:16:05 [2025-03-16 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691280', 'tblTempUsageDetail_20' ) start [2025-03-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691280', 'tblTempUsageDetail_20' ) end [2025-03-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691280', 'tblTempVendorCDR_20' ) start [2025-03-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691280', 'tblTempVendorCDR_20' ) end [2025-03-16 05:16:17] Production.INFO: ProcessCDR(1,14691280,1,1,2) [2025-03-16 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691280', 'tblTempUsageDetail_20' ) start [2025-03-16 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691280', 'tblTempUsageDetail_20' ) end [2025-03-16 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:16:21] Production.INFO: ==3140== Releasing lock... [2025-03-16 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:17:05 [end_date_ymd] => 2025-03-16 05:17:05 [RateCDR] => 1 ) [2025-03-16 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:17:05' and `end` < '2025-03-16 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:17:18] Production.INFO: count ==293 [2025-03-16 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:17:05 - End Time 2025-03-16 05:17:05 [2025-03-16 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691285', 'tblTempUsageDetail_20' ) start [2025-03-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691285', 'tblTempUsageDetail_20' ) end [2025-03-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691285', 'tblTempVendorCDR_20' ) start [2025-03-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691285', 'tblTempVendorCDR_20' ) end [2025-03-16 05:17:18] Production.INFO: ProcessCDR(1,14691285,1,1,2) [2025-03-16 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691285', 'tblTempUsageDetail_20' ) start [2025-03-16 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691285', 'tblTempUsageDetail_20' ) end [2025-03-16 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:17:21] Production.INFO: ==3229== Releasing lock... [2025-03-16 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:18:05 [end_date_ymd] => 2025-03-16 05:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:18:05' and `end` < '2025-03-16 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-03-16 05:18:17] Production.INFO: count ==289 [2025-03-16 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:18:05 - End Time 2025-03-16 05:18:05 [2025-03-16 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691290', 'tblTempUsageDetail_20' ) start [2025-03-16 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691290', 'tblTempUsageDetail_20' ) end [2025-03-16 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691290', 'tblTempVendorCDR_20' ) start [2025-03-16 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691290', 'tblTempVendorCDR_20' ) end [2025-03-16 05:18:17] Production.INFO: ProcessCDR(1,14691290,1,1,2) [2025-03-16 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691290', 'tblTempUsageDetail_20' ) start [2025-03-16 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691290', 'tblTempUsageDetail_20' ) end [2025-03-16 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:18:21] Production.INFO: ==3336== Releasing lock... [2025-03-16 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:19:05 [end_date_ymd] => 2025-03-16 05:19:05 [RateCDR] => 1 ) [2025-03-16 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:19:05' and `end` < '2025-03-16 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:19:17] Production.INFO: count ==287 [2025-03-16 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:19:05 - End Time 2025-03-16 05:19:05 [2025-03-16 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691295', 'tblTempUsageDetail_20' ) start [2025-03-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691295', 'tblTempUsageDetail_20' ) end [2025-03-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691295', 'tblTempVendorCDR_20' ) start [2025-03-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691295', 'tblTempVendorCDR_20' ) end [2025-03-16 05:19:17] Production.INFO: ProcessCDR(1,14691295,1,1,2) [2025-03-16 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691295', 'tblTempUsageDetail_20' ) start [2025-03-16 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691295', 'tblTempUsageDetail_20' ) end [2025-03-16 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:19:21] Production.INFO: ==3432== Releasing lock... [2025-03-16 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:20:06 [end_date_ymd] => 2025-03-16 05:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:20:06' and `end` < '2025-03-16 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-03-16 05:20:18] Production.INFO: count ==280 [2025-03-16 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:20:06 - End Time 2025-03-16 05:20:06 [2025-03-16 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691301', 'tblTempUsageDetail_20' ) start [2025-03-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691301', 'tblTempUsageDetail_20' ) end [2025-03-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691301', 'tblTempVendorCDR_20' ) start [2025-03-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691301', 'tblTempVendorCDR_20' ) end [2025-03-16 05:20:18] Production.INFO: ProcessCDR(1,14691301,1,1,2) [2025-03-16 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691301', 'tblTempUsageDetail_20' ) start [2025-03-16 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691301', 'tblTempUsageDetail_20' ) end [2025-03-16 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:20:22] Production.INFO: ==3526== Releasing lock... [2025-03-16 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:21:05 [end_date_ymd] => 2025-03-16 05:21:05 [RateCDR] => 1 ) [2025-03-16 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:21:05' and `end` < '2025-03-16 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:21:17] Production.INFO: count ==256 [2025-03-16 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:21:05 - End Time 2025-03-16 05:21:05 [2025-03-16 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691306', 'tblTempUsageDetail_20' ) start [2025-03-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691306', 'tblTempUsageDetail_20' ) end [2025-03-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691306', 'tblTempVendorCDR_20' ) start [2025-03-16 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691306', 'tblTempVendorCDR_20' ) end [2025-03-16 05:21:18] Production.INFO: ProcessCDR(1,14691306,1,1,2) [2025-03-16 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691306', 'tblTempUsageDetail_20' ) start [2025-03-16 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691306', 'tblTempUsageDetail_20' ) end [2025-03-16 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:21:21] Production.INFO: ==3630== Releasing lock... [2025-03-16 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:22:05 [end_date_ymd] => 2025-03-16 05:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:22:05' and `end` < '2025-03-16 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-03-16 05:22:17] Production.INFO: count ==252 [2025-03-16 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:22:05 - End Time 2025-03-16 05:22:05 [2025-03-16 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691311', 'tblTempUsageDetail_20' ) start [2025-03-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691311', 'tblTempUsageDetail_20' ) end [2025-03-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691311', 'tblTempVendorCDR_20' ) start [2025-03-16 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691311', 'tblTempVendorCDR_20' ) end [2025-03-16 05:22:17] Production.INFO: ProcessCDR(1,14691311,1,1,2) [2025-03-16 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691311', 'tblTempUsageDetail_20' ) start [2025-03-16 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691311', 'tblTempUsageDetail_20' ) end [2025-03-16 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:22:20] Production.INFO: ==3723== Releasing lock... [2025-03-16 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:23:05 [end_date_ymd] => 2025-03-16 05:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:23:05' and `end` < '2025-03-16 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-03-16 05:23:18] Production.INFO: count ==250 [2025-03-16 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:23:05 - End Time 2025-03-16 05:23:05 [2025-03-16 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691316', 'tblTempUsageDetail_20' ) start [2025-03-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691316', 'tblTempUsageDetail_20' ) end [2025-03-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691316', 'tblTempVendorCDR_20' ) start [2025-03-16 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691316', 'tblTempVendorCDR_20' ) end [2025-03-16 05:23:18] Production.INFO: ProcessCDR(1,14691316,1,1,2) [2025-03-16 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691316', 'tblTempUsageDetail_20' ) start [2025-03-16 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691316', 'tblTempUsageDetail_20' ) end [2025-03-16 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:23:21] Production.INFO: ==3815== Releasing lock... [2025-03-16 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:24:06 [end_date_ymd] => 2025-03-16 05:24:06 [RateCDR] => 1 ) [2025-03-16 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:24:06' and `end` < '2025-03-16 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:24:18] Production.INFO: count ==253 [2025-03-16 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:24:06 - End Time 2025-03-16 05:24:06 [2025-03-16 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691321', 'tblTempUsageDetail_20' ) start [2025-03-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691321', 'tblTempUsageDetail_20' ) end [2025-03-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691321', 'tblTempVendorCDR_20' ) start [2025-03-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691321', 'tblTempVendorCDR_20' ) end [2025-03-16 05:24:18] Production.INFO: ProcessCDR(1,14691321,1,1,2) [2025-03-16 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691321', 'tblTempUsageDetail_20' ) start [2025-03-16 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691321', 'tblTempUsageDetail_20' ) end [2025-03-16 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:24:21] Production.INFO: ==3917== Releasing lock... [2025-03-16 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:25:05 [end_date_ymd] => 2025-03-16 05:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:25:05' and `end` < '2025-03-16 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-03-16 05:25:17] Production.INFO: count ==250 [2025-03-16 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:25:05 - End Time 2025-03-16 05:25:05 [2025-03-16 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691326', 'tblTempUsageDetail_20' ) start [2025-03-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691326', 'tblTempUsageDetail_20' ) end [2025-03-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691326', 'tblTempVendorCDR_20' ) start [2025-03-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691326', 'tblTempVendorCDR_20' ) end [2025-03-16 05:25:17] Production.INFO: ProcessCDR(1,14691326,1,1,2) [2025-03-16 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691326', 'tblTempUsageDetail_20' ) start [2025-03-16 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691326', 'tblTempUsageDetail_20' ) end [2025-03-16 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:25:20] Production.INFO: ==4004== Releasing lock... [2025-03-16 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:26:05 [end_date_ymd] => 2025-03-16 05:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:26:05' and `end` < '2025-03-16 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-03-16 05:26:17] Production.INFO: count ==250 [2025-03-16 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:26:05 - End Time 2025-03-16 05:26:05 [2025-03-16 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691331', 'tblTempUsageDetail_20' ) start [2025-03-16 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691331', 'tblTempUsageDetail_20' ) end [2025-03-16 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691331', 'tblTempVendorCDR_20' ) start [2025-03-16 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691331', 'tblTempVendorCDR_20' ) end [2025-03-16 05:26:17] Production.INFO: ProcessCDR(1,14691331,1,1,2) [2025-03-16 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691331', 'tblTempUsageDetail_20' ) start [2025-03-16 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691331', 'tblTempUsageDetail_20' ) end [2025-03-16 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:26:21] Production.INFO: ==4100== Releasing lock... [2025-03-16 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:27:05 [end_date_ymd] => 2025-03-16 05:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:27:05' and `end` < '2025-03-16 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-03-16 05:27:17] Production.INFO: count ==250 [2025-03-16 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:27:05 - End Time 2025-03-16 05:27:05 [2025-03-16 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691336', 'tblTempUsageDetail_20' ) start [2025-03-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691336', 'tblTempUsageDetail_20' ) end [2025-03-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691336', 'tblTempVendorCDR_20' ) start [2025-03-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691336', 'tblTempVendorCDR_20' ) end [2025-03-16 05:27:17] Production.INFO: ProcessCDR(1,14691336,1,1,2) [2025-03-16 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691336', 'tblTempUsageDetail_20' ) start [2025-03-16 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691336', 'tblTempUsageDetail_20' ) end [2025-03-16 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:27:21] Production.INFO: ==4191== Releasing lock... [2025-03-16 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:28:05 [end_date_ymd] => 2025-03-16 05:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:28:05' and `end` < '2025-03-16 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-03-16 05:28:17] Production.INFO: count ==250 [2025-03-16 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:28:05 - End Time 2025-03-16 05:28:05 [2025-03-16 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691341', 'tblTempUsageDetail_20' ) start [2025-03-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691341', 'tblTempUsageDetail_20' ) end [2025-03-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691341', 'tblTempVendorCDR_20' ) start [2025-03-16 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691341', 'tblTempVendorCDR_20' ) end [2025-03-16 05:28:17] Production.INFO: ProcessCDR(1,14691341,1,1,2) [2025-03-16 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691341', 'tblTempUsageDetail_20' ) start [2025-03-16 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691341', 'tblTempUsageDetail_20' ) end [2025-03-16 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:28:21] Production.INFO: ==4284== Releasing lock... [2025-03-16 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:29:05 [end_date_ymd] => 2025-03-16 05:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:29:05' and `end` < '2025-03-16 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-03-16 05:29:17] Production.INFO: count ==250 [2025-03-16 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:29:05 - End Time 2025-03-16 05:29:05 [2025-03-16 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691346', 'tblTempUsageDetail_20' ) start [2025-03-16 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691346', 'tblTempUsageDetail_20' ) end [2025-03-16 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691346', 'tblTempVendorCDR_20' ) start [2025-03-16 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691346', 'tblTempVendorCDR_20' ) end [2025-03-16 05:29:17] Production.INFO: ProcessCDR(1,14691346,1,1,2) [2025-03-16 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691346', 'tblTempUsageDetail_20' ) start [2025-03-16 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691346', 'tblTempUsageDetail_20' ) end [2025-03-16 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:29:21] Production.INFO: ==4415== Releasing lock... [2025-03-16 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:30:06 [end_date_ymd] => 2025-03-16 05:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:30:06' and `end` < '2025-03-16 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-03-16 05:30:18] Production.INFO: count ==249 [2025-03-16 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:30:06 - End Time 2025-03-16 05:30:06 [2025-03-16 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691352', 'tblTempUsageDetail_20' ) start [2025-03-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691352', 'tblTempUsageDetail_20' ) end [2025-03-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691352', 'tblTempVendorCDR_20' ) start [2025-03-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691352', 'tblTempVendorCDR_20' ) end [2025-03-16 05:30:18] Production.INFO: ProcessCDR(1,14691352,1,1,2) [2025-03-16 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691352', 'tblTempUsageDetail_20' ) start [2025-03-16 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691352', 'tblTempUsageDetail_20' ) end [2025-03-16 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:30:22] Production.INFO: ==4519== Releasing lock... [2025-03-16 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:31:05 [end_date_ymd] => 2025-03-16 05:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:31:05' and `end` < '2025-03-16 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-03-16 05:31:17] Production.INFO: count ==250 [2025-03-16 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:31:05 - End Time 2025-03-16 05:31:05 [2025-03-16 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691357', 'tblTempUsageDetail_20' ) start [2025-03-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691357', 'tblTempUsageDetail_20' ) end [2025-03-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691357', 'tblTempVendorCDR_20' ) start [2025-03-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691357', 'tblTempVendorCDR_20' ) end [2025-03-16 05:31:17] Production.INFO: ProcessCDR(1,14691357,1,1,2) [2025-03-16 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691357', 'tblTempUsageDetail_20' ) start [2025-03-16 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691357', 'tblTempUsageDetail_20' ) end [2025-03-16 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:31:20] Production.INFO: ==4630== Releasing lock... [2025-03-16 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:31:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:32:05 [end_date_ymd] => 2025-03-16 05:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:32:05' and `end` < '2025-03-16 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-03-16 05:32:17] Production.INFO: count ==250 [2025-03-16 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:32:05 - End Time 2025-03-16 05:32:05 [2025-03-16 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691362', 'tblTempUsageDetail_20' ) start [2025-03-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691362', 'tblTempUsageDetail_20' ) end [2025-03-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691362', 'tblTempVendorCDR_20' ) start [2025-03-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691362', 'tblTempVendorCDR_20' ) end [2025-03-16 05:32:17] Production.INFO: ProcessCDR(1,14691362,1,1,2) [2025-03-16 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691362', 'tblTempUsageDetail_20' ) start [2025-03-16 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691362', 'tblTempUsageDetail_20' ) end [2025-03-16 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:32:21] Production.INFO: ==4727== Releasing lock... [2025-03-16 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:33:05 [end_date_ymd] => 2025-03-16 05:33:05 [RateCDR] => 1 ) [2025-03-16 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:33:05' and `end` < '2025-03-16 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:33:17] Production.INFO: count ==250 [2025-03-16 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:33:05 - End Time 2025-03-16 05:33:05 [2025-03-16 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691367', 'tblTempUsageDetail_20' ) start [2025-03-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691367', 'tblTempUsageDetail_20' ) end [2025-03-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691367', 'tblTempVendorCDR_20' ) start [2025-03-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691367', 'tblTempVendorCDR_20' ) end [2025-03-16 05:33:17] Production.INFO: ProcessCDR(1,14691367,1,1,2) [2025-03-16 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691367', 'tblTempUsageDetail_20' ) start [2025-03-16 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691367', 'tblTempUsageDetail_20' ) end [2025-03-16 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:33:20] Production.INFO: ==4818== Releasing lock... [2025-03-16 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:34:05 [end_date_ymd] => 2025-03-16 05:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:34:05' and `end` < '2025-03-16 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-03-16 05:34:18] Production.INFO: count ==249 [2025-03-16 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:34:05 - End Time 2025-03-16 05:34:05 [2025-03-16 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691372', 'tblTempUsageDetail_20' ) start [2025-03-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691372', 'tblTempUsageDetail_20' ) end [2025-03-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691372', 'tblTempVendorCDR_20' ) start [2025-03-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691372', 'tblTempVendorCDR_20' ) end [2025-03-16 05:34:18] Production.INFO: ProcessCDR(1,14691372,1,1,2) [2025-03-16 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691372', 'tblTempUsageDetail_20' ) start [2025-03-16 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691372', 'tblTempUsageDetail_20' ) end [2025-03-16 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:34:21] Production.INFO: ==4909== Releasing lock... [2025-03-16 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:35:05 [end_date_ymd] => 2025-03-16 05:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:35:05' and `end` < '2025-03-16 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-03-16 05:35:17] Production.INFO: count ==249 [2025-03-16 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:35:05 - End Time 2025-03-16 05:35:05 [2025-03-16 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691377', 'tblTempUsageDetail_20' ) start [2025-03-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691377', 'tblTempUsageDetail_20' ) end [2025-03-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691377', 'tblTempVendorCDR_20' ) start [2025-03-16 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691377', 'tblTempVendorCDR_20' ) end [2025-03-16 05:35:17] Production.INFO: ProcessCDR(1,14691377,1,1,2) [2025-03-16 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691377', 'tblTempUsageDetail_20' ) start [2025-03-16 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691377', 'tblTempUsageDetail_20' ) end [2025-03-16 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:35:20] Production.INFO: ==5004== Releasing lock... [2025-03-16 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:35:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:36:06 [end_date_ymd] => 2025-03-16 05:36:06 [RateCDR] => 1 ) [2025-03-16 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:36:06' and `end` < '2025-03-16 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:36:18] Production.INFO: count ==245 [2025-03-16 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:36:06 - End Time 2025-03-16 05:36:06 [2025-03-16 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691382', 'tblTempUsageDetail_20' ) start [2025-03-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691382', 'tblTempUsageDetail_20' ) end [2025-03-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691382', 'tblTempVendorCDR_20' ) start [2025-03-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691382', 'tblTempVendorCDR_20' ) end [2025-03-16 05:36:18] Production.INFO: ProcessCDR(1,14691382,1,1,2) [2025-03-16 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691382', 'tblTempUsageDetail_20' ) start [2025-03-16 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691382', 'tblTempUsageDetail_20' ) end [2025-03-16 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:36:21] Production.INFO: ==5095== Releasing lock... [2025-03-16 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:37:05 [end_date_ymd] => 2025-03-16 05:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:37:05' and `end` < '2025-03-16 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-03-16 05:37:17] Production.INFO: count ==245 [2025-03-16 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:37:05 - End Time 2025-03-16 05:37:05 [2025-03-16 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691387', 'tblTempUsageDetail_20' ) start [2025-03-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691387', 'tblTempUsageDetail_20' ) end [2025-03-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691387', 'tblTempVendorCDR_20' ) start [2025-03-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691387', 'tblTempVendorCDR_20' ) end [2025-03-16 05:37:17] Production.INFO: ProcessCDR(1,14691387,1,1,2) [2025-03-16 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691387', 'tblTempUsageDetail_20' ) start [2025-03-16 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691387', 'tblTempUsageDetail_20' ) end [2025-03-16 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:37:20] Production.INFO: ==5186== Releasing lock... [2025-03-16 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:37:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:38:05 [end_date_ymd] => 2025-03-16 05:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:38:05' and `end` < '2025-03-16 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-03-16 05:38:17] Production.INFO: count ==244 [2025-03-16 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:38:05 - End Time 2025-03-16 05:38:05 [2025-03-16 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691392', 'tblTempUsageDetail_20' ) start [2025-03-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691392', 'tblTempUsageDetail_20' ) end [2025-03-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691392', 'tblTempVendorCDR_20' ) start [2025-03-16 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691392', 'tblTempVendorCDR_20' ) end [2025-03-16 05:38:17] Production.INFO: ProcessCDR(1,14691392,1,1,2) [2025-03-16 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691392', 'tblTempUsageDetail_20' ) start [2025-03-16 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691392', 'tblTempUsageDetail_20' ) end [2025-03-16 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:38:21] Production.INFO: ==5279== Releasing lock... [2025-03-16 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:39:05 [end_date_ymd] => 2025-03-16 05:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:39:05' and `end` < '2025-03-16 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-03-16 05:39:17] Production.INFO: count ==241 [2025-03-16 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:39:05 - End Time 2025-03-16 05:39:05 [2025-03-16 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691397', 'tblTempUsageDetail_20' ) start [2025-03-16 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691397', 'tblTempUsageDetail_20' ) end [2025-03-16 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691397', 'tblTempVendorCDR_20' ) start [2025-03-16 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691397', 'tblTempVendorCDR_20' ) end [2025-03-16 05:39:17] Production.INFO: ProcessCDR(1,14691397,1,1,2) [2025-03-16 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691397', 'tblTempUsageDetail_20' ) start [2025-03-16 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691397', 'tblTempUsageDetail_20' ) end [2025-03-16 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:39:20] Production.INFO: ==5368== Releasing lock... [2025-03-16 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:39:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:40:06 [end_date_ymd] => 2025-03-16 05:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:40:06' and `end` < '2025-03-16 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-03-16 05:40:18] Production.INFO: count ==230 [2025-03-16 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:40:06 - End Time 2025-03-16 05:40:06 [2025-03-16 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691403', 'tblTempUsageDetail_20' ) start [2025-03-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691403', 'tblTempUsageDetail_20' ) end [2025-03-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691403', 'tblTempVendorCDR_20' ) start [2025-03-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691403', 'tblTempVendorCDR_20' ) end [2025-03-16 05:40:18] Production.INFO: ProcessCDR(1,14691403,1,1,2) [2025-03-16 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691403', 'tblTempUsageDetail_20' ) start [2025-03-16 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691403', 'tblTempUsageDetail_20' ) end [2025-03-16 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:40:21] Production.INFO: ==5464== Releasing lock... [2025-03-16 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:40:21] Production.INFO: 30 MB #Memory Used# [2025-03-16 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:41:05 [end_date_ymd] => 2025-03-16 05:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:41:05' and `end` < '2025-03-16 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-03-16 05:41:17] Production.INFO: count ==212 [2025-03-16 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:41:05 - End Time 2025-03-16 05:41:05 [2025-03-16 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691408', 'tblTempUsageDetail_20' ) start [2025-03-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691408', 'tblTempUsageDetail_20' ) end [2025-03-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691408', 'tblTempVendorCDR_20' ) start [2025-03-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691408', 'tblTempVendorCDR_20' ) end [2025-03-16 05:41:17] Production.INFO: ProcessCDR(1,14691408,1,1,2) [2025-03-16 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691408', 'tblTempUsageDetail_20' ) start [2025-03-16 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691408', 'tblTempUsageDetail_20' ) end [2025-03-16 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:41:20] Production.INFO: ==5556== Releasing lock... [2025-03-16 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:41:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:42:06 [end_date_ymd] => 2025-03-16 05:42:06 [RateCDR] => 1 ) [2025-03-16 05: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-03-16 02:42:06' and `end` < '2025-03-16 05: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-03-16 05:42:18] Production.INFO: count ==210 [2025-03-16 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:42:06 - End Time 2025-03-16 05:42:06 [2025-03-16 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691413', 'tblTempUsageDetail_20' ) start [2025-03-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691413', 'tblTempUsageDetail_20' ) end [2025-03-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691413', 'tblTempVendorCDR_20' ) start [2025-03-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691413', 'tblTempVendorCDR_20' ) end [2025-03-16 05:42:18] Production.INFO: ProcessCDR(1,14691413,1,1,2) [2025-03-16 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691413', 'tblTempUsageDetail_20' ) start [2025-03-16 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691413', 'tblTempUsageDetail_20' ) end [2025-03-16 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:42:21] Production.INFO: ==5644== Releasing lock... [2025-03-16 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:43:05 [end_date_ymd] => 2025-03-16 05:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:43:05' and `end` < '2025-03-16 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-03-16 05:43:17] Production.INFO: count ==210 [2025-03-16 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:43:05 - End Time 2025-03-16 05:43:05 [2025-03-16 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691418', 'tblTempUsageDetail_20' ) start [2025-03-16 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691418', 'tblTempUsageDetail_20' ) end [2025-03-16 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691418', 'tblTempVendorCDR_20' ) start [2025-03-16 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691418', 'tblTempVendorCDR_20' ) end [2025-03-16 05:43:17] Production.INFO: ProcessCDR(1,14691418,1,1,2) [2025-03-16 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691418', 'tblTempUsageDetail_20' ) start [2025-03-16 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691418', 'tblTempUsageDetail_20' ) end [2025-03-16 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:43:21] Production.INFO: ==5732== Releasing lock... [2025-03-16 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:44:05 [end_date_ymd] => 2025-03-16 05:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:44:05' and `end` < '2025-03-16 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-03-16 05:44:17] Production.INFO: count ==210 [2025-03-16 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:44:05 - End Time 2025-03-16 05:44:05 [2025-03-16 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691423', 'tblTempUsageDetail_20' ) start [2025-03-16 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691423', 'tblTempUsageDetail_20' ) end [2025-03-16 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691423', 'tblTempVendorCDR_20' ) start [2025-03-16 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691423', 'tblTempVendorCDR_20' ) end [2025-03-16 05:44:17] Production.INFO: ProcessCDR(1,14691423,1,1,2) [2025-03-16 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691423', 'tblTempUsageDetail_20' ) start [2025-03-16 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691423', 'tblTempUsageDetail_20' ) end [2025-03-16 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:44:20] Production.INFO: ==5801== Releasing lock... [2025-03-16 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:44:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:45:05 [end_date_ymd] => 2025-03-16 05:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:45:05' and `end` < '2025-03-16 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-03-16 05:45:17] Production.INFO: count ==209 [2025-03-16 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:45:05 - End Time 2025-03-16 05:45:05 [2025-03-16 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691428', 'tblTempUsageDetail_20' ) start [2025-03-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691428', 'tblTempUsageDetail_20' ) end [2025-03-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691428', 'tblTempVendorCDR_20' ) start [2025-03-16 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691428', 'tblTempVendorCDR_20' ) end [2025-03-16 05:45:17] Production.INFO: ProcessCDR(1,14691428,1,1,2) [2025-03-16 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691428', 'tblTempUsageDetail_20' ) start [2025-03-16 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691428', 'tblTempUsageDetail_20' ) end [2025-03-16 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:45:21] Production.INFO: ==5919== Releasing lock... [2025-03-16 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:46:05 [end_date_ymd] => 2025-03-16 05:46:05 [RateCDR] => 1 ) [2025-03-16 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:46:05' and `end` < '2025-03-16 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:46:17] Production.INFO: count ==209 [2025-03-16 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:46:05 - End Time 2025-03-16 05:46:05 [2025-03-16 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691433', 'tblTempUsageDetail_20' ) start [2025-03-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691433', 'tblTempUsageDetail_20' ) end [2025-03-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691433', 'tblTempVendorCDR_20' ) start [2025-03-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691433', 'tblTempVendorCDR_20' ) end [2025-03-16 05:46:17] Production.INFO: ProcessCDR(1,14691433,1,1,2) [2025-03-16 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691433', 'tblTempUsageDetail_20' ) start [2025-03-16 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691433', 'tblTempUsageDetail_20' ) end [2025-03-16 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:46:21] Production.INFO: ==5994== Releasing lock... [2025-03-16 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:47:05 [end_date_ymd] => 2025-03-16 05:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:47:05' and `end` < '2025-03-16 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-03-16 05:47:18] Production.INFO: count ==209 [2025-03-16 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:47:05 - End Time 2025-03-16 05:47:05 [2025-03-16 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691438', 'tblTempUsageDetail_20' ) start [2025-03-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691438', 'tblTempUsageDetail_20' ) end [2025-03-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691438', 'tblTempVendorCDR_20' ) start [2025-03-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691438', 'tblTempVendorCDR_20' ) end [2025-03-16 05:47:18] Production.INFO: ProcessCDR(1,14691438,1,1,2) [2025-03-16 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691438', 'tblTempUsageDetail_20' ) start [2025-03-16 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691438', 'tblTempUsageDetail_20' ) end [2025-03-16 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:47:21] Production.INFO: ==6097== Releasing lock... [2025-03-16 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:48:05 [end_date_ymd] => 2025-03-16 05:48:05 [RateCDR] => 1 ) [2025-03-16 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:48:05' and `end` < '2025-03-16 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:48:17] Production.INFO: count ==209 [2025-03-16 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:48:05 - End Time 2025-03-16 05:48:05 [2025-03-16 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691443', 'tblTempUsageDetail_20' ) start [2025-03-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691443', 'tblTempUsageDetail_20' ) end [2025-03-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691443', 'tblTempVendorCDR_20' ) start [2025-03-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691443', 'tblTempVendorCDR_20' ) end [2025-03-16 05:48:17] Production.INFO: ProcessCDR(1,14691443,1,1,2) [2025-03-16 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691443', 'tblTempUsageDetail_20' ) start [2025-03-16 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691443', 'tblTempUsageDetail_20' ) end [2025-03-16 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:48:21] Production.INFO: ==6172== Releasing lock... [2025-03-16 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:49:05 [end_date_ymd] => 2025-03-16 05:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:49:05' and `end` < '2025-03-16 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-03-16 05:49:18] Production.INFO: count ==209 [2025-03-16 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:49:05 - End Time 2025-03-16 05:49:05 [2025-03-16 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691448', 'tblTempUsageDetail_20' ) start [2025-03-16 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691448', 'tblTempUsageDetail_20' ) end [2025-03-16 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691448', 'tblTempVendorCDR_20' ) start [2025-03-16 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691448', 'tblTempVendorCDR_20' ) end [2025-03-16 05:49:18] Production.INFO: ProcessCDR(1,14691448,1,1,2) [2025-03-16 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691448', 'tblTempUsageDetail_20' ) start [2025-03-16 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691448', 'tblTempUsageDetail_20' ) end [2025-03-16 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:49:21] Production.INFO: ==6247== Releasing lock... [2025-03-16 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:50:06 [end_date_ymd] => 2025-03-16 05:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:50:06' and `end` < '2025-03-16 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-03-16 05:50:18] Production.INFO: count ==198 [2025-03-16 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:50:06 - End Time 2025-03-16 05:50:06 [2025-03-16 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691454', 'tblTempUsageDetail_20' ) start [2025-03-16 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691454', 'tblTempUsageDetail_20' ) end [2025-03-16 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691454', 'tblTempVendorCDR_20' ) start [2025-03-16 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691454', 'tblTempVendorCDR_20' ) end [2025-03-16 05:50:18] Production.INFO: ProcessCDR(1,14691454,1,1,2) [2025-03-16 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691454', 'tblTempUsageDetail_20' ) start [2025-03-16 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691454', 'tblTempUsageDetail_20' ) end [2025-03-16 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:50:21] Production.INFO: ==6324== Releasing lock... [2025-03-16 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:51:05 [end_date_ymd] => 2025-03-16 05:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:51:05' and `end` < '2025-03-16 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-03-16 05:51:17] Production.INFO: count ==190 [2025-03-16 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:51:05 - End Time 2025-03-16 05:51:05 [2025-03-16 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691459', 'tblTempUsageDetail_20' ) start [2025-03-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691459', 'tblTempUsageDetail_20' ) end [2025-03-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691459', 'tblTempVendorCDR_20' ) start [2025-03-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691459', 'tblTempVendorCDR_20' ) end [2025-03-16 05:51:17] Production.INFO: ProcessCDR(1,14691459,1,1,2) [2025-03-16 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691459', 'tblTempUsageDetail_20' ) start [2025-03-16 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691459', 'tblTempUsageDetail_20' ) end [2025-03-16 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:51:21] Production.INFO: ==6400== Releasing lock... [2025-03-16 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:52:05 [end_date_ymd] => 2025-03-16 05:52:05 [RateCDR] => 1 ) [2025-03-16 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:52:05' and `end` < '2025-03-16 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:52:17] Production.INFO: count ==189 [2025-03-16 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:52:05 - End Time 2025-03-16 05:52:05 [2025-03-16 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691464', 'tblTempUsageDetail_20' ) start [2025-03-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691464', 'tblTempUsageDetail_20' ) end [2025-03-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691464', 'tblTempVendorCDR_20' ) start [2025-03-16 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691464', 'tblTempVendorCDR_20' ) end [2025-03-16 05:52:17] Production.INFO: ProcessCDR(1,14691464,1,1,2) [2025-03-16 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691464', 'tblTempUsageDetail_20' ) start [2025-03-16 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691464', 'tblTempUsageDetail_20' ) end [2025-03-16 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:52:21] Production.INFO: ==6474== Releasing lock... [2025-03-16 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:53:06 [end_date_ymd] => 2025-03-16 05:53:06 [RateCDR] => 1 ) [2025-03-16 05: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-03-16 02:53:06' and `end` < '2025-03-16 05: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-03-16 05:53:18] Production.INFO: count ==189 [2025-03-16 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 02:53:06 - End Time 2025-03-16 05:53:06 [2025-03-16 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691469', 'tblTempUsageDetail_20' ) start [2025-03-16 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691469', 'tblTempUsageDetail_20' ) end [2025-03-16 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691469', 'tblTempVendorCDR_20' ) start [2025-03-16 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691469', 'tblTempVendorCDR_20' ) end [2025-03-16 05:53:18] Production.INFO: ProcessCDR(1,14691469,1,1,2) [2025-03-16 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691469', 'tblTempUsageDetail_20' ) start [2025-03-16 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691469', 'tblTempUsageDetail_20' ) end [2025-03-16 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:53:21] Production.INFO: ==6545== Releasing lock... [2025-03-16 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:54:05 [end_date_ymd] => 2025-03-16 05:54:05 [RateCDR] => 1 ) [2025-03-16 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 02:54:05' and `end` < '2025-03-16 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 05:54:17] Production.INFO: count ==189 [2025-03-16 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:54:05 - End Time 2025-03-16 05:54:05 [2025-03-16 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691474', 'tblTempUsageDetail_20' ) start [2025-03-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691474', 'tblTempUsageDetail_20' ) end [2025-03-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691474', 'tblTempVendorCDR_20' ) start [2025-03-16 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691474', 'tblTempVendorCDR_20' ) end [2025-03-16 05:54:17] Production.INFO: ProcessCDR(1,14691474,1,1,2) [2025-03-16 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691474', 'tblTempUsageDetail_20' ) start [2025-03-16 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691474', 'tblTempUsageDetail_20' ) end [2025-03-16 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:54:20] Production.INFO: ==6617== Releasing lock... [2025-03-16 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:55:05 [end_date_ymd] => 2025-03-16 05:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:55:05' and `end` < '2025-03-16 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-03-16 05:55:17] Production.INFO: count ==185 [2025-03-16 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:55:05 - End Time 2025-03-16 05:55:05 [2025-03-16 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691479', 'tblTempUsageDetail_20' ) start [2025-03-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691479', 'tblTempUsageDetail_20' ) end [2025-03-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691479', 'tblTempVendorCDR_20' ) start [2025-03-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691479', 'tblTempVendorCDR_20' ) end [2025-03-16 05:55:17] Production.INFO: ProcessCDR(1,14691479,1,1,2) [2025-03-16 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691479', 'tblTempUsageDetail_20' ) start [2025-03-16 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691479', 'tblTempUsageDetail_20' ) end [2025-03-16 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:55:21] Production.INFO: ==6692== Releasing lock... [2025-03-16 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:56:05 [end_date_ymd] => 2025-03-16 05:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:56:05' and `end` < '2025-03-16 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-03-16 05:56:17] Production.INFO: count ==189 [2025-03-16 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:56:05 - End Time 2025-03-16 05:56:05 [2025-03-16 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691484', 'tblTempUsageDetail_20' ) start [2025-03-16 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691484', 'tblTempUsageDetail_20' ) end [2025-03-16 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691484', 'tblTempVendorCDR_20' ) start [2025-03-16 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691484', 'tblTempVendorCDR_20' ) end [2025-03-16 05:56:17] Production.INFO: ProcessCDR(1,14691484,1,1,2) [2025-03-16 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691484', 'tblTempUsageDetail_20' ) start [2025-03-16 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691484', 'tblTempUsageDetail_20' ) end [2025-03-16 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:56:20] Production.INFO: ==6765== Releasing lock... [2025-03-16 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:56:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:57:05 [end_date_ymd] => 2025-03-16 05:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:57:05' and `end` < '2025-03-16 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-03-16 05:57:17] Production.INFO: count ==189 [2025-03-16 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:57:05 - End Time 2025-03-16 05:57:05 [2025-03-16 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691486', 'tblTempUsageDetail_20' ) start [2025-03-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691486', 'tblTempUsageDetail_20' ) end [2025-03-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691486', 'tblTempVendorCDR_20' ) start [2025-03-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691486', 'tblTempVendorCDR_20' ) end [2025-03-16 05:57:17] Production.INFO: ProcessCDR(1,14691486,1,1,2) [2025-03-16 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691486', 'tblTempUsageDetail_20' ) start [2025-03-16 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691486', 'tblTempUsageDetail_20' ) end [2025-03-16 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:57:21] Production.INFO: ==6835== Releasing lock... [2025-03-16 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:58:05 [end_date_ymd] => 2025-03-16 05:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:58:05' and `end` < '2025-03-16 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-03-16 05:58:17] Production.INFO: count ==186 [2025-03-16 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:58:05 - End Time 2025-03-16 05:58:05 [2025-03-16 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691494', 'tblTempUsageDetail_20' ) start [2025-03-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691494', 'tblTempUsageDetail_20' ) end [2025-03-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691494', 'tblTempVendorCDR_20' ) start [2025-03-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691494', 'tblTempVendorCDR_20' ) end [2025-03-16 05:58:17] Production.INFO: ProcessCDR(1,14691494,1,1,2) [2025-03-16 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691494', 'tblTempUsageDetail_20' ) start [2025-03-16 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691494', 'tblTempUsageDetail_20' ) end [2025-03-16 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:58:20] Production.INFO: ==6908== Releasing lock... [2025-03-16 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:58:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 02:59:05 [end_date_ymd] => 2025-03-16 05:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 02:59:05' and `end` < '2025-03-16 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-03-16 05:59:17] Production.INFO: count ==184 [2025-03-16 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 02:59:05 - End Time 2025-03-16 05:59:05 [2025-03-16 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691499', 'tblTempUsageDetail_20' ) start [2025-03-16 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691499', 'tblTempUsageDetail_20' ) end [2025-03-16 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691499', 'tblTempVendorCDR_20' ) start [2025-03-16 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691499', 'tblTempVendorCDR_20' ) end [2025-03-16 05:59:17] Production.INFO: ProcessCDR(1,14691499,1,1,2) [2025-03-16 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691499', 'tblTempUsageDetail_20' ) start [2025-03-16 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691499', 'tblTempUsageDetail_20' ) end [2025-03-16 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 05:59:21] Production.INFO: ==6981== Releasing lock... [2025-03-16 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 05:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:00:06 [end_date_ymd] => 2025-03-16 06:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:00:06' and `end` < '2025-03-16 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-03-16 06:00:18] Production.INFO: count ==184 [2025-03-16 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:00:06 - End Time 2025-03-16 06:00:06 [2025-03-16 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691504', 'tblTempUsageDetail_20' ) start [2025-03-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691504', 'tblTempUsageDetail_20' ) end [2025-03-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691504', 'tblTempVendorCDR_20' ) start [2025-03-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691504', 'tblTempVendorCDR_20' ) end [2025-03-16 06:00:18] Production.INFO: ProcessCDR(1,14691504,1,1,2) [2025-03-16 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691504', 'tblTempUsageDetail_20' ) start [2025-03-16 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691504', 'tblTempUsageDetail_20' ) end [2025-03-16 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:00:22] Production.INFO: ==7104== Releasing lock... [2025-03-16 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:01:05 [end_date_ymd] => 2025-03-16 06:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:01:05' and `end` < '2025-03-16 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-03-16 06:01:17] Production.INFO: count ==180 [2025-03-16 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:01:05 - End Time 2025-03-16 06:01:05 [2025-03-16 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691510', 'tblTempUsageDetail_20' ) start [2025-03-16 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691510', 'tblTempUsageDetail_20' ) end [2025-03-16 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691510', 'tblTempVendorCDR_20' ) start [2025-03-16 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691510', 'tblTempVendorCDR_20' ) end [2025-03-16 06:01:17] Production.INFO: ProcessCDR(1,14691510,1,1,2) [2025-03-16 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691510', 'tblTempUsageDetail_20' ) start [2025-03-16 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691510', 'tblTempUsageDetail_20' ) end [2025-03-16 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:01:20] Production.INFO: ==7195== Releasing lock... [2025-03-16 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:01:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:02:06 [end_date_ymd] => 2025-03-16 06:02:06 [RateCDR] => 1 ) [2025-03-16 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:02:06' and `end` < '2025-03-16 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:02:18] Production.INFO: count ==180 [2025-03-16 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:02:06 - End Time 2025-03-16 06:02:06 [2025-03-16 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691515', 'tblTempUsageDetail_20' ) start [2025-03-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691515', 'tblTempUsageDetail_20' ) end [2025-03-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691515', 'tblTempVendorCDR_20' ) start [2025-03-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691515', 'tblTempVendorCDR_20' ) end [2025-03-16 06:02:18] Production.INFO: ProcessCDR(1,14691515,1,1,2) [2025-03-16 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691515', 'tblTempUsageDetail_20' ) start [2025-03-16 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691515', 'tblTempUsageDetail_20' ) end [2025-03-16 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:02:21] Production.INFO: ==7266== Releasing lock... [2025-03-16 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:03:05 [end_date_ymd] => 2025-03-16 06:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:03:05' and `end` < '2025-03-16 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-03-16 06:03:17] Production.INFO: count ==180 [2025-03-16 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:03:05 - End Time 2025-03-16 06:03:05 [2025-03-16 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691520', 'tblTempUsageDetail_20' ) start [2025-03-16 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691520', 'tblTempUsageDetail_20' ) end [2025-03-16 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691520', 'tblTempVendorCDR_20' ) start [2025-03-16 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691520', 'tblTempVendorCDR_20' ) end [2025-03-16 06:03:17] Production.INFO: ProcessCDR(1,14691520,1,1,2) [2025-03-16 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691520', 'tblTempUsageDetail_20' ) start [2025-03-16 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691520', 'tblTempUsageDetail_20' ) end [2025-03-16 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:03:21] Production.INFO: ==7348== Releasing lock... [2025-03-16 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:04:05 [end_date_ymd] => 2025-03-16 06:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:04:05' and `end` < '2025-03-16 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-03-16 06:04:17] Production.INFO: count ==180 [2025-03-16 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:04:05 - End Time 2025-03-16 06:04:05 [2025-03-16 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691525', 'tblTempUsageDetail_20' ) start [2025-03-16 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691525', 'tblTempUsageDetail_20' ) end [2025-03-16 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691525', 'tblTempVendorCDR_20' ) start [2025-03-16 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691525', 'tblTempVendorCDR_20' ) end [2025-03-16 06:04:17] Production.INFO: ProcessCDR(1,14691525,1,1,2) [2025-03-16 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691525', 'tblTempUsageDetail_20' ) start [2025-03-16 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691525', 'tblTempUsageDetail_20' ) end [2025-03-16 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:04:20] Production.INFO: ==7421== Releasing lock... [2025-03-16 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:04:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:05:05 [end_date_ymd] => 2025-03-16 06:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:05:05' and `end` < '2025-03-16 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-03-16 06:05:17] Production.INFO: count ==180 [2025-03-16 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:05:05 - End Time 2025-03-16 06:05:05 [2025-03-16 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691530', 'tblTempUsageDetail_20' ) start [2025-03-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691530', 'tblTempUsageDetail_20' ) end [2025-03-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691530', 'tblTempVendorCDR_20' ) start [2025-03-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691530', 'tblTempVendorCDR_20' ) end [2025-03-16 06:05:18] Production.INFO: ProcessCDR(1,14691530,1,1,2) [2025-03-16 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691530', 'tblTempUsageDetail_20' ) start [2025-03-16 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691530', 'tblTempUsageDetail_20' ) end [2025-03-16 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:05:21] Production.INFO: ==7494== Releasing lock... [2025-03-16 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:06:06 [end_date_ymd] => 2025-03-16 06:06:06 [RateCDR] => 1 ) [2025-03-16 06: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-03-16 03:06:06' and `end` < '2025-03-16 06: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-03-16 06:06:18] Production.INFO: count ==180 [2025-03-16 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:06:06 - End Time 2025-03-16 06:06:06 [2025-03-16 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691535', 'tblTempUsageDetail_20' ) start [2025-03-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691535', 'tblTempUsageDetail_20' ) end [2025-03-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691535', 'tblTempVendorCDR_20' ) start [2025-03-16 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691535', 'tblTempVendorCDR_20' ) end [2025-03-16 06:06:18] Production.INFO: ProcessCDR(1,14691535,1,1,2) [2025-03-16 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691535', 'tblTempUsageDetail_20' ) start [2025-03-16 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691535', 'tblTempUsageDetail_20' ) end [2025-03-16 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:06:21] Production.INFO: ==7566== Releasing lock... [2025-03-16 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:07:05 [end_date_ymd] => 2025-03-16 06:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:07:05' and `end` < '2025-03-16 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-03-16 06:07:17] Production.INFO: count ==184 [2025-03-16 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:07:05 - End Time 2025-03-16 06:07:05 [2025-03-16 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691540', 'tblTempUsageDetail_20' ) start [2025-03-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691540', 'tblTempUsageDetail_20' ) end [2025-03-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691540', 'tblTempVendorCDR_20' ) start [2025-03-16 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691540', 'tblTempVendorCDR_20' ) end [2025-03-16 06:07:17] Production.INFO: ProcessCDR(1,14691540,1,1,2) [2025-03-16 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691540', 'tblTempUsageDetail_20' ) start [2025-03-16 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691540', 'tblTempUsageDetail_20' ) end [2025-03-16 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:07:21] Production.INFO: ==7641== Releasing lock... [2025-03-16 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:08:06 [end_date_ymd] => 2025-03-16 06:08:06 [RateCDR] => 1 ) [2025-03-16 06:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:08:06' and `end` < '2025-03-16 06:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:08:18] Production.INFO: count ==184 [2025-03-16 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:08:06 - End Time 2025-03-16 06:08:06 [2025-03-16 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691545', 'tblTempUsageDetail_20' ) start [2025-03-16 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691545', 'tblTempUsageDetail_20' ) end [2025-03-16 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691545', 'tblTempVendorCDR_20' ) start [2025-03-16 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691545', 'tblTempVendorCDR_20' ) end [2025-03-16 06:08:18] Production.INFO: ProcessCDR(1,14691545,1,1,2) [2025-03-16 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691545', 'tblTempUsageDetail_20' ) start [2025-03-16 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691545', 'tblTempUsageDetail_20' ) end [2025-03-16 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:08:21] Production.INFO: ==7716== Releasing lock... [2025-03-16 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:09:05 [end_date_ymd] => 2025-03-16 06:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:09:05' and `end` < '2025-03-16 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-03-16 06:09:17] Production.INFO: count ==184 [2025-03-16 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:09:05 - End Time 2025-03-16 06:09:05 [2025-03-16 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691550', 'tblTempUsageDetail_20' ) start [2025-03-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691550', 'tblTempUsageDetail_20' ) end [2025-03-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691550', 'tblTempVendorCDR_20' ) start [2025-03-16 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691550', 'tblTempVendorCDR_20' ) end [2025-03-16 06:09:17] Production.INFO: ProcessCDR(1,14691550,1,1,2) [2025-03-16 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691550', 'tblTempUsageDetail_20' ) start [2025-03-16 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691550', 'tblTempUsageDetail_20' ) end [2025-03-16 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:09:21] Production.INFO: ==7789== Releasing lock... [2025-03-16 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:10:06 [end_date_ymd] => 2025-03-16 06:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:10:06' and `end` < '2025-03-16 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-03-16 06:10:18] Production.INFO: count ==192 [2025-03-16 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:10:06 - End Time 2025-03-16 06:10:06 [2025-03-16 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691556', 'tblTempUsageDetail_20' ) start [2025-03-16 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691556', 'tblTempUsageDetail_20' ) end [2025-03-16 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691556', 'tblTempVendorCDR_20' ) start [2025-03-16 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691556', 'tblTempVendorCDR_20' ) end [2025-03-16 06:10:19] Production.INFO: ProcessCDR(1,14691556,1,1,2) [2025-03-16 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691556', 'tblTempUsageDetail_20' ) start [2025-03-16 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691556', 'tblTempUsageDetail_20' ) end [2025-03-16 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:10:22] Production.INFO: ==7866== Releasing lock... [2025-03-16 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:11:05 [end_date_ymd] => 2025-03-16 06:11:05 [RateCDR] => 1 ) [2025-03-16 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:11:05' and `end` < '2025-03-16 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:11:17] Production.INFO: count ==193 [2025-03-16 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:11:05 - End Time 2025-03-16 06:11:05 [2025-03-16 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691561', 'tblTempUsageDetail_20' ) start [2025-03-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691561', 'tblTempUsageDetail_20' ) end [2025-03-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691561', 'tblTempVendorCDR_20' ) start [2025-03-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691561', 'tblTempVendorCDR_20' ) end [2025-03-16 06:11:17] Production.INFO: ProcessCDR(1,14691561,1,1,2) [2025-03-16 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691561', 'tblTempUsageDetail_20' ) start [2025-03-16 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691561', 'tblTempUsageDetail_20' ) end [2025-03-16 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:11:22] Production.INFO: ==7938== Releasing lock... [2025-03-16 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:12:05 [end_date_ymd] => 2025-03-16 06:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:12:05' and `end` < '2025-03-16 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-03-16 06:12:17] Production.INFO: count ==193 [2025-03-16 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:12:05 - End Time 2025-03-16 06:12:05 [2025-03-16 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691566', 'tblTempUsageDetail_20' ) start [2025-03-16 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691566', 'tblTempUsageDetail_20' ) end [2025-03-16 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691566', 'tblTempVendorCDR_20' ) start [2025-03-16 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691566', 'tblTempVendorCDR_20' ) end [2025-03-16 06:12:17] Production.INFO: ProcessCDR(1,14691566,1,1,2) [2025-03-16 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691566', 'tblTempUsageDetail_20' ) start [2025-03-16 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691566', 'tblTempUsageDetail_20' ) end [2025-03-16 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:12:20] Production.INFO: ==8013== Releasing lock... [2025-03-16 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:13:04 [end_date_ymd] => 2025-03-16 06:13:04 [RateCDR] => 1 ) [2025-03-16 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:13:04' and `end` < '2025-03-16 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:13:16] Production.INFO: count ==196 [2025-03-16 06:13:16] Production.ERROR: pbx CDR StartTime 2025-03-16 03:13:04 - End Time 2025-03-16 06:13:04 [2025-03-16 06:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691571', 'tblTempUsageDetail_20' ) start [2025-03-16 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691571', 'tblTempUsageDetail_20' ) end [2025-03-16 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691571', 'tblTempVendorCDR_20' ) start [2025-03-16 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691571', 'tblTempVendorCDR_20' ) end [2025-03-16 06:13:16] Production.INFO: ProcessCDR(1,14691571,1,1,2) [2025-03-16 06:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691571', 'tblTempUsageDetail_20' ) start [2025-03-16 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691571', 'tblTempUsageDetail_20' ) end [2025-03-16 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:13:20] Production.INFO: ==8087== Releasing lock... [2025-03-16 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:14:05 [end_date_ymd] => 2025-03-16 06:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:14:05' and `end` < '2025-03-16 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-03-16 06:14:18] Production.INFO: count ==196 [2025-03-16 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:14:05 - End Time 2025-03-16 06:14:05 [2025-03-16 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691576', 'tblTempUsageDetail_20' ) start [2025-03-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691576', 'tblTempUsageDetail_20' ) end [2025-03-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691576', 'tblTempVendorCDR_20' ) start [2025-03-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691576', 'tblTempVendorCDR_20' ) end [2025-03-16 06:14:18] Production.INFO: ProcessCDR(1,14691576,1,1,2) [2025-03-16 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691576', 'tblTempUsageDetail_20' ) start [2025-03-16 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691576', 'tblTempUsageDetail_20' ) end [2025-03-16 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:14:21] Production.INFO: ==8160== Releasing lock... [2025-03-16 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:15:04 [end_date_ymd] => 2025-03-16 06:15:04 [RateCDR] => 1 ) [2025-03-16 06:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:15:04' and `end` < '2025-03-16 06:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:15:17] Production.INFO: count ==192 [2025-03-16 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:15:04 - End Time 2025-03-16 06:15:04 [2025-03-16 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691581', 'tblTempUsageDetail_20' ) start [2025-03-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691581', 'tblTempUsageDetail_20' ) end [2025-03-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691581', 'tblTempVendorCDR_20' ) start [2025-03-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691581', 'tblTempVendorCDR_20' ) end [2025-03-16 06:15:17] Production.INFO: ProcessCDR(1,14691581,1,1,2) [2025-03-16 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691581', 'tblTempUsageDetail_20' ) start [2025-03-16 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691581', 'tblTempUsageDetail_20' ) end [2025-03-16 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:15:20] Production.INFO: ==8234== Releasing lock... [2025-03-16 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:16:05 [end_date_ymd] => 2025-03-16 06:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:16:05' and `end` < '2025-03-16 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-03-16 06:16:18] Production.INFO: count ==192 [2025-03-16 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:16:05 - End Time 2025-03-16 06:16:05 [2025-03-16 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691586', 'tblTempUsageDetail_20' ) start [2025-03-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691586', 'tblTempUsageDetail_20' ) end [2025-03-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691586', 'tblTempVendorCDR_20' ) start [2025-03-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691586', 'tblTempVendorCDR_20' ) end [2025-03-16 06:16:18] Production.INFO: ProcessCDR(1,14691586,1,1,2) [2025-03-16 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691586', 'tblTempUsageDetail_20' ) start [2025-03-16 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691586', 'tblTempUsageDetail_20' ) end [2025-03-16 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:16:21] Production.INFO: ==8344== Releasing lock... [2025-03-16 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:17:05 [end_date_ymd] => 2025-03-16 06:17:05 [RateCDR] => 1 ) [2025-03-16 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:17:05' and `end` < '2025-03-16 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:17:17] Production.INFO: count ==194 [2025-03-16 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:17:05 - End Time 2025-03-16 06:17:05 [2025-03-16 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691591', 'tblTempUsageDetail_20' ) start [2025-03-16 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691591', 'tblTempUsageDetail_20' ) end [2025-03-16 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691591', 'tblTempVendorCDR_20' ) start [2025-03-16 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691591', 'tblTempVendorCDR_20' ) end [2025-03-16 06:17:17] Production.INFO: ProcessCDR(1,14691591,1,1,2) [2025-03-16 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691591', 'tblTempUsageDetail_20' ) start [2025-03-16 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691591', 'tblTempUsageDetail_20' ) end [2025-03-16 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:17:20] Production.INFO: ==8418== Releasing lock... [2025-03-16 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:18:05 [end_date_ymd] => 2025-03-16 06:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:18:05' and `end` < '2025-03-16 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-03-16 06:18:17] Production.INFO: count ==198 [2025-03-16 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:18:05 - End Time 2025-03-16 06:18:05 [2025-03-16 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691596', 'tblTempUsageDetail_20' ) start [2025-03-16 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691596', 'tblTempUsageDetail_20' ) end [2025-03-16 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691596', 'tblTempVendorCDR_20' ) start [2025-03-16 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691596', 'tblTempVendorCDR_20' ) end [2025-03-16 06:18:17] Production.INFO: ProcessCDR(1,14691596,1,1,2) [2025-03-16 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691596', 'tblTempUsageDetail_20' ) start [2025-03-16 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691596', 'tblTempUsageDetail_20' ) end [2025-03-16 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:18:21] Production.INFO: ==8498== Releasing lock... [2025-03-16 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:19:06 [end_date_ymd] => 2025-03-16 06:19:06 [RateCDR] => 1 ) [2025-03-16 06: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-03-16 03:19:06' and `end` < '2025-03-16 06: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-03-16 06:19:18] Production.INFO: count ==201 [2025-03-16 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:19:06 - End Time 2025-03-16 06:19:06 [2025-03-16 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691601', 'tblTempUsageDetail_20' ) start [2025-03-16 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691601', 'tblTempUsageDetail_20' ) end [2025-03-16 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691601', 'tblTempVendorCDR_20' ) start [2025-03-16 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691601', 'tblTempVendorCDR_20' ) end [2025-03-16 06:19:18] Production.INFO: ProcessCDR(1,14691601,1,1,2) [2025-03-16 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691601', 'tblTempUsageDetail_20' ) start [2025-03-16 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691601', 'tblTempUsageDetail_20' ) end [2025-03-16 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:19:21] Production.INFO: ==8572== Releasing lock... [2025-03-16 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:20:06 [end_date_ymd] => 2025-03-16 06:20:06 [RateCDR] => 1 ) [2025-03-16 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:20:06' and `end` < '2025-03-16 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:20:18] Production.INFO: count ==201 [2025-03-16 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:20:06 - End Time 2025-03-16 06:20:06 [2025-03-16 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691606', 'tblTempUsageDetail_20' ) start [2025-03-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691606', 'tblTempUsageDetail_20' ) end [2025-03-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691606', 'tblTempVendorCDR_20' ) start [2025-03-16 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691606', 'tblTempVendorCDR_20' ) end [2025-03-16 06:20:18] Production.INFO: ProcessCDR(1,14691606,1,1,2) [2025-03-16 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691606', 'tblTempUsageDetail_20' ) start [2025-03-16 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691606', 'tblTempUsageDetail_20' ) end [2025-03-16 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:20:21] Production.INFO: ==8645== Releasing lock... [2025-03-16 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:21:05 [end_date_ymd] => 2025-03-16 06:21:05 [RateCDR] => 1 ) [2025-03-16 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:21:05' and `end` < '2025-03-16 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:21:18] Production.INFO: count ==201 [2025-03-16 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:21:05 - End Time 2025-03-16 06:21:05 [2025-03-16 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691612', 'tblTempUsageDetail_20' ) start [2025-03-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691612', 'tblTempUsageDetail_20' ) end [2025-03-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691612', 'tblTempVendorCDR_20' ) start [2025-03-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691612', 'tblTempVendorCDR_20' ) end [2025-03-16 06:21:18] Production.INFO: ProcessCDR(1,14691612,1,1,2) [2025-03-16 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691612', 'tblTempUsageDetail_20' ) start [2025-03-16 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691612', 'tblTempUsageDetail_20' ) end [2025-03-16 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:21:21] Production.INFO: ==8720== Releasing lock... [2025-03-16 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:22:05 [end_date_ymd] => 2025-03-16 06:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:22:05' and `end` < '2025-03-16 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-03-16 06:22:17] Production.INFO: count ==200 [2025-03-16 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:22:05 - End Time 2025-03-16 06:22:05 [2025-03-16 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691617', 'tblTempUsageDetail_20' ) start [2025-03-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691617', 'tblTempUsageDetail_20' ) end [2025-03-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691617', 'tblTempVendorCDR_20' ) start [2025-03-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691617', 'tblTempVendorCDR_20' ) end [2025-03-16 06:22:17] Production.INFO: ProcessCDR(1,14691617,1,1,2) [2025-03-16 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691617', 'tblTempUsageDetail_20' ) start [2025-03-16 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691617', 'tblTempUsageDetail_20' ) end [2025-03-16 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:22:20] Production.INFO: ==8804== Releasing lock... [2025-03-16 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:22:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:23:05 [end_date_ymd] => 2025-03-16 06:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:23:05' and `end` < '2025-03-16 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-03-16 06:23:17] Production.INFO: count ==200 [2025-03-16 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:23:05 - End Time 2025-03-16 06:23:05 [2025-03-16 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691622', 'tblTempUsageDetail_20' ) start [2025-03-16 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691622', 'tblTempUsageDetail_20' ) end [2025-03-16 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691622', 'tblTempVendorCDR_20' ) start [2025-03-16 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691622', 'tblTempVendorCDR_20' ) end [2025-03-16 06:23:17] Production.INFO: ProcessCDR(1,14691622,1,1,2) [2025-03-16 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691622', 'tblTempUsageDetail_20' ) start [2025-03-16 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691622', 'tblTempUsageDetail_20' ) end [2025-03-16 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:23:21] Production.INFO: ==9044== Releasing lock... [2025-03-16 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:24:05 [end_date_ymd] => 2025-03-16 06:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:24:05' and `end` < '2025-03-16 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-03-16 06:24:17] Production.INFO: count ==201 [2025-03-16 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:24:05 - End Time 2025-03-16 06:24:05 [2025-03-16 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691627', 'tblTempUsageDetail_20' ) start [2025-03-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691627', 'tblTempUsageDetail_20' ) end [2025-03-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691627', 'tblTempVendorCDR_20' ) start [2025-03-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691627', 'tblTempVendorCDR_20' ) end [2025-03-16 06:24:18] Production.INFO: ProcessCDR(1,14691627,1,1,2) [2025-03-16 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691627', 'tblTempUsageDetail_20' ) start [2025-03-16 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691627', 'tblTempUsageDetail_20' ) end [2025-03-16 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:24:21] Production.INFO: ==9117== Releasing lock... [2025-03-16 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:25:06 [end_date_ymd] => 2025-03-16 06:25:06 [RateCDR] => 1 ) [2025-03-16 06: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-03-16 03:25:06' and `end` < '2025-03-16 06: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-03-16 06:25:18] Production.INFO: count ==212 [2025-03-16 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:25:06 - End Time 2025-03-16 06:25:06 [2025-03-16 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691632', 'tblTempUsageDetail_20' ) start [2025-03-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691632', 'tblTempUsageDetail_20' ) end [2025-03-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691632', 'tblTempVendorCDR_20' ) start [2025-03-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691632', 'tblTempVendorCDR_20' ) end [2025-03-16 06:25:18] Production.INFO: ProcessCDR(1,14691632,1,1,2) [2025-03-16 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691632', 'tblTempUsageDetail_20' ) start [2025-03-16 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691632', 'tblTempUsageDetail_20' ) end [2025-03-16 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:25:21] Production.INFO: ==9187== Releasing lock... [2025-03-16 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:26:05 [end_date_ymd] => 2025-03-16 06:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:26:05' and `end` < '2025-03-16 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-03-16 06:26:17] Production.INFO: count ==216 [2025-03-16 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:26:05 - End Time 2025-03-16 06:26:05 [2025-03-16 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691637', 'tblTempUsageDetail_20' ) start [2025-03-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691637', 'tblTempUsageDetail_20' ) end [2025-03-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691637', 'tblTempVendorCDR_20' ) start [2025-03-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691637', 'tblTempVendorCDR_20' ) end [2025-03-16 06:26:17] Production.INFO: ProcessCDR(1,14691637,1,1,2) [2025-03-16 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691637', 'tblTempUsageDetail_20' ) start [2025-03-16 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691637', 'tblTempUsageDetail_20' ) end [2025-03-16 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:26:20] Production.INFO: ==9259== Releasing lock... [2025-03-16 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:26:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:27:05 [end_date_ymd] => 2025-03-16 06:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:27:05' and `end` < '2025-03-16 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-03-16 06:27:17] Production.INFO: count ==216 [2025-03-16 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:27:05 - End Time 2025-03-16 06:27:05 [2025-03-16 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691642', 'tblTempUsageDetail_20' ) start [2025-03-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691642', 'tblTempUsageDetail_20' ) end [2025-03-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691642', 'tblTempVendorCDR_20' ) start [2025-03-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691642', 'tblTempVendorCDR_20' ) end [2025-03-16 06:27:17] Production.INFO: ProcessCDR(1,14691642,1,1,2) [2025-03-16 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691642', 'tblTempUsageDetail_20' ) start [2025-03-16 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691642', 'tblTempUsageDetail_20' ) end [2025-03-16 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:27:21] Production.INFO: ==9335== Releasing lock... [2025-03-16 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:28:05 [end_date_ymd] => 2025-03-16 06:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:28:05' and `end` < '2025-03-16 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-03-16 06:28:17] Production.INFO: count ==214 [2025-03-16 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:28:05 - End Time 2025-03-16 06:28:05 [2025-03-16 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691647', 'tblTempUsageDetail_20' ) start [2025-03-16 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691647', 'tblTempUsageDetail_20' ) end [2025-03-16 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691647', 'tblTempVendorCDR_20' ) start [2025-03-16 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691647', 'tblTempVendorCDR_20' ) end [2025-03-16 06:28:17] Production.INFO: ProcessCDR(1,14691647,1,1,2) [2025-03-16 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691647', 'tblTempUsageDetail_20' ) start [2025-03-16 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691647', 'tblTempUsageDetail_20' ) end [2025-03-16 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:28:20] Production.INFO: ==9406== Releasing lock... [2025-03-16 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:28:20] Production.INFO: 30 MB #Memory Used# [2025-03-16 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:29:06 [end_date_ymd] => 2025-03-16 06:29:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:29:06' and `end` < '2025-03-16 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-03-16 06:29:18] Production.INFO: count ==215 [2025-03-16 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:29:06 - End Time 2025-03-16 06:29:06 [2025-03-16 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691652', 'tblTempUsageDetail_20' ) start [2025-03-16 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691652', 'tblTempUsageDetail_20' ) end [2025-03-16 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691652', 'tblTempVendorCDR_20' ) start [2025-03-16 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691652', 'tblTempVendorCDR_20' ) end [2025-03-16 06:29:18] Production.INFO: ProcessCDR(1,14691652,1,1,2) [2025-03-16 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691652', 'tblTempUsageDetail_20' ) start [2025-03-16 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691652', 'tblTempUsageDetail_20' ) end [2025-03-16 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:29:21] Production.INFO: ==9482== Releasing lock... [2025-03-16 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:30:06 [end_date_ymd] => 2025-03-16 06:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:30:06' and `end` < '2025-03-16 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-03-16 06:30:18] Production.INFO: count ==213 [2025-03-16 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:30:06 - End Time 2025-03-16 06:30:06 [2025-03-16 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691658', 'tblTempUsageDetail_20' ) start [2025-03-16 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691658', 'tblTempUsageDetail_20' ) end [2025-03-16 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691658', 'tblTempVendorCDR_20' ) start [2025-03-16 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691658', 'tblTempVendorCDR_20' ) end [2025-03-16 06:30:18] Production.INFO: ProcessCDR(1,14691658,1,1,2) [2025-03-16 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691658', 'tblTempUsageDetail_20' ) start [2025-03-16 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691658', 'tblTempUsageDetail_20' ) end [2025-03-16 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:30:21] Production.INFO: ==9561== Releasing lock... [2025-03-16 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:30:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:31:05 [end_date_ymd] => 2025-03-16 06:31:05 [RateCDR] => 1 ) [2025-03-16 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:31:05' and `end` < '2025-03-16 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:31:17] Production.INFO: count ==217 [2025-03-16 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:31:05 - End Time 2025-03-16 06:31:05 [2025-03-16 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691663', 'tblTempUsageDetail_20' ) start [2025-03-16 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691663', 'tblTempUsageDetail_20' ) end [2025-03-16 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691663', 'tblTempVendorCDR_20' ) start [2025-03-16 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691663', 'tblTempVendorCDR_20' ) end [2025-03-16 06:31:17] Production.INFO: ProcessCDR(1,14691663,1,1,2) [2025-03-16 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691663', 'tblTempUsageDetail_20' ) start [2025-03-16 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691663', 'tblTempUsageDetail_20' ) end [2025-03-16 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:31:20] Production.INFO: ==9675== Releasing lock... [2025-03-16 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:31:20] Production.INFO: 30 MB #Memory Used# [2025-03-16 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:32:05 [end_date_ymd] => 2025-03-16 06:32:05 [RateCDR] => 1 ) [2025-03-16 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:32:05' and `end` < '2025-03-16 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:32:17] Production.INFO: count ==217 [2025-03-16 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:32:05 - End Time 2025-03-16 06:32:05 [2025-03-16 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691668', 'tblTempUsageDetail_20' ) start [2025-03-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691668', 'tblTempUsageDetail_20' ) end [2025-03-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691668', 'tblTempVendorCDR_20' ) start [2025-03-16 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691668', 'tblTempVendorCDR_20' ) end [2025-03-16 06:32:17] Production.INFO: ProcessCDR(1,14691668,1,1,2) [2025-03-16 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691668', 'tblTempUsageDetail_20' ) start [2025-03-16 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691668', 'tblTempUsageDetail_20' ) end [2025-03-16 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:32:21] Production.INFO: ==9750== Releasing lock... [2025-03-16 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:32:21] Production.INFO: 30 MB #Memory Used# [2025-03-16 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:33:05 [end_date_ymd] => 2025-03-16 06:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:33:05' and `end` < '2025-03-16 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-03-16 06:33:17] Production.INFO: count ==217 [2025-03-16 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:33:05 - End Time 2025-03-16 06:33:05 [2025-03-16 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691673', 'tblTempUsageDetail_20' ) start [2025-03-16 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691673', 'tblTempUsageDetail_20' ) end [2025-03-16 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691673', 'tblTempVendorCDR_20' ) start [2025-03-16 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691673', 'tblTempVendorCDR_20' ) end [2025-03-16 06:33:18] Production.INFO: ProcessCDR(1,14691673,1,1,2) [2025-03-16 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691673', 'tblTempUsageDetail_20' ) start [2025-03-16 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691673', 'tblTempUsageDetail_20' ) end [2025-03-16 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:33:21] Production.INFO: ==9825== Releasing lock... [2025-03-16 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:33:21] Production.INFO: 30 MB #Memory Used# [2025-03-16 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:34:06 [end_date_ymd] => 2025-03-16 06:34:06 [RateCDR] => 1 ) [2025-03-16 06: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-03-16 03:34:06' and `end` < '2025-03-16 06: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-03-16 06:34:18] Production.INFO: count ==216 [2025-03-16 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:34:06 - End Time 2025-03-16 06:34:06 [2025-03-16 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691678', 'tblTempUsageDetail_20' ) start [2025-03-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691678', 'tblTempUsageDetail_20' ) end [2025-03-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691678', 'tblTempVendorCDR_20' ) start [2025-03-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691678', 'tblTempVendorCDR_20' ) end [2025-03-16 06:34:18] Production.INFO: ProcessCDR(1,14691678,1,1,2) [2025-03-16 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691678', 'tblTempUsageDetail_20' ) start [2025-03-16 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691678', 'tblTempUsageDetail_20' ) end [2025-03-16 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:34:21] Production.INFO: ==9899== Releasing lock... [2025-03-16 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:35:05 [end_date_ymd] => 2025-03-16 06:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:35:05' and `end` < '2025-03-16 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-03-16 06:35:17] Production.INFO: count ==205 [2025-03-16 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:35:05 - End Time 2025-03-16 06:35:05 [2025-03-16 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691683', 'tblTempUsageDetail_20' ) start [2025-03-16 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691683', 'tblTempUsageDetail_20' ) end [2025-03-16 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691683', 'tblTempVendorCDR_20' ) start [2025-03-16 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691683', 'tblTempVendorCDR_20' ) end [2025-03-16 06:35:17] Production.INFO: ProcessCDR(1,14691683,1,1,2) [2025-03-16 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691683', 'tblTempUsageDetail_20' ) start [2025-03-16 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691683', 'tblTempUsageDetail_20' ) end [2025-03-16 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:35:20] Production.INFO: ==9973== Releasing lock... [2025-03-16 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:35:20] Production.INFO: 30 MB #Memory Used# [2025-03-16 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:36:06 [end_date_ymd] => 2025-03-16 06:36:06 [RateCDR] => 1 ) [2025-03-16 06: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-03-16 03:36:06' and `end` < '2025-03-16 06: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-03-16 06:36:18] Production.INFO: count ==198 [2025-03-16 06:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:36:06 - End Time 2025-03-16 06:36:06 [2025-03-16 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691688', 'tblTempUsageDetail_20' ) start [2025-03-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691688', 'tblTempUsageDetail_20' ) end [2025-03-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691688', 'tblTempVendorCDR_20' ) start [2025-03-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691688', 'tblTempVendorCDR_20' ) end [2025-03-16 06:36:18] Production.INFO: ProcessCDR(1,14691688,1,1,2) [2025-03-16 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691688', 'tblTempUsageDetail_20' ) start [2025-03-16 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691688', 'tblTempUsageDetail_20' ) end [2025-03-16 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:36:21] Production.INFO: ==10047== Releasing lock... [2025-03-16 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:37:05 [end_date_ymd] => 2025-03-16 06:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:37:05' and `end` < '2025-03-16 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-03-16 06:37:17] Production.INFO: count ==197 [2025-03-16 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:37:05 - End Time 2025-03-16 06:37:05 [2025-03-16 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691693', 'tblTempUsageDetail_20' ) start [2025-03-16 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691693', 'tblTempUsageDetail_20' ) end [2025-03-16 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691693', 'tblTempVendorCDR_20' ) start [2025-03-16 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691693', 'tblTempVendorCDR_20' ) end [2025-03-16 06:37:17] Production.INFO: ProcessCDR(1,14691693,1,1,2) [2025-03-16 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691693', 'tblTempUsageDetail_20' ) start [2025-03-16 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691693', 'tblTempUsageDetail_20' ) end [2025-03-16 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:37:20] Production.INFO: ==10123== Releasing lock... [2025-03-16 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:37:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:38:06 [end_date_ymd] => 2025-03-16 06:38:06 [RateCDR] => 1 ) [2025-03-16 06: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-03-16 03:38:06' and `end` < '2025-03-16 06: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-03-16 06:38:18] Production.INFO: count ==188 [2025-03-16 06:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:38:06 - End Time 2025-03-16 06:38:06 [2025-03-16 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691698', 'tblTempUsageDetail_20' ) start [2025-03-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691698', 'tblTempUsageDetail_20' ) end [2025-03-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691698', 'tblTempVendorCDR_20' ) start [2025-03-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691698', 'tblTempVendorCDR_20' ) end [2025-03-16 06:38:18] Production.INFO: ProcessCDR(1,14691698,1,1,2) [2025-03-16 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691698', 'tblTempUsageDetail_20' ) start [2025-03-16 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691698', 'tblTempUsageDetail_20' ) end [2025-03-16 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:38:21] Production.INFO: ==10197== Releasing lock... [2025-03-16 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:39:05 [end_date_ymd] => 2025-03-16 06:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:39:05' and `end` < '2025-03-16 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-03-16 06:39:17] Production.INFO: count ==188 [2025-03-16 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:39:05 - End Time 2025-03-16 06:39:05 [2025-03-16 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691703', 'tblTempUsageDetail_20' ) start [2025-03-16 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691703', 'tblTempUsageDetail_20' ) end [2025-03-16 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691703', 'tblTempVendorCDR_20' ) start [2025-03-16 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691703', 'tblTempVendorCDR_20' ) end [2025-03-16 06:39:17] Production.INFO: ProcessCDR(1,14691703,1,1,2) [2025-03-16 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691703', 'tblTempUsageDetail_20' ) start [2025-03-16 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691703', 'tblTempUsageDetail_20' ) end [2025-03-16 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:39:20] Production.INFO: ==10270== Releasing lock... [2025-03-16 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:39:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:40:06 [end_date_ymd] => 2025-03-16 06:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:40:06' and `end` < '2025-03-16 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-03-16 06:40:18] Production.INFO: count ==169 [2025-03-16 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:40:06 - End Time 2025-03-16 06:40:06 [2025-03-16 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691709', 'tblTempUsageDetail_20' ) start [2025-03-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691709', 'tblTempUsageDetail_20' ) end [2025-03-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691709', 'tblTempVendorCDR_20' ) start [2025-03-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691709', 'tblTempVendorCDR_20' ) end [2025-03-16 06:40:18] Production.INFO: ProcessCDR(1,14691709,1,1,2) [2025-03-16 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691709', 'tblTempUsageDetail_20' ) start [2025-03-16 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691709', 'tblTempUsageDetail_20' ) end [2025-03-16 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:40:21] Production.INFO: ==10345== Releasing lock... [2025-03-16 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:41:05 [end_date_ymd] => 2025-03-16 06:41:05 [RateCDR] => 1 ) [2025-03-16 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:41:05' and `end` < '2025-03-16 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:41:17] Production.INFO: count ==166 [2025-03-16 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:41:05 - End Time 2025-03-16 06:41:05 [2025-03-16 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691714', 'tblTempUsageDetail_20' ) start [2025-03-16 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691714', 'tblTempUsageDetail_20' ) end [2025-03-16 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691714', 'tblTempVendorCDR_20' ) start [2025-03-16 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691714', 'tblTempVendorCDR_20' ) end [2025-03-16 06:41:17] Production.INFO: ProcessCDR(1,14691714,1,1,2) [2025-03-16 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691714', 'tblTempUsageDetail_20' ) start [2025-03-16 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691714', 'tblTempUsageDetail_20' ) end [2025-03-16 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:41:20] Production.INFO: ==10426== Releasing lock... [2025-03-16 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:41:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:42:06 [end_date_ymd] => 2025-03-16 06:42:06 [RateCDR] => 1 ) [2025-03-16 06:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:42:06' and `end` < '2025-03-16 06:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:42:18] Production.INFO: count ==164 [2025-03-16 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:42:06 - End Time 2025-03-16 06:42:06 [2025-03-16 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691719', 'tblTempUsageDetail_20' ) start [2025-03-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691719', 'tblTempUsageDetail_20' ) end [2025-03-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691719', 'tblTempVendorCDR_20' ) start [2025-03-16 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691719', 'tblTempVendorCDR_20' ) end [2025-03-16 06:42:18] Production.INFO: ProcessCDR(1,14691719,1,1,2) [2025-03-16 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691719', 'tblTempUsageDetail_20' ) start [2025-03-16 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691719', 'tblTempUsageDetail_20' ) end [2025-03-16 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:42:21] Production.INFO: ==10499== Releasing lock... [2025-03-16 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:43:05 [end_date_ymd] => 2025-03-16 06:43:05 [RateCDR] => 1 ) [2025-03-16 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:43:05' and `end` < '2025-03-16 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:43:17] Production.INFO: count ==164 [2025-03-16 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:43:05 - End Time 2025-03-16 06:43:05 [2025-03-16 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691724', 'tblTempUsageDetail_20' ) start [2025-03-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691724', 'tblTempUsageDetail_20' ) end [2025-03-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691724', 'tblTempVendorCDR_20' ) start [2025-03-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691724', 'tblTempVendorCDR_20' ) end [2025-03-16 06:43:17] Production.INFO: ProcessCDR(1,14691724,1,1,2) [2025-03-16 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691724', 'tblTempUsageDetail_20' ) start [2025-03-16 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691724', 'tblTempUsageDetail_20' ) end [2025-03-16 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:43:20] Production.INFO: ==10574== Releasing lock... [2025-03-16 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:44:05 [end_date_ymd] => 2025-03-16 06:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:44:05' and `end` < '2025-03-16 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-03-16 06:44:17] Production.INFO: count ==161 [2025-03-16 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:44:05 - End Time 2025-03-16 06:44:05 [2025-03-16 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691729', 'tblTempUsageDetail_20' ) start [2025-03-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691729', 'tblTempUsageDetail_20' ) end [2025-03-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691729', 'tblTempVendorCDR_20' ) start [2025-03-16 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691729', 'tblTempVendorCDR_20' ) end [2025-03-16 06:44:17] Production.INFO: ProcessCDR(1,14691729,1,1,2) [2025-03-16 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691729', 'tblTempUsageDetail_20' ) start [2025-03-16 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691729', 'tblTempUsageDetail_20' ) end [2025-03-16 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:44:21] Production.INFO: ==10649== Releasing lock... [2025-03-16 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:45:05 [end_date_ymd] => 2025-03-16 06:45:05 [RateCDR] => 1 ) [2025-03-16 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:45:05' and `end` < '2025-03-16 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:45:17] Production.INFO: count ==161 [2025-03-16 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:45:05 - End Time 2025-03-16 06:45:05 [2025-03-16 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691734', 'tblTempUsageDetail_20' ) start [2025-03-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691734', 'tblTempUsageDetail_20' ) end [2025-03-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691734', 'tblTempVendorCDR_20' ) start [2025-03-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691734', 'tblTempVendorCDR_20' ) end [2025-03-16 06:45:17] Production.INFO: ProcessCDR(1,14691734,1,1,2) [2025-03-16 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691734', 'tblTempUsageDetail_20' ) start [2025-03-16 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691734', 'tblTempUsageDetail_20' ) end [2025-03-16 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:45:20] Production.INFO: ==10726== Releasing lock... [2025-03-16 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:46:05 [end_date_ymd] => 2025-03-16 06:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:46:05' and `end` < '2025-03-16 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-03-16 06:46:17] Production.INFO: count ==159 [2025-03-16 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:46:05 - End Time 2025-03-16 06:46:05 [2025-03-16 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691739', 'tblTempUsageDetail_20' ) start [2025-03-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691739', 'tblTempUsageDetail_20' ) end [2025-03-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691739', 'tblTempVendorCDR_20' ) start [2025-03-16 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691739', 'tblTempVendorCDR_20' ) end [2025-03-16 06:46:17] Production.INFO: ProcessCDR(1,14691739,1,1,2) [2025-03-16 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691739', 'tblTempUsageDetail_20' ) start [2025-03-16 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691739', 'tblTempUsageDetail_20' ) end [2025-03-16 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:46:20] Production.INFO: ==10803== Releasing lock... [2025-03-16 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:46:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:47:05 [end_date_ymd] => 2025-03-16 06:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:47:05' and `end` < '2025-03-16 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-03-16 06:47:17] Production.INFO: count ==157 [2025-03-16 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:47:05 - End Time 2025-03-16 06:47:05 [2025-03-16 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691744', 'tblTempUsageDetail_20' ) start [2025-03-16 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691744', 'tblTempUsageDetail_20' ) end [2025-03-16 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691744', 'tblTempVendorCDR_20' ) start [2025-03-16 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691744', 'tblTempVendorCDR_20' ) end [2025-03-16 06:47:17] Production.INFO: ProcessCDR(1,14691744,1,1,2) [2025-03-16 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691744', 'tblTempUsageDetail_20' ) start [2025-03-16 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691744', 'tblTempUsageDetail_20' ) end [2025-03-16 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:47:21] Production.INFO: ==10916== Releasing lock... [2025-03-16 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:48:05 [end_date_ymd] => 2025-03-16 06:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:48:05' and `end` < '2025-03-16 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-03-16 06:48:17] Production.INFO: count ==157 [2025-03-16 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:48:05 - End Time 2025-03-16 06:48:05 [2025-03-16 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691749', 'tblTempUsageDetail_20' ) start [2025-03-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691749', 'tblTempUsageDetail_20' ) end [2025-03-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691749', 'tblTempVendorCDR_20' ) start [2025-03-16 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691749', 'tblTempVendorCDR_20' ) end [2025-03-16 06:48:17] Production.INFO: ProcessCDR(1,14691749,1,1,2) [2025-03-16 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691749', 'tblTempUsageDetail_20' ) start [2025-03-16 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691749', 'tblTempUsageDetail_20' ) end [2025-03-16 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:48:20] Production.INFO: ==10987== Releasing lock... [2025-03-16 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:49:06 [end_date_ymd] => 2025-03-16 06:49:06 [RateCDR] => 1 ) [2025-03-16 06: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-03-16 03:49:06' and `end` < '2025-03-16 06: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-03-16 06:49:18] Production.INFO: count ==157 [2025-03-16 06:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:49:06 - End Time 2025-03-16 06:49:06 [2025-03-16 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691754', 'tblTempUsageDetail_20' ) start [2025-03-16 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691754', 'tblTempUsageDetail_20' ) end [2025-03-16 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691754', 'tblTempVendorCDR_20' ) start [2025-03-16 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691754', 'tblTempVendorCDR_20' ) end [2025-03-16 06:49:18] Production.INFO: ProcessCDR(1,14691754,1,1,2) [2025-03-16 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691754', 'tblTempUsageDetail_20' ) start [2025-03-16 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691754', 'tblTempUsageDetail_20' ) end [2025-03-16 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:49:21] Production.INFO: ==11064== Releasing lock... [2025-03-16 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:50:06 [end_date_ymd] => 2025-03-16 06:50:06 [RateCDR] => 1 ) [2025-03-16 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:50:06' and `end` < '2025-03-16 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:50:18] Production.INFO: count ==149 [2025-03-16 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:50:06 - End Time 2025-03-16 06:50:06 [2025-03-16 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691760', 'tblTempUsageDetail_20' ) start [2025-03-16 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691760', 'tblTempUsageDetail_20' ) end [2025-03-16 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691760', 'tblTempVendorCDR_20' ) start [2025-03-16 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691760', 'tblTempVendorCDR_20' ) end [2025-03-16 06:50:18] Production.INFO: ProcessCDR(1,14691760,1,1,2) [2025-03-16 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691760', 'tblTempUsageDetail_20' ) start [2025-03-16 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691760', 'tblTempUsageDetail_20' ) end [2025-03-16 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:50:22] Production.INFO: ==11145== Releasing lock... [2025-03-16 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:51:05 [end_date_ymd] => 2025-03-16 06:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:51:05' and `end` < '2025-03-16 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-03-16 06:51:18] Production.INFO: count ==149 [2025-03-16 06:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 03:51:05 - End Time 2025-03-16 06:51:05 [2025-03-16 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691765', 'tblTempUsageDetail_20' ) start [2025-03-16 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691765', 'tblTempUsageDetail_20' ) end [2025-03-16 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691765', 'tblTempVendorCDR_20' ) start [2025-03-16 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691765', 'tblTempVendorCDR_20' ) end [2025-03-16 06:51:18] Production.INFO: ProcessCDR(1,14691765,1,1,2) [2025-03-16 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691765', 'tblTempUsageDetail_20' ) start [2025-03-16 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691765', 'tblTempUsageDetail_20' ) end [2025-03-16 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:51:21] Production.INFO: ==11220== Releasing lock... [2025-03-16 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:52:05 [end_date_ymd] => 2025-03-16 06:52:05 [RateCDR] => 1 ) [2025-03-16 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:52:05' and `end` < '2025-03-16 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:52:17] Production.INFO: count ==156 [2025-03-16 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:52:05 - End Time 2025-03-16 06:52:05 [2025-03-16 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691770', 'tblTempUsageDetail_20' ) start [2025-03-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691770', 'tblTempUsageDetail_20' ) end [2025-03-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691770', 'tblTempVendorCDR_20' ) start [2025-03-16 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691770', 'tblTempVendorCDR_20' ) end [2025-03-16 06:52:17] Production.INFO: ProcessCDR(1,14691770,1,1,2) [2025-03-16 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691770', 'tblTempUsageDetail_20' ) start [2025-03-16 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691770', 'tblTempUsageDetail_20' ) end [2025-03-16 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:52:21] Production.INFO: ==11290== Releasing lock... [2025-03-16 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:53:05 [end_date_ymd] => 2025-03-16 06:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:53:05' and `end` < '2025-03-16 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-03-16 06:53:17] Production.INFO: count ==154 [2025-03-16 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:53:05 - End Time 2025-03-16 06:53:05 [2025-03-16 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691775', 'tblTempUsageDetail_20' ) start [2025-03-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691775', 'tblTempUsageDetail_20' ) end [2025-03-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691775', 'tblTempVendorCDR_20' ) start [2025-03-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691775', 'tblTempVendorCDR_20' ) end [2025-03-16 06:53:17] Production.INFO: ProcessCDR(1,14691775,1,1,2) [2025-03-16 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691775', 'tblTempUsageDetail_20' ) start [2025-03-16 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691775', 'tblTempUsageDetail_20' ) end [2025-03-16 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:53:22] Production.INFO: ==11365== Releasing lock... [2025-03-16 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:54:05 [end_date_ymd] => 2025-03-16 06:54:05 [RateCDR] => 1 ) [2025-03-16 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:54:05' and `end` < '2025-03-16 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:54:17] Production.INFO: count ==154 [2025-03-16 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:54:05 - End Time 2025-03-16 06:54:05 [2025-03-16 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691780', 'tblTempUsageDetail_20' ) start [2025-03-16 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691780', 'tblTempUsageDetail_20' ) end [2025-03-16 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691780', 'tblTempVendorCDR_20' ) start [2025-03-16 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691780', 'tblTempVendorCDR_20' ) end [2025-03-16 06:54:17] Production.INFO: ProcessCDR(1,14691780,1,1,2) [2025-03-16 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691780', 'tblTempUsageDetail_20' ) start [2025-03-16 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691780', 'tblTempUsageDetail_20' ) end [2025-03-16 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:54:20] Production.INFO: ==11437== Releasing lock... [2025-03-16 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:55:05 [end_date_ymd] => 2025-03-16 06:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:55:05' and `end` < '2025-03-16 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-03-16 06:55:17] Production.INFO: count ==156 [2025-03-16 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:55:05 - End Time 2025-03-16 06:55:05 [2025-03-16 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691785', 'tblTempUsageDetail_20' ) start [2025-03-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691785', 'tblTempUsageDetail_20' ) end [2025-03-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691785', 'tblTempVendorCDR_20' ) start [2025-03-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691785', 'tblTempVendorCDR_20' ) end [2025-03-16 06:55:17] Production.INFO: ProcessCDR(1,14691785,1,1,2) [2025-03-16 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691785', 'tblTempUsageDetail_20' ) start [2025-03-16 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691785', 'tblTempUsageDetail_20' ) end [2025-03-16 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:55:21] Production.INFO: ==11510== Releasing lock... [2025-03-16 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:56:05 [end_date_ymd] => 2025-03-16 06:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:56:05' and `end` < '2025-03-16 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-03-16 06:56:17] Production.INFO: count ==159 [2025-03-16 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:56:05 - End Time 2025-03-16 06:56:05 [2025-03-16 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691790', 'tblTempUsageDetail_20' ) start [2025-03-16 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691790', 'tblTempUsageDetail_20' ) end [2025-03-16 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691790', 'tblTempVendorCDR_20' ) start [2025-03-16 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691790', 'tblTempVendorCDR_20' ) end [2025-03-16 06:56:17] Production.INFO: ProcessCDR(1,14691790,1,1,2) [2025-03-16 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691790', 'tblTempUsageDetail_20' ) start [2025-03-16 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691790', 'tblTempUsageDetail_20' ) end [2025-03-16 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:56:21] Production.INFO: ==11586== Releasing lock... [2025-03-16 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:57:05 [end_date_ymd] => 2025-03-16 06:57:05 [RateCDR] => 1 ) [2025-03-16 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:57:05' and `end` < '2025-03-16 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:57:17] Production.INFO: count ==159 [2025-03-16 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:57:05 - End Time 2025-03-16 06:57:05 [2025-03-16 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691795', 'tblTempUsageDetail_20' ) start [2025-03-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691795', 'tblTempUsageDetail_20' ) end [2025-03-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691795', 'tblTempVendorCDR_20' ) start [2025-03-16 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691795', 'tblTempVendorCDR_20' ) end [2025-03-16 06:57:17] Production.INFO: ProcessCDR(1,14691795,1,1,2) [2025-03-16 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691795', 'tblTempUsageDetail_20' ) start [2025-03-16 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691795', 'tblTempUsageDetail_20' ) end [2025-03-16 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:57:21] Production.INFO: ==11657== Releasing lock... [2025-03-16 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:58:05 [end_date_ymd] => 2025-03-16 06:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 03:58:05' and `end` < '2025-03-16 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-03-16 06:58:17] Production.INFO: count ==159 [2025-03-16 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:58:05 - End Time 2025-03-16 06:58:05 [2025-03-16 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691800', 'tblTempUsageDetail_20' ) start [2025-03-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691800', 'tblTempUsageDetail_20' ) end [2025-03-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691800', 'tblTempVendorCDR_20' ) start [2025-03-16 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691800', 'tblTempVendorCDR_20' ) end [2025-03-16 06:58:17] Production.INFO: ProcessCDR(1,14691800,1,1,2) [2025-03-16 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691800', 'tblTempUsageDetail_20' ) start [2025-03-16 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691800', 'tblTempUsageDetail_20' ) end [2025-03-16 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:58:20] Production.INFO: ==11729== Releasing lock... [2025-03-16 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:58:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 03:59:05 [end_date_ymd] => 2025-03-16 06:59:05 [RateCDR] => 1 ) [2025-03-16 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 03:59:05' and `end` < '2025-03-16 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 06:59:17] Production.INFO: count ==159 [2025-03-16 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 03:59:05 - End Time 2025-03-16 06:59:05 [2025-03-16 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691805', 'tblTempUsageDetail_20' ) start [2025-03-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691805', 'tblTempUsageDetail_20' ) end [2025-03-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691805', 'tblTempVendorCDR_20' ) start [2025-03-16 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691805', 'tblTempVendorCDR_20' ) end [2025-03-16 06:59:17] Production.INFO: ProcessCDR(1,14691805,1,1,2) [2025-03-16 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691805', 'tblTempUsageDetail_20' ) start [2025-03-16 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691805', 'tblTempUsageDetail_20' ) end [2025-03-16 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 06:59:20] Production.INFO: ==11802== Releasing lock... [2025-03-16 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 06:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:00:06 [end_date_ymd] => 2025-03-16 07:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:00:06' and `end` < '2025-03-16 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-03-16 07:00:18] Production.INFO: count ==159 [2025-03-16 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:00:06 - End Time 2025-03-16 07:00:06 [2025-03-16 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691811', 'tblTempUsageDetail_20' ) start [2025-03-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691811', 'tblTempUsageDetail_20' ) end [2025-03-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691811', 'tblTempVendorCDR_20' ) start [2025-03-16 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691811', 'tblTempVendorCDR_20' ) end [2025-03-16 07:00:18] Production.INFO: ProcessCDR(1,14691811,1,1,2) [2025-03-16 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691811', 'tblTempUsageDetail_20' ) start [2025-03-16 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691811', 'tblTempUsageDetail_20' ) end [2025-03-16 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:00:22] Production.INFO: ==11882== Releasing lock... [2025-03-16 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:01:05 [end_date_ymd] => 2025-03-16 07:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:01:05' and `end` < '2025-03-16 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:01:17] Production.INFO: count ==159 [2025-03-16 07:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:01:05 - End Time 2025-03-16 07:01:05 [2025-03-16 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691816', 'tblTempUsageDetail_20' ) start [2025-03-16 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691816', 'tblTempUsageDetail_20' ) end [2025-03-16 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691816', 'tblTempVendorCDR_20' ) start [2025-03-16 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691816', 'tblTempVendorCDR_20' ) end [2025-03-16 07:01:17] Production.INFO: ProcessCDR(1,14691816,1,1,2) [2025-03-16 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691816', 'tblTempUsageDetail_20' ) start [2025-03-16 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691816', 'tblTempUsageDetail_20' ) end [2025-03-16 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:01:21] Production.INFO: ==11973== Releasing lock... [2025-03-16 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:02:05 [end_date_ymd] => 2025-03-16 07:02:05 [RateCDR] => 1 ) [2025-03-16 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:02:05' and `end` < '2025-03-16 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:02:17] Production.INFO: count ==159 [2025-03-16 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:02:05 - End Time 2025-03-16 07:02:05 [2025-03-16 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691821', 'tblTempUsageDetail_20' ) start [2025-03-16 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691821', 'tblTempUsageDetail_20' ) end [2025-03-16 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691821', 'tblTempVendorCDR_20' ) start [2025-03-16 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691821', 'tblTempVendorCDR_20' ) end [2025-03-16 07:02:17] Production.INFO: ProcessCDR(1,14691821,1,1,2) [2025-03-16 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691821', 'tblTempUsageDetail_20' ) start [2025-03-16 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691821', 'tblTempUsageDetail_20' ) end [2025-03-16 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:02:21] Production.INFO: ==12161== Releasing lock... [2025-03-16 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:03:05 [end_date_ymd] => 2025-03-16 07:03:05 [RateCDR] => 1 ) [2025-03-16 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:03:05' and `end` < '2025-03-16 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:03:17] Production.INFO: count ==155 [2025-03-16 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:03:05 - End Time 2025-03-16 07:03:05 [2025-03-16 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691826', 'tblTempUsageDetail_20' ) start [2025-03-16 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691826', 'tblTempUsageDetail_20' ) end [2025-03-16 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691826', 'tblTempVendorCDR_20' ) start [2025-03-16 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691826', 'tblTempVendorCDR_20' ) end [2025-03-16 07:03:17] Production.INFO: ProcessCDR(1,14691826,1,1,2) [2025-03-16 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691826', 'tblTempUsageDetail_20' ) start [2025-03-16 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691826', 'tblTempUsageDetail_20' ) end [2025-03-16 07:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:03:20] Production.INFO: ==12233== Releasing lock... [2025-03-16 07:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:03:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:04:05 [end_date_ymd] => 2025-03-16 07:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:04:05' and `end` < '2025-03-16 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-03-16 07:04:18] Production.INFO: count ==155 [2025-03-16 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:04:05 - End Time 2025-03-16 07:04:05 [2025-03-16 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691831', 'tblTempUsageDetail_20' ) start [2025-03-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691831', 'tblTempUsageDetail_20' ) end [2025-03-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691831', 'tblTempVendorCDR_20' ) start [2025-03-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691831', 'tblTempVendorCDR_20' ) end [2025-03-16 07:04:18] Production.INFO: ProcessCDR(1,14691831,1,1,2) [2025-03-16 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691831', 'tblTempUsageDetail_20' ) start [2025-03-16 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691831', 'tblTempUsageDetail_20' ) end [2025-03-16 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:04:21] Production.INFO: ==12307== Releasing lock... [2025-03-16 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:05:05 [end_date_ymd] => 2025-03-16 07:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:05:05' and `end` < '2025-03-16 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-03-16 07:05:18] Production.INFO: count ==155 [2025-03-16 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:05:05 - End Time 2025-03-16 07:05:05 [2025-03-16 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691836', 'tblTempUsageDetail_20' ) start [2025-03-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691836', 'tblTempUsageDetail_20' ) end [2025-03-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691836', 'tblTempVendorCDR_20' ) start [2025-03-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691836', 'tblTempVendorCDR_20' ) end [2025-03-16 07:05:18] Production.INFO: ProcessCDR(1,14691836,1,1,2) [2025-03-16 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691836', 'tblTempUsageDetail_20' ) start [2025-03-16 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691836', 'tblTempUsageDetail_20' ) end [2025-03-16 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:05:21] Production.INFO: ==12458== Releasing lock... [2025-03-16 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:06:05 [end_date_ymd] => 2025-03-16 07:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:06:05' and `end` < '2025-03-16 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-03-16 07:06:17] Production.INFO: count ==159 [2025-03-16 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:06:05 - End Time 2025-03-16 07:06:05 [2025-03-16 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691841', 'tblTempUsageDetail_20' ) start [2025-03-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691841', 'tblTempUsageDetail_20' ) end [2025-03-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691841', 'tblTempVendorCDR_20' ) start [2025-03-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691841', 'tblTempVendorCDR_20' ) end [2025-03-16 07:06:18] Production.INFO: ProcessCDR(1,14691841,1,1,2) [2025-03-16 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691841', 'tblTempUsageDetail_20' ) start [2025-03-16 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691841', 'tblTempUsageDetail_20' ) end [2025-03-16 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:06:21] Production.INFO: ==12530== Releasing lock... [2025-03-16 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:07:05 [end_date_ymd] => 2025-03-16 07:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:07:05' and `end` < '2025-03-16 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-03-16 07:07:18] Production.INFO: count ==159 [2025-03-16 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:07:05 - End Time 2025-03-16 07:07:05 [2025-03-16 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691846', 'tblTempUsageDetail_20' ) start [2025-03-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691846', 'tblTempUsageDetail_20' ) end [2025-03-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691846', 'tblTempVendorCDR_20' ) start [2025-03-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691846', 'tblTempVendorCDR_20' ) end [2025-03-16 07:07:18] Production.INFO: ProcessCDR(1,14691846,1,1,2) [2025-03-16 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691846', 'tblTempUsageDetail_20' ) start [2025-03-16 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691846', 'tblTempUsageDetail_20' ) end [2025-03-16 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:07:21] Production.INFO: ==12602== Releasing lock... [2025-03-16 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:08:06 [end_date_ymd] => 2025-03-16 07:08:06 [RateCDR] => 1 ) [2025-03-16 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:08:06' and `end` < '2025-03-16 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:08:18] Production.INFO: count ==159 [2025-03-16 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:08:06 - End Time 2025-03-16 07:08:06 [2025-03-16 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691851', 'tblTempUsageDetail_20' ) start [2025-03-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691851', 'tblTempUsageDetail_20' ) end [2025-03-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691851', 'tblTempVendorCDR_20' ) start [2025-03-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691851', 'tblTempVendorCDR_20' ) end [2025-03-16 07:08:18] Production.INFO: ProcessCDR(1,14691851,1,1,2) [2025-03-16 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691851', 'tblTempUsageDetail_20' ) start [2025-03-16 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691851', 'tblTempUsageDetail_20' ) end [2025-03-16 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:08:22] Production.INFO: ==12718== Releasing lock... [2025-03-16 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:09:05 [end_date_ymd] => 2025-03-16 07:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:09:05' and `end` < '2025-03-16 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-03-16 07:09:17] Production.INFO: count ==159 [2025-03-16 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:09:05 - End Time 2025-03-16 07:09:05 [2025-03-16 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691856', 'tblTempUsageDetail_20' ) start [2025-03-16 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691856', 'tblTempUsageDetail_20' ) end [2025-03-16 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691856', 'tblTempVendorCDR_20' ) start [2025-03-16 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691856', 'tblTempVendorCDR_20' ) end [2025-03-16 07:09:17] Production.INFO: ProcessCDR(1,14691856,1,1,2) [2025-03-16 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691856', 'tblTempUsageDetail_20' ) start [2025-03-16 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691856', 'tblTempUsageDetail_20' ) end [2025-03-16 07:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:09:20] Production.INFO: ==12831== Releasing lock... [2025-03-16 07:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:09:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:10:06 [end_date_ymd] => 2025-03-16 07:10:06 [RateCDR] => 1 ) [2025-03-16 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:10:06' and `end` < '2025-03-16 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:10:19] Production.INFO: count ==151 [2025-03-16 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-16 04:10:06 - End Time 2025-03-16 07:10:06 [2025-03-16 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691861', 'tblTempUsageDetail_20' ) start [2025-03-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691861', 'tblTempUsageDetail_20' ) end [2025-03-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691861', 'tblTempVendorCDR_20' ) start [2025-03-16 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691861', 'tblTempVendorCDR_20' ) end [2025-03-16 07:10:19] Production.INFO: ProcessCDR(1,14691861,1,1,2) [2025-03-16 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691861', 'tblTempUsageDetail_20' ) start [2025-03-16 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691861', 'tblTempUsageDetail_20' ) end [2025-03-16 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:10:22] Production.INFO: ==12908== Releasing lock... [2025-03-16 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:11:05 [end_date_ymd] => 2025-03-16 07:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:11:05' and `end` < '2025-03-16 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-03-16 07:11:17] Production.INFO: count ==149 [2025-03-16 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:11:05 - End Time 2025-03-16 07:11:05 [2025-03-16 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691867', 'tblTempUsageDetail_20' ) start [2025-03-16 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691867', 'tblTempUsageDetail_20' ) end [2025-03-16 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691867', 'tblTempVendorCDR_20' ) start [2025-03-16 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691867', 'tblTempVendorCDR_20' ) end [2025-03-16 07:11:17] Production.INFO: ProcessCDR(1,14691867,1,1,2) [2025-03-16 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691867', 'tblTempUsageDetail_20' ) start [2025-03-16 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691867', 'tblTempUsageDetail_20' ) end [2025-03-16 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:11:20] Production.INFO: ==12982== Releasing lock... [2025-03-16 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:11:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:12:05 [end_date_ymd] => 2025-03-16 07:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:12:05' and `end` < '2025-03-16 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-03-16 07:12:18] Production.INFO: count ==149 [2025-03-16 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:12:05 - End Time 2025-03-16 07:12:05 [2025-03-16 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691872', 'tblTempUsageDetail_20' ) start [2025-03-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691872', 'tblTempUsageDetail_20' ) end [2025-03-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691872', 'tblTempVendorCDR_20' ) start [2025-03-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691872', 'tblTempVendorCDR_20' ) end [2025-03-16 07:12:18] Production.INFO: ProcessCDR(1,14691872,1,1,2) [2025-03-16 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691872', 'tblTempUsageDetail_20' ) start [2025-03-16 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691872', 'tblTempUsageDetail_20' ) end [2025-03-16 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:12:21] Production.INFO: ==13135== Releasing lock... [2025-03-16 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:13:05 [end_date_ymd] => 2025-03-16 07:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:13:05' and `end` < '2025-03-16 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-03-16 07:13:18] Production.INFO: count ==147 [2025-03-16 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:13:05 - End Time 2025-03-16 07:13:05 [2025-03-16 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691877', 'tblTempUsageDetail_20' ) start [2025-03-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691877', 'tblTempUsageDetail_20' ) end [2025-03-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691877', 'tblTempVendorCDR_20' ) start [2025-03-16 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691877', 'tblTempVendorCDR_20' ) end [2025-03-16 07:13:18] Production.INFO: ProcessCDR(1,14691877,1,1,2) [2025-03-16 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691877', 'tblTempUsageDetail_20' ) start [2025-03-16 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691877', 'tblTempUsageDetail_20' ) end [2025-03-16 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:13:21] Production.INFO: ==13207== Releasing lock... [2025-03-16 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:14:05 [end_date_ymd] => 2025-03-16 07:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:14:05' and `end` < '2025-03-16 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-03-16 07:14:18] Production.INFO: count ==147 [2025-03-16 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:14:05 - End Time 2025-03-16 07:14:05 [2025-03-16 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691882', 'tblTempUsageDetail_20' ) start [2025-03-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691882', 'tblTempUsageDetail_20' ) end [2025-03-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691882', 'tblTempVendorCDR_20' ) start [2025-03-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691882', 'tblTempVendorCDR_20' ) end [2025-03-16 07:14:18] Production.INFO: ProcessCDR(1,14691882,1,1,2) [2025-03-16 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691882', 'tblTempUsageDetail_20' ) start [2025-03-16 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691882', 'tblTempUsageDetail_20' ) end [2025-03-16 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:14:21] Production.INFO: ==13280== Releasing lock... [2025-03-16 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:15:05 [end_date_ymd] => 2025-03-16 07:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:15:05' and `end` < '2025-03-16 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-03-16 07:15:18] Production.INFO: count ==147 [2025-03-16 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:15:05 - End Time 2025-03-16 07:15:05 [2025-03-16 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691887', 'tblTempUsageDetail_20' ) start [2025-03-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691887', 'tblTempUsageDetail_20' ) end [2025-03-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691887', 'tblTempVendorCDR_20' ) start [2025-03-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691887', 'tblTempVendorCDR_20' ) end [2025-03-16 07:15:18] Production.INFO: ProcessCDR(1,14691887,1,1,2) [2025-03-16 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691887', 'tblTempUsageDetail_20' ) start [2025-03-16 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691887', 'tblTempUsageDetail_20' ) end [2025-03-16 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:15:21] Production.INFO: ==13434== Releasing lock... [2025-03-16 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:16:05 [end_date_ymd] => 2025-03-16 07:16:05 [RateCDR] => 1 ) [2025-03-16 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:16:05' and `end` < '2025-03-16 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:16:18] Production.INFO: count ==147 [2025-03-16 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:16:05 - End Time 2025-03-16 07:16:05 [2025-03-16 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691892', 'tblTempUsageDetail_20' ) start [2025-03-16 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691892', 'tblTempUsageDetail_20' ) end [2025-03-16 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691892', 'tblTempVendorCDR_20' ) start [2025-03-16 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691892', 'tblTempVendorCDR_20' ) end [2025-03-16 07:16:18] Production.INFO: ProcessCDR(1,14691892,1,1,2) [2025-03-16 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691892', 'tblTempUsageDetail_20' ) start [2025-03-16 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691892', 'tblTempUsageDetail_20' ) end [2025-03-16 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:16:21] Production.INFO: ==13506== Releasing lock... [2025-03-16 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:17:05 [end_date_ymd] => 2025-03-16 07:17:05 [RateCDR] => 1 ) [2025-03-16 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:17:05' and `end` < '2025-03-16 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:17:18] Production.INFO: count ==146 [2025-03-16 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:17:05 - End Time 2025-03-16 07:17:05 [2025-03-16 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691897', 'tblTempUsageDetail_20' ) start [2025-03-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691897', 'tblTempUsageDetail_20' ) end [2025-03-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691897', 'tblTempVendorCDR_20' ) start [2025-03-16 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691897', 'tblTempVendorCDR_20' ) end [2025-03-16 07:17:18] Production.INFO: ProcessCDR(1,14691897,1,1,2) [2025-03-16 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691897', 'tblTempUsageDetail_20' ) start [2025-03-16 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691897', 'tblTempUsageDetail_20' ) end [2025-03-16 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:17:22] Production.INFO: ==13618== Releasing lock... [2025-03-16 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:18:05 [end_date_ymd] => 2025-03-16 07:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:18:05' and `end` < '2025-03-16 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-03-16 07:18:17] Production.INFO: count ==146 [2025-03-16 07:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:18:05 - End Time 2025-03-16 07:18:05 [2025-03-16 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691902', 'tblTempUsageDetail_20' ) start [2025-03-16 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691902', 'tblTempUsageDetail_20' ) end [2025-03-16 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691902', 'tblTempVendorCDR_20' ) start [2025-03-16 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691902', 'tblTempVendorCDR_20' ) end [2025-03-16 07:18:17] Production.INFO: ProcessCDR(1,14691902,1,1,2) [2025-03-16 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691902', 'tblTempUsageDetail_20' ) start [2025-03-16 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691902', 'tblTempUsageDetail_20' ) end [2025-03-16 07:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:18:20] Production.INFO: ==13693== Releasing lock... [2025-03-16 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:18:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:19:05 [end_date_ymd] => 2025-03-16 07:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:19:05' and `end` < '2025-03-16 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-03-16 07:19:17] Production.INFO: count ==146 [2025-03-16 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:19:05 - End Time 2025-03-16 07:19:05 [2025-03-16 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691907', 'tblTempUsageDetail_20' ) start [2025-03-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691907', 'tblTempUsageDetail_20' ) end [2025-03-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691907', 'tblTempVendorCDR_20' ) start [2025-03-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691907', 'tblTempVendorCDR_20' ) end [2025-03-16 07:19:17] Production.INFO: ProcessCDR(1,14691907,1,1,2) [2025-03-16 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691907', 'tblTempUsageDetail_20' ) start [2025-03-16 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691907', 'tblTempUsageDetail_20' ) end [2025-03-16 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:19:20] Production.INFO: ==13766== Releasing lock... [2025-03-16 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:20:05 [end_date_ymd] => 2025-03-16 07:20:05 [RateCDR] => 1 ) [2025-03-16 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:20:05' and `end` < '2025-03-16 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:20:17] Production.INFO: count ==139 [2025-03-16 07:20:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:20:05 - End Time 2025-03-16 07:20:05 [2025-03-16 07:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691913', 'tblTempUsageDetail_20' ) start [2025-03-16 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691913', 'tblTempUsageDetail_20' ) end [2025-03-16 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691913', 'tblTempVendorCDR_20' ) start [2025-03-16 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691913', 'tblTempVendorCDR_20' ) end [2025-03-16 07:20:17] Production.INFO: ProcessCDR(1,14691913,1,1,2) [2025-03-16 07:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691913', 'tblTempUsageDetail_20' ) start [2025-03-16 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691913', 'tblTempUsageDetail_20' ) end [2025-03-16 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:20:21] Production.INFO: ==13846== Releasing lock... [2025-03-16 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:20:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:21:05 [end_date_ymd] => 2025-03-16 07:21:05 [RateCDR] => 1 ) [2025-03-16 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:21:05' and `end` < '2025-03-16 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-03-16 07:21:18] Production.INFO: count ==139 [2025-03-16 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:21:05 - End Time 2025-03-16 07:21:05 [2025-03-16 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691918', 'tblTempUsageDetail_20' ) start [2025-03-16 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691918', 'tblTempUsageDetail_20' ) end [2025-03-16 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691918', 'tblTempVendorCDR_20' ) start [2025-03-16 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691918', 'tblTempVendorCDR_20' ) end [2025-03-16 07:21:18] Production.INFO: ProcessCDR(1,14691918,1,1,2) [2025-03-16 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691918', 'tblTempUsageDetail_20' ) start [2025-03-16 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691918', 'tblTempUsageDetail_20' ) end [2025-03-16 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:21:21] Production.INFO: ==13923== Releasing lock... [2025-03-16 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:21:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:22:05 [end_date_ymd] => 2025-03-16 07:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:22:05' and `end` < '2025-03-16 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-03-16 07:22:17] Production.INFO: count ==139 [2025-03-16 07:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:22:05 - End Time 2025-03-16 07:22:05 [2025-03-16 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691923', 'tblTempUsageDetail_20' ) start [2025-03-16 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691923', 'tblTempUsageDetail_20' ) end [2025-03-16 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691923', 'tblTempVendorCDR_20' ) start [2025-03-16 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691923', 'tblTempVendorCDR_20' ) end [2025-03-16 07:22:17] Production.INFO: ProcessCDR(1,14691923,1,1,2) [2025-03-16 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691923', 'tblTempUsageDetail_20' ) start [2025-03-16 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691923', 'tblTempUsageDetail_20' ) end [2025-03-16 07:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:22:20] Production.INFO: ==13998== Releasing lock... [2025-03-16 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:22:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:23:05 [end_date_ymd] => 2025-03-16 07:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:23:05' and `end` < '2025-03-16 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-03-16 07:23:18] Production.INFO: count ==139 [2025-03-16 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:23:05 - End Time 2025-03-16 07:23:05 [2025-03-16 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691928', 'tblTempUsageDetail_20' ) start [2025-03-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691928', 'tblTempUsageDetail_20' ) end [2025-03-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691928', 'tblTempVendorCDR_20' ) start [2025-03-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691928', 'tblTempVendorCDR_20' ) end [2025-03-16 07:23:18] Production.INFO: ProcessCDR(1,14691928,1,1,2) [2025-03-16 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691928', 'tblTempUsageDetail_20' ) start [2025-03-16 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691928', 'tblTempUsageDetail_20' ) end [2025-03-16 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:23:21] Production.INFO: ==14074== Releasing lock... [2025-03-16 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:23:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:24:05 [end_date_ymd] => 2025-03-16 07:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:24:05' and `end` < '2025-03-16 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-03-16 07:24:17] Production.INFO: count ==139 [2025-03-16 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:24:05 - End Time 2025-03-16 07:24:05 [2025-03-16 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691933', 'tblTempUsageDetail_20' ) start [2025-03-16 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691933', 'tblTempUsageDetail_20' ) end [2025-03-16 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691933', 'tblTempVendorCDR_20' ) start [2025-03-16 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691933', 'tblTempVendorCDR_20' ) end [2025-03-16 07:24:17] Production.INFO: ProcessCDR(1,14691933,1,1,2) [2025-03-16 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691933', 'tblTempUsageDetail_20' ) start [2025-03-16 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691933', 'tblTempUsageDetail_20' ) end [2025-03-16 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:24:20] Production.INFO: ==14144== Releasing lock... [2025-03-16 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:24:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:25:05 [end_date_ymd] => 2025-03-16 07:25:05 [RateCDR] => 1 ) [2025-03-16 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:25:05' and `end` < '2025-03-16 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:25:17] Production.INFO: count ==139 [2025-03-16 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:25:05 - End Time 2025-03-16 07:25:05 [2025-03-16 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691938', 'tblTempUsageDetail_20' ) start [2025-03-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691938', 'tblTempUsageDetail_20' ) end [2025-03-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691938', 'tblTempVendorCDR_20' ) start [2025-03-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691938', 'tblTempVendorCDR_20' ) end [2025-03-16 07:25:17] Production.INFO: ProcessCDR(1,14691938,1,1,2) [2025-03-16 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691938', 'tblTempUsageDetail_20' ) start [2025-03-16 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691938', 'tblTempUsageDetail_20' ) end [2025-03-16 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:25:20] Production.INFO: ==14217== Releasing lock... [2025-03-16 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:25:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:26:05 [end_date_ymd] => 2025-03-16 07:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:26:05' and `end` < '2025-03-16 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-03-16 07:26:18] Production.INFO: count ==139 [2025-03-16 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:26:05 - End Time 2025-03-16 07:26:05 [2025-03-16 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691943', 'tblTempUsageDetail_20' ) start [2025-03-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691943', 'tblTempUsageDetail_20' ) end [2025-03-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691943', 'tblTempVendorCDR_20' ) start [2025-03-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691943', 'tblTempVendorCDR_20' ) end [2025-03-16 07:26:18] Production.INFO: ProcessCDR(1,14691943,1,1,2) [2025-03-16 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691943', 'tblTempUsageDetail_20' ) start [2025-03-16 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691943', 'tblTempUsageDetail_20' ) end [2025-03-16 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:26:21] Production.INFO: ==14292== Releasing lock... [2025-03-16 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:27:05 [end_date_ymd] => 2025-03-16 07:27:05 [RateCDR] => 1 ) [2025-03-16 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:27:05' and `end` < '2025-03-16 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:27:17] Production.INFO: count ==139 [2025-03-16 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:27:05 - End Time 2025-03-16 07:27:05 [2025-03-16 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691948', 'tblTempUsageDetail_20' ) start [2025-03-16 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691948', 'tblTempUsageDetail_20' ) end [2025-03-16 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691948', 'tblTempVendorCDR_20' ) start [2025-03-16 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691948', 'tblTempVendorCDR_20' ) end [2025-03-16 07:27:17] Production.INFO: ProcessCDR(1,14691948,1,1,2) [2025-03-16 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691948', 'tblTempUsageDetail_20' ) start [2025-03-16 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691948', 'tblTempUsageDetail_20' ) end [2025-03-16 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:27:21] Production.INFO: ==14363== Releasing lock... [2025-03-16 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:27:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:28:05 [end_date_ymd] => 2025-03-16 07:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:28:05' and `end` < '2025-03-16 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-03-16 07:28:17] Production.INFO: count ==139 [2025-03-16 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:28:05 - End Time 2025-03-16 07:28:05 [2025-03-16 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691953', 'tblTempUsageDetail_20' ) start [2025-03-16 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691953', 'tblTempUsageDetail_20' ) end [2025-03-16 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691953', 'tblTempVendorCDR_20' ) start [2025-03-16 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691953', 'tblTempVendorCDR_20' ) end [2025-03-16 07:28:18] Production.INFO: ProcessCDR(1,14691953,1,1,2) [2025-03-16 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691953', 'tblTempUsageDetail_20' ) start [2025-03-16 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691953', 'tblTempUsageDetail_20' ) end [2025-03-16 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:28:21] Production.INFO: ==14436== Releasing lock... [2025-03-16 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:28:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:29:05 [end_date_ymd] => 2025-03-16 07:29:05 [RateCDR] => 1 ) [2025-03-16 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:29:05' and `end` < '2025-03-16 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:29:17] Production.INFO: count ==139 [2025-03-16 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:29:05 - End Time 2025-03-16 07:29:05 [2025-03-16 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691958', 'tblTempUsageDetail_20' ) start [2025-03-16 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691958', 'tblTempUsageDetail_20' ) end [2025-03-16 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691958', 'tblTempVendorCDR_20' ) start [2025-03-16 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691958', 'tblTempVendorCDR_20' ) end [2025-03-16 07:29:17] Production.INFO: ProcessCDR(1,14691958,1,1,2) [2025-03-16 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691958', 'tblTempUsageDetail_20' ) start [2025-03-16 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691958', 'tblTempUsageDetail_20' ) end [2025-03-16 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:29:21] Production.INFO: ==14507== Releasing lock... [2025-03-16 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:30:07 [end_date_ymd] => 2025-03-16 07:30:07 [RateCDR] => 1 ) [2025-03-16 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:30:07' and `end` < '2025-03-16 07:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:30:19] Production.INFO: count ==136 [2025-03-16 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 04:30:07 - End Time 2025-03-16 07:30:07 [2025-03-16 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691964', 'tblTempUsageDetail_20' ) start [2025-03-16 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691964', 'tblTempUsageDetail_20' ) end [2025-03-16 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691964', 'tblTempVendorCDR_20' ) start [2025-03-16 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691964', 'tblTempVendorCDR_20' ) end [2025-03-16 07:30:19] Production.INFO: ProcessCDR(1,14691964,1,1,2) [2025-03-16 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691964', 'tblTempUsageDetail_20' ) start [2025-03-16 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691964', 'tblTempUsageDetail_20' ) end [2025-03-16 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:30:22] Production.INFO: ==14589== Releasing lock... [2025-03-16 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:31:05 [end_date_ymd] => 2025-03-16 07:31:05 [RateCDR] => 1 ) [2025-03-16 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:31:05' and `end` < '2025-03-16 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:31:17] Production.INFO: count ==136 [2025-03-16 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:31:05 - End Time 2025-03-16 07:31:05 [2025-03-16 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691969', 'tblTempUsageDetail_20' ) start [2025-03-16 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691969', 'tblTempUsageDetail_20' ) end [2025-03-16 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691969', 'tblTempVendorCDR_20' ) start [2025-03-16 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691969', 'tblTempVendorCDR_20' ) end [2025-03-16 07:31:17] Production.INFO: ProcessCDR(1,14691969,1,1,2) [2025-03-16 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691969', 'tblTempUsageDetail_20' ) start [2025-03-16 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691969', 'tblTempUsageDetail_20' ) end [2025-03-16 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:31:20] Production.INFO: ==14671== Releasing lock... [2025-03-16 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:32:05 [end_date_ymd] => 2025-03-16 07:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:32:05' and `end` < '2025-03-16 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-03-16 07:32:17] Production.INFO: count ==136 [2025-03-16 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:32:05 - End Time 2025-03-16 07:32:05 [2025-03-16 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691973', 'tblTempUsageDetail_20' ) start [2025-03-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691973', 'tblTempUsageDetail_20' ) end [2025-03-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691973', 'tblTempVendorCDR_20' ) start [2025-03-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691973', 'tblTempVendorCDR_20' ) end [2025-03-16 07:32:17] Production.INFO: ProcessCDR(1,14691973,1,1,2) [2025-03-16 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691973', 'tblTempUsageDetail_20' ) start [2025-03-16 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691973', 'tblTempUsageDetail_20' ) end [2025-03-16 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:32:20] Production.INFO: ==14743== Releasing lock... [2025-03-16 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:33:04 [end_date_ymd] => 2025-03-16 07:33:04 [RateCDR] => 1 ) [2025-03-16 07: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-03-16 04:33:04' and `end` < '2025-03-16 07: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-03-16 07:33:17] Production.INFO: count ==136 [2025-03-16 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:33:04 - End Time 2025-03-16 07:33:04 [2025-03-16 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691979', 'tblTempUsageDetail_20' ) start [2025-03-16 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691979', 'tblTempUsageDetail_20' ) end [2025-03-16 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691979', 'tblTempVendorCDR_20' ) start [2025-03-16 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691979', 'tblTempVendorCDR_20' ) end [2025-03-16 07:33:17] Production.INFO: ProcessCDR(1,14691979,1,1,2) [2025-03-16 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691979', 'tblTempUsageDetail_20' ) start [2025-03-16 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691979', 'tblTempUsageDetail_20' ) end [2025-03-16 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:33:20] Production.INFO: ==14853== Releasing lock... [2025-03-16 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:34:05 [end_date_ymd] => 2025-03-16 07:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:34:05' and `end` < '2025-03-16 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-03-16 07:34:17] Production.INFO: count ==136 [2025-03-16 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:34:05 - End Time 2025-03-16 07:34:05 [2025-03-16 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691984', 'tblTempUsageDetail_20' ) start [2025-03-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691984', 'tblTempUsageDetail_20' ) end [2025-03-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691984', 'tblTempVendorCDR_20' ) start [2025-03-16 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691984', 'tblTempVendorCDR_20' ) end [2025-03-16 07:34:17] Production.INFO: ProcessCDR(1,14691984,1,1,2) [2025-03-16 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691984', 'tblTempUsageDetail_20' ) start [2025-03-16 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691984', 'tblTempUsageDetail_20' ) end [2025-03-16 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:34:20] Production.INFO: ==14925== Releasing lock... [2025-03-16 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:35:04 [end_date_ymd] => 2025-03-16 07:35:04 [RateCDR] => 1 ) [2025-03-16 07: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-03-16 04:35:04' and `end` < '2025-03-16 07: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-03-16 07:35:17] Production.INFO: count ==136 [2025-03-16 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:35:04 - End Time 2025-03-16 07:35:04 [2025-03-16 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691989', 'tblTempUsageDetail_20' ) start [2025-03-16 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691989', 'tblTempUsageDetail_20' ) end [2025-03-16 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691989', 'tblTempVendorCDR_20' ) start [2025-03-16 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691989', 'tblTempVendorCDR_20' ) end [2025-03-16 07:35:17] Production.INFO: ProcessCDR(1,14691989,1,1,2) [2025-03-16 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691989', 'tblTempUsageDetail_20' ) start [2025-03-16 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691989', 'tblTempUsageDetail_20' ) end [2025-03-16 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:35:20] Production.INFO: ==14997== Releasing lock... [2025-03-16 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:36:05 [end_date_ymd] => 2025-03-16 07:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:36:05' and `end` < '2025-03-16 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-03-16 07:36:17] Production.INFO: count ==136 [2025-03-16 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:36:05 - End Time 2025-03-16 07:36:05 [2025-03-16 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691994', 'tblTempUsageDetail_20' ) start [2025-03-16 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691994', 'tblTempUsageDetail_20' ) end [2025-03-16 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691994', 'tblTempVendorCDR_20' ) start [2025-03-16 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691994', 'tblTempVendorCDR_20' ) end [2025-03-16 07:36:17] Production.INFO: ProcessCDR(1,14691994,1,1,2) [2025-03-16 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691994', 'tblTempUsageDetail_20' ) start [2025-03-16 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691994', 'tblTempUsageDetail_20' ) end [2025-03-16 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:36:20] Production.INFO: ==15070== Releasing lock... [2025-03-16 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:37:05 [end_date_ymd] => 2025-03-16 07:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:37:05' and `end` < '2025-03-16 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-03-16 07:37:17] Production.INFO: count ==136 [2025-03-16 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:37:05 - End Time 2025-03-16 07:37:05 [2025-03-16 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691999', 'tblTempUsageDetail_20' ) start [2025-03-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14691999', 'tblTempUsageDetail_20' ) end [2025-03-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691999', 'tblTempVendorCDR_20' ) start [2025-03-16 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14691999', 'tblTempVendorCDR_20' ) end [2025-03-16 07:37:17] Production.INFO: ProcessCDR(1,14691999,1,1,2) [2025-03-16 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14691999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14691999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14691999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14691999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691999', 'tblTempUsageDetail_20' ) start [2025-03-16 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14691999', 'tblTempUsageDetail_20' ) end [2025-03-16 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:37:20] Production.INFO: ==15141== Releasing lock... [2025-03-16 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:37:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:38:05 [end_date_ymd] => 2025-03-16 07:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:38:05' and `end` < '2025-03-16 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-03-16 07:38:17] Production.INFO: count ==136 [2025-03-16 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:38:05 - End Time 2025-03-16 07:38:05 [2025-03-16 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692004', 'tblTempUsageDetail_20' ) start [2025-03-16 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692004', 'tblTempUsageDetail_20' ) end [2025-03-16 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692004', 'tblTempVendorCDR_20' ) start [2025-03-16 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692004', 'tblTempVendorCDR_20' ) end [2025-03-16 07:38:17] Production.INFO: ProcessCDR(1,14692004,1,1,2) [2025-03-16 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692004', 'tblTempUsageDetail_20' ) start [2025-03-16 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692004', 'tblTempUsageDetail_20' ) end [2025-03-16 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:38:20] Production.INFO: ==15215== Releasing lock... [2025-03-16 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:39:05 [end_date_ymd] => 2025-03-16 07:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:39:05' and `end` < '2025-03-16 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-03-16 07:39:18] Production.INFO: count ==136 [2025-03-16 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:39:05 - End Time 2025-03-16 07:39:05 [2025-03-16 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692009', 'tblTempUsageDetail_20' ) start [2025-03-16 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692009', 'tblTempUsageDetail_20' ) end [2025-03-16 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692009', 'tblTempVendorCDR_20' ) start [2025-03-16 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692009', 'tblTempVendorCDR_20' ) end [2025-03-16 07:39:18] Production.INFO: ProcessCDR(1,14692009,1,1,2) [2025-03-16 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692009', 'tblTempUsageDetail_20' ) start [2025-03-16 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692009', 'tblTempUsageDetail_20' ) end [2025-03-16 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:39:21] Production.INFO: ==15287== Releasing lock... [2025-03-16 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:40:06 [end_date_ymd] => 2025-03-16 07:40:06 [RateCDR] => 1 ) [2025-03-16 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:40:06' and `end` < '2025-03-16 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:40:18] Production.INFO: count ==136 [2025-03-16 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:40:06 - End Time 2025-03-16 07:40:06 [2025-03-16 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692015', 'tblTempUsageDetail_20' ) start [2025-03-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692015', 'tblTempUsageDetail_20' ) end [2025-03-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692015', 'tblTempVendorCDR_20' ) start [2025-03-16 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692015', 'tblTempVendorCDR_20' ) end [2025-03-16 07:40:18] Production.INFO: ProcessCDR(1,14692015,1,1,2) [2025-03-16 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692015', 'tblTempUsageDetail_20' ) start [2025-03-16 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692015', 'tblTempUsageDetail_20' ) end [2025-03-16 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:40:22] Production.INFO: ==15370== Releasing lock... [2025-03-16 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:41:06 [end_date_ymd] => 2025-03-16 07:41:06 [RateCDR] => 1 ) [2025-03-16 07: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-03-16 04:41:06' and `end` < '2025-03-16 07: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-03-16 07:41:18] Production.INFO: count ==136 [2025-03-16 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:41:06 - End Time 2025-03-16 07:41:06 [2025-03-16 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692020', 'tblTempUsageDetail_20' ) start [2025-03-16 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692020', 'tblTempUsageDetail_20' ) end [2025-03-16 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692020', 'tblTempVendorCDR_20' ) start [2025-03-16 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692020', 'tblTempVendorCDR_20' ) end [2025-03-16 07:41:18] Production.INFO: ProcessCDR(1,14692020,1,1,2) [2025-03-16 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692020', 'tblTempUsageDetail_20' ) start [2025-03-16 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692020', 'tblTempUsageDetail_20' ) end [2025-03-16 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:41:21] Production.INFO: ==15444== Releasing lock... [2025-03-16 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:42:05 [end_date_ymd] => 2025-03-16 07:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:42:05' and `end` < '2025-03-16 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-03-16 07:42:17] Production.INFO: count ==136 [2025-03-16 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:42:05 - End Time 2025-03-16 07:42:05 [2025-03-16 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692025', 'tblTempUsageDetail_20' ) start [2025-03-16 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692025', 'tblTempUsageDetail_20' ) end [2025-03-16 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692025', 'tblTempVendorCDR_20' ) start [2025-03-16 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692025', 'tblTempVendorCDR_20' ) end [2025-03-16 07:42:17] Production.INFO: ProcessCDR(1,14692025,1,1,2) [2025-03-16 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692025', 'tblTempUsageDetail_20' ) start [2025-03-16 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692025', 'tblTempUsageDetail_20' ) end [2025-03-16 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:42:20] Production.INFO: ==15517== Releasing lock... [2025-03-16 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:43:05 [end_date_ymd] => 2025-03-16 07:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:43:05' and `end` < '2025-03-16 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-03-16 07:43:17] Production.INFO: count ==135 [2025-03-16 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:43:05 - End Time 2025-03-16 07:43:05 [2025-03-16 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692030', 'tblTempUsageDetail_20' ) start [2025-03-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692030', 'tblTempUsageDetail_20' ) end [2025-03-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692030', 'tblTempVendorCDR_20' ) start [2025-03-16 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692030', 'tblTempVendorCDR_20' ) end [2025-03-16 07:43:17] Production.INFO: ProcessCDR(1,14692030,1,1,2) [2025-03-16 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692030', 'tblTempUsageDetail_20' ) start [2025-03-16 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692030', 'tblTempUsageDetail_20' ) end [2025-03-16 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:43:20] Production.INFO: ==15588== Releasing lock... [2025-03-16 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:43:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:44:05 [end_date_ymd] => 2025-03-16 07:44:05 [RateCDR] => 1 ) [2025-03-16 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:44:05' and `end` < '2025-03-16 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:44:17] Production.INFO: count ==134 [2025-03-16 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:44:05 - End Time 2025-03-16 07:44:05 [2025-03-16 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692035', 'tblTempUsageDetail_20' ) start [2025-03-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692035', 'tblTempUsageDetail_20' ) end [2025-03-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692035', 'tblTempVendorCDR_20' ) start [2025-03-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692035', 'tblTempVendorCDR_20' ) end [2025-03-16 07:44:17] Production.INFO: ProcessCDR(1,14692035,1,1,2) [2025-03-16 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692035', 'tblTempUsageDetail_20' ) start [2025-03-16 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692035', 'tblTempUsageDetail_20' ) end [2025-03-16 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:44:20] Production.INFO: ==15664== Releasing lock... [2025-03-16 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:45:05 [end_date_ymd] => 2025-03-16 07:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:45:05' and `end` < '2025-03-16 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-03-16 07:45:17] Production.INFO: count ==134 [2025-03-16 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:45:05 - End Time 2025-03-16 07:45:05 [2025-03-16 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692039', 'tblTempUsageDetail_20' ) start [2025-03-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692039', 'tblTempUsageDetail_20' ) end [2025-03-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692039', 'tblTempVendorCDR_20' ) start [2025-03-16 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692039', 'tblTempVendorCDR_20' ) end [2025-03-16 07:45:17] Production.INFO: ProcessCDR(1,14692039,1,1,2) [2025-03-16 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692039', 'tblTempUsageDetail_20' ) start [2025-03-16 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692039', 'tblTempUsageDetail_20' ) end [2025-03-16 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:45:20] Production.INFO: ==15742== Releasing lock... [2025-03-16 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:46:05 [end_date_ymd] => 2025-03-16 07:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:46:05' and `end` < '2025-03-16 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-03-16 07:46:17] Production.INFO: count ==134 [2025-03-16 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:46:05 - End Time 2025-03-16 07:46:05 [2025-03-16 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692045', 'tblTempUsageDetail_20' ) start [2025-03-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692045', 'tblTempUsageDetail_20' ) end [2025-03-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692045', 'tblTempVendorCDR_20' ) start [2025-03-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692045', 'tblTempVendorCDR_20' ) end [2025-03-16 07:46:17] Production.INFO: ProcessCDR(1,14692045,1,1,2) [2025-03-16 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692045', 'tblTempUsageDetail_20' ) start [2025-03-16 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692045', 'tblTempUsageDetail_20' ) end [2025-03-16 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:46:20] Production.INFO: ==15816== Releasing lock... [2025-03-16 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:47:05 [end_date_ymd] => 2025-03-16 07:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:47:05' and `end` < '2025-03-16 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-03-16 07:47:17] Production.INFO: count ==134 [2025-03-16 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:47:05 - End Time 2025-03-16 07:47:05 [2025-03-16 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692050', 'tblTempUsageDetail_20' ) start [2025-03-16 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692050', 'tblTempUsageDetail_20' ) end [2025-03-16 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692050', 'tblTempVendorCDR_20' ) start [2025-03-16 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692050', 'tblTempVendorCDR_20' ) end [2025-03-16 07:47:17] Production.INFO: ProcessCDR(1,14692050,1,1,2) [2025-03-16 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692050', 'tblTempUsageDetail_20' ) start [2025-03-16 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692050', 'tblTempUsageDetail_20' ) end [2025-03-16 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:47:20] Production.INFO: ==15888== Releasing lock... [2025-03-16 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:48:05 [end_date_ymd] => 2025-03-16 07:48:05 [RateCDR] => 1 ) [2025-03-16 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:48:05' and `end` < '2025-03-16 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:48:17] Production.INFO: count ==134 [2025-03-16 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:48:05 - End Time 2025-03-16 07:48:05 [2025-03-16 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692055', 'tblTempUsageDetail_20' ) start [2025-03-16 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692055', 'tblTempUsageDetail_20' ) end [2025-03-16 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692055', 'tblTempVendorCDR_20' ) start [2025-03-16 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692055', 'tblTempVendorCDR_20' ) end [2025-03-16 07:48:17] Production.INFO: ProcessCDR(1,14692055,1,1,2) [2025-03-16 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692055', 'tblTempUsageDetail_20' ) start [2025-03-16 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692055', 'tblTempUsageDetail_20' ) end [2025-03-16 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:48:20] Production.INFO: ==15999== Releasing lock... [2025-03-16 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:48:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:49:05 [end_date_ymd] => 2025-03-16 07:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:49:05' and `end` < '2025-03-16 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-03-16 07:49:17] Production.INFO: count ==134 [2025-03-16 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:49:05 - End Time 2025-03-16 07:49:05 [2025-03-16 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692060', 'tblTempUsageDetail_20' ) start [2025-03-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692060', 'tblTempUsageDetail_20' ) end [2025-03-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692060', 'tblTempVendorCDR_20' ) start [2025-03-16 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692060', 'tblTempVendorCDR_20' ) end [2025-03-16 07:49:17] Production.INFO: ProcessCDR(1,14692060,1,1,2) [2025-03-16 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692060', 'tblTempUsageDetail_20' ) start [2025-03-16 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692060', 'tblTempUsageDetail_20' ) end [2025-03-16 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:49:21] Production.INFO: ==16072== Releasing lock... [2025-03-16 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:50:06 [end_date_ymd] => 2025-03-16 07:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:50:06' and `end` < '2025-03-16 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-03-16 07:50:18] Production.INFO: count ==133 [2025-03-16 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:50:06 - End Time 2025-03-16 07:50:06 [2025-03-16 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692065', 'tblTempUsageDetail_20' ) start [2025-03-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692065', 'tblTempUsageDetail_20' ) end [2025-03-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692065', 'tblTempVendorCDR_20' ) start [2025-03-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692065', 'tblTempVendorCDR_20' ) end [2025-03-16 07:50:18] Production.INFO: ProcessCDR(1,14692065,1,1,2) [2025-03-16 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692065', 'tblTempUsageDetail_20' ) start [2025-03-16 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692065', 'tblTempUsageDetail_20' ) end [2025-03-16 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:50:21] Production.INFO: ==16152== Releasing lock... [2025-03-16 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:51:05 [end_date_ymd] => 2025-03-16 07:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:51:05' and `end` < '2025-03-16 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-03-16 07:51:17] Production.INFO: count ==132 [2025-03-16 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:51:05 - End Time 2025-03-16 07:51:05 [2025-03-16 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692071', 'tblTempUsageDetail_20' ) start [2025-03-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692071', 'tblTempUsageDetail_20' ) end [2025-03-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692071', 'tblTempVendorCDR_20' ) start [2025-03-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692071', 'tblTempVendorCDR_20' ) end [2025-03-16 07:51:17] Production.INFO: ProcessCDR(1,14692071,1,1,2) [2025-03-16 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692071', 'tblTempUsageDetail_20' ) start [2025-03-16 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692071', 'tblTempUsageDetail_20' ) end [2025-03-16 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:51:20] Production.INFO: ==16226== Releasing lock... [2025-03-16 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:52:06 [end_date_ymd] => 2025-03-16 07:52:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:52:06' and `end` < '2025-03-16 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-03-16 07:52:18] Production.INFO: count ==128 [2025-03-16 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:52:06 - End Time 2025-03-16 07:52:06 [2025-03-16 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692076', 'tblTempUsageDetail_20' ) start [2025-03-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692076', 'tblTempUsageDetail_20' ) end [2025-03-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692076', 'tblTempVendorCDR_20' ) start [2025-03-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692076', 'tblTempVendorCDR_20' ) end [2025-03-16 07:52:18] Production.INFO: ProcessCDR(1,14692076,1,1,2) [2025-03-16 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692076', 'tblTempUsageDetail_20' ) start [2025-03-16 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692076', 'tblTempUsageDetail_20' ) end [2025-03-16 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:52:21] Production.INFO: ==16300== Releasing lock... [2025-03-16 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:53:04 [end_date_ymd] => 2025-03-16 07:53:04 [RateCDR] => 1 ) [2025-03-16 07: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-03-16 04:53:04' and `end` < '2025-03-16 07: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-03-16 07:53:17] Production.INFO: count ==124 [2025-03-16 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:53:04 - End Time 2025-03-16 07:53:04 [2025-03-16 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692081', 'tblTempUsageDetail_20' ) start [2025-03-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692081', 'tblTempUsageDetail_20' ) end [2025-03-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692081', 'tblTempVendorCDR_20' ) start [2025-03-16 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692081', 'tblTempVendorCDR_20' ) end [2025-03-16 07:53:17] Production.INFO: ProcessCDR(1,14692081,1,1,2) [2025-03-16 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692081', 'tblTempUsageDetail_20' ) start [2025-03-16 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692081', 'tblTempUsageDetail_20' ) end [2025-03-16 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:53:20] Production.INFO: ==16376== Releasing lock... [2025-03-16 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:54:05 [end_date_ymd] => 2025-03-16 07:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:54:05' and `end` < '2025-03-16 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-03-16 07:54:17] Production.INFO: count ==124 [2025-03-16 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:54:05 - End Time 2025-03-16 07:54:05 [2025-03-16 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692086', 'tblTempUsageDetail_20' ) start [2025-03-16 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692086', 'tblTempUsageDetail_20' ) end [2025-03-16 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692086', 'tblTempVendorCDR_20' ) start [2025-03-16 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692086', 'tblTempVendorCDR_20' ) end [2025-03-16 07:54:17] Production.INFO: ProcessCDR(1,14692086,1,1,2) [2025-03-16 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692086', 'tblTempUsageDetail_20' ) start [2025-03-16 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692086', 'tblTempUsageDetail_20' ) end [2025-03-16 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:54:21] Production.INFO: ==16455== Releasing lock... [2025-03-16 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:55:05 [end_date_ymd] => 2025-03-16 07:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:55:05' and `end` < '2025-03-16 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-03-16 07:55:17] Production.INFO: count ==124 [2025-03-16 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:55:05 - End Time 2025-03-16 07:55:05 [2025-03-16 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692091', 'tblTempUsageDetail_20' ) start [2025-03-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692091', 'tblTempUsageDetail_20' ) end [2025-03-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692091', 'tblTempVendorCDR_20' ) start [2025-03-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692091', 'tblTempVendorCDR_20' ) end [2025-03-16 07:55:17] Production.INFO: ProcessCDR(1,14692091,1,1,2) [2025-03-16 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692091', 'tblTempUsageDetail_20' ) start [2025-03-16 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692091', 'tblTempUsageDetail_20' ) end [2025-03-16 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:55:20] Production.INFO: ==16530== Releasing lock... [2025-03-16 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:56:05 [end_date_ymd] => 2025-03-16 07:56:05 [RateCDR] => 1 ) [2025-03-16 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 04:56:05' and `end` < '2025-03-16 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 07:56:17] Production.INFO: count ==124 [2025-03-16 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:56:05 - End Time 2025-03-16 07:56:05 [2025-03-16 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692096', 'tblTempUsageDetail_20' ) start [2025-03-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692096', 'tblTempUsageDetail_20' ) end [2025-03-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692096', 'tblTempVendorCDR_20' ) start [2025-03-16 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692096', 'tblTempVendorCDR_20' ) end [2025-03-16 07:56:17] Production.INFO: ProcessCDR(1,14692096,1,1,2) [2025-03-16 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692096', 'tblTempUsageDetail_20' ) start [2025-03-16 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692096', 'tblTempUsageDetail_20' ) end [2025-03-16 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:56:21] Production.INFO: ==16607== Releasing lock... [2025-03-16 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:57:04 [end_date_ymd] => 2025-03-16 07:57:04 [RateCDR] => 1 ) [2025-03-16 07: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-03-16 04:57:04' and `end` < '2025-03-16 07: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-03-16 07:57:16] Production.INFO: count ==124 [2025-03-16 07:57:16] Production.ERROR: pbx CDR StartTime 2025-03-16 04:57:04 - End Time 2025-03-16 07:57:04 [2025-03-16 07:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692101', 'tblTempUsageDetail_20' ) start [2025-03-16 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692101', 'tblTempUsageDetail_20' ) end [2025-03-16 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692101', 'tblTempVendorCDR_20' ) start [2025-03-16 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692101', 'tblTempVendorCDR_20' ) end [2025-03-16 07:57:16] Production.INFO: ProcessCDR(1,14692101,1,1,2) [2025-03-16 07:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692101', 'tblTempUsageDetail_20' ) start [2025-03-16 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692101', 'tblTempUsageDetail_20' ) end [2025-03-16 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:57:20] Production.INFO: ==16685== Releasing lock... [2025-03-16 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:57:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:58:05 [end_date_ymd] => 2025-03-16 07:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:58:05' and `end` < '2025-03-16 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-03-16 07:58:18] Production.INFO: count ==121 [2025-03-16 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 04:58:05 - End Time 2025-03-16 07:58:05 [2025-03-16 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692106', 'tblTempUsageDetail_20' ) start [2025-03-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692106', 'tblTempUsageDetail_20' ) end [2025-03-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692106', 'tblTempVendorCDR_20' ) start [2025-03-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692106', 'tblTempVendorCDR_20' ) end [2025-03-16 07:58:18] Production.INFO: ProcessCDR(1,14692106,1,1,2) [2025-03-16 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692106', 'tblTempUsageDetail_20' ) start [2025-03-16 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692106', 'tblTempUsageDetail_20' ) end [2025-03-16 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:58:21] Production.INFO: ==16762== Releasing lock... [2025-03-16 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 04:59:04 [end_date_ymd] => 2025-03-16 07:59:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 04:59:04' and `end` < '2025-03-16 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-03-16 07:59:17] Production.INFO: count ==121 [2025-03-16 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 04:59:04 - End Time 2025-03-16 07:59:04 [2025-03-16 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692111', 'tblTempUsageDetail_20' ) start [2025-03-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692111', 'tblTempUsageDetail_20' ) end [2025-03-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692111', 'tblTempVendorCDR_20' ) start [2025-03-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692111', 'tblTempVendorCDR_20' ) end [2025-03-16 07:59:17] Production.INFO: ProcessCDR(1,14692111,1,1,2) [2025-03-16 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692111', 'tblTempUsageDetail_20' ) start [2025-03-16 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692111', 'tblTempUsageDetail_20' ) end [2025-03-16 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 07:59:20] Production.INFO: ==16846== Releasing lock... [2025-03-16 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 07:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:00:06 [end_date_ymd] => 2025-03-16 08:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:00:06' and `end` < '2025-03-16 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-03-16 08:00:18] Production.INFO: count ==122 [2025-03-16 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:00:06 - End Time 2025-03-16 08:00:06 [2025-03-16 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692117', 'tblTempUsageDetail_20' ) start [2025-03-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692117', 'tblTempUsageDetail_20' ) end [2025-03-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692117', 'tblTempVendorCDR_20' ) start [2025-03-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692117', 'tblTempVendorCDR_20' ) end [2025-03-16 08:00:18] Production.INFO: ProcessCDR(1,14692117,1,1,2) [2025-03-16 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692117', 'tblTempUsageDetail_20' ) start [2025-03-16 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692117', 'tblTempUsageDetail_20' ) end [2025-03-16 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:00:23] Production.INFO: ==16925== Releasing lock... [2025-03-16 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:01:05 [end_date_ymd] => 2025-03-16 08:01:05 [RateCDR] => 1 ) [2025-03-16 08: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-03-16 05:01:05' and `end` < '2025-03-16 08: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-03-16 08:01:17] Production.INFO: count ==122 [2025-03-16 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:01:05 - End Time 2025-03-16 08:01:05 [2025-03-16 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692122', 'tblTempUsageDetail_20' ) start [2025-03-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692122', 'tblTempUsageDetail_20' ) end [2025-03-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692122', 'tblTempVendorCDR_20' ) start [2025-03-16 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692122', 'tblTempVendorCDR_20' ) end [2025-03-16 08:01:17] Production.INFO: ProcessCDR(1,14692122,1,1,2) [2025-03-16 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692122', 'tblTempUsageDetail_20' ) start [2025-03-16 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692122', 'tblTempUsageDetail_20' ) end [2025-03-16 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:01:21] Production.INFO: ==17021== Releasing lock... [2025-03-16 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:02:05 [end_date_ymd] => 2025-03-16 08:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:02:05' and `end` < '2025-03-16 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-03-16 08:02:17] Production.INFO: count ==122 [2025-03-16 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:02:05 - End Time 2025-03-16 08:02:05 [2025-03-16 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692127', 'tblTempUsageDetail_20' ) start [2025-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692127', 'tblTempUsageDetail_20' ) end [2025-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692127', 'tblTempVendorCDR_20' ) start [2025-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692127', 'tblTempVendorCDR_20' ) end [2025-03-16 08:02:17] Production.INFO: ProcessCDR(1,14692127,1,1,2) [2025-03-16 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692127', 'tblTempUsageDetail_20' ) start [2025-03-16 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692127', 'tblTempUsageDetail_20' ) end [2025-03-16 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:02:21] Production.INFO: ==17100== Releasing lock... [2025-03-16 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:03:06 [end_date_ymd] => 2025-03-16 08:03:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:03:06' and `end` < '2025-03-16 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-03-16 08:03:18] Production.INFO: count ==122 [2025-03-16 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:03:06 - End Time 2025-03-16 08:03:06 [2025-03-16 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692132', 'tblTempUsageDetail_20' ) start [2025-03-16 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692132', 'tblTempUsageDetail_20' ) end [2025-03-16 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692132', 'tblTempVendorCDR_20' ) start [2025-03-16 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692132', 'tblTempVendorCDR_20' ) end [2025-03-16 08:03:18] Production.INFO: ProcessCDR(1,14692132,1,1,2) [2025-03-16 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692132', 'tblTempUsageDetail_20' ) start [2025-03-16 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692132', 'tblTempUsageDetail_20' ) end [2025-03-16 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:03:21] Production.INFO: ==17179== Releasing lock... [2025-03-16 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:04:05 [end_date_ymd] => 2025-03-16 08:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:04:05' and `end` < '2025-03-16 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-03-16 08:04:17] Production.INFO: count ==122 [2025-03-16 08:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:04:05 - End Time 2025-03-16 08:04:05 [2025-03-16 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692137', 'tblTempUsageDetail_20' ) start [2025-03-16 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692137', 'tblTempUsageDetail_20' ) end [2025-03-16 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692137', 'tblTempVendorCDR_20' ) start [2025-03-16 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692137', 'tblTempVendorCDR_20' ) end [2025-03-16 08:04:17] Production.INFO: ProcessCDR(1,14692137,1,1,2) [2025-03-16 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692137', 'tblTempUsageDetail_20' ) start [2025-03-16 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692137', 'tblTempUsageDetail_20' ) end [2025-03-16 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:04:20] Production.INFO: ==17292== Releasing lock... [2025-03-16 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:04:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:05:05 [end_date_ymd] => 2025-03-16 08:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:05:05' and `end` < '2025-03-16 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-03-16 08:05:17] Production.INFO: count ==122 [2025-03-16 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:05:05 - End Time 2025-03-16 08:05:05 [2025-03-16 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692142', 'tblTempUsageDetail_20' ) start [2025-03-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692142', 'tblTempUsageDetail_20' ) end [2025-03-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692142', 'tblTempVendorCDR_20' ) start [2025-03-16 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692142', 'tblTempVendorCDR_20' ) end [2025-03-16 08:05:17] Production.INFO: ProcessCDR(1,14692142,1,1,2) [2025-03-16 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692142', 'tblTempUsageDetail_20' ) start [2025-03-16 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692142', 'tblTempUsageDetail_20' ) end [2025-03-16 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:05:20] Production.INFO: ==17373== Releasing lock... [2025-03-16 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:05:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:06:05 [end_date_ymd] => 2025-03-16 08:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:06:05' and `end` < '2025-03-16 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-03-16 08:06:17] Production.INFO: count ==122 [2025-03-16 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:06:05 - End Time 2025-03-16 08:06:05 [2025-03-16 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692147', 'tblTempUsageDetail_20' ) start [2025-03-16 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692147', 'tblTempUsageDetail_20' ) end [2025-03-16 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692147', 'tblTempVendorCDR_20' ) start [2025-03-16 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692147', 'tblTempVendorCDR_20' ) end [2025-03-16 08:06:17] Production.INFO: ProcessCDR(1,14692147,1,1,2) [2025-03-16 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692147', 'tblTempUsageDetail_20' ) start [2025-03-16 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692147', 'tblTempUsageDetail_20' ) end [2025-03-16 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:06:20] Production.INFO: ==17450== Releasing lock... [2025-03-16 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:06:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:07:05 [end_date_ymd] => 2025-03-16 08:07:05 [RateCDR] => 1 ) [2025-03-16 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:07:05' and `end` < '2025-03-16 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:07:17] Production.INFO: count ==122 [2025-03-16 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:07:05 - End Time 2025-03-16 08:07:05 [2025-03-16 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692152', 'tblTempUsageDetail_20' ) start [2025-03-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692152', 'tblTempUsageDetail_20' ) end [2025-03-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692152', 'tblTempVendorCDR_20' ) start [2025-03-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692152', 'tblTempVendorCDR_20' ) end [2025-03-16 08:07:18] Production.INFO: ProcessCDR(1,14692152,1,1,2) [2025-03-16 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692152', 'tblTempUsageDetail_20' ) start [2025-03-16 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692152', 'tblTempUsageDetail_20' ) end [2025-03-16 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:07:21] Production.INFO: ==17529== Releasing lock... [2025-03-16 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:08:05 [end_date_ymd] => 2025-03-16 08:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:08:05' and `end` < '2025-03-16 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-03-16 08:08:17] Production.INFO: count ==124 [2025-03-16 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:08:05 - End Time 2025-03-16 08:08:05 [2025-03-16 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692157', 'tblTempUsageDetail_20' ) start [2025-03-16 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692157', 'tblTempUsageDetail_20' ) end [2025-03-16 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692157', 'tblTempVendorCDR_20' ) start [2025-03-16 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692157', 'tblTempVendorCDR_20' ) end [2025-03-16 08:08:17] Production.INFO: ProcessCDR(1,14692157,1,1,2) [2025-03-16 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692157', 'tblTempUsageDetail_20' ) start [2025-03-16 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692157', 'tblTempUsageDetail_20' ) end [2025-03-16 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:08:20] Production.INFO: ==17612== Releasing lock... [2025-03-16 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:08:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:09:05 [end_date_ymd] => 2025-03-16 08:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:09:05' and `end` < '2025-03-16 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-03-16 08:09:17] Production.INFO: count ==126 [2025-03-16 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:09:05 - End Time 2025-03-16 08:09:05 [2025-03-16 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692162', 'tblTempUsageDetail_20' ) start [2025-03-16 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692162', 'tblTempUsageDetail_20' ) end [2025-03-16 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692162', 'tblTempVendorCDR_20' ) start [2025-03-16 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692162', 'tblTempVendorCDR_20' ) end [2025-03-16 08:09:18] Production.INFO: ProcessCDR(1,14692162,1,1,2) [2025-03-16 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692162', 'tblTempUsageDetail_20' ) start [2025-03-16 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692162', 'tblTempUsageDetail_20' ) end [2025-03-16 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:09:21] Production.INFO: ==17687== Releasing lock... [2025-03-16 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:10:05 [end_date_ymd] => 2025-03-16 08:10:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:10:05' and `end` < '2025-03-16 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-03-16 08:10:17] Production.INFO: count ==118 [2025-03-16 08:10:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:10:05 - End Time 2025-03-16 08:10:05 [2025-03-16 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692167', 'tblTempUsageDetail_20' ) start [2025-03-16 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692167', 'tblTempUsageDetail_20' ) end [2025-03-16 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692167', 'tblTempVendorCDR_20' ) start [2025-03-16 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692167', 'tblTempVendorCDR_20' ) end [2025-03-16 08:10:17] Production.INFO: ProcessCDR(1,14692167,1,1,2) [2025-03-16 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692167', 'tblTempUsageDetail_20' ) start [2025-03-16 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692167', 'tblTempUsageDetail_20' ) end [2025-03-16 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:10:21] Production.INFO: ==17770== Releasing lock... [2025-03-16 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:10:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:11:05 [end_date_ymd] => 2025-03-16 08:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:11:05' and `end` < '2025-03-16 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-03-16 08:11:17] Production.INFO: count ==118 [2025-03-16 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:11:05 - End Time 2025-03-16 08:11:05 [2025-03-16 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692173', 'tblTempUsageDetail_20' ) start [2025-03-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692173', 'tblTempUsageDetail_20' ) end [2025-03-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692173', 'tblTempVendorCDR_20' ) start [2025-03-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692173', 'tblTempVendorCDR_20' ) end [2025-03-16 08:11:17] Production.INFO: ProcessCDR(1,14692173,1,1,2) [2025-03-16 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692173', 'tblTempUsageDetail_20' ) start [2025-03-16 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692173', 'tblTempUsageDetail_20' ) end [2025-03-16 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:11:20] Production.INFO: ==17849== Releasing lock... [2025-03-16 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:11:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:12:05 [end_date_ymd] => 2025-03-16 08:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:12:05' and `end` < '2025-03-16 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-03-16 08:12:17] Production.INFO: count ==117 [2025-03-16 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:12:05 - End Time 2025-03-16 08:12:05 [2025-03-16 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692178', 'tblTempUsageDetail_20' ) start [2025-03-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692178', 'tblTempUsageDetail_20' ) end [2025-03-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692178', 'tblTempVendorCDR_20' ) start [2025-03-16 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692178', 'tblTempVendorCDR_20' ) end [2025-03-16 08:12:17] Production.INFO: ProcessCDR(1,14692178,1,1,2) [2025-03-16 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692178', 'tblTempUsageDetail_20' ) start [2025-03-16 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692178', 'tblTempUsageDetail_20' ) end [2025-03-16 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:12:20] Production.INFO: ==17930== Releasing lock... [2025-03-16 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:12:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:13:05 [end_date_ymd] => 2025-03-16 08:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:13:05' and `end` < '2025-03-16 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-03-16 08:13:17] Production.INFO: count ==121 [2025-03-16 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:13:05 - End Time 2025-03-16 08:13:05 [2025-03-16 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692183', 'tblTempUsageDetail_20' ) start [2025-03-16 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692183', 'tblTempUsageDetail_20' ) end [2025-03-16 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692183', 'tblTempVendorCDR_20' ) start [2025-03-16 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692183', 'tblTempVendorCDR_20' ) end [2025-03-16 08:13:17] Production.INFO: ProcessCDR(1,14692183,1,1,2) [2025-03-16 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692183', 'tblTempUsageDetail_20' ) start [2025-03-16 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692183', 'tblTempUsageDetail_20' ) end [2025-03-16 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:13:21] Production.INFO: ==18011== Releasing lock... [2025-03-16 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:14:05 [end_date_ymd] => 2025-03-16 08:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:14:05' and `end` < '2025-03-16 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-03-16 08:14:17] Production.INFO: count ==121 [2025-03-16 08:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:14:05 - End Time 2025-03-16 08:14:05 [2025-03-16 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692188', 'tblTempUsageDetail_20' ) start [2025-03-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692188', 'tblTempUsageDetail_20' ) end [2025-03-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692188', 'tblTempVendorCDR_20' ) start [2025-03-16 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692188', 'tblTempVendorCDR_20' ) end [2025-03-16 08:14:17] Production.INFO: ProcessCDR(1,14692188,1,1,2) [2025-03-16 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692188', 'tblTempUsageDetail_20' ) start [2025-03-16 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692188', 'tblTempUsageDetail_20' ) end [2025-03-16 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:14:21] Production.INFO: ==18087== Releasing lock... [2025-03-16 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:15:05 [end_date_ymd] => 2025-03-16 08:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:15:05' and `end` < '2025-03-16 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-03-16 08:15:17] Production.INFO: count ==121 [2025-03-16 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:15:05 - End Time 2025-03-16 08:15:05 [2025-03-16 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692193', 'tblTempUsageDetail_20' ) start [2025-03-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692193', 'tblTempUsageDetail_20' ) end [2025-03-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692193', 'tblTempVendorCDR_20' ) start [2025-03-16 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692193', 'tblTempVendorCDR_20' ) end [2025-03-16 08:15:17] Production.INFO: ProcessCDR(1,14692193,1,1,2) [2025-03-16 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692193', 'tblTempUsageDetail_20' ) start [2025-03-16 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692193', 'tblTempUsageDetail_20' ) end [2025-03-16 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:15:20] Production.INFO: ==18164== Releasing lock... [2025-03-16 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:16:05 [end_date_ymd] => 2025-03-16 08:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:16:05' and `end` < '2025-03-16 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:16:18] Production.INFO: count ==121 [2025-03-16 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:16:05 - End Time 2025-03-16 08:16:05 [2025-03-16 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692198', 'tblTempUsageDetail_20' ) start [2025-03-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692198', 'tblTempUsageDetail_20' ) end [2025-03-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692198', 'tblTempVendorCDR_20' ) start [2025-03-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692198', 'tblTempVendorCDR_20' ) end [2025-03-16 08:16:18] Production.INFO: ProcessCDR(1,14692198,1,1,2) [2025-03-16 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692198', 'tblTempUsageDetail_20' ) start [2025-03-16 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692198', 'tblTempUsageDetail_20' ) end [2025-03-16 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:16:21] Production.INFO: ==18245== Releasing lock... [2025-03-16 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:17:04 [end_date_ymd] => 2025-03-16 08:17:04 [RateCDR] => 1 ) [2025-03-16 08: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-03-16 05:17:04' and `end` < '2025-03-16 08: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-03-16 08:17:16] Production.INFO: count ==121 [2025-03-16 08:17:16] Production.ERROR: pbx CDR StartTime 2025-03-16 05:17:04 - End Time 2025-03-16 08:17:04 [2025-03-16 08:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692203', 'tblTempUsageDetail_20' ) start [2025-03-16 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692203', 'tblTempUsageDetail_20' ) end [2025-03-16 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692203', 'tblTempVendorCDR_20' ) start [2025-03-16 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692203', 'tblTempVendorCDR_20' ) end [2025-03-16 08:17:16] Production.INFO: ProcessCDR(1,14692203,1,1,2) [2025-03-16 08:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692203', 'tblTempUsageDetail_20' ) start [2025-03-16 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692203', 'tblTempUsageDetail_20' ) end [2025-03-16 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:17:20] Production.INFO: ==18327== Releasing lock... [2025-03-16 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:18:05 [end_date_ymd] => 2025-03-16 08:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:18:05' and `end` < '2025-03-16 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-03-16 08:18:17] Production.INFO: count ==121 [2025-03-16 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:18:05 - End Time 2025-03-16 08:18:05 [2025-03-16 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692208', 'tblTempUsageDetail_20' ) start [2025-03-16 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692208', 'tblTempUsageDetail_20' ) end [2025-03-16 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692208', 'tblTempVendorCDR_20' ) start [2025-03-16 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692208', 'tblTempVendorCDR_20' ) end [2025-03-16 08:18:17] Production.INFO: ProcessCDR(1,14692208,1,1,2) [2025-03-16 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692208', 'tblTempUsageDetail_20' ) start [2025-03-16 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692208', 'tblTempUsageDetail_20' ) end [2025-03-16 08:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:18:20] Production.INFO: ==18411== Releasing lock... [2025-03-16 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:19:05 [end_date_ymd] => 2025-03-16 08:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:19:05' and `end` < '2025-03-16 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-03-16 08:19:17] Production.INFO: count ==121 [2025-03-16 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:19:05 - End Time 2025-03-16 08:19:05 [2025-03-16 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692213', 'tblTempUsageDetail_20' ) start [2025-03-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692213', 'tblTempUsageDetail_20' ) end [2025-03-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692213', 'tblTempVendorCDR_20' ) start [2025-03-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692213', 'tblTempVendorCDR_20' ) end [2025-03-16 08:19:17] Production.INFO: ProcessCDR(1,14692213,1,1,2) [2025-03-16 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692213', 'tblTempUsageDetail_20' ) start [2025-03-16 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692213', 'tblTempUsageDetail_20' ) end [2025-03-16 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:19:20] Production.INFO: ==18529== Releasing lock... [2025-03-16 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:20:06 [end_date_ymd] => 2025-03-16 08:20:06 [RateCDR] => 1 ) [2025-03-16 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:20:06' and `end` < '2025-03-16 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:20:18] Production.INFO: count ==123 [2025-03-16 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:20:06 - End Time 2025-03-16 08:20:06 [2025-03-16 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692219', 'tblTempUsageDetail_20' ) start [2025-03-16 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692219', 'tblTempUsageDetail_20' ) end [2025-03-16 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692219', 'tblTempVendorCDR_20' ) start [2025-03-16 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692219', 'tblTempVendorCDR_20' ) end [2025-03-16 08:20:18] Production.INFO: ProcessCDR(1,14692219,1,1,2) [2025-03-16 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692219', 'tblTempUsageDetail_20' ) start [2025-03-16 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692219', 'tblTempUsageDetail_20' ) end [2025-03-16 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:20:21] Production.INFO: ==18608== Releasing lock... [2025-03-16 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:21:04 [end_date_ymd] => 2025-03-16 08:21:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:21:04' and `end` < '2025-03-16 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-03-16 08:21:16] Production.INFO: count ==134 [2025-03-16 08:21:16] Production.ERROR: pbx CDR StartTime 2025-03-16 05:21:04 - End Time 2025-03-16 08:21:04 [2025-03-16 08:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692224', 'tblTempUsageDetail_20' ) start [2025-03-16 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692224', 'tblTempUsageDetail_20' ) end [2025-03-16 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692224', 'tblTempVendorCDR_20' ) start [2025-03-16 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692224', 'tblTempVendorCDR_20' ) end [2025-03-16 08:21:16] Production.INFO: ProcessCDR(1,14692224,1,1,2) [2025-03-16 08:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692224', 'tblTempUsageDetail_20' ) start [2025-03-16 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692224', 'tblTempUsageDetail_20' ) end [2025-03-16 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:21:21] Production.INFO: ==18689== Releasing lock... [2025-03-16 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:22:05 [end_date_ymd] => 2025-03-16 08:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:22:05' and `end` < '2025-03-16 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-03-16 08:22:17] Production.INFO: count ==134 [2025-03-16 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:22:05 - End Time 2025-03-16 08:22:05 [2025-03-16 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692229', 'tblTempUsageDetail_20' ) start [2025-03-16 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692229', 'tblTempUsageDetail_20' ) end [2025-03-16 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692229', 'tblTempVendorCDR_20' ) start [2025-03-16 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692229', 'tblTempVendorCDR_20' ) end [2025-03-16 08:22:17] Production.INFO: ProcessCDR(1,14692229,1,1,2) [2025-03-16 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692229', 'tblTempUsageDetail_20' ) start [2025-03-16 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692229', 'tblTempUsageDetail_20' ) end [2025-03-16 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:22:20] Production.INFO: ==18769== Releasing lock... [2025-03-16 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:23:05 [end_date_ymd] => 2025-03-16 08:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:23:05' and `end` < '2025-03-16 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-03-16 08:23:17] Production.INFO: count ==134 [2025-03-16 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:23:05 - End Time 2025-03-16 08:23:05 [2025-03-16 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692234', 'tblTempUsageDetail_20' ) start [2025-03-16 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692234', 'tblTempUsageDetail_20' ) end [2025-03-16 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692234', 'tblTempVendorCDR_20' ) start [2025-03-16 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692234', 'tblTempVendorCDR_20' ) end [2025-03-16 08:23:17] Production.INFO: ProcessCDR(1,14692234,1,1,2) [2025-03-16 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692234', 'tblTempUsageDetail_20' ) start [2025-03-16 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692234', 'tblTempUsageDetail_20' ) end [2025-03-16 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:23:21] Production.INFO: ==18851== Releasing lock... [2025-03-16 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:24:05 [end_date_ymd] => 2025-03-16 08:24:05 [RateCDR] => 1 ) [2025-03-16 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:24:05' and `end` < '2025-03-16 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:24:17] Production.INFO: count ==132 [2025-03-16 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:24:05 - End Time 2025-03-16 08:24:05 [2025-03-16 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692239', 'tblTempUsageDetail_20' ) start [2025-03-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692239', 'tblTempUsageDetail_20' ) end [2025-03-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692239', 'tblTempVendorCDR_20' ) start [2025-03-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692239', 'tblTempVendorCDR_20' ) end [2025-03-16 08:24:17] Production.INFO: ProcessCDR(1,14692239,1,1,2) [2025-03-16 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692239', 'tblTempUsageDetail_20' ) start [2025-03-16 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692239', 'tblTempUsageDetail_20' ) end [2025-03-16 08:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:24:20] Production.INFO: ==18926== Releasing lock... [2025-03-16 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:24:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:25:05 [end_date_ymd] => 2025-03-16 08:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:25:05' and `end` < '2025-03-16 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-03-16 08:25:18] Production.INFO: count ==132 [2025-03-16 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:25:05 - End Time 2025-03-16 08:25:05 [2025-03-16 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692244', 'tblTempUsageDetail_20' ) start [2025-03-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692244', 'tblTempUsageDetail_20' ) end [2025-03-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692244', 'tblTempVendorCDR_20' ) start [2025-03-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692244', 'tblTempVendorCDR_20' ) end [2025-03-16 08:25:18] Production.INFO: ProcessCDR(1,14692244,1,1,2) [2025-03-16 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692244', 'tblTempUsageDetail_20' ) start [2025-03-16 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692244', 'tblTempUsageDetail_20' ) end [2025-03-16 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:25:21] Production.INFO: ==19004== Releasing lock... [2025-03-16 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:26:05 [end_date_ymd] => 2025-03-16 08:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:26:05' and `end` < '2025-03-16 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-03-16 08:26:17] Production.INFO: count ==132 [2025-03-16 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:26:05 - End Time 2025-03-16 08:26:05 [2025-03-16 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692249', 'tblTempUsageDetail_20' ) start [2025-03-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692249', 'tblTempUsageDetail_20' ) end [2025-03-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692249', 'tblTempVendorCDR_20' ) start [2025-03-16 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692249', 'tblTempVendorCDR_20' ) end [2025-03-16 08:26:17] Production.INFO: ProcessCDR(1,14692249,1,1,2) [2025-03-16 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692249', 'tblTempUsageDetail_20' ) start [2025-03-16 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692249', 'tblTempUsageDetail_20' ) end [2025-03-16 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:26:20] Production.INFO: ==19078== Releasing lock... [2025-03-16 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:26:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:27:05 [end_date_ymd] => 2025-03-16 08:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:27:05' and `end` < '2025-03-16 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-03-16 08:27:17] Production.INFO: count ==132 [2025-03-16 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:27:05 - End Time 2025-03-16 08:27:05 [2025-03-16 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692254', 'tblTempUsageDetail_20' ) start [2025-03-16 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692254', 'tblTempUsageDetail_20' ) end [2025-03-16 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692254', 'tblTempVendorCDR_20' ) start [2025-03-16 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692254', 'tblTempVendorCDR_20' ) end [2025-03-16 08:27:17] Production.INFO: ProcessCDR(1,14692254,1,1,2) [2025-03-16 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692254', 'tblTempUsageDetail_20' ) start [2025-03-16 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692254', 'tblTempUsageDetail_20' ) end [2025-03-16 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:27:21] Production.INFO: ==19165== Releasing lock... [2025-03-16 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:28:05 [end_date_ymd] => 2025-03-16 08:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:28:05' and `end` < '2025-03-16 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-03-16 08:28:17] Production.INFO: count ==132 [2025-03-16 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:28:05 - End Time 2025-03-16 08:28:05 [2025-03-16 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692259', 'tblTempUsageDetail_20' ) start [2025-03-16 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692259', 'tblTempUsageDetail_20' ) end [2025-03-16 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692259', 'tblTempVendorCDR_20' ) start [2025-03-16 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692259', 'tblTempVendorCDR_20' ) end [2025-03-16 08:28:17] Production.INFO: ProcessCDR(1,14692259,1,1,2) [2025-03-16 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692259', 'tblTempUsageDetail_20' ) start [2025-03-16 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692259', 'tblTempUsageDetail_20' ) end [2025-03-16 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:28:20] Production.INFO: ==19263== Releasing lock... [2025-03-16 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:29:05 [end_date_ymd] => 2025-03-16 08:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:29:05' and `end` < '2025-03-16 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-03-16 08:29:17] Production.INFO: count ==132 [2025-03-16 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:29:05 - End Time 2025-03-16 08:29:05 [2025-03-16 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692264', 'tblTempUsageDetail_20' ) start [2025-03-16 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692264', 'tblTempUsageDetail_20' ) end [2025-03-16 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692264', 'tblTempVendorCDR_20' ) start [2025-03-16 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692264', 'tblTempVendorCDR_20' ) end [2025-03-16 08:29:17] Production.INFO: ProcessCDR(1,14692264,1,1,2) [2025-03-16 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692264', 'tblTempUsageDetail_20' ) start [2025-03-16 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692264', 'tblTempUsageDetail_20' ) end [2025-03-16 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:29:21] Production.INFO: ==19340== Releasing lock... [2025-03-16 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:30:06 [end_date_ymd] => 2025-03-16 08:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:30:06' and `end` < '2025-03-16 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-03-16 08:30:18] Production.INFO: count ==126 [2025-03-16 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:30:06 - End Time 2025-03-16 08:30:06 [2025-03-16 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692270', 'tblTempUsageDetail_20' ) start [2025-03-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692270', 'tblTempUsageDetail_20' ) end [2025-03-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692270', 'tblTempVendorCDR_20' ) start [2025-03-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692270', 'tblTempVendorCDR_20' ) end [2025-03-16 08:30:18] Production.INFO: ProcessCDR(1,14692270,1,1,2) [2025-03-16 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692270', 'tblTempUsageDetail_20' ) start [2025-03-16 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692270', 'tblTempUsageDetail_20' ) end [2025-03-16 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:30:21] Production.INFO: ==19426== Releasing lock... [2025-03-16 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:31:05 [end_date_ymd] => 2025-03-16 08:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:31:05' and `end` < '2025-03-16 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-03-16 08:31:17] Production.INFO: count ==123 [2025-03-16 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:31:05 - End Time 2025-03-16 08:31:05 [2025-03-16 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692275', 'tblTempUsageDetail_20' ) start [2025-03-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692275', 'tblTempUsageDetail_20' ) end [2025-03-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692275', 'tblTempVendorCDR_20' ) start [2025-03-16 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692275', 'tblTempVendorCDR_20' ) end [2025-03-16 08:31:17] Production.INFO: ProcessCDR(1,14692275,1,1,2) [2025-03-16 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692275', 'tblTempUsageDetail_20' ) start [2025-03-16 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692275', 'tblTempUsageDetail_20' ) end [2025-03-16 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:31:21] Production.INFO: ==19504== Releasing lock... [2025-03-16 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:32:05 [end_date_ymd] => 2025-03-16 08:32:05 [RateCDR] => 1 ) [2025-03-16 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:32:05' and `end` < '2025-03-16 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:32:17] Production.INFO: count ==127 [2025-03-16 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:32:05 - End Time 2025-03-16 08:32:05 [2025-03-16 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692280', 'tblTempUsageDetail_20' ) start [2025-03-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692280', 'tblTempUsageDetail_20' ) end [2025-03-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692280', 'tblTempVendorCDR_20' ) start [2025-03-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692280', 'tblTempVendorCDR_20' ) end [2025-03-16 08:32:17] Production.INFO: ProcessCDR(1,14692280,1,1,2) [2025-03-16 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692280', 'tblTempUsageDetail_20' ) start [2025-03-16 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692280', 'tblTempUsageDetail_20' ) end [2025-03-16 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:32:20] Production.INFO: ==19580== Releasing lock... [2025-03-16 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:33:05 [end_date_ymd] => 2025-03-16 08:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:33:05' and `end` < '2025-03-16 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-03-16 08:33:17] Production.INFO: count ==127 [2025-03-16 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:33:05 - End Time 2025-03-16 08:33:05 [2025-03-16 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692285', 'tblTempUsageDetail_20' ) start [2025-03-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692285', 'tblTempUsageDetail_20' ) end [2025-03-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692285', 'tblTempVendorCDR_20' ) start [2025-03-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692285', 'tblTempVendorCDR_20' ) end [2025-03-16 08:33:18] Production.INFO: ProcessCDR(1,14692285,1,1,2) [2025-03-16 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692285', 'tblTempUsageDetail_20' ) start [2025-03-16 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692285', 'tblTempUsageDetail_20' ) end [2025-03-16 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:33:21] Production.INFO: ==19652== Releasing lock... [2025-03-16 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:34:05 [end_date_ymd] => 2025-03-16 08:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:34:05' and `end` < '2025-03-16 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-03-16 08:34:17] Production.INFO: count ==127 [2025-03-16 08:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:34:05 - End Time 2025-03-16 08:34:05 [2025-03-16 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692290', 'tblTempUsageDetail_20' ) start [2025-03-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692290', 'tblTempUsageDetail_20' ) end [2025-03-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692290', 'tblTempVendorCDR_20' ) start [2025-03-16 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692290', 'tblTempVendorCDR_20' ) end [2025-03-16 08:34:17] Production.INFO: ProcessCDR(1,14692290,1,1,2) [2025-03-16 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692290', 'tblTempUsageDetail_20' ) start [2025-03-16 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692290', 'tblTempUsageDetail_20' ) end [2025-03-16 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:34:20] Production.INFO: ==19733== Releasing lock... [2025-03-16 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:34:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:35:05 [end_date_ymd] => 2025-03-16 08:35:05 [RateCDR] => 1 ) [2025-03-16 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:35:05' and `end` < '2025-03-16 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:35:17] Production.INFO: count ==127 [2025-03-16 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:35:05 - End Time 2025-03-16 08:35:05 [2025-03-16 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692295', 'tblTempUsageDetail_20' ) start [2025-03-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692295', 'tblTempUsageDetail_20' ) end [2025-03-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692295', 'tblTempVendorCDR_20' ) start [2025-03-16 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692295', 'tblTempVendorCDR_20' ) end [2025-03-16 08:35:17] Production.INFO: ProcessCDR(1,14692295,1,1,2) [2025-03-16 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692295', 'tblTempUsageDetail_20' ) start [2025-03-16 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692295', 'tblTempUsageDetail_20' ) end [2025-03-16 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:35:20] Production.INFO: ==19848== Releasing lock... [2025-03-16 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:36:06 [end_date_ymd] => 2025-03-16 08:36:06 [RateCDR] => 1 ) [2025-03-16 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:36:06' and `end` < '2025-03-16 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:36:18] Production.INFO: count ==127 [2025-03-16 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:36:06 - End Time 2025-03-16 08:36:06 [2025-03-16 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692300', 'tblTempUsageDetail_20' ) start [2025-03-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692300', 'tblTempUsageDetail_20' ) end [2025-03-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692300', 'tblTempVendorCDR_20' ) start [2025-03-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692300', 'tblTempVendorCDR_20' ) end [2025-03-16 08:36:18] Production.INFO: ProcessCDR(1,14692300,1,1,2) [2025-03-16 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692300', 'tblTempUsageDetail_20' ) start [2025-03-16 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692300', 'tblTempUsageDetail_20' ) end [2025-03-16 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:36:21] Production.INFO: ==19926== Releasing lock... [2025-03-16 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:37:05 [end_date_ymd] => 2025-03-16 08:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:37:05' and `end` < '2025-03-16 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-03-16 08:37:17] Production.INFO: count ==127 [2025-03-16 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:37:05 - End Time 2025-03-16 08:37:05 [2025-03-16 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692305', 'tblTempUsageDetail_20' ) start [2025-03-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692305', 'tblTempUsageDetail_20' ) end [2025-03-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692305', 'tblTempVendorCDR_20' ) start [2025-03-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692305', 'tblTempVendorCDR_20' ) end [2025-03-16 08:37:17] Production.INFO: ProcessCDR(1,14692305,1,1,2) [2025-03-16 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692305', 'tblTempUsageDetail_20' ) start [2025-03-16 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692305', 'tblTempUsageDetail_20' ) end [2025-03-16 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:37:20] Production.INFO: ==20000== Releasing lock... [2025-03-16 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:37:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:38:06 [end_date_ymd] => 2025-03-16 08:38:06 [RateCDR] => 1 ) [2025-03-16 08:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:38:06' and `end` < '2025-03-16 08:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:38:18] Production.INFO: count ==128 [2025-03-16 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:38:06 - End Time 2025-03-16 08:38:06 [2025-03-16 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692310', 'tblTempUsageDetail_20' ) start [2025-03-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692310', 'tblTempUsageDetail_20' ) end [2025-03-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692310', 'tblTempVendorCDR_20' ) start [2025-03-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692310', 'tblTempVendorCDR_20' ) end [2025-03-16 08:38:18] Production.INFO: ProcessCDR(1,14692310,1,1,2) [2025-03-16 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692310', 'tblTempUsageDetail_20' ) start [2025-03-16 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692310', 'tblTempUsageDetail_20' ) end [2025-03-16 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:38:23] Production.INFO: ==20080== Releasing lock... [2025-03-16 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:38:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:39:05 [end_date_ymd] => 2025-03-16 08:39:05 [RateCDR] => 1 ) [2025-03-16 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:39:05' and `end` < '2025-03-16 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:39:17] Production.INFO: count ==128 [2025-03-16 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:39:05 - End Time 2025-03-16 08:39:05 [2025-03-16 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692315', 'tblTempUsageDetail_20' ) start [2025-03-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692315', 'tblTempUsageDetail_20' ) end [2025-03-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692315', 'tblTempVendorCDR_20' ) start [2025-03-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692315', 'tblTempVendorCDR_20' ) end [2025-03-16 08:39:17] Production.INFO: ProcessCDR(1,14692315,1,1,2) [2025-03-16 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692315', 'tblTempUsageDetail_20' ) start [2025-03-16 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692315', 'tblTempUsageDetail_20' ) end [2025-03-16 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:39:21] Production.INFO: ==20158== Releasing lock... [2025-03-16 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:40:06 [end_date_ymd] => 2025-03-16 08:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:40:06' and `end` < '2025-03-16 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-03-16 08:40:18] Production.INFO: count ==130 [2025-03-16 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:40:06 - End Time 2025-03-16 08:40:06 [2025-03-16 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692321', 'tblTempUsageDetail_20' ) start [2025-03-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692321', 'tblTempUsageDetail_20' ) end [2025-03-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692321', 'tblTempVendorCDR_20' ) start [2025-03-16 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692321', 'tblTempVendorCDR_20' ) end [2025-03-16 08:40:18] Production.INFO: ProcessCDR(1,14692321,1,1,2) [2025-03-16 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692321', 'tblTempUsageDetail_20' ) start [2025-03-16 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692321', 'tblTempUsageDetail_20' ) end [2025-03-16 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:40:22] Production.INFO: ==20236== Releasing lock... [2025-03-16 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:41:05 [end_date_ymd] => 2025-03-16 08:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:41:05' and `end` < '2025-03-16 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-03-16 08:41:17] Production.INFO: count ==130 [2025-03-16 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:41:05 - End Time 2025-03-16 08:41:05 [2025-03-16 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692326', 'tblTempUsageDetail_20' ) start [2025-03-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692326', 'tblTempUsageDetail_20' ) end [2025-03-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692326', 'tblTempVendorCDR_20' ) start [2025-03-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692326', 'tblTempVendorCDR_20' ) end [2025-03-16 08:41:17] Production.INFO: ProcessCDR(1,14692326,1,1,2) [2025-03-16 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692326', 'tblTempUsageDetail_20' ) start [2025-03-16 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692326', 'tblTempUsageDetail_20' ) end [2025-03-16 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:41:20] Production.INFO: ==20322== Releasing lock... [2025-03-16 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:41:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:42:05 [end_date_ymd] => 2025-03-16 08:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:42:05' and `end` < '2025-03-16 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-03-16 08:42:17] Production.INFO: count ==130 [2025-03-16 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:42:05 - End Time 2025-03-16 08:42:05 [2025-03-16 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692331', 'tblTempUsageDetail_20' ) start [2025-03-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692331', 'tblTempUsageDetail_20' ) end [2025-03-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692331', 'tblTempVendorCDR_20' ) start [2025-03-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692331', 'tblTempVendorCDR_20' ) end [2025-03-16 08:42:18] Production.INFO: ProcessCDR(1,14692331,1,1,2) [2025-03-16 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692331', 'tblTempUsageDetail_20' ) start [2025-03-16 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692331', 'tblTempUsageDetail_20' ) end [2025-03-16 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:42:21] Production.INFO: ==20396== Releasing lock... [2025-03-16 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:43:04 [end_date_ymd] => 2025-03-16 08:43:04 [RateCDR] => 1 ) [2025-03-16 08:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:43:04' and `end` < '2025-03-16 08:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:43:16] Production.INFO: count ==130 [2025-03-16 08:43:16] Production.ERROR: pbx CDR StartTime 2025-03-16 05:43:04 - End Time 2025-03-16 08:43:04 [2025-03-16 08:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692336', 'tblTempUsageDetail_20' ) start [2025-03-16 08:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692336', 'tblTempUsageDetail_20' ) end [2025-03-16 08:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692336', 'tblTempVendorCDR_20' ) start [2025-03-16 08:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692336', 'tblTempVendorCDR_20' ) end [2025-03-16 08:43:16] Production.INFO: ProcessCDR(1,14692336,1,1,2) [2025-03-16 08:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692336', 'tblTempUsageDetail_20' ) start [2025-03-16 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692336', 'tblTempUsageDetail_20' ) end [2025-03-16 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:43:20] Production.INFO: ==20465== Releasing lock... [2025-03-16 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:43:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:44:05 [end_date_ymd] => 2025-03-16 08:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:44:05' and `end` < '2025-03-16 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-03-16 08:44:18] Production.INFO: count ==135 [2025-03-16 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:44:05 - End Time 2025-03-16 08:44:05 [2025-03-16 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692341', 'tblTempUsageDetail_20' ) start [2025-03-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692341', 'tblTempUsageDetail_20' ) end [2025-03-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692341', 'tblTempVendorCDR_20' ) start [2025-03-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692341', 'tblTempVendorCDR_20' ) end [2025-03-16 08:44:18] Production.INFO: ProcessCDR(1,14692341,1,1,2) [2025-03-16 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692341', 'tblTempUsageDetail_20' ) start [2025-03-16 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692341', 'tblTempUsageDetail_20' ) end [2025-03-16 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:44:22] Production.INFO: ==20542== Releasing lock... [2025-03-16 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:44:22] Production.INFO: 29 MB #Memory Used# [2025-03-16 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:45:05 [end_date_ymd] => 2025-03-16 08:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:45:05' and `end` < '2025-03-16 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-03-16 08:45:17] Production.INFO: count ==135 [2025-03-16 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:45:05 - End Time 2025-03-16 08:45:05 [2025-03-16 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692346', 'tblTempUsageDetail_20' ) start [2025-03-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692346', 'tblTempUsageDetail_20' ) end [2025-03-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692346', 'tblTempVendorCDR_20' ) start [2025-03-16 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692346', 'tblTempVendorCDR_20' ) end [2025-03-16 08:45:17] Production.INFO: ProcessCDR(1,14692346,1,1,2) [2025-03-16 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692346', 'tblTempUsageDetail_20' ) start [2025-03-16 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692346', 'tblTempUsageDetail_20' ) end [2025-03-16 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:45:21] Production.INFO: ==20616== Releasing lock... [2025-03-16 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:45:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:46:05 [end_date_ymd] => 2025-03-16 08:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:46:05' and `end` < '2025-03-16 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-03-16 08:46:17] Production.INFO: count ==140 [2025-03-16 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:46:05 - End Time 2025-03-16 08:46:05 [2025-03-16 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692351', 'tblTempUsageDetail_20' ) start [2025-03-16 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692351', 'tblTempUsageDetail_20' ) end [2025-03-16 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692351', 'tblTempVendorCDR_20' ) start [2025-03-16 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692351', 'tblTempVendorCDR_20' ) end [2025-03-16 08:46:18] Production.INFO: ProcessCDR(1,14692351,1,1,2) [2025-03-16 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692351', 'tblTempUsageDetail_20' ) start [2025-03-16 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692351', 'tblTempUsageDetail_20' ) end [2025-03-16 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:46:22] Production.INFO: ==20693== Releasing lock... [2025-03-16 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:47:06 [end_date_ymd] => 2025-03-16 08:47:06 [RateCDR] => 1 ) [2025-03-16 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:47:06' and `end` < '2025-03-16 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:47:18] Production.INFO: count ==140 [2025-03-16 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:47:06 - End Time 2025-03-16 08:47:06 [2025-03-16 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692356', 'tblTempUsageDetail_20' ) start [2025-03-16 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692356', 'tblTempUsageDetail_20' ) end [2025-03-16 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692356', 'tblTempVendorCDR_20' ) start [2025-03-16 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692356', 'tblTempVendorCDR_20' ) end [2025-03-16 08:47:18] Production.INFO: ProcessCDR(1,14692356,1,1,2) [2025-03-16 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692356', 'tblTempUsageDetail_20' ) start [2025-03-16 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692356', 'tblTempUsageDetail_20' ) end [2025-03-16 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:47:21] Production.INFO: ==20764== Releasing lock... [2025-03-16 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:48:05 [end_date_ymd] => 2025-03-16 08:48:05 [RateCDR] => 1 ) [2025-03-16 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:48:05' and `end` < '2025-03-16 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:48:17] Production.INFO: count ==140 [2025-03-16 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:48:05 - End Time 2025-03-16 08:48:05 [2025-03-16 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692361', 'tblTempUsageDetail_20' ) start [2025-03-16 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692361', 'tblTempUsageDetail_20' ) end [2025-03-16 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692361', 'tblTempVendorCDR_20' ) start [2025-03-16 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692361', 'tblTempVendorCDR_20' ) end [2025-03-16 08:48:17] Production.INFO: ProcessCDR(1,14692361,1,1,2) [2025-03-16 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692361', 'tblTempUsageDetail_20' ) start [2025-03-16 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692361', 'tblTempUsageDetail_20' ) end [2025-03-16 08:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:48:20] Production.INFO: ==20838== Releasing lock... [2025-03-16 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:49:05 [end_date_ymd] => 2025-03-16 08:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:49:05' and `end` < '2025-03-16 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-03-16 08:49:17] Production.INFO: count ==140 [2025-03-16 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:49:05 - End Time 2025-03-16 08:49:05 [2025-03-16 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692366', 'tblTempUsageDetail_20' ) start [2025-03-16 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692366', 'tblTempUsageDetail_20' ) end [2025-03-16 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692366', 'tblTempVendorCDR_20' ) start [2025-03-16 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692366', 'tblTempVendorCDR_20' ) end [2025-03-16 08:49:18] Production.INFO: ProcessCDR(1,14692366,1,1,2) [2025-03-16 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692366', 'tblTempUsageDetail_20' ) start [2025-03-16 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692366', 'tblTempUsageDetail_20' ) end [2025-03-16 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:49:21] Production.INFO: ==20911== Releasing lock... [2025-03-16 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:50:05 [end_date_ymd] => 2025-03-16 08:50:05 [RateCDR] => 1 ) [2025-03-16 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:50:05' and `end` < '2025-03-16 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:50:17] Production.INFO: count ==140 [2025-03-16 08:50:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:50:05 - End Time 2025-03-16 08:50:05 [2025-03-16 08:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692372', 'tblTempUsageDetail_20' ) start [2025-03-16 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692372', 'tblTempUsageDetail_20' ) end [2025-03-16 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692372', 'tblTempVendorCDR_20' ) start [2025-03-16 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692372', 'tblTempVendorCDR_20' ) end [2025-03-16 08:50:17] Production.INFO: ProcessCDR(1,14692372,1,1,2) [2025-03-16 08:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692372', 'tblTempUsageDetail_20' ) start [2025-03-16 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692372', 'tblTempUsageDetail_20' ) end [2025-03-16 08:50:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:50:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:50:20] Production.INFO: ==21027== Releasing lock... [2025-03-16 08:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:50:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:51:05 [end_date_ymd] => 2025-03-16 08:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:51:05' and `end` < '2025-03-16 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-03-16 08:51:17] Production.INFO: count ==140 [2025-03-16 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:51:05 - End Time 2025-03-16 08:51:05 [2025-03-16 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692377', 'tblTempUsageDetail_20' ) start [2025-03-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692377', 'tblTempUsageDetail_20' ) end [2025-03-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692377', 'tblTempVendorCDR_20' ) start [2025-03-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692377', 'tblTempVendorCDR_20' ) end [2025-03-16 08:51:17] Production.INFO: ProcessCDR(1,14692377,1,1,2) [2025-03-16 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692377', 'tblTempUsageDetail_20' ) start [2025-03-16 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692377', 'tblTempUsageDetail_20' ) end [2025-03-16 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:51:21] Production.INFO: ==21102== Releasing lock... [2025-03-16 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:52:05 [end_date_ymd] => 2025-03-16 08:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:52:05' and `end` < '2025-03-16 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-03-16 08:52:17] Production.INFO: count ==140 [2025-03-16 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:52:05 - End Time 2025-03-16 08:52:05 [2025-03-16 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692382', 'tblTempUsageDetail_20' ) start [2025-03-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692382', 'tblTempUsageDetail_20' ) end [2025-03-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692382', 'tblTempVendorCDR_20' ) start [2025-03-16 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692382', 'tblTempVendorCDR_20' ) end [2025-03-16 08:52:17] Production.INFO: ProcessCDR(1,14692382,1,1,2) [2025-03-16 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692382', 'tblTempUsageDetail_20' ) start [2025-03-16 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692382', 'tblTempUsageDetail_20' ) end [2025-03-16 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:52:21] Production.INFO: ==21174== Releasing lock... [2025-03-16 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:53:05 [end_date_ymd] => 2025-03-16 08:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:53:05' and `end` < '2025-03-16 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-03-16 08:53:18] Production.INFO: count ==140 [2025-03-16 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:53:05 - End Time 2025-03-16 08:53:05 [2025-03-16 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692387', 'tblTempUsageDetail_20' ) start [2025-03-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692387', 'tblTempUsageDetail_20' ) end [2025-03-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692387', 'tblTempVendorCDR_20' ) start [2025-03-16 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692387', 'tblTempVendorCDR_20' ) end [2025-03-16 08:53:18] Production.INFO: ProcessCDR(1,14692387,1,1,2) [2025-03-16 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692387', 'tblTempUsageDetail_20' ) start [2025-03-16 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692387', 'tblTempUsageDetail_20' ) end [2025-03-16 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:53:21] Production.INFO: ==21248== Releasing lock... [2025-03-16 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:54:05 [end_date_ymd] => 2025-03-16 08:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:54:05' and `end` < '2025-03-16 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-03-16 08:54:17] Production.INFO: count ==140 [2025-03-16 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:54:05 - End Time 2025-03-16 08:54:05 [2025-03-16 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692392', 'tblTempUsageDetail_20' ) start [2025-03-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692392', 'tblTempUsageDetail_20' ) end [2025-03-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692392', 'tblTempVendorCDR_20' ) start [2025-03-16 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692392', 'tblTempVendorCDR_20' ) end [2025-03-16 08:54:17] Production.INFO: ProcessCDR(1,14692392,1,1,2) [2025-03-16 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692392', 'tblTempUsageDetail_20' ) start [2025-03-16 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692392', 'tblTempUsageDetail_20' ) end [2025-03-16 08:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:54:20] Production.INFO: ==21321== Releasing lock... [2025-03-16 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:55:06 [end_date_ymd] => 2025-03-16 08:55:06 [RateCDR] => 1 ) [2025-03-16 08:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:55:06' and `end` < '2025-03-16 08:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:55:18] Production.INFO: count ==140 [2025-03-16 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 05:55:06 - End Time 2025-03-16 08:55:06 [2025-03-16 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692397', 'tblTempUsageDetail_20' ) start [2025-03-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692397', 'tblTempUsageDetail_20' ) end [2025-03-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692397', 'tblTempVendorCDR_20' ) start [2025-03-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692397', 'tblTempVendorCDR_20' ) end [2025-03-16 08:55:18] Production.INFO: ProcessCDR(1,14692397,1,1,2) [2025-03-16 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692397', 'tblTempUsageDetail_20' ) start [2025-03-16 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692397', 'tblTempUsageDetail_20' ) end [2025-03-16 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:55:21] Production.INFO: ==21396== Releasing lock... [2025-03-16 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:56:05 [end_date_ymd] => 2025-03-16 08:56:05 [RateCDR] => 1 ) [2025-03-16 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 05:56:05' and `end` < '2025-03-16 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 08:56:17] Production.INFO: count ==136 [2025-03-16 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:56:05 - End Time 2025-03-16 08:56:05 [2025-03-16 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692402', 'tblTempUsageDetail_20' ) start [2025-03-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692402', 'tblTempUsageDetail_20' ) end [2025-03-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692402', 'tblTempVendorCDR_20' ) start [2025-03-16 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692402', 'tblTempVendorCDR_20' ) end [2025-03-16 08:56:17] Production.INFO: ProcessCDR(1,14692402,1,1,2) [2025-03-16 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692402', 'tblTempUsageDetail_20' ) start [2025-03-16 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692402', 'tblTempUsageDetail_20' ) end [2025-03-16 08:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:56:20] Production.INFO: ==21470== Releasing lock... [2025-03-16 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:56:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:57:05 [end_date_ymd] => 2025-03-16 08:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:57:05' and `end` < '2025-03-16 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-03-16 08:57:17] Production.INFO: count ==136 [2025-03-16 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:57:05 - End Time 2025-03-16 08:57:05 [2025-03-16 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692407', 'tblTempUsageDetail_20' ) start [2025-03-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692407', 'tblTempUsageDetail_20' ) end [2025-03-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692407', 'tblTempVendorCDR_20' ) start [2025-03-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692407', 'tblTempVendorCDR_20' ) end [2025-03-16 08:57:17] Production.INFO: ProcessCDR(1,14692407,1,1,2) [2025-03-16 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692407', 'tblTempUsageDetail_20' ) start [2025-03-16 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692407', 'tblTempUsageDetail_20' ) end [2025-03-16 08:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:57:20] Production.INFO: ==21545== Releasing lock... [2025-03-16 08:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:57:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:58:04 [end_date_ymd] => 2025-03-16 08:58:04 [RateCDR] => 1 ) [2025-03-16 08: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-03-16 05:58:04' and `end` < '2025-03-16 08: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-03-16 08:58:17] Production.INFO: count ==136 [2025-03-16 08:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:58:04 - End Time 2025-03-16 08:58:04 [2025-03-16 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692412', 'tblTempUsageDetail_20' ) start [2025-03-16 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692412', 'tblTempUsageDetail_20' ) end [2025-03-16 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692412', 'tblTempVendorCDR_20' ) start [2025-03-16 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692412', 'tblTempVendorCDR_20' ) end [2025-03-16 08:58:17] Production.INFO: ProcessCDR(1,14692412,1,1,2) [2025-03-16 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692412', 'tblTempUsageDetail_20' ) start [2025-03-16 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692412', 'tblTempUsageDetail_20' ) end [2025-03-16 08:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:58:20] Production.INFO: ==21617== Releasing lock... [2025-03-16 08:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:58:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 05:59:05 [end_date_ymd] => 2025-03-16 08:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 05:59:05' and `end` < '2025-03-16 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-03-16 08:59:17] Production.INFO: count ==140 [2025-03-16 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 05:59:05 - End Time 2025-03-16 08:59:05 [2025-03-16 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692417', 'tblTempUsageDetail_20' ) start [2025-03-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692417', 'tblTempUsageDetail_20' ) end [2025-03-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692417', 'tblTempVendorCDR_20' ) start [2025-03-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692417', 'tblTempVendorCDR_20' ) end [2025-03-16 08:59:17] Production.INFO: ProcessCDR(1,14692417,1,1,2) [2025-03-16 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692417', 'tblTempUsageDetail_20' ) start [2025-03-16 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692417', 'tblTempUsageDetail_20' ) end [2025-03-16 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 08:59:20] Production.INFO: ==21689== Releasing lock... [2025-03-16 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 08:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:00:05 [end_date_ymd] => 2025-03-16 09:00:05 [RateCDR] => 1 ) [2025-03-16 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:00:05' and `end` < '2025-03-16 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:00:18] Production.INFO: count ==140 [2025-03-16 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:00:05 - End Time 2025-03-16 09:00:05 [2025-03-16 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692423', 'tblTempUsageDetail_20' ) start [2025-03-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692423', 'tblTempUsageDetail_20' ) end [2025-03-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692423', 'tblTempVendorCDR_20' ) start [2025-03-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692423', 'tblTempVendorCDR_20' ) end [2025-03-16 09:00:18] Production.INFO: ProcessCDR(1,14692423,1,1,2) [2025-03-16 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692423', 'tblTempUsageDetail_20' ) start [2025-03-16 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692423', 'tblTempUsageDetail_20' ) end [2025-03-16 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:00:21] Production.INFO: ==21766== Releasing lock... [2025-03-16 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:00:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:01:05 [end_date_ymd] => 2025-03-16 09:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:01:05' and `end` < '2025-03-16 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-03-16 09:01:17] Production.INFO: count ==144 [2025-03-16 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:01:05 - End Time 2025-03-16 09:01:05 [2025-03-16 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692428', 'tblTempUsageDetail_20' ) start [2025-03-16 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692428', 'tblTempUsageDetail_20' ) end [2025-03-16 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692428', 'tblTempVendorCDR_20' ) start [2025-03-16 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692428', 'tblTempVendorCDR_20' ) end [2025-03-16 09:01:17] Production.INFO: ProcessCDR(1,14692428,1,1,2) [2025-03-16 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692428', 'tblTempUsageDetail_20' ) start [2025-03-16 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692428', 'tblTempUsageDetail_20' ) end [2025-03-16 09:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:01:20] Production.INFO: ==21857== Releasing lock... [2025-03-16 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:01:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:02:05 [end_date_ymd] => 2025-03-16 09:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:02:05' and `end` < '2025-03-16 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-03-16 09:02:17] Production.INFO: count ==144 [2025-03-16 09:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:02:05 - End Time 2025-03-16 09:02:05 [2025-03-16 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692433', 'tblTempUsageDetail_20' ) start [2025-03-16 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692433', 'tblTempUsageDetail_20' ) end [2025-03-16 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692433', 'tblTempVendorCDR_20' ) start [2025-03-16 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692433', 'tblTempVendorCDR_20' ) end [2025-03-16 09:02:17] Production.INFO: ProcessCDR(1,14692433,1,1,2) [2025-03-16 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692433', 'tblTempUsageDetail_20' ) start [2025-03-16 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692433', 'tblTempUsageDetail_20' ) end [2025-03-16 09:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:02:20] Production.INFO: ==21929== Releasing lock... [2025-03-16 09:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:02:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:03:06 [end_date_ymd] => 2025-03-16 09:03:06 [RateCDR] => 1 ) [2025-03-16 09: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-03-16 06:03:06' and `end` < '2025-03-16 09: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-03-16 09:03:18] Production.INFO: count ==144 [2025-03-16 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:03:06 - End Time 2025-03-16 09:03:06 [2025-03-16 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692438', 'tblTempUsageDetail_20' ) start [2025-03-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692438', 'tblTempUsageDetail_20' ) end [2025-03-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692438', 'tblTempVendorCDR_20' ) start [2025-03-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692438', 'tblTempVendorCDR_20' ) end [2025-03-16 09:03:18] Production.INFO: ProcessCDR(1,14692438,1,1,2) [2025-03-16 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692438', 'tblTempUsageDetail_20' ) start [2025-03-16 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692438', 'tblTempUsageDetail_20' ) end [2025-03-16 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:03:21] Production.INFO: ==22003== Releasing lock... [2025-03-16 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:04:05 [end_date_ymd] => 2025-03-16 09:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:04:05' and `end` < '2025-03-16 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-03-16 09:04:17] Production.INFO: count ==144 [2025-03-16 09:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:04:05 - End Time 2025-03-16 09:04:05 [2025-03-16 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692443', 'tblTempUsageDetail_20' ) start [2025-03-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692443', 'tblTempUsageDetail_20' ) end [2025-03-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692443', 'tblTempVendorCDR_20' ) start [2025-03-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692443', 'tblTempVendorCDR_20' ) end [2025-03-16 09:04:17] Production.INFO: ProcessCDR(1,14692443,1,1,2) [2025-03-16 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692443', 'tblTempUsageDetail_20' ) start [2025-03-16 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692443', 'tblTempUsageDetail_20' ) end [2025-03-16 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:04:21] Production.INFO: ==22079== Releasing lock... [2025-03-16 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:05:05 [end_date_ymd] => 2025-03-16 09:05:05 [RateCDR] => 1 ) [2025-03-16 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:05:05' and `end` < '2025-03-16 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:05:17] Production.INFO: count ==144 [2025-03-16 09:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:05:05 - End Time 2025-03-16 09:05:05 [2025-03-16 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692448', 'tblTempUsageDetail_20' ) start [2025-03-16 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692448', 'tblTempUsageDetail_20' ) end [2025-03-16 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692448', 'tblTempVendorCDR_20' ) start [2025-03-16 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692448', 'tblTempVendorCDR_20' ) end [2025-03-16 09:05:17] Production.INFO: ProcessCDR(1,14692448,1,1,2) [2025-03-16 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692448', 'tblTempUsageDetail_20' ) start [2025-03-16 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692448', 'tblTempUsageDetail_20' ) end [2025-03-16 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:05:20] Production.INFO: ==22191== Releasing lock... [2025-03-16 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:06:05 [end_date_ymd] => 2025-03-16 09:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:06:05' and `end` < '2025-03-16 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-03-16 09:06:17] Production.INFO: count ==148 [2025-03-16 09:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:06:05 - End Time 2025-03-16 09:06:05 [2025-03-16 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692453', 'tblTempUsageDetail_20' ) start [2025-03-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692453', 'tblTempUsageDetail_20' ) end [2025-03-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692453', 'tblTempVendorCDR_20' ) start [2025-03-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692453', 'tblTempVendorCDR_20' ) end [2025-03-16 09:06:17] Production.INFO: ProcessCDR(1,14692453,1,1,2) [2025-03-16 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692453', 'tblTempUsageDetail_20' ) start [2025-03-16 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692453', 'tblTempUsageDetail_20' ) end [2025-03-16 09:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:06:20] Production.INFO: ==22265== Releasing lock... [2025-03-16 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:06:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:07:06 [end_date_ymd] => 2025-03-16 09:07:06 [RateCDR] => 1 ) [2025-03-16 09:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:07:06' and `end` < '2025-03-16 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:07:18] Production.INFO: count ==148 [2025-03-16 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:07:06 - End Time 2025-03-16 09:07:06 [2025-03-16 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692458', 'tblTempUsageDetail_20' ) start [2025-03-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692458', 'tblTempUsageDetail_20' ) end [2025-03-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692458', 'tblTempVendorCDR_20' ) start [2025-03-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692458', 'tblTempVendorCDR_20' ) end [2025-03-16 09:07:18] Production.INFO: ProcessCDR(1,14692458,1,1,2) [2025-03-16 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692458', 'tblTempUsageDetail_20' ) start [2025-03-16 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692458', 'tblTempUsageDetail_20' ) end [2025-03-16 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:07:21] Production.INFO: ==22341== Releasing lock... [2025-03-16 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:08:05 [end_date_ymd] => 2025-03-16 09:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:08:05' and `end` < '2025-03-16 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-03-16 09:08:17] Production.INFO: count ==148 [2025-03-16 09:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:08:05 - End Time 2025-03-16 09:08:05 [2025-03-16 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692463', 'tblTempUsageDetail_20' ) start [2025-03-16 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692463', 'tblTempUsageDetail_20' ) end [2025-03-16 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692463', 'tblTempVendorCDR_20' ) start [2025-03-16 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692463', 'tblTempVendorCDR_20' ) end [2025-03-16 09:08:17] Production.INFO: ProcessCDR(1,14692463,1,1,2) [2025-03-16 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692463', 'tblTempUsageDetail_20' ) start [2025-03-16 09:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692463', 'tblTempUsageDetail_20' ) end [2025-03-16 09:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:08:20] Production.INFO: ==22416== Releasing lock... [2025-03-16 09:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:09:05 [end_date_ymd] => 2025-03-16 09:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:09:05' and `end` < '2025-03-16 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-03-16 09:09:17] Production.INFO: count ==150 [2025-03-16 09:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:09:05 - End Time 2025-03-16 09:09:05 [2025-03-16 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692468', 'tblTempUsageDetail_20' ) start [2025-03-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692468', 'tblTempUsageDetail_20' ) end [2025-03-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692468', 'tblTempVendorCDR_20' ) start [2025-03-16 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692468', 'tblTempVendorCDR_20' ) end [2025-03-16 09:09:17] Production.INFO: ProcessCDR(1,14692468,1,1,2) [2025-03-16 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692468', 'tblTempUsageDetail_20' ) start [2025-03-16 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692468', 'tblTempUsageDetail_20' ) end [2025-03-16 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:09:23] Production.INFO: ==22493== Releasing lock... [2025-03-16 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:09:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:10:06 [end_date_ymd] => 2025-03-16 09:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:10:06' and `end` < '2025-03-16 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-03-16 09:10:18] Production.INFO: count ==143 [2025-03-16 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:10:06 - End Time 2025-03-16 09:10:06 [2025-03-16 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692473', 'tblTempUsageDetail_20' ) start [2025-03-16 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692473', 'tblTempUsageDetail_20' ) end [2025-03-16 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692473', 'tblTempVendorCDR_20' ) start [2025-03-16 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692473', 'tblTempVendorCDR_20' ) end [2025-03-16 09:10:18] Production.INFO: ProcessCDR(1,14692473,1,1,2) [2025-03-16 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692473', 'tblTempUsageDetail_20' ) start [2025-03-16 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692473', 'tblTempUsageDetail_20' ) end [2025-03-16 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:10:23] Production.INFO: ==22567== Releasing lock... [2025-03-16 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:11:05 [end_date_ymd] => 2025-03-16 09:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:11:05' and `end` < '2025-03-16 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-03-16 09:11:17] Production.INFO: count ==142 [2025-03-16 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:11:05 - End Time 2025-03-16 09:11:05 [2025-03-16 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692479', 'tblTempUsageDetail_20' ) start [2025-03-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692479', 'tblTempUsageDetail_20' ) end [2025-03-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692479', 'tblTempVendorCDR_20' ) start [2025-03-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692479', 'tblTempVendorCDR_20' ) end [2025-03-16 09:11:18] Production.INFO: ProcessCDR(1,14692479,1,1,2) [2025-03-16 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692479', 'tblTempUsageDetail_20' ) start [2025-03-16 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692479', 'tblTempUsageDetail_20' ) end [2025-03-16 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:11:21] Production.INFO: ==22643== Releasing lock... [2025-03-16 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:12:06 [end_date_ymd] => 2025-03-16 09:12:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:12:06' and `end` < '2025-03-16 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-03-16 09:12:18] Production.INFO: count ==142 [2025-03-16 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:12:06 - End Time 2025-03-16 09:12:06 [2025-03-16 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692484', 'tblTempUsageDetail_20' ) start [2025-03-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692484', 'tblTempUsageDetail_20' ) end [2025-03-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692484', 'tblTempVendorCDR_20' ) start [2025-03-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692484', 'tblTempVendorCDR_20' ) end [2025-03-16 09:12:18] Production.INFO: ProcessCDR(1,14692484,1,1,2) [2025-03-16 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692484', 'tblTempUsageDetail_20' ) start [2025-03-16 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692484', 'tblTempUsageDetail_20' ) end [2025-03-16 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:12:21] Production.INFO: ==22717== Releasing lock... [2025-03-16 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:13:05 [end_date_ymd] => 2025-03-16 09:13:05 [RateCDR] => 1 ) [2025-03-16 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:13:05' and `end` < '2025-03-16 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:13:17] Production.INFO: count ==138 [2025-03-16 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:13:05 - End Time 2025-03-16 09:13:05 [2025-03-16 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692489', 'tblTempUsageDetail_20' ) start [2025-03-16 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692489', 'tblTempUsageDetail_20' ) end [2025-03-16 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692489', 'tblTempVendorCDR_20' ) start [2025-03-16 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692489', 'tblTempVendorCDR_20' ) end [2025-03-16 09:13:17] Production.INFO: ProcessCDR(1,14692489,1,1,2) [2025-03-16 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692489', 'tblTempUsageDetail_20' ) start [2025-03-16 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692489', 'tblTempUsageDetail_20' ) end [2025-03-16 09:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:13:20] Production.INFO: ==22788== Releasing lock... [2025-03-16 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:13:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:14:05 [end_date_ymd] => 2025-03-16 09:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:14:05' and `end` < '2025-03-16 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-03-16 09:14:17] Production.INFO: count ==138 [2025-03-16 09:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:14:05 - End Time 2025-03-16 09:14:05 [2025-03-16 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692494', 'tblTempUsageDetail_20' ) start [2025-03-16 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692494', 'tblTempUsageDetail_20' ) end [2025-03-16 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692494', 'tblTempVendorCDR_20' ) start [2025-03-16 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692494', 'tblTempVendorCDR_20' ) end [2025-03-16 09:14:17] Production.INFO: ProcessCDR(1,14692494,1,1,2) [2025-03-16 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692494', 'tblTempUsageDetail_20' ) start [2025-03-16 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692494', 'tblTempUsageDetail_20' ) end [2025-03-16 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:14:21] Production.INFO: ==22862== Releasing lock... [2025-03-16 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:15:05 [end_date_ymd] => 2025-03-16 09:15:05 [RateCDR] => 1 ) [2025-03-16 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:15:05' and `end` < '2025-03-16 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:15:17] Production.INFO: count ==138 [2025-03-16 09:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:15:05 - End Time 2025-03-16 09:15:05 [2025-03-16 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692499', 'tblTempUsageDetail_20' ) start [2025-03-16 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692499', 'tblTempUsageDetail_20' ) end [2025-03-16 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692499', 'tblTempVendorCDR_20' ) start [2025-03-16 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692499', 'tblTempVendorCDR_20' ) end [2025-03-16 09:15:17] Production.INFO: ProcessCDR(1,14692499,1,1,2) [2025-03-16 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692499', 'tblTempUsageDetail_20' ) start [2025-03-16 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692499', 'tblTempUsageDetail_20' ) end [2025-03-16 09:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:15:21] Production.INFO: ==22931== Releasing lock... [2025-03-16 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:16:05 [end_date_ymd] => 2025-03-16 09:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:16:05' and `end` < '2025-03-16 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-03-16 09:16:17] Production.INFO: count ==138 [2025-03-16 09:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:16:05 - End Time 2025-03-16 09:16:05 [2025-03-16 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692504', 'tblTempUsageDetail_20' ) start [2025-03-16 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692504', 'tblTempUsageDetail_20' ) end [2025-03-16 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692504', 'tblTempVendorCDR_20' ) start [2025-03-16 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692504', 'tblTempVendorCDR_20' ) end [2025-03-16 09:16:17] Production.INFO: ProcessCDR(1,14692504,1,1,2) [2025-03-16 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692504', 'tblTempUsageDetail_20' ) start [2025-03-16 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692504', 'tblTempUsageDetail_20' ) end [2025-03-16 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:16:21] Production.INFO: ==23011== Releasing lock... [2025-03-16 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:17:05 [end_date_ymd] => 2025-03-16 09:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:17:05' and `end` < '2025-03-16 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-03-16 09:17:17] Production.INFO: count ==134 [2025-03-16 09:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:17:05 - End Time 2025-03-16 09:17:05 [2025-03-16 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692509', 'tblTempUsageDetail_20' ) start [2025-03-16 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692509', 'tblTempUsageDetail_20' ) end [2025-03-16 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692509', 'tblTempVendorCDR_20' ) start [2025-03-16 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692509', 'tblTempVendorCDR_20' ) end [2025-03-16 09:17:17] Production.INFO: ProcessCDR(1,14692509,1,1,2) [2025-03-16 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692509', 'tblTempUsageDetail_20' ) start [2025-03-16 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692509', 'tblTempUsageDetail_20' ) end [2025-03-16 09:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:17:20] Production.INFO: ==23085== Releasing lock... [2025-03-16 09:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:18:05 [end_date_ymd] => 2025-03-16 09:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:18:05' and `end` < '2025-03-16 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-03-16 09:18:17] Production.INFO: count ==128 [2025-03-16 09:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:18:05 - End Time 2025-03-16 09:18:05 [2025-03-16 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692514', 'tblTempUsageDetail_20' ) start [2025-03-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692514', 'tblTempUsageDetail_20' ) end [2025-03-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692514', 'tblTempVendorCDR_20' ) start [2025-03-16 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692514', 'tblTempVendorCDR_20' ) end [2025-03-16 09:18:17] Production.INFO: ProcessCDR(1,14692514,1,1,2) [2025-03-16 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692514', 'tblTempUsageDetail_20' ) start [2025-03-16 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692514', 'tblTempUsageDetail_20' ) end [2025-03-16 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:18:21] Production.INFO: ==23170== Releasing lock... [2025-03-16 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:18:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:19:05 [end_date_ymd] => 2025-03-16 09:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:19:05' and `end` < '2025-03-16 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-03-16 09:19:17] Production.INFO: count ==127 [2025-03-16 09:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:19:05 - End Time 2025-03-16 09:19:05 [2025-03-16 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692519', 'tblTempUsageDetail_20' ) start [2025-03-16 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692519', 'tblTempUsageDetail_20' ) end [2025-03-16 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692519', 'tblTempVendorCDR_20' ) start [2025-03-16 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692519', 'tblTempVendorCDR_20' ) end [2025-03-16 09:19:17] Production.INFO: ProcessCDR(1,14692519,1,1,2) [2025-03-16 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692519', 'tblTempUsageDetail_20' ) start [2025-03-16 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692519', 'tblTempUsageDetail_20' ) end [2025-03-16 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:19:22] Production.INFO: ==23245== Releasing lock... [2025-03-16 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:20:06 [end_date_ymd] => 2025-03-16 09:20:06 [RateCDR] => 1 ) [2025-03-16 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:20:06' and `end` < '2025-03-16 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:20:18] Production.INFO: count ==128 [2025-03-16 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:20:06 - End Time 2025-03-16 09:20:06 [2025-03-16 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692524', 'tblTempUsageDetail_20' ) start [2025-03-16 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692524', 'tblTempUsageDetail_20' ) end [2025-03-16 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692524', 'tblTempVendorCDR_20' ) start [2025-03-16 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692524', 'tblTempVendorCDR_20' ) end [2025-03-16 09:20:18] Production.INFO: ProcessCDR(1,14692524,1,1,2) [2025-03-16 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692524', 'tblTempUsageDetail_20' ) start [2025-03-16 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692524', 'tblTempUsageDetail_20' ) end [2025-03-16 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:20:23] Production.INFO: ==23320== Releasing lock... [2025-03-16 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:20:23] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:21:05 [end_date_ymd] => 2025-03-16 09:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:21:05' and `end` < '2025-03-16 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-03-16 09:21:17] Production.INFO: count ==128 [2025-03-16 09:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:21:05 - End Time 2025-03-16 09:21:05 [2025-03-16 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692530', 'tblTempUsageDetail_20' ) start [2025-03-16 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692530', 'tblTempUsageDetail_20' ) end [2025-03-16 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692530', 'tblTempVendorCDR_20' ) start [2025-03-16 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692530', 'tblTempVendorCDR_20' ) end [2025-03-16 09:21:17] Production.INFO: ProcessCDR(1,14692530,1,1,2) [2025-03-16 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692530', 'tblTempUsageDetail_20' ) start [2025-03-16 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692530', 'tblTempUsageDetail_20' ) end [2025-03-16 09:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:21:20] Production.INFO: ==23433== Releasing lock... [2025-03-16 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:21:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:22:05 [end_date_ymd] => 2025-03-16 09:22:05 [RateCDR] => 1 ) [2025-03-16 09: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-03-16 06:22:05' and `end` < '2025-03-16 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-03-16 09:22:18] Production.INFO: count ==128 [2025-03-16 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:22:05 - End Time 2025-03-16 09:22:05 [2025-03-16 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692535', 'tblTempUsageDetail_20' ) start [2025-03-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692535', 'tblTempUsageDetail_20' ) end [2025-03-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692535', 'tblTempVendorCDR_20' ) start [2025-03-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692535', 'tblTempVendorCDR_20' ) end [2025-03-16 09:22:18] Production.INFO: ProcessCDR(1,14692535,1,1,2) [2025-03-16 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692535', 'tblTempUsageDetail_20' ) start [2025-03-16 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692535', 'tblTempUsageDetail_20' ) end [2025-03-16 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:22:21] Production.INFO: ==23505== Releasing lock... [2025-03-16 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:22:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:23:05 [end_date_ymd] => 2025-03-16 09:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:23:05' and `end` < '2025-03-16 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-03-16 09:23:17] Production.INFO: count ==128 [2025-03-16 09:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:23:05 - End Time 2025-03-16 09:23:05 [2025-03-16 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692540', 'tblTempUsageDetail_20' ) start [2025-03-16 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692540', 'tblTempUsageDetail_20' ) end [2025-03-16 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692540', 'tblTempVendorCDR_20' ) start [2025-03-16 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692540', 'tblTempVendorCDR_20' ) end [2025-03-16 09:23:17] Production.INFO: ProcessCDR(1,14692540,1,1,2) [2025-03-16 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692540', 'tblTempUsageDetail_20' ) start [2025-03-16 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692540', 'tblTempUsageDetail_20' ) end [2025-03-16 09:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:23:20] Production.INFO: ==23582== Releasing lock... [2025-03-16 09:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:23:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:24:06 [end_date_ymd] => 2025-03-16 09:24:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:24:06' and `end` < '2025-03-16 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-03-16 09:24:18] Production.INFO: count ==126 [2025-03-16 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:24:06 - End Time 2025-03-16 09:24:06 [2025-03-16 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692545', 'tblTempUsageDetail_20' ) start [2025-03-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692545', 'tblTempUsageDetail_20' ) end [2025-03-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692545', 'tblTempVendorCDR_20' ) start [2025-03-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692545', 'tblTempVendorCDR_20' ) end [2025-03-16 09:24:18] Production.INFO: ProcessCDR(1,14692545,1,1,2) [2025-03-16 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692545', 'tblTempUsageDetail_20' ) start [2025-03-16 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692545', 'tblTempUsageDetail_20' ) end [2025-03-16 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:24:21] Production.INFO: ==23657== Releasing lock... [2025-03-16 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:25:05 [end_date_ymd] => 2025-03-16 09:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:25:05' and `end` < '2025-03-16 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-03-16 09:25:17] Production.INFO: count ==117 [2025-03-16 09:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:25:05 - End Time 2025-03-16 09:25:05 [2025-03-16 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692550', 'tblTempUsageDetail_20' ) start [2025-03-16 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692550', 'tblTempUsageDetail_20' ) end [2025-03-16 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692550', 'tblTempVendorCDR_20' ) start [2025-03-16 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692550', 'tblTempVendorCDR_20' ) end [2025-03-16 09:25:17] Production.INFO: ProcessCDR(1,14692550,1,1,2) [2025-03-16 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692550', 'tblTempUsageDetail_20' ) start [2025-03-16 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692550', 'tblTempUsageDetail_20' ) end [2025-03-16 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:25:21] Production.INFO: ==23730== Releasing lock... [2025-03-16 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:26:06 [end_date_ymd] => 2025-03-16 09:26:06 [RateCDR] => 1 ) [2025-03-16 09: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-03-16 06:26:06' and `end` < '2025-03-16 09: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-03-16 09:26:18] Production.INFO: count ==113 [2025-03-16 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:26:06 - End Time 2025-03-16 09:26:06 [2025-03-16 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692555', 'tblTempUsageDetail_20' ) start [2025-03-16 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692555', 'tblTempUsageDetail_20' ) end [2025-03-16 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692555', 'tblTempVendorCDR_20' ) start [2025-03-16 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692555', 'tblTempVendorCDR_20' ) end [2025-03-16 09:26:18] Production.INFO: ProcessCDR(1,14692555,1,1,2) [2025-03-16 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692555', 'tblTempUsageDetail_20' ) start [2025-03-16 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692555', 'tblTempUsageDetail_20' ) end [2025-03-16 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:26:21] Production.INFO: ==23804== Releasing lock... [2025-03-16 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:27:05 [end_date_ymd] => 2025-03-16 09:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:27:05' and `end` < '2025-03-16 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-03-16 09:27:17] Production.INFO: count ==115 [2025-03-16 09:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:27:05 - End Time 2025-03-16 09:27:05 [2025-03-16 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692560', 'tblTempUsageDetail_20' ) start [2025-03-16 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692560', 'tblTempUsageDetail_20' ) end [2025-03-16 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692560', 'tblTempVendorCDR_20' ) start [2025-03-16 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692560', 'tblTempVendorCDR_20' ) end [2025-03-16 09:27:17] Production.INFO: ProcessCDR(1,14692560,1,1,2) [2025-03-16 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692560', 'tblTempUsageDetail_20' ) start [2025-03-16 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692560', 'tblTempUsageDetail_20' ) end [2025-03-16 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:27:21] Production.INFO: ==23874== Releasing lock... [2025-03-16 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:28:06 [end_date_ymd] => 2025-03-16 09:28:06 [RateCDR] => 1 ) [2025-03-16 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:28:06' and `end` < '2025-03-16 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:28:18] Production.INFO: count ==115 [2025-03-16 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:28:06 - End Time 2025-03-16 09:28:06 [2025-03-16 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692565', 'tblTempUsageDetail_20' ) start [2025-03-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692565', 'tblTempUsageDetail_20' ) end [2025-03-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692565', 'tblTempVendorCDR_20' ) start [2025-03-16 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692565', 'tblTempVendorCDR_20' ) end [2025-03-16 09:28:18] Production.INFO: ProcessCDR(1,14692565,1,1,2) [2025-03-16 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692565', 'tblTempUsageDetail_20' ) start [2025-03-16 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692565', 'tblTempUsageDetail_20' ) end [2025-03-16 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:28:21] Production.INFO: ==23950== Releasing lock... [2025-03-16 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:29:05 [end_date_ymd] => 2025-03-16 09:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:29:05' and `end` < '2025-03-16 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-03-16 09:29:17] Production.INFO: count ==111 [2025-03-16 09:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:29:05 - End Time 2025-03-16 09:29:05 [2025-03-16 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692570', 'tblTempUsageDetail_20' ) start [2025-03-16 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692570', 'tblTempUsageDetail_20' ) end [2025-03-16 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692570', 'tblTempVendorCDR_20' ) start [2025-03-16 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692570', 'tblTempVendorCDR_20' ) end [2025-03-16 09:29:17] Production.INFO: ProcessCDR(1,14692570,1,1,2) [2025-03-16 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692570', 'tblTempUsageDetail_20' ) start [2025-03-16 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692570', 'tblTempUsageDetail_20' ) end [2025-03-16 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:29:21] Production.INFO: ==24019== Releasing lock... [2025-03-16 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:30:06 [end_date_ymd] => 2025-03-16 09:30:06 [RateCDR] => 1 ) [2025-03-16 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:30:06' and `end` < '2025-03-16 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-03-16 09:30:18] Production.INFO: count ==109 [2025-03-16 09:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:30:06 - End Time 2025-03-16 09:30:06 [2025-03-16 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692575', 'tblTempUsageDetail_20' ) start [2025-03-16 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692575', 'tblTempUsageDetail_20' ) end [2025-03-16 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692575', 'tblTempVendorCDR_20' ) start [2025-03-16 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692575', 'tblTempVendorCDR_20' ) end [2025-03-16 09:30:18] Production.INFO: ProcessCDR(1,14692575,1,1,2) [2025-03-16 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692575', 'tblTempUsageDetail_20' ) start [2025-03-16 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692575', 'tblTempUsageDetail_20' ) end [2025-03-16 09:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:30:21] Production.INFO: ==24098== Releasing lock... [2025-03-16 09:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:30:21] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:31:05 [end_date_ymd] => 2025-03-16 09:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:31:05' and `end` < '2025-03-16 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-03-16 09:31:17] Production.INFO: count ==106 [2025-03-16 09:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:31:05 - End Time 2025-03-16 09:31:05 [2025-03-16 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692581', 'tblTempUsageDetail_20' ) start [2025-03-16 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692581', 'tblTempUsageDetail_20' ) end [2025-03-16 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692581', 'tblTempVendorCDR_20' ) start [2025-03-16 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692581', 'tblTempVendorCDR_20' ) end [2025-03-16 09:31:17] Production.INFO: ProcessCDR(1,14692581,1,1,2) [2025-03-16 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692581', 'tblTempUsageDetail_20' ) start [2025-03-16 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692581', 'tblTempUsageDetail_20' ) end [2025-03-16 09:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:31:20] Production.INFO: ==24174== Releasing lock... [2025-03-16 09:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:31:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:32:05 [end_date_ymd] => 2025-03-16 09:32:05 [RateCDR] => 1 ) [2025-03-16 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:32:05' and `end` < '2025-03-16 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:32:17] Production.INFO: count ==108 [2025-03-16 09:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:32:05 - End Time 2025-03-16 09:32:05 [2025-03-16 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692586', 'tblTempUsageDetail_20' ) start [2025-03-16 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692586', 'tblTempUsageDetail_20' ) end [2025-03-16 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692586', 'tblTempVendorCDR_20' ) start [2025-03-16 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692586', 'tblTempVendorCDR_20' ) end [2025-03-16 09:32:17] Production.INFO: ProcessCDR(1,14692586,1,1,2) [2025-03-16 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692586', 'tblTempUsageDetail_20' ) start [2025-03-16 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692586', 'tblTempUsageDetail_20' ) end [2025-03-16 09:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:32:20] Production.INFO: ==24250== Releasing lock... [2025-03-16 09:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:32:20] Production.INFO: 29 MB #Memory Used# [2025-03-16 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:33:05 [end_date_ymd] => 2025-03-16 09:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:33:05' and `end` < '2025-03-16 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-03-16 09:33:17] Production.INFO: count ==112 [2025-03-16 09:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:33:05 - End Time 2025-03-16 09:33:05 [2025-03-16 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692591', 'tblTempUsageDetail_20' ) start [2025-03-16 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692591', 'tblTempUsageDetail_20' ) end [2025-03-16 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692591', 'tblTempVendorCDR_20' ) start [2025-03-16 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692591', 'tblTempVendorCDR_20' ) end [2025-03-16 09:33:17] Production.INFO: ProcessCDR(1,14692591,1,1,2) [2025-03-16 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692591', 'tblTempUsageDetail_20' ) start [2025-03-16 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692591', 'tblTempUsageDetail_20' ) end [2025-03-16 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:33:22] Production.INFO: ==24320== Releasing lock... [2025-03-16 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:34:06 [end_date_ymd] => 2025-03-16 09:34:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:34:06' and `end` < '2025-03-16 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-03-16 09:34:18] Production.INFO: count ==113 [2025-03-16 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:34:06 - End Time 2025-03-16 09:34:06 [2025-03-16 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692596', 'tblTempUsageDetail_20' ) start [2025-03-16 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692596', 'tblTempUsageDetail_20' ) end [2025-03-16 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692596', 'tblTempVendorCDR_20' ) start [2025-03-16 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692596', 'tblTempVendorCDR_20' ) end [2025-03-16 09:34:18] Production.INFO: ProcessCDR(1,14692596,1,1,2) [2025-03-16 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692596', 'tblTempUsageDetail_20' ) start [2025-03-16 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692596', 'tblTempUsageDetail_20' ) end [2025-03-16 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:34:22] Production.INFO: ==24394== Releasing lock... [2025-03-16 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:35:05 [end_date_ymd] => 2025-03-16 09:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:35:05' and `end` < '2025-03-16 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-03-16 09:35:17] Production.INFO: count ==114 [2025-03-16 09:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:35:05 - End Time 2025-03-16 09:35:05 [2025-03-16 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692601', 'tblTempUsageDetail_20' ) start [2025-03-16 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692601', 'tblTempUsageDetail_20' ) end [2025-03-16 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692601', 'tblTempVendorCDR_20' ) start [2025-03-16 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692601', 'tblTempVendorCDR_20' ) end [2025-03-16 09:35:17] Production.INFO: ProcessCDR(1,14692601,1,1,2) [2025-03-16 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692601', 'tblTempUsageDetail_20' ) start [2025-03-16 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692601', 'tblTempUsageDetail_20' ) end [2025-03-16 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:35:22] Production.INFO: ==24465== Releasing lock... [2025-03-16 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:36:05 [end_date_ymd] => 2025-03-16 09:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:36:05' and `end` < '2025-03-16 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-03-16 09:36:17] Production.INFO: count ==114 [2025-03-16 09:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:36:05 - End Time 2025-03-16 09:36:05 [2025-03-16 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692606', 'tblTempUsageDetail_20' ) start [2025-03-16 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692606', 'tblTempUsageDetail_20' ) end [2025-03-16 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692606', 'tblTempVendorCDR_20' ) start [2025-03-16 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692606', 'tblTempVendorCDR_20' ) end [2025-03-16 09:36:17] Production.INFO: ProcessCDR(1,14692606,1,1,2) [2025-03-16 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692606', 'tblTempUsageDetail_20' ) start [2025-03-16 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692606', 'tblTempUsageDetail_20' ) end [2025-03-16 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:36:21] Production.INFO: ==24582== Releasing lock... [2025-03-16 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:37:06 [end_date_ymd] => 2025-03-16 09:37:06 [RateCDR] => 1 ) [2025-03-16 09: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-03-16 06:37:06' and `end` < '2025-03-16 09: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-03-16 09:37:18] Production.INFO: count ==114 [2025-03-16 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:37:06 - End Time 2025-03-16 09:37:06 [2025-03-16 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692611', 'tblTempUsageDetail_20' ) start [2025-03-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692611', 'tblTempUsageDetail_20' ) end [2025-03-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692611', 'tblTempVendorCDR_20' ) start [2025-03-16 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692611', 'tblTempVendorCDR_20' ) end [2025-03-16 09:37:18] Production.INFO: ProcessCDR(1,14692611,1,1,2) [2025-03-16 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692611', 'tblTempUsageDetail_20' ) start [2025-03-16 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692611', 'tblTempUsageDetail_20' ) end [2025-03-16 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:37:21] Production.INFO: ==24657== Releasing lock... [2025-03-16 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:38:05 [end_date_ymd] => 2025-03-16 09:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:38:05' and `end` < '2025-03-16 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-03-16 09:38:17] Production.INFO: count ==114 [2025-03-16 09:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:38:05 - End Time 2025-03-16 09:38:05 [2025-03-16 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692616', 'tblTempUsageDetail_20' ) start [2025-03-16 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692616', 'tblTempUsageDetail_20' ) end [2025-03-16 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692616', 'tblTempVendorCDR_20' ) start [2025-03-16 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692616', 'tblTempVendorCDR_20' ) end [2025-03-16 09:38:17] Production.INFO: ProcessCDR(1,14692616,1,1,2) [2025-03-16 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692616', 'tblTempUsageDetail_20' ) start [2025-03-16 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692616', 'tblTempUsageDetail_20' ) end [2025-03-16 09:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:38:20] Production.INFO: ==24737== Releasing lock... [2025-03-16 09:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:39:06 [end_date_ymd] => 2025-03-16 09:39:06 [RateCDR] => 1 ) [2025-03-16 09: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-03-16 06:39:06' and `end` < '2025-03-16 09: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-03-16 09:39:18] Production.INFO: count ==114 [2025-03-16 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:39:06 - End Time 2025-03-16 09:39:06 [2025-03-16 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692621', 'tblTempUsageDetail_20' ) start [2025-03-16 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692621', 'tblTempUsageDetail_20' ) end [2025-03-16 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692621', 'tblTempVendorCDR_20' ) start [2025-03-16 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692621', 'tblTempVendorCDR_20' ) end [2025-03-16 09:39:18] Production.INFO: ProcessCDR(1,14692621,1,1,2) [2025-03-16 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692621', 'tblTempUsageDetail_20' ) start [2025-03-16 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692621', 'tblTempUsageDetail_20' ) end [2025-03-16 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:39:21] Production.INFO: ==24811== Releasing lock... [2025-03-16 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:40:06 [end_date_ymd] => 2025-03-16 09:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:40:06' and `end` < '2025-03-16 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-03-16 09:40:18] Production.INFO: count ==115 [2025-03-16 09:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:40:06 - End Time 2025-03-16 09:40:06 [2025-03-16 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692627', 'tblTempUsageDetail_20' ) start [2025-03-16 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692627', 'tblTempUsageDetail_20' ) end [2025-03-16 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692627', 'tblTempVendorCDR_20' ) start [2025-03-16 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692627', 'tblTempVendorCDR_20' ) end [2025-03-16 09:40:18] Production.INFO: ProcessCDR(1,14692627,1,1,2) [2025-03-16 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692627', 'tblTempUsageDetail_20' ) start [2025-03-16 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692627', 'tblTempUsageDetail_20' ) end [2025-03-16 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:40:23] Production.INFO: ==24887== Releasing lock... [2025-03-16 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:40:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:41:05 [end_date_ymd] => 2025-03-16 09:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:41:05' and `end` < '2025-03-16 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-03-16 09:41:17] Production.INFO: count ==115 [2025-03-16 09:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:41:05 - End Time 2025-03-16 09:41:05 [2025-03-16 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692632', 'tblTempUsageDetail_20' ) start [2025-03-16 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692632', 'tblTempUsageDetail_20' ) end [2025-03-16 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692632', 'tblTempVendorCDR_20' ) start [2025-03-16 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692632', 'tblTempVendorCDR_20' ) end [2025-03-16 09:41:17] Production.INFO: ProcessCDR(1,14692632,1,1,2) [2025-03-16 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692632', 'tblTempUsageDetail_20' ) start [2025-03-16 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692632', 'tblTempUsageDetail_20' ) end [2025-03-16 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:41:21] Production.INFO: ==24961== Releasing lock... [2025-03-16 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:42:05 [end_date_ymd] => 2025-03-16 09:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:42:05' and `end` < '2025-03-16 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-03-16 09:42:17] Production.INFO: count ==116 [2025-03-16 09:42:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:42:05 - End Time 2025-03-16 09:42:05 [2025-03-16 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692637', 'tblTempUsageDetail_20' ) start [2025-03-16 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692637', 'tblTempUsageDetail_20' ) end [2025-03-16 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692637', 'tblTempVendorCDR_20' ) start [2025-03-16 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692637', 'tblTempVendorCDR_20' ) end [2025-03-16 09:42:17] Production.INFO: ProcessCDR(1,14692637,1,1,2) [2025-03-16 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692637', 'tblTempUsageDetail_20' ) start [2025-03-16 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692637', 'tblTempUsageDetail_20' ) end [2025-03-16 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:42:21] Production.INFO: ==25033== Releasing lock... [2025-03-16 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:43:05 [end_date_ymd] => 2025-03-16 09:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:43:05' and `end` < '2025-03-16 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-03-16 09:43:17] Production.INFO: count ==118 [2025-03-16 09:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:43:05 - End Time 2025-03-16 09:43:05 [2025-03-16 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692642', 'tblTempUsageDetail_20' ) start [2025-03-16 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692642', 'tblTempUsageDetail_20' ) end [2025-03-16 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692642', 'tblTempVendorCDR_20' ) start [2025-03-16 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692642', 'tblTempVendorCDR_20' ) end [2025-03-16 09:43:17] Production.INFO: ProcessCDR(1,14692642,1,1,2) [2025-03-16 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692642', 'tblTempUsageDetail_20' ) start [2025-03-16 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692642', 'tblTempUsageDetail_20' ) end [2025-03-16 09:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:43:20] Production.INFO: ==25102== Releasing lock... [2025-03-16 09:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:43:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:44:05 [end_date_ymd] => 2025-03-16 09:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:44:05' and `end` < '2025-03-16 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-03-16 09:44:17] Production.INFO: count ==118 [2025-03-16 09:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:44:05 - End Time 2025-03-16 09:44:05 [2025-03-16 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692647', 'tblTempUsageDetail_20' ) start [2025-03-16 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692647', 'tblTempUsageDetail_20' ) end [2025-03-16 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692647', 'tblTempVendorCDR_20' ) start [2025-03-16 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692647', 'tblTempVendorCDR_20' ) end [2025-03-16 09:44:17] Production.INFO: ProcessCDR(1,14692647,1,1,2) [2025-03-16 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692647', 'tblTempUsageDetail_20' ) start [2025-03-16 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692647', 'tblTempUsageDetail_20' ) end [2025-03-16 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:44:21] Production.INFO: ==25179== Releasing lock... [2025-03-16 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:45:06 [end_date_ymd] => 2025-03-16 09:45:06 [RateCDR] => 1 ) [2025-03-16 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:45:06' and `end` < '2025-03-16 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:45:18] Production.INFO: count ==119 [2025-03-16 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:45:06 - End Time 2025-03-16 09:45:06 [2025-03-16 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692652', 'tblTempUsageDetail_20' ) start [2025-03-16 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692652', 'tblTempUsageDetail_20' ) end [2025-03-16 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692652', 'tblTempVendorCDR_20' ) start [2025-03-16 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692652', 'tblTempVendorCDR_20' ) end [2025-03-16 09:45:18] Production.INFO: ProcessCDR(1,14692652,1,1,2) [2025-03-16 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692652', 'tblTempUsageDetail_20' ) start [2025-03-16 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692652', 'tblTempUsageDetail_20' ) end [2025-03-16 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:45:23] Production.INFO: ==25253== Releasing lock... [2025-03-16 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:45:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:46:05 [end_date_ymd] => 2025-03-16 09:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:46:05' and `end` < '2025-03-16 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-03-16 09:46:17] Production.INFO: count ==119 [2025-03-16 09:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:46:05 - End Time 2025-03-16 09:46:05 [2025-03-16 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692657', 'tblTempUsageDetail_20' ) start [2025-03-16 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692657', 'tblTempUsageDetail_20' ) end [2025-03-16 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692657', 'tblTempVendorCDR_20' ) start [2025-03-16 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692657', 'tblTempVendorCDR_20' ) end [2025-03-16 09:46:17] Production.INFO: ProcessCDR(1,14692657,1,1,2) [2025-03-16 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692657', 'tblTempUsageDetail_20' ) start [2025-03-16 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692657', 'tblTempUsageDetail_20' ) end [2025-03-16 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:46:21] Production.INFO: ==25335== Releasing lock... [2025-03-16 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:47:06 [end_date_ymd] => 2025-03-16 09:47:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:47:06' and `end` < '2025-03-16 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-03-16 09:47:18] Production.INFO: count ==119 [2025-03-16 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:47:06 - End Time 2025-03-16 09:47:06 [2025-03-16 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692662', 'tblTempUsageDetail_20' ) start [2025-03-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692662', 'tblTempUsageDetail_20' ) end [2025-03-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692662', 'tblTempVendorCDR_20' ) start [2025-03-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692662', 'tblTempVendorCDR_20' ) end [2025-03-16 09:47:18] Production.INFO: ProcessCDR(1,14692662,1,1,2) [2025-03-16 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692662', 'tblTempUsageDetail_20' ) start [2025-03-16 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692662', 'tblTempUsageDetail_20' ) end [2025-03-16 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:47:21] Production.INFO: ==25406== Releasing lock... [2025-03-16 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:48:05 [end_date_ymd] => 2025-03-16 09:48:05 [RateCDR] => 1 ) [2025-03-16 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:48:05' and `end` < '2025-03-16 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:48:17] Production.INFO: count ==119 [2025-03-16 09:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:48:05 - End Time 2025-03-16 09:48:05 [2025-03-16 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692667', 'tblTempUsageDetail_20' ) start [2025-03-16 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692667', 'tblTempUsageDetail_20' ) end [2025-03-16 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692667', 'tblTempVendorCDR_20' ) start [2025-03-16 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692667', 'tblTempVendorCDR_20' ) end [2025-03-16 09:48:17] Production.INFO: ProcessCDR(1,14692667,1,1,2) [2025-03-16 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692667', 'tblTempUsageDetail_20' ) start [2025-03-16 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692667', 'tblTempUsageDetail_20' ) end [2025-03-16 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:48:21] Production.INFO: ==25479== Releasing lock... [2025-03-16 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:49:05 [end_date_ymd] => 2025-03-16 09:49:05 [RateCDR] => 1 ) [2025-03-16 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:49:05' and `end` < '2025-03-16 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:49:17] Production.INFO: count ==128 [2025-03-16 09:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:49:05 - End Time 2025-03-16 09:49:05 [2025-03-16 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692672', 'tblTempUsageDetail_20' ) start [2025-03-16 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692672', 'tblTempUsageDetail_20' ) end [2025-03-16 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692672', 'tblTempVendorCDR_20' ) start [2025-03-16 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692672', 'tblTempVendorCDR_20' ) end [2025-03-16 09:49:17] Production.INFO: ProcessCDR(1,14692672,1,1,2) [2025-03-16 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692672', 'tblTempUsageDetail_20' ) start [2025-03-16 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692672', 'tblTempUsageDetail_20' ) end [2025-03-16 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:49:21] Production.INFO: ==25553== Releasing lock... [2025-03-16 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-16 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:50:05 [end_date_ymd] => 2025-03-16 09:50:05 [RateCDR] => 1 ) [2025-03-16 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:50:05' and `end` < '2025-03-16 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:50:18] Production.INFO: count ==151 [2025-03-16 09:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:50:05 - End Time 2025-03-16 09:50:05 [2025-03-16 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692678', 'tblTempUsageDetail_20' ) start [2025-03-16 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692678', 'tblTempUsageDetail_20' ) end [2025-03-16 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692678', 'tblTempVendorCDR_20' ) start [2025-03-16 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692678', 'tblTempVendorCDR_20' ) end [2025-03-16 09:50:18] Production.INFO: ProcessCDR(1,14692678,1,1,2) [2025-03-16 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692678', 'tblTempUsageDetail_20' ) start [2025-03-16 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692678', 'tblTempUsageDetail_20' ) end [2025-03-16 09:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:50:21] Production.INFO: ==25630== Releasing lock... [2025-03-16 09:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:51:05 [end_date_ymd] => 2025-03-16 09:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:51:05' and `end` < '2025-03-16 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-03-16 09:51:18] Production.INFO: count ==165 [2025-03-16 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:51:05 - End Time 2025-03-16 09:51:05 [2025-03-16 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692683', 'tblTempUsageDetail_20' ) start [2025-03-16 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692683', 'tblTempUsageDetail_20' ) end [2025-03-16 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692683', 'tblTempVendorCDR_20' ) start [2025-03-16 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692683', 'tblTempVendorCDR_20' ) end [2025-03-16 09:51:18] Production.INFO: ProcessCDR(1,14692683,1,1,2) [2025-03-16 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692683', 'tblTempUsageDetail_20' ) start [2025-03-16 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692683', 'tblTempUsageDetail_20' ) end [2025-03-16 09:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:51:21] Production.INFO: ==25708== Releasing lock... [2025-03-16 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:52:05 [end_date_ymd] => 2025-03-16 09:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:52:05' and `end` < '2025-03-16 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-03-16 09:52:17] Production.INFO: count ==157 [2025-03-16 09:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:52:05 - End Time 2025-03-16 09:52:05 [2025-03-16 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692688', 'tblTempUsageDetail_20' ) start [2025-03-16 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692688', 'tblTempUsageDetail_20' ) end [2025-03-16 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692688', 'tblTempVendorCDR_20' ) start [2025-03-16 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692688', 'tblTempVendorCDR_20' ) end [2025-03-16 09:52:17] Production.INFO: ProcessCDR(1,14692688,1,1,2) [2025-03-16 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692688', 'tblTempUsageDetail_20' ) start [2025-03-16 09:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692688', 'tblTempUsageDetail_20' ) end [2025-03-16 09:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:52:20] Production.INFO: ==25820== Releasing lock... [2025-03-16 09:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:52:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:53:06 [end_date_ymd] => 2025-03-16 09:53:06 [RateCDR] => 1 ) [2025-03-16 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 06:53:06' and `end` < '2025-03-16 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 09:53:18] Production.INFO: count ==160 [2025-03-16 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:53:06 - End Time 2025-03-16 09:53:06 [2025-03-16 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692693', 'tblTempUsageDetail_20' ) start [2025-03-16 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692693', 'tblTempUsageDetail_20' ) end [2025-03-16 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692693', 'tblTempVendorCDR_20' ) start [2025-03-16 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692693', 'tblTempVendorCDR_20' ) end [2025-03-16 09:53:18] Production.INFO: ProcessCDR(1,14692693,1,1,2) [2025-03-16 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692693', 'tblTempUsageDetail_20' ) start [2025-03-16 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692693', 'tblTempUsageDetail_20' ) end [2025-03-16 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:53:21] Production.INFO: ==25898== Releasing lock... [2025-03-16 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:54:05 [end_date_ymd] => 2025-03-16 09:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:54:05' and `end` < '2025-03-16 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-03-16 09:54:17] Production.INFO: count ==170 [2025-03-16 09:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:54:05 - End Time 2025-03-16 09:54:05 [2025-03-16 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692698', 'tblTempUsageDetail_20' ) start [2025-03-16 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692698', 'tblTempUsageDetail_20' ) end [2025-03-16 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692698', 'tblTempVendorCDR_20' ) start [2025-03-16 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692698', 'tblTempVendorCDR_20' ) end [2025-03-16 09:54:17] Production.INFO: ProcessCDR(1,14692698,1,1,2) [2025-03-16 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692698', 'tblTempUsageDetail_20' ) start [2025-03-16 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692698', 'tblTempUsageDetail_20' ) end [2025-03-16 09:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:54:20] Production.INFO: ==25970== Releasing lock... [2025-03-16 09:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:55:05 [end_date_ymd] => 2025-03-16 09:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:55:05' and `end` < '2025-03-16 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-03-16 09:55:17] Production.INFO: count ==166 [2025-03-16 09:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:55:05 - End Time 2025-03-16 09:55:05 [2025-03-16 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692703', 'tblTempUsageDetail_20' ) start [2025-03-16 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692703', 'tblTempUsageDetail_20' ) end [2025-03-16 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692703', 'tblTempVendorCDR_20' ) start [2025-03-16 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692703', 'tblTempVendorCDR_20' ) end [2025-03-16 09:55:17] Production.INFO: ProcessCDR(1,14692703,1,1,2) [2025-03-16 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692703', 'tblTempUsageDetail_20' ) start [2025-03-16 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692703', 'tblTempUsageDetail_20' ) end [2025-03-16 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:55:21] Production.INFO: ==26046== Releasing lock... [2025-03-16 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:56:06 [end_date_ymd] => 2025-03-16 09:56:06 [RateCDR] => 1 ) [2025-03-16 09: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-03-16 06:56:06' and `end` < '2025-03-16 09: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-03-16 09:56:18] Production.INFO: count ==165 [2025-03-16 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:56:06 - End Time 2025-03-16 09:56:06 [2025-03-16 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692708', 'tblTempUsageDetail_20' ) start [2025-03-16 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692708', 'tblTempUsageDetail_20' ) end [2025-03-16 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692708', 'tblTempVendorCDR_20' ) start [2025-03-16 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692708', 'tblTempVendorCDR_20' ) end [2025-03-16 09:56:18] Production.INFO: ProcessCDR(1,14692708,1,1,2) [2025-03-16 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692708', 'tblTempUsageDetail_20' ) start [2025-03-16 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692708', 'tblTempUsageDetail_20' ) end [2025-03-16 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:56:21] Production.INFO: ==26121== Releasing lock... [2025-03-16 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:57:05 [end_date_ymd] => 2025-03-16 09:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:57:05' and `end` < '2025-03-16 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-03-16 09:57:17] Production.INFO: count ==165 [2025-03-16 09:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:57:05 - End Time 2025-03-16 09:57:05 [2025-03-16 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692713', 'tblTempUsageDetail_20' ) start [2025-03-16 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692713', 'tblTempUsageDetail_20' ) end [2025-03-16 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692713', 'tblTempVendorCDR_20' ) start [2025-03-16 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692713', 'tblTempVendorCDR_20' ) end [2025-03-16 09:57:17] Production.INFO: ProcessCDR(1,14692713,1,1,2) [2025-03-16 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692713', 'tblTempUsageDetail_20' ) start [2025-03-16 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692713', 'tblTempUsageDetail_20' ) end [2025-03-16 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:57:21] Production.INFO: ==26191== Releasing lock... [2025-03-16 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:58:05 [end_date_ymd] => 2025-03-16 09:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:58:05' and `end` < '2025-03-16 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-03-16 09:58:18] Production.INFO: count ==165 [2025-03-16 09:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 06:58:05 - End Time 2025-03-16 09:58:05 [2025-03-16 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692718', 'tblTempUsageDetail_20' ) start [2025-03-16 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692718', 'tblTempUsageDetail_20' ) end [2025-03-16 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692718', 'tblTempVendorCDR_20' ) start [2025-03-16 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692718', 'tblTempVendorCDR_20' ) end [2025-03-16 09:58:18] Production.INFO: ProcessCDR(1,14692718,1,1,2) [2025-03-16 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692718', 'tblTempUsageDetail_20' ) start [2025-03-16 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692718', 'tblTempUsageDetail_20' ) end [2025-03-16 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:58:21] Production.INFO: ==26262== Releasing lock... [2025-03-16 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 06:59:05 [end_date_ymd] => 2025-03-16 09:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 06:59:05' and `end` < '2025-03-16 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-03-16 09:59:17] Production.INFO: count ==165 [2025-03-16 09:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 06:59:05 - End Time 2025-03-16 09:59:05 [2025-03-16 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692723', 'tblTempUsageDetail_20' ) start [2025-03-16 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692723', 'tblTempUsageDetail_20' ) end [2025-03-16 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692723', 'tblTempVendorCDR_20' ) start [2025-03-16 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692723', 'tblTempVendorCDR_20' ) end [2025-03-16 09:59:17] Production.INFO: ProcessCDR(1,14692723,1,1,2) [2025-03-16 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692723', 'tblTempUsageDetail_20' ) start [2025-03-16 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692723', 'tblTempUsageDetail_20' ) end [2025-03-16 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 09:59:21] Production.INFO: ==26334== Releasing lock... [2025-03-16 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 09:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:00:06 [end_date_ymd] => 2025-03-16 10:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:00:06' and `end` < '2025-03-16 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-03-16 10:00:18] Production.INFO: count ==166 [2025-03-16 10:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:00:06 - End Time 2025-03-16 10:00:06 [2025-03-16 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692728', 'tblTempUsageDetail_20' ) start [2025-03-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692728', 'tblTempUsageDetail_20' ) end [2025-03-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692728', 'tblTempVendorCDR_20' ) start [2025-03-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692728', 'tblTempVendorCDR_20' ) end [2025-03-16 10:00:18] Production.INFO: ProcessCDR(1,14692728,1,1,2) [2025-03-16 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692728', 'tblTempUsageDetail_20' ) start [2025-03-16 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692728', 'tblTempUsageDetail_20' ) end [2025-03-16 10:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:00:23] Production.INFO: ==26410== Releasing lock... [2025-03-16 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:01:05 [end_date_ymd] => 2025-03-16 10:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:01:05' and `end` < '2025-03-16 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-03-16 10:01:17] Production.INFO: count ==167 [2025-03-16 10:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:01:05 - End Time 2025-03-16 10:01:05 [2025-03-16 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692734', 'tblTempUsageDetail_20' ) start [2025-03-16 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692734', 'tblTempUsageDetail_20' ) end [2025-03-16 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692734', 'tblTempVendorCDR_20' ) start [2025-03-16 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692734', 'tblTempVendorCDR_20' ) end [2025-03-16 10:01:17] Production.INFO: ProcessCDR(1,14692734,1,1,2) [2025-03-16 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692734', 'tblTempUsageDetail_20' ) start [2025-03-16 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692734', 'tblTempUsageDetail_20' ) end [2025-03-16 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:01:23] Production.INFO: ==26503== Releasing lock... [2025-03-16 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:02:05 [end_date_ymd] => 2025-03-16 10:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:02:05' and `end` < '2025-03-16 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-03-16 10:02:17] Production.INFO: count ==167 [2025-03-16 10:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:02:05 - End Time 2025-03-16 10:02:05 [2025-03-16 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692739', 'tblTempUsageDetail_20' ) start [2025-03-16 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692739', 'tblTempUsageDetail_20' ) end [2025-03-16 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692739', 'tblTempVendorCDR_20' ) start [2025-03-16 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692739', 'tblTempVendorCDR_20' ) end [2025-03-16 10:02:17] Production.INFO: ProcessCDR(1,14692739,1,1,2) [2025-03-16 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692739', 'tblTempUsageDetail_20' ) start [2025-03-16 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692739', 'tblTempUsageDetail_20' ) end [2025-03-16 10:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:02:21] Production.INFO: ==26574== Releasing lock... [2025-03-16 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:03:06 [end_date_ymd] => 2025-03-16 10:03:06 [RateCDR] => 1 ) [2025-03-16 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:03:06' and `end` < '2025-03-16 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:03:18] Production.INFO: count ==167 [2025-03-16 10:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:03:06 - End Time 2025-03-16 10:03:06 [2025-03-16 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692744', 'tblTempUsageDetail_20' ) start [2025-03-16 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692744', 'tblTempUsageDetail_20' ) end [2025-03-16 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692744', 'tblTempVendorCDR_20' ) start [2025-03-16 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692744', 'tblTempVendorCDR_20' ) end [2025-03-16 10:03:18] Production.INFO: ProcessCDR(1,14692744,1,1,2) [2025-03-16 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692744', 'tblTempUsageDetail_20' ) start [2025-03-16 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692744', 'tblTempUsageDetail_20' ) end [2025-03-16 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:03:22] Production.INFO: ==26647== Releasing lock... [2025-03-16 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:04:05 [end_date_ymd] => 2025-03-16 10:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:04:05' and `end` < '2025-03-16 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-03-16 10:04:17] Production.INFO: count ==170 [2025-03-16 10:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:04:05 - End Time 2025-03-16 10:04:05 [2025-03-16 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692749', 'tblTempUsageDetail_20' ) start [2025-03-16 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692749', 'tblTempUsageDetail_20' ) end [2025-03-16 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692749', 'tblTempVendorCDR_20' ) start [2025-03-16 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692749', 'tblTempVendorCDR_20' ) end [2025-03-16 10:04:17] Production.INFO: ProcessCDR(1,14692749,1,1,2) [2025-03-16 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692749', 'tblTempUsageDetail_20' ) start [2025-03-16 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692749', 'tblTempUsageDetail_20' ) end [2025-03-16 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:04:21] Production.INFO: ==26720== Releasing lock... [2025-03-16 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:05:06 [end_date_ymd] => 2025-03-16 10:05:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:05:06' and `end` < '2025-03-16 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-03-16 10:05:18] Production.INFO: count ==170 [2025-03-16 10:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:05:06 - End Time 2025-03-16 10:05:06 [2025-03-16 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692754', 'tblTempUsageDetail_20' ) start [2025-03-16 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692754', 'tblTempUsageDetail_20' ) end [2025-03-16 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692754', 'tblTempVendorCDR_20' ) start [2025-03-16 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692754', 'tblTempVendorCDR_20' ) end [2025-03-16 10:05:18] Production.INFO: ProcessCDR(1,14692754,1,1,2) [2025-03-16 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692754', 'tblTempUsageDetail_20' ) start [2025-03-16 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692754', 'tblTempUsageDetail_20' ) end [2025-03-16 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:05:21] Production.INFO: ==26792== Releasing lock... [2025-03-16 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:06:05 [end_date_ymd] => 2025-03-16 10:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:06:05' and `end` < '2025-03-16 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-03-16 10:06:17] Production.INFO: count ==166 [2025-03-16 10:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:06:05 - End Time 2025-03-16 10:06:05 [2025-03-16 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692759', 'tblTempUsageDetail_20' ) start [2025-03-16 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692759', 'tblTempUsageDetail_20' ) end [2025-03-16 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692759', 'tblTempVendorCDR_20' ) start [2025-03-16 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692759', 'tblTempVendorCDR_20' ) end [2025-03-16 10:06:17] Production.INFO: ProcessCDR(1,14692759,1,1,2) [2025-03-16 10:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692759', 'tblTempUsageDetail_20' ) start [2025-03-16 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692759', 'tblTempUsageDetail_20' ) end [2025-03-16 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:06:21] Production.INFO: ==26865== Releasing lock... [2025-03-16 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:07:05 [end_date_ymd] => 2025-03-16 10:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:07:05' and `end` < '2025-03-16 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:07:18] Production.INFO: count ==168 [2025-03-16 10:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:07:05 - End Time 2025-03-16 10:07:05 [2025-03-16 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692764', 'tblTempUsageDetail_20' ) start [2025-03-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692764', 'tblTempUsageDetail_20' ) end [2025-03-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692764', 'tblTempVendorCDR_20' ) start [2025-03-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692764', 'tblTempVendorCDR_20' ) end [2025-03-16 10:07:18] Production.INFO: ProcessCDR(1,14692764,1,1,2) [2025-03-16 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692764', 'tblTempUsageDetail_20' ) start [2025-03-16 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692764', 'tblTempUsageDetail_20' ) end [2025-03-16 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:07:23] Production.INFO: ==26980== Releasing lock... [2025-03-16 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-16 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:08:05 [end_date_ymd] => 2025-03-16 10:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:08:05' and `end` < '2025-03-16 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-03-16 10:08:17] Production.INFO: count ==172 [2025-03-16 10:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:08:05 - End Time 2025-03-16 10:08:05 [2025-03-16 10:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692769', 'tblTempUsageDetail_20' ) start [2025-03-16 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692769', 'tblTempUsageDetail_20' ) end [2025-03-16 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692769', 'tblTempVendorCDR_20' ) start [2025-03-16 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692769', 'tblTempVendorCDR_20' ) end [2025-03-16 10:08:17] Production.INFO: ProcessCDR(1,14692769,1,1,2) [2025-03-16 10:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692769', 'tblTempUsageDetail_20' ) start [2025-03-16 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692769', 'tblTempUsageDetail_20' ) end [2025-03-16 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:08:23] Production.INFO: ==27055== Releasing lock... [2025-03-16 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:08:23] Production.INFO: 30 MB #Memory Used# [2025-03-16 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:09:06 [end_date_ymd] => 2025-03-16 10:09:06 [RateCDR] => 1 ) [2025-03-16 10: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-03-16 07:09:06' and `end` < '2025-03-16 10: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-03-16 10:09:18] Production.INFO: count ==174 [2025-03-16 10:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:09:06 - End Time 2025-03-16 10:09:06 [2025-03-16 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692774', 'tblTempUsageDetail_20' ) start [2025-03-16 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692774', 'tblTempUsageDetail_20' ) end [2025-03-16 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692774', 'tblTempVendorCDR_20' ) start [2025-03-16 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692774', 'tblTempVendorCDR_20' ) end [2025-03-16 10:09:18] Production.INFO: ProcessCDR(1,14692774,1,1,2) [2025-03-16 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692774', 'tblTempUsageDetail_20' ) start [2025-03-16 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692774', 'tblTempUsageDetail_20' ) end [2025-03-16 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:09:24] Production.INFO: ==27128== Releasing lock... [2025-03-16 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:09:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:10:06 [end_date_ymd] => 2025-03-16 10:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:10:06' and `end` < '2025-03-16 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-03-16 10:10:18] Production.INFO: count ==184 [2025-03-16 10:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:10:06 - End Time 2025-03-16 10:10:06 [2025-03-16 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692780', 'tblTempUsageDetail_20' ) start [2025-03-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692780', 'tblTempUsageDetail_20' ) end [2025-03-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692780', 'tblTempVendorCDR_20' ) start [2025-03-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692780', 'tblTempVendorCDR_20' ) end [2025-03-16 10:10:19] Production.INFO: ProcessCDR(1,14692780,1,1,2) [2025-03-16 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692780', 'tblTempUsageDetail_20' ) start [2025-03-16 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692780', 'tblTempUsageDetail_20' ) end [2025-03-16 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:10:24] Production.INFO: ==27201== Releasing lock... [2025-03-16 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:10:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:11:06 [end_date_ymd] => 2025-03-16 10:11:06 [RateCDR] => 1 ) [2025-03-16 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:11:06' and `end` < '2025-03-16 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:11:18] Production.INFO: count ==192 [2025-03-16 10:11:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:11:06 - End Time 2025-03-16 10:11:06 [2025-03-16 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692785', 'tblTempUsageDetail_20' ) start [2025-03-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692785', 'tblTempUsageDetail_20' ) end [2025-03-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692785', 'tblTempVendorCDR_20' ) start [2025-03-16 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692785', 'tblTempVendorCDR_20' ) end [2025-03-16 10:11:18] Production.INFO: ProcessCDR(1,14692785,1,1,2) [2025-03-16 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692785', 'tblTempUsageDetail_20' ) start [2025-03-16 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692785', 'tblTempUsageDetail_20' ) end [2025-03-16 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:11:24] Production.INFO: ==27278== Releasing lock... [2025-03-16 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:11:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-16 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:12:05 [end_date_ymd] => 2025-03-16 10:12:05 [RateCDR] => 1 ) [2025-03-16 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:12:05' and `end` < '2025-03-16 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:12:18] Production.INFO: count ==194 [2025-03-16 10:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:12:05 - End Time 2025-03-16 10:12:05 [2025-03-16 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692790', 'tblTempUsageDetail_20' ) start [2025-03-16 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692790', 'tblTempUsageDetail_20' ) end [2025-03-16 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692790', 'tblTempVendorCDR_20' ) start [2025-03-16 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692790', 'tblTempVendorCDR_20' ) end [2025-03-16 10:12:18] Production.INFO: ProcessCDR(1,14692790,1,1,2) [2025-03-16 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692790', 'tblTempUsageDetail_20' ) start [2025-03-16 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692790', 'tblTempUsageDetail_20' ) end [2025-03-16 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:12:23] Production.INFO: ==27352== Releasing lock... [2025-03-16 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:12:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:13:06 [end_date_ymd] => 2025-03-16 10:13:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:13:06' and `end` < '2025-03-16 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-03-16 10:13:18] Production.INFO: count ==204 [2025-03-16 10:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:13:06 - End Time 2025-03-16 10:13:06 [2025-03-16 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692795', 'tblTempUsageDetail_20' ) start [2025-03-16 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692795', 'tblTempUsageDetail_20' ) end [2025-03-16 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692795', 'tblTempVendorCDR_20' ) start [2025-03-16 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692795', 'tblTempVendorCDR_20' ) end [2025-03-16 10:13:18] Production.INFO: ProcessCDR(1,14692795,1,1,2) [2025-03-16 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692795', 'tblTempUsageDetail_20' ) start [2025-03-16 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692795', 'tblTempUsageDetail_20' ) end [2025-03-16 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:13:24] Production.INFO: ==27425== Releasing lock... [2025-03-16 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:13:24] Production.INFO: 30 MB #Memory Used# [2025-03-16 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:14:06 [end_date_ymd] => 2025-03-16 10:14:06 [RateCDR] => 1 ) [2025-03-16 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:14:06' and `end` < '2025-03-16 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:14:18] Production.INFO: count ==205 [2025-03-16 10:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:14:06 - End Time 2025-03-16 10:14:06 [2025-03-16 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692800', 'tblTempUsageDetail_20' ) start [2025-03-16 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692800', 'tblTempUsageDetail_20' ) end [2025-03-16 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692800', 'tblTempVendorCDR_20' ) start [2025-03-16 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692800', 'tblTempVendorCDR_20' ) end [2025-03-16 10:14:18] Production.INFO: ProcessCDR(1,14692800,1,1,2) [2025-03-16 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692800', 'tblTempUsageDetail_20' ) start [2025-03-16 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692800', 'tblTempUsageDetail_20' ) end [2025-03-16 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:14:23] Production.INFO: ==27508== Releasing lock... [2025-03-16 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:14:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:15:06 [end_date_ymd] => 2025-03-16 10:15:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:15:06' and `end` < '2025-03-16 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-03-16 10:15:18] Production.INFO: count ==223 [2025-03-16 10:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:15:06 - End Time 2025-03-16 10:15:06 [2025-03-16 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692805', 'tblTempUsageDetail_20' ) start [2025-03-16 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692805', 'tblTempUsageDetail_20' ) end [2025-03-16 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692805', 'tblTempVendorCDR_20' ) start [2025-03-16 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692805', 'tblTempVendorCDR_20' ) end [2025-03-16 10:15:18] Production.INFO: ProcessCDR(1,14692805,1,1,2) [2025-03-16 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692805', 'tblTempUsageDetail_20' ) start [2025-03-16 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692805', 'tblTempUsageDetail_20' ) end [2025-03-16 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:15:21] Production.INFO: ==27580== Releasing lock... [2025-03-16 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:16:06 [end_date_ymd] => 2025-03-16 10:16:06 [RateCDR] => 1 ) [2025-03-16 10: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-03-16 07:16:06' and `end` < '2025-03-16 10: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-03-16 10:16:18] Production.INFO: count ==237 [2025-03-16 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:16:06 - End Time 2025-03-16 10:16:06 [2025-03-16 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692810', 'tblTempUsageDetail_20' ) start [2025-03-16 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692810', 'tblTempUsageDetail_20' ) end [2025-03-16 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692810', 'tblTempVendorCDR_20' ) start [2025-03-16 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692810', 'tblTempVendorCDR_20' ) end [2025-03-16 10:16:18] Production.INFO: ProcessCDR(1,14692810,1,1,2) [2025-03-16 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692810', 'tblTempUsageDetail_20' ) start [2025-03-16 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692810', 'tblTempUsageDetail_20' ) end [2025-03-16 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:16:22] Production.INFO: ==27654== Releasing lock... [2025-03-16 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:17:06 [end_date_ymd] => 2025-03-16 10:17:06 [RateCDR] => 1 ) [2025-03-16 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:17:06' and `end` < '2025-03-16 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:17:18] Production.INFO: count ==237 [2025-03-16 10:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:17:06 - End Time 2025-03-16 10:17:06 [2025-03-16 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692815', 'tblTempUsageDetail_20' ) start [2025-03-16 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692815', 'tblTempUsageDetail_20' ) end [2025-03-16 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692815', 'tblTempVendorCDR_20' ) start [2025-03-16 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692815', 'tblTempVendorCDR_20' ) end [2025-03-16 10:17:18] Production.INFO: ProcessCDR(1,14692815,1,1,2) [2025-03-16 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692815', 'tblTempUsageDetail_20' ) start [2025-03-16 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692815', 'tblTempUsageDetail_20' ) end [2025-03-16 10:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:17:22] Production.INFO: ==27726== Releasing lock... [2025-03-16 10:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:18:05 [end_date_ymd] => 2025-03-16 10:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:18:05' and `end` < '2025-03-16 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-03-16 10:18:18] Production.INFO: count ==237 [2025-03-16 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:18:05 - End Time 2025-03-16 10:18:05 [2025-03-16 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692820', 'tblTempUsageDetail_20' ) start [2025-03-16 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692820', 'tblTempUsageDetail_20' ) end [2025-03-16 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692820', 'tblTempVendorCDR_20' ) start [2025-03-16 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692820', 'tblTempVendorCDR_20' ) end [2025-03-16 10:18:18] Production.INFO: ProcessCDR(1,14692820,1,1,2) [2025-03-16 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692820', 'tblTempUsageDetail_20' ) start [2025-03-16 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692820', 'tblTempUsageDetail_20' ) end [2025-03-16 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:18:21] Production.INFO: ==27798== Releasing lock... [2025-03-16 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:19:06 [end_date_ymd] => 2025-03-16 10:19:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:19:06' and `end` < '2025-03-16 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-03-16 10:19:18] Production.INFO: count ==237 [2025-03-16 10:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:19:06 - End Time 2025-03-16 10:19:06 [2025-03-16 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692825', 'tblTempUsageDetail_20' ) start [2025-03-16 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692825', 'tblTempUsageDetail_20' ) end [2025-03-16 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692825', 'tblTempVendorCDR_20' ) start [2025-03-16 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692825', 'tblTempVendorCDR_20' ) end [2025-03-16 10:19:18] Production.INFO: ProcessCDR(1,14692825,1,1,2) [2025-03-16 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692825', 'tblTempUsageDetail_20' ) start [2025-03-16 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692825', 'tblTempUsageDetail_20' ) end [2025-03-16 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:19:21] Production.INFO: ==27872== Releasing lock... [2025-03-16 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:20:06 [end_date_ymd] => 2025-03-16 10:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:20:06' and `end` < '2025-03-16 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-03-16 10:20:18] Production.INFO: count ==242 [2025-03-16 10:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:20:06 - End Time 2025-03-16 10:20:06 [2025-03-16 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692831', 'tblTempUsageDetail_20' ) start [2025-03-16 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692831', 'tblTempUsageDetail_20' ) end [2025-03-16 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692831', 'tblTempVendorCDR_20' ) start [2025-03-16 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692831', 'tblTempVendorCDR_20' ) end [2025-03-16 10:20:18] Production.INFO: ProcessCDR(1,14692831,1,1,2) [2025-03-16 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692831', 'tblTempUsageDetail_20' ) start [2025-03-16 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692831', 'tblTempUsageDetail_20' ) end [2025-03-16 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:20:23] Production.INFO: ==27947== Releasing lock... [2025-03-16 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:21:05 [end_date_ymd] => 2025-03-16 10:21:05 [RateCDR] => 1 ) [2025-03-16 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:21:05' and `end` < '2025-03-16 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:21:17] Production.INFO: count ==242 [2025-03-16 10:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:21:05 - End Time 2025-03-16 10:21:05 [2025-03-16 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692836', 'tblTempUsageDetail_20' ) start [2025-03-16 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692836', 'tblTempUsageDetail_20' ) end [2025-03-16 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692836', 'tblTempVendorCDR_20' ) start [2025-03-16 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692836', 'tblTempVendorCDR_20' ) end [2025-03-16 10:21:17] Production.INFO: ProcessCDR(1,14692836,1,1,2) [2025-03-16 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692836', 'tblTempUsageDetail_20' ) start [2025-03-16 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692836', 'tblTempUsageDetail_20' ) end [2025-03-16 10:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:21:21] Production.INFO: ==28026== Releasing lock... [2025-03-16 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:22:05 [end_date_ymd] => 2025-03-16 10:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:22:05' and `end` < '2025-03-16 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-03-16 10:22:17] Production.INFO: count ==242 [2025-03-16 10:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:22:05 - End Time 2025-03-16 10:22:05 [2025-03-16 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692841', 'tblTempUsageDetail_20' ) start [2025-03-16 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692841', 'tblTempUsageDetail_20' ) end [2025-03-16 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692841', 'tblTempVendorCDR_20' ) start [2025-03-16 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692841', 'tblTempVendorCDR_20' ) end [2025-03-16 10:22:17] Production.INFO: ProcessCDR(1,14692841,1,1,2) [2025-03-16 10:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692841', 'tblTempUsageDetail_20' ) start [2025-03-16 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692841', 'tblTempUsageDetail_20' ) end [2025-03-16 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:22:21] Production.INFO: ==28098== Releasing lock... [2025-03-16 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:23:05 [end_date_ymd] => 2025-03-16 10:23:05 [RateCDR] => 1 ) [2025-03-16 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:23:05' and `end` < '2025-03-16 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:23:18] Production.INFO: count ==243 [2025-03-16 10:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:23:05 - End Time 2025-03-16 10:23:05 [2025-03-16 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692846', 'tblTempUsageDetail_20' ) start [2025-03-16 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692846', 'tblTempUsageDetail_20' ) end [2025-03-16 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692846', 'tblTempVendorCDR_20' ) start [2025-03-16 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692846', 'tblTempVendorCDR_20' ) end [2025-03-16 10:23:18] Production.INFO: ProcessCDR(1,14692846,1,1,2) [2025-03-16 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692846', 'tblTempUsageDetail_20' ) start [2025-03-16 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692846', 'tblTempUsageDetail_20' ) end [2025-03-16 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:23:23] Production.INFO: ==28212== Releasing lock... [2025-03-16 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:23:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:24:05 [end_date_ymd] => 2025-03-16 10:24:05 [RateCDR] => 1 ) [2025-03-16 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:24:05' and `end` < '2025-03-16 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:24:17] Production.INFO: count ==243 [2025-03-16 10:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:24:05 - End Time 2025-03-16 10:24:05 [2025-03-16 10:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692851', 'tblTempUsageDetail_20' ) start [2025-03-16 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692851', 'tblTempUsageDetail_20' ) end [2025-03-16 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692851', 'tblTempVendorCDR_20' ) start [2025-03-16 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692851', 'tblTempVendorCDR_20' ) end [2025-03-16 10:24:17] Production.INFO: ProcessCDR(1,14692851,1,1,2) [2025-03-16 10:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692851', 'tblTempUsageDetail_20' ) start [2025-03-16 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692851', 'tblTempUsageDetail_20' ) end [2025-03-16 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:24:21] Production.INFO: ==28286== Releasing lock... [2025-03-16 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:25:06 [end_date_ymd] => 2025-03-16 10:25:06 [RateCDR] => 1 ) [2025-03-16 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:25:06' and `end` < '2025-03-16 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:25:18] Production.INFO: count ==243 [2025-03-16 10:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:25:06 - End Time 2025-03-16 10:25:06 [2025-03-16 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692856', 'tblTempUsageDetail_20' ) start [2025-03-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692856', 'tblTempUsageDetail_20' ) end [2025-03-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692856', 'tblTempVendorCDR_20' ) start [2025-03-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692856', 'tblTempVendorCDR_20' ) end [2025-03-16 10:25:18] Production.INFO: ProcessCDR(1,14692856,1,1,2) [2025-03-16 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692856', 'tblTempUsageDetail_20' ) start [2025-03-16 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692856', 'tblTempUsageDetail_20' ) end [2025-03-16 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:25:21] Production.INFO: ==28360== Releasing lock... [2025-03-16 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-16 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:26:05 [end_date_ymd] => 2025-03-16 10:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:26:05' and `end` < '2025-03-16 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-03-16 10:26:17] Production.INFO: count ==244 [2025-03-16 10:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:26:05 - End Time 2025-03-16 10:26:05 [2025-03-16 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692861', 'tblTempUsageDetail_20' ) start [2025-03-16 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692861', 'tblTempUsageDetail_20' ) end [2025-03-16 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692861', 'tblTempVendorCDR_20' ) start [2025-03-16 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692861', 'tblTempVendorCDR_20' ) end [2025-03-16 10:26:17] Production.INFO: ProcessCDR(1,14692861,1,1,2) [2025-03-16 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692861', 'tblTempUsageDetail_20' ) start [2025-03-16 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692861', 'tblTempUsageDetail_20' ) end [2025-03-16 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:26:22] Production.INFO: ==28433== Releasing lock... [2025-03-16 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:26:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:27:05 [end_date_ymd] => 2025-03-16 10:27:05 [RateCDR] => 1 ) [2025-03-16 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:27:05' and `end` < '2025-03-16 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:27:18] Production.INFO: count ==244 [2025-03-16 10:27:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:27:05 - End Time 2025-03-16 10:27:05 [2025-03-16 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692864', 'tblTempUsageDetail_20' ) start [2025-03-16 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692864', 'tblTempUsageDetail_20' ) end [2025-03-16 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692864', 'tblTempVendorCDR_20' ) start [2025-03-16 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692864', 'tblTempVendorCDR_20' ) end [2025-03-16 10:27:18] Production.INFO: ProcessCDR(1,14692864,1,1,2) [2025-03-16 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692864', 'tblTempUsageDetail_20' ) start [2025-03-16 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692864', 'tblTempUsageDetail_20' ) end [2025-03-16 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:27:21] Production.INFO: ==28506== Releasing lock... [2025-03-16 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:28:05 [end_date_ymd] => 2025-03-16 10:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:28:05' and `end` < '2025-03-16 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-03-16 10:28:17] Production.INFO: count ==244 [2025-03-16 10:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:28:05 - End Time 2025-03-16 10:28:05 [2025-03-16 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692871', 'tblTempUsageDetail_20' ) start [2025-03-16 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692871', 'tblTempUsageDetail_20' ) end [2025-03-16 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692871', 'tblTempVendorCDR_20' ) start [2025-03-16 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692871', 'tblTempVendorCDR_20' ) end [2025-03-16 10:28:17] Production.INFO: ProcessCDR(1,14692871,1,1,2) [2025-03-16 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692871', 'tblTempUsageDetail_20' ) start [2025-03-16 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692871', 'tblTempUsageDetail_20' ) end [2025-03-16 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:28:21] Production.INFO: ==28580== Releasing lock... [2025-03-16 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:29:05 [end_date_ymd] => 2025-03-16 10:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:29:05' and `end` < '2025-03-16 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-03-16 10:29:18] Production.INFO: count ==245 [2025-03-16 10:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:29:05 - End Time 2025-03-16 10:29:05 [2025-03-16 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692876', 'tblTempUsageDetail_20' ) start [2025-03-16 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692876', 'tblTempUsageDetail_20' ) end [2025-03-16 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692876', 'tblTempVendorCDR_20' ) start [2025-03-16 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692876', 'tblTempVendorCDR_20' ) end [2025-03-16 10:29:18] Production.INFO: ProcessCDR(1,14692876,1,1,2) [2025-03-16 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692876', 'tblTempUsageDetail_20' ) start [2025-03-16 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692876', 'tblTempUsageDetail_20' ) end [2025-03-16 10:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:29:22] Production.INFO: ==28651== Releasing lock... [2025-03-16 10:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:30:07 [end_date_ymd] => 2025-03-16 10:30:07 [RateCDR] => 1 ) [2025-03-16 10: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-03-16 07:30:07' and `end` < '2025-03-16 10: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-03-16 10:30:19] Production.INFO: count ==258 [2025-03-16 10:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 07:30:07 - End Time 2025-03-16 10:30:07 [2025-03-16 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692882', 'tblTempUsageDetail_20' ) start [2025-03-16 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692882', 'tblTempUsageDetail_20' ) end [2025-03-16 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692882', 'tblTempVendorCDR_20' ) start [2025-03-16 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692882', 'tblTempVendorCDR_20' ) end [2025-03-16 10:30:19] Production.INFO: ProcessCDR(1,14692882,1,1,2) [2025-03-16 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692882', 'tblTempUsageDetail_20' ) start [2025-03-16 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692882', 'tblTempUsageDetail_20' ) end [2025-03-16 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:30:22] Production.INFO: ==28729== Releasing lock... [2025-03-16 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:31:05 [end_date_ymd] => 2025-03-16 10:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:31:05' and `end` < '2025-03-16 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-03-16 10:31:17] Production.INFO: count ==265 [2025-03-16 10:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:31:05 - End Time 2025-03-16 10:31:05 [2025-03-16 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692887', 'tblTempUsageDetail_20' ) start [2025-03-16 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692887', 'tblTempUsageDetail_20' ) end [2025-03-16 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692887', 'tblTempVendorCDR_20' ) start [2025-03-16 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692887', 'tblTempVendorCDR_20' ) end [2025-03-16 10:31:17] Production.INFO: ProcessCDR(1,14692887,1,1,2) [2025-03-16 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692887', 'tblTempUsageDetail_20' ) start [2025-03-16 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692887', 'tblTempUsageDetail_20' ) end [2025-03-16 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:31:22] Production.INFO: ==28806== Releasing lock... [2025-03-16 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:31:22] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:32:05 [end_date_ymd] => 2025-03-16 10:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:32:05' and `end` < '2025-03-16 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-03-16 10:32:17] Production.INFO: count ==265 [2025-03-16 10:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:32:05 - End Time 2025-03-16 10:32:05 [2025-03-16 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692892', 'tblTempUsageDetail_20' ) start [2025-03-16 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692892', 'tblTempUsageDetail_20' ) end [2025-03-16 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692892', 'tblTempVendorCDR_20' ) start [2025-03-16 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692892', 'tblTempVendorCDR_20' ) end [2025-03-16 10:32:17] Production.INFO: ProcessCDR(1,14692892,1,1,2) [2025-03-16 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692892', 'tblTempUsageDetail_20' ) start [2025-03-16 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692892', 'tblTempUsageDetail_20' ) end [2025-03-16 10:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:32:20] Production.INFO: ==28888== Releasing lock... [2025-03-16 10:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:32:20] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:33:05 [end_date_ymd] => 2025-03-16 10:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:33:05' and `end` < '2025-03-16 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-03-16 10:33:17] Production.INFO: count ==265 [2025-03-16 10:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:33:05 - End Time 2025-03-16 10:33:05 [2025-03-16 10:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692897', 'tblTempUsageDetail_20' ) start [2025-03-16 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692897', 'tblTempUsageDetail_20' ) end [2025-03-16 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692897', 'tblTempVendorCDR_20' ) start [2025-03-16 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692897', 'tblTempVendorCDR_20' ) end [2025-03-16 10:33:17] Production.INFO: ProcessCDR(1,14692897,1,1,2) [2025-03-16 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692897', 'tblTempUsageDetail_20' ) start [2025-03-16 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692897', 'tblTempUsageDetail_20' ) end [2025-03-16 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:33:21] Production.INFO: ==28970== Releasing lock... [2025-03-16 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:33:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:34:04 [end_date_ymd] => 2025-03-16 10:34:04 [RateCDR] => 1 ) [2025-03-16 10: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-03-16 07:34:04' and `end` < '2025-03-16 10: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-03-16 10:34:17] Production.INFO: count ==265 [2025-03-16 10:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:34:04 - End Time 2025-03-16 10:34:04 [2025-03-16 10:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692902', 'tblTempUsageDetail_20' ) start [2025-03-16 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692902', 'tblTempUsageDetail_20' ) end [2025-03-16 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692902', 'tblTempVendorCDR_20' ) start [2025-03-16 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692902', 'tblTempVendorCDR_20' ) end [2025-03-16 10:34:17] Production.INFO: ProcessCDR(1,14692902,1,1,2) [2025-03-16 10:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692902', 'tblTempUsageDetail_20' ) start [2025-03-16 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692902', 'tblTempUsageDetail_20' ) end [2025-03-16 10:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:34:20] Production.INFO: ==29063== Releasing lock... [2025-03-16 10:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:34:20] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:35:05 [end_date_ymd] => 2025-03-16 10:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:35:05' and `end` < '2025-03-16 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-03-16 10:35:17] Production.INFO: count ==266 [2025-03-16 10:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:35:05 - End Time 2025-03-16 10:35:05 [2025-03-16 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692907', 'tblTempUsageDetail_20' ) start [2025-03-16 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692907', 'tblTempUsageDetail_20' ) end [2025-03-16 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692907', 'tblTempVendorCDR_20' ) start [2025-03-16 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692907', 'tblTempVendorCDR_20' ) end [2025-03-16 10:35:17] Production.INFO: ProcessCDR(1,14692907,1,1,2) [2025-03-16 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692907', 'tblTempUsageDetail_20' ) start [2025-03-16 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692907', 'tblTempUsageDetail_20' ) end [2025-03-16 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:35:22] Production.INFO: ==29149== Releasing lock... [2025-03-16 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:35:22] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:36:06 [end_date_ymd] => 2025-03-16 10:36:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:36:06' and `end` < '2025-03-16 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-03-16 10:36:18] Production.INFO: count ==266 [2025-03-16 10:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:36:06 - End Time 2025-03-16 10:36:06 [2025-03-16 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692912', 'tblTempUsageDetail_20' ) start [2025-03-16 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692912', 'tblTempUsageDetail_20' ) end [2025-03-16 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692912', 'tblTempVendorCDR_20' ) start [2025-03-16 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692912', 'tblTempVendorCDR_20' ) end [2025-03-16 10:36:18] Production.INFO: ProcessCDR(1,14692912,1,1,2) [2025-03-16 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692912', 'tblTempUsageDetail_20' ) start [2025-03-16 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692912', 'tblTempUsageDetail_20' ) end [2025-03-16 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:36:21] Production.INFO: ==29234== Releasing lock... [2025-03-16 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:36:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:37:05 [end_date_ymd] => 2025-03-16 10:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:37:05' and `end` < '2025-03-16 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-03-16 10:37:17] Production.INFO: count ==267 [2025-03-16 10:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:37:05 - End Time 2025-03-16 10:37:05 [2025-03-16 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692917', 'tblTempUsageDetail_20' ) start [2025-03-16 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692917', 'tblTempUsageDetail_20' ) end [2025-03-16 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692917', 'tblTempVendorCDR_20' ) start [2025-03-16 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692917', 'tblTempVendorCDR_20' ) end [2025-03-16 10:37:17] Production.INFO: ProcessCDR(1,14692917,1,1,2) [2025-03-16 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692917', 'tblTempUsageDetail_20' ) start [2025-03-16 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692917', 'tblTempUsageDetail_20' ) end [2025-03-16 10:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:37:22] Production.INFO: ==29322== Releasing lock... [2025-03-16 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:38:06 [end_date_ymd] => 2025-03-16 10:38:06 [RateCDR] => 1 ) [2025-03-16 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:38:06' and `end` < '2025-03-16 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:38:18] Production.INFO: count ==270 [2025-03-16 10:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:38:06 - End Time 2025-03-16 10:38:06 [2025-03-16 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692922', 'tblTempUsageDetail_20' ) start [2025-03-16 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692922', 'tblTempUsageDetail_20' ) end [2025-03-16 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692922', 'tblTempVendorCDR_20' ) start [2025-03-16 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692922', 'tblTempVendorCDR_20' ) end [2025-03-16 10:38:18] Production.INFO: ProcessCDR(1,14692922,1,1,2) [2025-03-16 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692922', 'tblTempUsageDetail_20' ) start [2025-03-16 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692922', 'tblTempUsageDetail_20' ) end [2025-03-16 10:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:38:23] Production.INFO: ==29446== Releasing lock... [2025-03-16 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:38:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:39:05 [end_date_ymd] => 2025-03-16 10:39:05 [RateCDR] => 1 ) [2025-03-16 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:39:05' and `end` < '2025-03-16 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:39:17] Production.INFO: count ==272 [2025-03-16 10:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:39:05 - End Time 2025-03-16 10:39:05 [2025-03-16 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692927', 'tblTempUsageDetail_20' ) start [2025-03-16 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692927', 'tblTempUsageDetail_20' ) end [2025-03-16 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692927', 'tblTempVendorCDR_20' ) start [2025-03-16 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692927', 'tblTempVendorCDR_20' ) end [2025-03-16 10:39:17] Production.INFO: ProcessCDR(1,14692927,1,1,2) [2025-03-16 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692927', 'tblTempUsageDetail_20' ) start [2025-03-16 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692927', 'tblTempUsageDetail_20' ) end [2025-03-16 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:39:22] Production.INFO: ==29528== Releasing lock... [2025-03-16 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:39:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:40:06 [end_date_ymd] => 2025-03-16 10:40:06 [RateCDR] => 1 ) [2025-03-16 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:40:06' and `end` < '2025-03-16 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:40:18] Production.INFO: count ==282 [2025-03-16 10:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:40:06 - End Time 2025-03-16 10:40:06 [2025-03-16 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692932', 'tblTempUsageDetail_20' ) start [2025-03-16 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692932', 'tblTempUsageDetail_20' ) end [2025-03-16 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692932', 'tblTempVendorCDR_20' ) start [2025-03-16 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692932', 'tblTempVendorCDR_20' ) end [2025-03-16 10:40:18] Production.INFO: ProcessCDR(1,14692932,1,1,2) [2025-03-16 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692932', 'tblTempUsageDetail_20' ) start [2025-03-16 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692932', 'tblTempUsageDetail_20' ) end [2025-03-16 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:40:22] Production.INFO: ==29617== Releasing lock... [2025-03-16 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:41:05 [end_date_ymd] => 2025-03-16 10:41:05 [RateCDR] => 1 ) [2025-03-16 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:41:05' and `end` < '2025-03-16 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:41:17] Production.INFO: count ==291 [2025-03-16 10:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:41:05 - End Time 2025-03-16 10:41:05 [2025-03-16 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692938', 'tblTempUsageDetail_20' ) start [2025-03-16 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692938', 'tblTempUsageDetail_20' ) end [2025-03-16 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692938', 'tblTempVendorCDR_20' ) start [2025-03-16 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692938', 'tblTempVendorCDR_20' ) end [2025-03-16 10:41:17] Production.INFO: ProcessCDR(1,14692938,1,1,2) [2025-03-16 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692938', 'tblTempUsageDetail_20' ) start [2025-03-16 10:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692938', 'tblTempUsageDetail_20' ) end [2025-03-16 10:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:41:20] Production.INFO: ==29708== Releasing lock... [2025-03-16 10:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:41:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:42:06 [end_date_ymd] => 2025-03-16 10:42:06 [RateCDR] => 1 ) [2025-03-16 10:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:42:06' and `end` < '2025-03-16 10:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:42:18] Production.INFO: count ==291 [2025-03-16 10:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:42:06 - End Time 2025-03-16 10:42:06 [2025-03-16 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692943', 'tblTempUsageDetail_20' ) start [2025-03-16 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692943', 'tblTempUsageDetail_20' ) end [2025-03-16 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692943', 'tblTempVendorCDR_20' ) start [2025-03-16 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692943', 'tblTempVendorCDR_20' ) end [2025-03-16 10:42:18] Production.INFO: ProcessCDR(1,14692943,1,1,2) [2025-03-16 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692943', 'tblTempUsageDetail_20' ) start [2025-03-16 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692943', 'tblTempUsageDetail_20' ) end [2025-03-16 10:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:42:21] Production.INFO: ==29795== Releasing lock... [2025-03-16 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:43:04 [end_date_ymd] => 2025-03-16 10:43:04 [RateCDR] => 1 ) [2025-03-16 10: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-03-16 07:43:04' and `end` < '2025-03-16 10: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-03-16 10:43:17] Production.INFO: count ==291 [2025-03-16 10:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:43:04 - End Time 2025-03-16 10:43:04 [2025-03-16 10:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692948', 'tblTempUsageDetail_20' ) start [2025-03-16 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692948', 'tblTempUsageDetail_20' ) end [2025-03-16 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692948', 'tblTempVendorCDR_20' ) start [2025-03-16 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692948', 'tblTempVendorCDR_20' ) end [2025-03-16 10:43:17] Production.INFO: ProcessCDR(1,14692948,1,1,2) [2025-03-16 10:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692948', 'tblTempUsageDetail_20' ) start [2025-03-16 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692948', 'tblTempUsageDetail_20' ) end [2025-03-16 10:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:43:20] Production.INFO: ==29879== Releasing lock... [2025-03-16 10:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:44:05 [end_date_ymd] => 2025-03-16 10:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:44:05' and `end` < '2025-03-16 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-03-16 10:44:18] Production.INFO: count ==292 [2025-03-16 10:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:44:05 - End Time 2025-03-16 10:44:05 [2025-03-16 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692953', 'tblTempUsageDetail_20' ) start [2025-03-16 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692953', 'tblTempUsageDetail_20' ) end [2025-03-16 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692953', 'tblTempVendorCDR_20' ) start [2025-03-16 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692953', 'tblTempVendorCDR_20' ) end [2025-03-16 10:44:18] Production.INFO: ProcessCDR(1,14692953,1,1,2) [2025-03-16 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692953', 'tblTempUsageDetail_20' ) start [2025-03-16 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692953', 'tblTempUsageDetail_20' ) end [2025-03-16 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:44:21] Production.INFO: ==29966== Releasing lock... [2025-03-16 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:45:05 [end_date_ymd] => 2025-03-16 10:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:45:05' and `end` < '2025-03-16 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-03-16 10:45:17] Production.INFO: count ==292 [2025-03-16 10:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:45:05 - End Time 2025-03-16 10:45:05 [2025-03-16 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692958', 'tblTempUsageDetail_20' ) start [2025-03-16 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692958', 'tblTempUsageDetail_20' ) end [2025-03-16 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692958', 'tblTempVendorCDR_20' ) start [2025-03-16 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692958', 'tblTempVendorCDR_20' ) end [2025-03-16 10:45:17] Production.INFO: ProcessCDR(1,14692958,1,1,2) [2025-03-16 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692958', 'tblTempUsageDetail_20' ) start [2025-03-16 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692958', 'tblTempUsageDetail_20' ) end [2025-03-16 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:45:21] Production.INFO: ==30050== Releasing lock... [2025-03-16 10:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:46:05 [end_date_ymd] => 2025-03-16 10:46:05 [RateCDR] => 1 ) [2025-03-16 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:46:05' and `end` < '2025-03-16 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:46:18] Production.INFO: count ==293 [2025-03-16 10:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:46:05 - End Time 2025-03-16 10:46:05 [2025-03-16 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692963', 'tblTempUsageDetail_20' ) start [2025-03-16 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692963', 'tblTempUsageDetail_20' ) end [2025-03-16 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692963', 'tblTempVendorCDR_20' ) start [2025-03-16 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692963', 'tblTempVendorCDR_20' ) end [2025-03-16 10:46:18] Production.INFO: ProcessCDR(1,14692963,1,1,2) [2025-03-16 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692963', 'tblTempUsageDetail_20' ) start [2025-03-16 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692963', 'tblTempUsageDetail_20' ) end [2025-03-16 10:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:46:23] Production.INFO: ==30136== Releasing lock... [2025-03-16 10:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:46:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:47:05 [end_date_ymd] => 2025-03-16 10:47:05 [RateCDR] => 1 ) [2025-03-16 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:47:05' and `end` < '2025-03-16 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:47:17] Production.INFO: count ==293 [2025-03-16 10:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:47:05 - End Time 2025-03-16 10:47:05 [2025-03-16 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692968', 'tblTempUsageDetail_20' ) start [2025-03-16 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692968', 'tblTempUsageDetail_20' ) end [2025-03-16 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692968', 'tblTempVendorCDR_20' ) start [2025-03-16 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692968', 'tblTempVendorCDR_20' ) end [2025-03-16 10:47:17] Production.INFO: ProcessCDR(1,14692968,1,1,2) [2025-03-16 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692968', 'tblTempUsageDetail_20' ) start [2025-03-16 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692968', 'tblTempUsageDetail_20' ) end [2025-03-16 10:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:47:20] Production.INFO: ==30221== Releasing lock... [2025-03-16 10:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:47:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:48:06 [end_date_ymd] => 2025-03-16 10:48:06 [RateCDR] => 1 ) [2025-03-16 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:48:06' and `end` < '2025-03-16 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:48:18] Production.INFO: count ==293 [2025-03-16 10:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:48:06 - End Time 2025-03-16 10:48:06 [2025-03-16 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692973', 'tblTempUsageDetail_20' ) start [2025-03-16 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692973', 'tblTempUsageDetail_20' ) end [2025-03-16 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692973', 'tblTempVendorCDR_20' ) start [2025-03-16 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692973', 'tblTempVendorCDR_20' ) end [2025-03-16 10:48:18] Production.INFO: ProcessCDR(1,14692973,1,1,2) [2025-03-16 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692973', 'tblTempUsageDetail_20' ) start [2025-03-16 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692973', 'tblTempUsageDetail_20' ) end [2025-03-16 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:48:22] Production.INFO: ==30308== Releasing lock... [2025-03-16 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:49:05 [end_date_ymd] => 2025-03-16 10:49:05 [RateCDR] => 1 ) [2025-03-16 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:49:05' and `end` < '2025-03-16 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:49:17] Production.INFO: count ==293 [2025-03-16 10:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:49:05 - End Time 2025-03-16 10:49:05 [2025-03-16 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692978', 'tblTempUsageDetail_20' ) start [2025-03-16 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692978', 'tblTempUsageDetail_20' ) end [2025-03-16 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692978', 'tblTempVendorCDR_20' ) start [2025-03-16 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692978', 'tblTempVendorCDR_20' ) end [2025-03-16 10:49:17] Production.INFO: ProcessCDR(1,14692978,1,1,2) [2025-03-16 10:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692978', 'tblTempUsageDetail_20' ) start [2025-03-16 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692978', 'tblTempUsageDetail_20' ) end [2025-03-16 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:49:21] Production.INFO: ==30390== Releasing lock... [2025-03-16 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:50:06 [end_date_ymd] => 2025-03-16 10:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:50:06' and `end` < '2025-03-16 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-03-16 10:50:18] Production.INFO: count ==304 [2025-03-16 10:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:50:06 - End Time 2025-03-16 10:50:06 [2025-03-16 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692984', 'tblTempUsageDetail_20' ) start [2025-03-16 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692984', 'tblTempUsageDetail_20' ) end [2025-03-16 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692984', 'tblTempVendorCDR_20' ) start [2025-03-16 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692984', 'tblTempVendorCDR_20' ) end [2025-03-16 10:50:18] Production.INFO: ProcessCDR(1,14692984,1,1,2) [2025-03-16 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692984', 'tblTempUsageDetail_20' ) start [2025-03-16 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692984', 'tblTempUsageDetail_20' ) end [2025-03-16 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:50:22] Production.INFO: ==30468== Releasing lock... [2025-03-16 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:50:22] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:51:05 [end_date_ymd] => 2025-03-16 10:51:05 [RateCDR] => 1 ) [2025-03-16 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:51:05' and `end` < '2025-03-16 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:51:17] Production.INFO: count ==314 [2025-03-16 10:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:51:05 - End Time 2025-03-16 10:51:05 [2025-03-16 10:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692989', 'tblTempUsageDetail_20' ) start [2025-03-16 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692989', 'tblTempUsageDetail_20' ) end [2025-03-16 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692989', 'tblTempVendorCDR_20' ) start [2025-03-16 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692989', 'tblTempVendorCDR_20' ) end [2025-03-16 10:51:17] Production.INFO: ProcessCDR(1,14692989,1,1,2) [2025-03-16 10:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692989', 'tblTempUsageDetail_20' ) start [2025-03-16 10:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692989', 'tblTempUsageDetail_20' ) end [2025-03-16 10:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:51:20] Production.INFO: ==30545== Releasing lock... [2025-03-16 10:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:51:20] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:52:05 [end_date_ymd] => 2025-03-16 10:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:52:05' and `end` < '2025-03-16 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-03-16 10:52:17] Production.INFO: count ==314 [2025-03-16 10:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:52:05 - End Time 2025-03-16 10:52:05 [2025-03-16 10:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692994', 'tblTempUsageDetail_20' ) start [2025-03-16 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692994', 'tblTempUsageDetail_20' ) end [2025-03-16 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692994', 'tblTempVendorCDR_20' ) start [2025-03-16 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692994', 'tblTempVendorCDR_20' ) end [2025-03-16 10:52:17] Production.INFO: ProcessCDR(1,14692994,1,1,2) [2025-03-16 10:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692994', 'tblTempUsageDetail_20' ) start [2025-03-16 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692994', 'tblTempUsageDetail_20' ) end [2025-03-16 10:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:52:21] Production.INFO: ==30614== Releasing lock... [2025-03-16 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:52:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:53:05 [end_date_ymd] => 2025-03-16 10:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:53:05' and `end` < '2025-03-16 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-03-16 10:53:17] Production.INFO: count ==314 [2025-03-16 10:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:53:05 - End Time 2025-03-16 10:53:05 [2025-03-16 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692999', 'tblTempUsageDetail_20' ) start [2025-03-16 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14692999', 'tblTempUsageDetail_20' ) end [2025-03-16 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692999', 'tblTempVendorCDR_20' ) start [2025-03-16 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14692999', 'tblTempVendorCDR_20' ) end [2025-03-16 10:53:17] Production.INFO: ProcessCDR(1,14692999,1,1,2) [2025-03-16 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14692999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14692999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14692999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14692999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692999', 'tblTempUsageDetail_20' ) start [2025-03-16 10:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14692999', 'tblTempUsageDetail_20' ) end [2025-03-16 10:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:53:20] Production.INFO: ==30692== Releasing lock... [2025-03-16 10:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:53:20] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:54:06 [end_date_ymd] => 2025-03-16 10:54:06 [RateCDR] => 1 ) [2025-03-16 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 07:54:06' and `end` < '2025-03-16 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 10:54:18] Production.INFO: count ==315 [2025-03-16 10:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 07:54:06 - End Time 2025-03-16 10:54:06 [2025-03-16 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693004', 'tblTempUsageDetail_20' ) start [2025-03-16 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693004', 'tblTempUsageDetail_20' ) end [2025-03-16 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693004', 'tblTempVendorCDR_20' ) start [2025-03-16 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693004', 'tblTempVendorCDR_20' ) end [2025-03-16 10:54:18] Production.INFO: ProcessCDR(1,14693004,1,1,2) [2025-03-16 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693004', 'tblTempUsageDetail_20' ) start [2025-03-16 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693004', 'tblTempUsageDetail_20' ) end [2025-03-16 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:54:21] Production.INFO: ==30807== Releasing lock... [2025-03-16 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:55:05 [end_date_ymd] => 2025-03-16 10:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:55:05' and `end` < '2025-03-16 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-03-16 10:55:17] Production.INFO: count ==317 [2025-03-16 10:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:55:05 - End Time 2025-03-16 10:55:05 [2025-03-16 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693009', 'tblTempUsageDetail_20' ) start [2025-03-16 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693009', 'tblTempUsageDetail_20' ) end [2025-03-16 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693009', 'tblTempVendorCDR_20' ) start [2025-03-16 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693009', 'tblTempVendorCDR_20' ) end [2025-03-16 10:55:17] Production.INFO: ProcessCDR(1,14693009,1,1,2) [2025-03-16 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693009', 'tblTempUsageDetail_20' ) start [2025-03-16 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693009', 'tblTempUsageDetail_20' ) end [2025-03-16 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:55:21] Production.INFO: ==30881== Releasing lock... [2025-03-16 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:55:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:56:05 [end_date_ymd] => 2025-03-16 10:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:56:05' and `end` < '2025-03-16 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-03-16 10:56:17] Production.INFO: count ==317 [2025-03-16 10:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:56:05 - End Time 2025-03-16 10:56:05 [2025-03-16 10:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693014', 'tblTempUsageDetail_20' ) start [2025-03-16 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693014', 'tblTempUsageDetail_20' ) end [2025-03-16 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693014', 'tblTempVendorCDR_20' ) start [2025-03-16 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693014', 'tblTempVendorCDR_20' ) end [2025-03-16 10:56:17] Production.INFO: ProcessCDR(1,14693014,1,1,2) [2025-03-16 10:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693014', 'tblTempUsageDetail_20' ) start [2025-03-16 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693014', 'tblTempUsageDetail_20' ) end [2025-03-16 10:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:56:21] Production.INFO: ==30953== Releasing lock... [2025-03-16 10:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:56:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:57:05 [end_date_ymd] => 2025-03-16 10:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:57:05' and `end` < '2025-03-16 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-03-16 10:57:17] Production.INFO: count ==324 [2025-03-16 10:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:57:05 - End Time 2025-03-16 10:57:05 [2025-03-16 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693019', 'tblTempUsageDetail_20' ) start [2025-03-16 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693019', 'tblTempUsageDetail_20' ) end [2025-03-16 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693019', 'tblTempVendorCDR_20' ) start [2025-03-16 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693019', 'tblTempVendorCDR_20' ) end [2025-03-16 10:57:17] Production.INFO: ProcessCDR(1,14693019,1,1,2) [2025-03-16 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693019', 'tblTempUsageDetail_20' ) start [2025-03-16 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693019', 'tblTempUsageDetail_20' ) end [2025-03-16 10:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:57:21] Production.INFO: ==31029== Releasing lock... [2025-03-16 10:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:58:05 [end_date_ymd] => 2025-03-16 10:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:58:05' and `end` < '2025-03-16 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-03-16 10:58:17] Production.INFO: count ==324 [2025-03-16 10:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:58:05 - End Time 2025-03-16 10:58:05 [2025-03-16 10:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693024', 'tblTempUsageDetail_20' ) start [2025-03-16 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693024', 'tblTempUsageDetail_20' ) end [2025-03-16 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693024', 'tblTempVendorCDR_20' ) start [2025-03-16 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693024', 'tblTempVendorCDR_20' ) end [2025-03-16 10:58:17] Production.INFO: ProcessCDR(1,14693024,1,1,2) [2025-03-16 10:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693024', 'tblTempUsageDetail_20' ) start [2025-03-16 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693024', 'tblTempUsageDetail_20' ) end [2025-03-16 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:58:21] Production.INFO: ==31100== Releasing lock... [2025-03-16 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-16 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 07:59:05 [end_date_ymd] => 2025-03-16 10:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 07:59:05' and `end` < '2025-03-16 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-03-16 10:59:17] Production.INFO: count ==325 [2025-03-16 10:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 07:59:05 - End Time 2025-03-16 10:59:05 [2025-03-16 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693029', 'tblTempUsageDetail_20' ) start [2025-03-16 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693029', 'tblTempUsageDetail_20' ) end [2025-03-16 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693029', 'tblTempVendorCDR_20' ) start [2025-03-16 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693029', 'tblTempVendorCDR_20' ) end [2025-03-16 10:59:17] Production.INFO: ProcessCDR(1,14693029,1,1,2) [2025-03-16 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693029', 'tblTempUsageDetail_20' ) start [2025-03-16 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693029', 'tblTempUsageDetail_20' ) end [2025-03-16 10:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 10:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 10:59:22] Production.INFO: ==31173== Releasing lock... [2025-03-16 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 10:59:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:00:06 [end_date_ymd] => 2025-03-16 11:00:06 [RateCDR] => 1 ) [2025-03-16 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:00:06' and `end` < '2025-03-16 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:00:18] Production.INFO: count ==335 [2025-03-16 11:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:00:06 - End Time 2025-03-16 11:00:06 [2025-03-16 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693034', 'tblTempUsageDetail_20' ) start [2025-03-16 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693034', 'tblTempUsageDetail_20' ) end [2025-03-16 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693034', 'tblTempVendorCDR_20' ) start [2025-03-16 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693034', 'tblTempVendorCDR_20' ) end [2025-03-16 11:00:18] Production.INFO: ProcessCDR(1,14693034,1,1,2) [2025-03-16 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693034', 'tblTempUsageDetail_20' ) start [2025-03-16 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693034', 'tblTempUsageDetail_20' ) end [2025-03-16 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:00:23] Production.INFO: ==31256== Releasing lock... [2025-03-16 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:01:06 [end_date_ymd] => 2025-03-16 11:01:06 [RateCDR] => 1 ) [2025-03-16 11: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-03-16 08:01:06' and `end` < '2025-03-16 11: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-03-16 11:01:18] Production.INFO: count ==341 [2025-03-16 11:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:01:06 - End Time 2025-03-16 11:01:06 [2025-03-16 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693040', 'tblTempUsageDetail_20' ) start [2025-03-16 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693040', 'tblTempUsageDetail_20' ) end [2025-03-16 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693040', 'tblTempVendorCDR_20' ) start [2025-03-16 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693040', 'tblTempVendorCDR_20' ) end [2025-03-16 11:01:18] Production.INFO: ProcessCDR(1,14693040,1,1,2) [2025-03-16 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693040', 'tblTempUsageDetail_20' ) start [2025-03-16 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693040', 'tblTempUsageDetail_20' ) end [2025-03-16 11:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:01:21] Production.INFO: ==31428== Releasing lock... [2025-03-16 11:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:02:05 [end_date_ymd] => 2025-03-16 11:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:02:05' and `end` < '2025-03-16 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-03-16 11:02:17] Production.INFO: count ==343 [2025-03-16 11:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:02:05 - End Time 2025-03-16 11:02:05 [2025-03-16 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693045', 'tblTempUsageDetail_20' ) start [2025-03-16 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693045', 'tblTempUsageDetail_20' ) end [2025-03-16 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693045', 'tblTempVendorCDR_20' ) start [2025-03-16 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693045', 'tblTempVendorCDR_20' ) end [2025-03-16 11:02:18] Production.INFO: ProcessCDR(1,14693045,1,1,2) [2025-03-16 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693045', 'tblTempUsageDetail_20' ) start [2025-03-16 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693045', 'tblTempUsageDetail_20' ) end [2025-03-16 11:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:02:23] Production.INFO: ==31498== Releasing lock... [2025-03-16 11:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:03:06 [end_date_ymd] => 2025-03-16 11:03:06 [RateCDR] => 1 ) [2025-03-16 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:03:06' and `end` < '2025-03-16 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:03:18] Production.INFO: count ==343 [2025-03-16 11:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:03:06 - End Time 2025-03-16 11:03:06 [2025-03-16 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693050', 'tblTempUsageDetail_20' ) start [2025-03-16 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693050', 'tblTempUsageDetail_20' ) end [2025-03-16 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693050', 'tblTempVendorCDR_20' ) start [2025-03-16 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693050', 'tblTempVendorCDR_20' ) end [2025-03-16 11:03:18] Production.INFO: ProcessCDR(1,14693050,1,1,2) [2025-03-16 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693050', 'tblTempUsageDetail_20' ) start [2025-03-16 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693050', 'tblTempUsageDetail_20' ) end [2025-03-16 11:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:03:22] Production.INFO: ==31571== Releasing lock... [2025-03-16 11:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:04:05 [end_date_ymd] => 2025-03-16 11:04:05 [RateCDR] => 1 ) [2025-03-16 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:04:05' and `end` < '2025-03-16 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:04:17] Production.INFO: count ==347 [2025-03-16 11:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:04:05 - End Time 2025-03-16 11:04:05 [2025-03-16 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693055', 'tblTempUsageDetail_20' ) start [2025-03-16 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693055', 'tblTempUsageDetail_20' ) end [2025-03-16 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693055', 'tblTempVendorCDR_20' ) start [2025-03-16 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693055', 'tblTempVendorCDR_20' ) end [2025-03-16 11:04:17] Production.INFO: ProcessCDR(1,14693055,1,1,2) [2025-03-16 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693055', 'tblTempUsageDetail_20' ) start [2025-03-16 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693055', 'tblTempUsageDetail_20' ) end [2025-03-16 11:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:04:21] Production.INFO: ==31647== Releasing lock... [2025-03-16 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:04:21] Production.INFO: 31 MB #Memory Used# [2025-03-16 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:05:05 [end_date_ymd] => 2025-03-16 11:05:05 [RateCDR] => 1 ) [2025-03-16 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:05:05' and `end` < '2025-03-16 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:05:17] Production.INFO: count ==349 [2025-03-16 11:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:05:05 - End Time 2025-03-16 11:05:05 [2025-03-16 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693060', 'tblTempUsageDetail_20' ) start [2025-03-16 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693060', 'tblTempUsageDetail_20' ) end [2025-03-16 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693060', 'tblTempVendorCDR_20' ) start [2025-03-16 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693060', 'tblTempVendorCDR_20' ) end [2025-03-16 11:05:17] Production.INFO: ProcessCDR(1,14693060,1,1,2) [2025-03-16 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693060', 'tblTempUsageDetail_20' ) start [2025-03-16 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693060', 'tblTempUsageDetail_20' ) end [2025-03-16 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:05:23] Production.INFO: ==31796== Releasing lock... [2025-03-16 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:05:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:06:05 [end_date_ymd] => 2025-03-16 11:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:06:05' and `end` < '2025-03-16 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-03-16 11:06:17] Production.INFO: count ==349 [2025-03-16 11:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:06:05 - End Time 2025-03-16 11:06:05 [2025-03-16 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693065', 'tblTempUsageDetail_20' ) start [2025-03-16 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693065', 'tblTempUsageDetail_20' ) end [2025-03-16 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693065', 'tblTempVendorCDR_20' ) start [2025-03-16 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693065', 'tblTempVendorCDR_20' ) end [2025-03-16 11:06:17] Production.INFO: ProcessCDR(1,14693065,1,1,2) [2025-03-16 11:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693065', 'tblTempUsageDetail_20' ) start [2025-03-16 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693065', 'tblTempUsageDetail_20' ) end [2025-03-16 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:06:21] Production.INFO: ==31866== Releasing lock... [2025-03-16 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:07:06 [end_date_ymd] => 2025-03-16 11:07:06 [RateCDR] => 1 ) [2025-03-16 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:07:06' and `end` < '2025-03-16 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:07:18] Production.INFO: count ==350 [2025-03-16 11:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:07:06 - End Time 2025-03-16 11:07:06 [2025-03-16 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693070', 'tblTempUsageDetail_20' ) start [2025-03-16 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693070', 'tblTempUsageDetail_20' ) end [2025-03-16 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693070', 'tblTempVendorCDR_20' ) start [2025-03-16 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693070', 'tblTempVendorCDR_20' ) end [2025-03-16 11:07:18] Production.INFO: ProcessCDR(1,14693070,1,1,2) [2025-03-16 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693070', 'tblTempUsageDetail_20' ) start [2025-03-16 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693070', 'tblTempUsageDetail_20' ) end [2025-03-16 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:07:23] Production.INFO: ==31943== Releasing lock... [2025-03-16 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:07:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:08:06 [end_date_ymd] => 2025-03-16 11:08:06 [RateCDR] => 1 ) [2025-03-16 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:08:06' and `end` < '2025-03-16 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:08:18] Production.INFO: count ==346 [2025-03-16 11:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:08:06 - End Time 2025-03-16 11:08:06 [2025-03-16 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693075', 'tblTempUsageDetail_20' ) start [2025-03-16 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693075', 'tblTempUsageDetail_20' ) end [2025-03-16 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693075', 'tblTempVendorCDR_20' ) start [2025-03-16 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693075', 'tblTempVendorCDR_20' ) end [2025-03-16 11:08:18] Production.INFO: ProcessCDR(1,14693075,1,1,2) [2025-03-16 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693075', 'tblTempUsageDetail_20' ) start [2025-03-16 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693075', 'tblTempUsageDetail_20' ) end [2025-03-16 11:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:08:22] Production.INFO: ==32095== Releasing lock... [2025-03-16 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:09:05 [end_date_ymd] => 2025-03-16 11:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:09:05' and `end` < '2025-03-16 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-03-16 11:09:17] Production.INFO: count ==350 [2025-03-16 11:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:09:05 - End Time 2025-03-16 11:09:05 [2025-03-16 11:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693080', 'tblTempUsageDetail_20' ) start [2025-03-16 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693080', 'tblTempUsageDetail_20' ) end [2025-03-16 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693080', 'tblTempVendorCDR_20' ) start [2025-03-16 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693080', 'tblTempVendorCDR_20' ) end [2025-03-16 11:09:17] Production.INFO: ProcessCDR(1,14693080,1,1,2) [2025-03-16 11:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693080', 'tblTempUsageDetail_20' ) start [2025-03-16 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693080', 'tblTempUsageDetail_20' ) end [2025-03-16 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:09:23] Production.INFO: ==32209== Releasing lock... [2025-03-16 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:09:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:10:05 [end_date_ymd] => 2025-03-16 11:10:05 [RateCDR] => 1 ) [2025-03-16 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:10:05' and `end` < '2025-03-16 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:10:17] Production.INFO: count ==359 [2025-03-16 11:10:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:10:05 - End Time 2025-03-16 11:10:05 [2025-03-16 11:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693085', 'tblTempUsageDetail_20' ) start [2025-03-16 11:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693085', 'tblTempUsageDetail_20' ) end [2025-03-16 11:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693085', 'tblTempVendorCDR_20' ) start [2025-03-16 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693085', 'tblTempVendorCDR_20' ) end [2025-03-16 11:10:18] Production.INFO: ProcessCDR(1,14693085,1,1,2) [2025-03-16 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693085', 'tblTempUsageDetail_20' ) start [2025-03-16 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693085', 'tblTempUsageDetail_20' ) end [2025-03-16 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:10:22] Production.INFO: ==32285== Releasing lock... [2025-03-16 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:11:06 [end_date_ymd] => 2025-03-16 11:11:06 [RateCDR] => 1 ) [2025-03-16 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:11:06' and `end` < '2025-03-16 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:11:18] Production.INFO: count ==367 [2025-03-16 11:11:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:11:06 - End Time 2025-03-16 11:11:06 [2025-03-16 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693091', 'tblTempUsageDetail_20' ) start [2025-03-16 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693091', 'tblTempUsageDetail_20' ) end [2025-03-16 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693091', 'tblTempVendorCDR_20' ) start [2025-03-16 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693091', 'tblTempVendorCDR_20' ) end [2025-03-16 11:11:18] Production.INFO: ProcessCDR(1,14693091,1,1,2) [2025-03-16 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693091', 'tblTempUsageDetail_20' ) start [2025-03-16 11:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693091', 'tblTempUsageDetail_20' ) end [2025-03-16 11:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:11:21] Production.INFO: ==32363== Releasing lock... [2025-03-16 11:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:12:05 [end_date_ymd] => 2025-03-16 11:12:05 [RateCDR] => 1 ) [2025-03-16 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:12:05' and `end` < '2025-03-16 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:12:17] Production.INFO: count ==371 [2025-03-16 11:12:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:12:05 - End Time 2025-03-16 11:12:05 [2025-03-16 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693096', 'tblTempUsageDetail_20' ) start [2025-03-16 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693096', 'tblTempUsageDetail_20' ) end [2025-03-16 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693096', 'tblTempVendorCDR_20' ) start [2025-03-16 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693096', 'tblTempVendorCDR_20' ) end [2025-03-16 11:12:17] Production.INFO: ProcessCDR(1,14693096,1,1,2) [2025-03-16 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693096', 'tblTempUsageDetail_20' ) start [2025-03-16 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693096', 'tblTempUsageDetail_20' ) end [2025-03-16 11:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:12:21] Production.INFO: ==32515== Releasing lock... [2025-03-16 11:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:13:06 [end_date_ymd] => 2025-03-16 11:13:06 [RateCDR] => 1 ) [2025-03-16 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:13:06' and `end` < '2025-03-16 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:13:18] Production.INFO: count ==368 [2025-03-16 11:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:13:06 - End Time 2025-03-16 11:13:06 [2025-03-16 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693101', 'tblTempUsageDetail_20' ) start [2025-03-16 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693101', 'tblTempUsageDetail_20' ) end [2025-03-16 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693101', 'tblTempVendorCDR_20' ) start [2025-03-16 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693101', 'tblTempVendorCDR_20' ) end [2025-03-16 11:13:18] Production.INFO: ProcessCDR(1,14693101,1,1,2) [2025-03-16 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693101', 'tblTempUsageDetail_20' ) start [2025-03-16 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693101', 'tblTempUsageDetail_20' ) end [2025-03-16 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:13:22] Production.INFO: ==32593== Releasing lock... [2025-03-16 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:14:05 [end_date_ymd] => 2025-03-16 11:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:14:05' and `end` < '2025-03-16 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-03-16 11:14:17] Production.INFO: count ==368 [2025-03-16 11:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:14:05 - End Time 2025-03-16 11:14:05 [2025-03-16 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693106', 'tblTempUsageDetail_20' ) start [2025-03-16 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693106', 'tblTempUsageDetail_20' ) end [2025-03-16 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693106', 'tblTempVendorCDR_20' ) start [2025-03-16 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693106', 'tblTempVendorCDR_20' ) end [2025-03-16 11:14:17] Production.INFO: ProcessCDR(1,14693106,1,1,2) [2025-03-16 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693106', 'tblTempUsageDetail_20' ) start [2025-03-16 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693106', 'tblTempUsageDetail_20' ) end [2025-03-16 11:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:14:21] Production.INFO: ==32667== Releasing lock... [2025-03-16 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-16 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:15:05 [end_date_ymd] => 2025-03-16 11:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:15:05' and `end` < '2025-03-16 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-03-16 11:15:18] Production.INFO: count ==374 [2025-03-16 11:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:15:05 - End Time 2025-03-16 11:15:05 [2025-03-16 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693111', 'tblTempUsageDetail_20' ) start [2025-03-16 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693111', 'tblTempUsageDetail_20' ) end [2025-03-16 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693111', 'tblTempVendorCDR_20' ) start [2025-03-16 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693111', 'tblTempVendorCDR_20' ) end [2025-03-16 11:15:18] Production.INFO: ProcessCDR(1,14693111,1,1,2) [2025-03-16 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693111', 'tblTempUsageDetail_20' ) start [2025-03-16 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693111', 'tblTempUsageDetail_20' ) end [2025-03-16 11:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:15:21] Production.INFO: ==370== Releasing lock... [2025-03-16 11:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:16:05 [end_date_ymd] => 2025-03-16 11:16:05 [RateCDR] => 1 ) [2025-03-16 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:16:05' and `end` < '2025-03-16 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:16:17] Production.INFO: count ==379 [2025-03-16 11:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:16:05 - End Time 2025-03-16 11:16:05 [2025-03-16 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693116', 'tblTempUsageDetail_20' ) start [2025-03-16 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693116', 'tblTempUsageDetail_20' ) end [2025-03-16 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693116', 'tblTempVendorCDR_20' ) start [2025-03-16 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693116', 'tblTempVendorCDR_20' ) end [2025-03-16 11:16:17] Production.INFO: ProcessCDR(1,14693116,1,1,2) [2025-03-16 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693116', 'tblTempUsageDetail_20' ) start [2025-03-16 11:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693116', 'tblTempUsageDetail_20' ) end [2025-03-16 11:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:16:20] Production.INFO: ==448== Releasing lock... [2025-03-16 11:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:17:05 [end_date_ymd] => 2025-03-16 11:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:17:05' and `end` < '2025-03-16 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-03-16 11:17:18] Production.INFO: count ==379 [2025-03-16 11:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:17:05 - End Time 2025-03-16 11:17:05 [2025-03-16 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693121', 'tblTempUsageDetail_20' ) start [2025-03-16 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693121', 'tblTempUsageDetail_20' ) end [2025-03-16 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693121', 'tblTempVendorCDR_20' ) start [2025-03-16 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693121', 'tblTempVendorCDR_20' ) end [2025-03-16 11:17:18] Production.INFO: ProcessCDR(1,14693121,1,1,2) [2025-03-16 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693121', 'tblTempUsageDetail_20' ) start [2025-03-16 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693121', 'tblTempUsageDetail_20' ) end [2025-03-16 11:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:17:21] Production.INFO: ==538== Releasing lock... [2025-03-16 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:18:06 [end_date_ymd] => 2025-03-16 11:18:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:18:06' and `end` < '2025-03-16 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-03-16 11:18:18] Production.INFO: count ==380 [2025-03-16 11:18:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:18:06 - End Time 2025-03-16 11:18:06 [2025-03-16 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693126', 'tblTempUsageDetail_20' ) start [2025-03-16 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693126', 'tblTempUsageDetail_20' ) end [2025-03-16 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693126', 'tblTempVendorCDR_20' ) start [2025-03-16 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693126', 'tblTempVendorCDR_20' ) end [2025-03-16 11:18:18] Production.INFO: ProcessCDR(1,14693126,1,1,2) [2025-03-16 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693126', 'tblTempUsageDetail_20' ) start [2025-03-16 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693126', 'tblTempUsageDetail_20' ) end [2025-03-16 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:18:23] Production.INFO: ==617== Releasing lock... [2025-03-16 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:18:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:19:05 [end_date_ymd] => 2025-03-16 11:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:19:05' and `end` < '2025-03-16 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-03-16 11:19:17] Production.INFO: count ==380 [2025-03-16 11:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:19:05 - End Time 2025-03-16 11:19:05 [2025-03-16 11:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693131', 'tblTempUsageDetail_20' ) start [2025-03-16 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693131', 'tblTempUsageDetail_20' ) end [2025-03-16 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693131', 'tblTempVendorCDR_20' ) start [2025-03-16 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693131', 'tblTempVendorCDR_20' ) end [2025-03-16 11:19:17] Production.INFO: ProcessCDR(1,14693131,1,1,2) [2025-03-16 11:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693131', 'tblTempUsageDetail_20' ) start [2025-03-16 11:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693131', 'tblTempUsageDetail_20' ) end [2025-03-16 11:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:19:20] Production.INFO: ==715== Releasing lock... [2025-03-16 11:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:19:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:20:06 [end_date_ymd] => 2025-03-16 11:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:20:06' and `end` < '2025-03-16 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-03-16 11:20:18] Production.INFO: count ==381 [2025-03-16 11:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:20:06 - End Time 2025-03-16 11:20:06 [2025-03-16 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693136', 'tblTempUsageDetail_20' ) start [2025-03-16 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693136', 'tblTempUsageDetail_20' ) end [2025-03-16 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693136', 'tblTempVendorCDR_20' ) start [2025-03-16 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693136', 'tblTempVendorCDR_20' ) end [2025-03-16 11:20:18] Production.INFO: ProcessCDR(1,14693136,1,1,2) [2025-03-16 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693136', 'tblTempUsageDetail_20' ) start [2025-03-16 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693136', 'tblTempUsageDetail_20' ) end [2025-03-16 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:20:23] Production.INFO: ==796== Releasing lock... [2025-03-16 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-16 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:21:05 [end_date_ymd] => 2025-03-16 11:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:21:05' and `end` < '2025-03-16 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-03-16 11:21:17] Production.INFO: count ==382 [2025-03-16 11:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:21:05 - End Time 2025-03-16 11:21:05 [2025-03-16 11:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693142', 'tblTempUsageDetail_20' ) start [2025-03-16 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693142', 'tblTempUsageDetail_20' ) end [2025-03-16 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693142', 'tblTempVendorCDR_20' ) start [2025-03-16 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693142', 'tblTempVendorCDR_20' ) end [2025-03-16 11:21:17] Production.INFO: ProcessCDR(1,14693142,1,1,2) [2025-03-16 11:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693142', 'tblTempUsageDetail_20' ) start [2025-03-16 11:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693142', 'tblTempUsageDetail_20' ) end [2025-03-16 11:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:21:21] Production.INFO: ==870== Releasing lock... [2025-03-16 11:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:22:06 [end_date_ymd] => 2025-03-16 11:22:06 [RateCDR] => 1 ) [2025-03-16 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:22:06' and `end` < '2025-03-16 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:22:18] Production.INFO: count ==389 [2025-03-16 11:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:22:06 - End Time 2025-03-16 11:22:06 [2025-03-16 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693147', 'tblTempUsageDetail_20' ) start [2025-03-16 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693147', 'tblTempUsageDetail_20' ) end [2025-03-16 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693147', 'tblTempVendorCDR_20' ) start [2025-03-16 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693147', 'tblTempVendorCDR_20' ) end [2025-03-16 11:22:18] Production.INFO: ProcessCDR(1,14693147,1,1,2) [2025-03-16 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693147', 'tblTempUsageDetail_20' ) start [2025-03-16 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693147', 'tblTempUsageDetail_20' ) end [2025-03-16 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:22:22] Production.INFO: ==943== Releasing lock... [2025-03-16 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:22:22] Production.INFO: 31 MB #Memory Used# [2025-03-16 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:23:05 [end_date_ymd] => 2025-03-16 11:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:23:05' and `end` < '2025-03-16 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-03-16 11:23:17] Production.INFO: count ==396 [2025-03-16 11:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:23:05 - End Time 2025-03-16 11:23:05 [2025-03-16 11:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693152', 'tblTempUsageDetail_20' ) start [2025-03-16 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693152', 'tblTempUsageDetail_20' ) end [2025-03-16 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693152', 'tblTempVendorCDR_20' ) start [2025-03-16 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693152', 'tblTempVendorCDR_20' ) end [2025-03-16 11:23:17] Production.INFO: ProcessCDR(1,14693152,1,1,2) [2025-03-16 11:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693152', 'tblTempUsageDetail_20' ) start [2025-03-16 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693152', 'tblTempUsageDetail_20' ) end [2025-03-16 11:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:23:20] Production.INFO: ==1018== Releasing lock... [2025-03-16 11:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:23:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:24:06 [end_date_ymd] => 2025-03-16 11:24:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:24:06' and `end` < '2025-03-16 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-03-16 11:24:18] Production.INFO: count ==396 [2025-03-16 11:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:24:06 - End Time 2025-03-16 11:24:06 [2025-03-16 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693157', 'tblTempUsageDetail_20' ) start [2025-03-16 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693157', 'tblTempUsageDetail_20' ) end [2025-03-16 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693157', 'tblTempVendorCDR_20' ) start [2025-03-16 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693157', 'tblTempVendorCDR_20' ) end [2025-03-16 11:24:18] Production.INFO: ProcessCDR(1,14693157,1,1,2) [2025-03-16 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693157', 'tblTempUsageDetail_20' ) start [2025-03-16 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693157', 'tblTempUsageDetail_20' ) end [2025-03-16 11:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:24:22] Production.INFO: ==1134== Releasing lock... [2025-03-16 11:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:25:05 [end_date_ymd] => 2025-03-16 11:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:25:05' and `end` < '2025-03-16 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-03-16 11:25:17] Production.INFO: count ==401 [2025-03-16 11:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:25:05 - End Time 2025-03-16 11:25:05 [2025-03-16 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693162', 'tblTempUsageDetail_20' ) start [2025-03-16 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693162', 'tblTempUsageDetail_20' ) end [2025-03-16 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693162', 'tblTempVendorCDR_20' ) start [2025-03-16 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693162', 'tblTempVendorCDR_20' ) end [2025-03-16 11:25:17] Production.INFO: ProcessCDR(1,14693162,1,1,2) [2025-03-16 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693162', 'tblTempUsageDetail_20' ) start [2025-03-16 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693162', 'tblTempUsageDetail_20' ) end [2025-03-16 11:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:25:22] Production.INFO: ==1241== Releasing lock... [2025-03-16 11:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:26:06 [end_date_ymd] => 2025-03-16 11:26:06 [RateCDR] => 1 ) [2025-03-16 11: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-03-16 08:26:06' and `end` < '2025-03-16 11: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-03-16 11:26:18] Production.INFO: count ==401 [2025-03-16 11:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:26:06 - End Time 2025-03-16 11:26:06 [2025-03-16 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693167', 'tblTempUsageDetail_20' ) start [2025-03-16 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693167', 'tblTempUsageDetail_20' ) end [2025-03-16 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693167', 'tblTempVendorCDR_20' ) start [2025-03-16 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693167', 'tblTempVendorCDR_20' ) end [2025-03-16 11:26:18] Production.INFO: ProcessCDR(1,14693167,1,1,2) [2025-03-16 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693167', 'tblTempUsageDetail_20' ) start [2025-03-16 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693167', 'tblTempUsageDetail_20' ) end [2025-03-16 11:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:26:21] Production.INFO: ==1342== Releasing lock... [2025-03-16 11:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-16 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:27:05 [end_date_ymd] => 2025-03-16 11:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:27:05' and `end` < '2025-03-16 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-03-16 11:27:17] Production.INFO: count ==415 [2025-03-16 11:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:27:05 - End Time 2025-03-16 11:27:05 [2025-03-16 11:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693172', 'tblTempUsageDetail_20' ) start [2025-03-16 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693172', 'tblTempUsageDetail_20' ) end [2025-03-16 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693172', 'tblTempVendorCDR_20' ) start [2025-03-16 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693172', 'tblTempVendorCDR_20' ) end [2025-03-16 11:27:17] Production.INFO: ProcessCDR(1,14693172,1,1,2) [2025-03-16 11:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693172', 'tblTempUsageDetail_20' ) start [2025-03-16 11:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693172', 'tblTempUsageDetail_20' ) end [2025-03-16 11:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:27:20] Production.INFO: ==1415== Releasing lock... [2025-03-16 11:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:27:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:28:05 [end_date_ymd] => 2025-03-16 11:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:28:05' and `end` < '2025-03-16 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-03-16 11:28:17] Production.INFO: count ==419 [2025-03-16 11:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:28:05 - End Time 2025-03-16 11:28:05 [2025-03-16 11:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693177', 'tblTempUsageDetail_20' ) start [2025-03-16 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693177', 'tblTempUsageDetail_20' ) end [2025-03-16 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693177', 'tblTempVendorCDR_20' ) start [2025-03-16 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693177', 'tblTempVendorCDR_20' ) end [2025-03-16 11:28:17] Production.INFO: ProcessCDR(1,14693177,1,1,2) [2025-03-16 11:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693177', 'tblTempUsageDetail_20' ) start [2025-03-16 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693177', 'tblTempUsageDetail_20' ) end [2025-03-16 11:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:28:22] Production.INFO: ==1490== Releasing lock... [2025-03-16 11:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:29:04 [end_date_ymd] => 2025-03-16 11:29:04 [RateCDR] => 1 ) [2025-03-16 11: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-03-16 08:29:04' and `end` < '2025-03-16 11: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-03-16 11:29:17] Production.INFO: count ==421 [2025-03-16 11:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:29:04 - End Time 2025-03-16 11:29:04 [2025-03-16 11:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693182', 'tblTempUsageDetail_20' ) start [2025-03-16 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693182', 'tblTempUsageDetail_20' ) end [2025-03-16 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693182', 'tblTempVendorCDR_20' ) start [2025-03-16 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693182', 'tblTempVendorCDR_20' ) end [2025-03-16 11:29:17] Production.INFO: ProcessCDR(1,14693182,1,1,2) [2025-03-16 11:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693182', 'tblTempUsageDetail_20' ) start [2025-03-16 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693182', 'tblTempUsageDetail_20' ) end [2025-03-16 11:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:29:21] Production.INFO: ==1596== Releasing lock... [2025-03-16 11:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-16 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:30:06 [end_date_ymd] => 2025-03-16 11:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:30:06' and `end` < '2025-03-16 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-03-16 11:30:19] Production.INFO: count ==432 [2025-03-16 11:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 08:30:06 - End Time 2025-03-16 11:30:06 [2025-03-16 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693188', 'tblTempUsageDetail_20' ) start [2025-03-16 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693188', 'tblTempUsageDetail_20' ) end [2025-03-16 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693188', 'tblTempVendorCDR_20' ) start [2025-03-16 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693188', 'tblTempVendorCDR_20' ) end [2025-03-16 11:30:19] Production.INFO: ProcessCDR(1,14693188,1,1,2) [2025-03-16 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693188', 'tblTempUsageDetail_20' ) start [2025-03-16 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693188', 'tblTempUsageDetail_20' ) end [2025-03-16 11:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:30:23] Production.INFO: ==1676== Releasing lock... [2025-03-16 11:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:30:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-16 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:31:04 [end_date_ymd] => 2025-03-16 11:31:04 [RateCDR] => 1 ) [2025-03-16 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:31:04' and `end` < '2025-03-16 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:31:16] Production.INFO: count ==451 [2025-03-16 11:31:16] Production.ERROR: pbx CDR StartTime 2025-03-16 08:31:04 - End Time 2025-03-16 11:31:04 [2025-03-16 11:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693193', 'tblTempUsageDetail_20' ) start [2025-03-16 11:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693193', 'tblTempUsageDetail_20' ) end [2025-03-16 11:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693193', 'tblTempVendorCDR_20' ) start [2025-03-16 11:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693193', 'tblTempVendorCDR_20' ) end [2025-03-16 11:31:16] Production.INFO: ProcessCDR(1,14693193,1,1,2) [2025-03-16 11:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693193', 'tblTempUsageDetail_20' ) start [2025-03-16 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693193', 'tblTempUsageDetail_20' ) end [2025-03-16 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:31:21] Production.INFO: ==1755== Releasing lock... [2025-03-16 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:32:05 [end_date_ymd] => 2025-03-16 11:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:32:05' and `end` < '2025-03-16 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-03-16 11:32:17] Production.INFO: count ==448 [2025-03-16 11:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:32:05 - End Time 2025-03-16 11:32:05 [2025-03-16 11:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693198', 'tblTempUsageDetail_20' ) start [2025-03-16 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693198', 'tblTempUsageDetail_20' ) end [2025-03-16 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693198', 'tblTempVendorCDR_20' ) start [2025-03-16 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693198', 'tblTempVendorCDR_20' ) end [2025-03-16 11:32:17] Production.INFO: ProcessCDR(1,14693198,1,1,2) [2025-03-16 11:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693198', 'tblTempUsageDetail_20' ) start [2025-03-16 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693198', 'tblTempUsageDetail_20' ) end [2025-03-16 11:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:32:22] Production.INFO: ==1844== Releasing lock... [2025-03-16 11:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:33:06 [end_date_ymd] => 2025-03-16 11:33:06 [RateCDR] => 1 ) [2025-03-16 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:33:06' and `end` < '2025-03-16 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:33:18] Production.INFO: count ==449 [2025-03-16 11:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:33:06 - End Time 2025-03-16 11:33:06 [2025-03-16 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693203', 'tblTempUsageDetail_20' ) start [2025-03-16 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693203', 'tblTempUsageDetail_20' ) end [2025-03-16 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693203', 'tblTempVendorCDR_20' ) start [2025-03-16 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693203', 'tblTempVendorCDR_20' ) end [2025-03-16 11:33:18] Production.INFO: ProcessCDR(1,14693203,1,1,2) [2025-03-16 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693203', 'tblTempUsageDetail_20' ) start [2025-03-16 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693203', 'tblTempUsageDetail_20' ) end [2025-03-16 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:33:22] Production.INFO: ==1915== Releasing lock... [2025-03-16 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:33:22] Production.INFO: 32 MB #Memory Used# [2025-03-16 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:34:05 [end_date_ymd] => 2025-03-16 11:34:05 [RateCDR] => 1 ) [2025-03-16 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:34:05' and `end` < '2025-03-16 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:34:17] Production.INFO: count ==449 [2025-03-16 11:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:34:05 - End Time 2025-03-16 11:34:05 [2025-03-16 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693208', 'tblTempUsageDetail_20' ) start [2025-03-16 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693208', 'tblTempUsageDetail_20' ) end [2025-03-16 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693208', 'tblTempVendorCDR_20' ) start [2025-03-16 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693208', 'tblTempVendorCDR_20' ) end [2025-03-16 11:34:17] Production.INFO: ProcessCDR(1,14693208,1,1,2) [2025-03-16 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693208', 'tblTempUsageDetail_20' ) start [2025-03-16 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693208', 'tblTempUsageDetail_20' ) end [2025-03-16 11:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:34:21] Production.INFO: ==1988== Releasing lock... [2025-03-16 11:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:34:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:35:06 [end_date_ymd] => 2025-03-16 11:35:06 [RateCDR] => 1 ) [2025-03-16 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:35:06' and `end` < '2025-03-16 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:35:18] Production.INFO: count ==449 [2025-03-16 11:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:35:06 - End Time 2025-03-16 11:35:06 [2025-03-16 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693213', 'tblTempUsageDetail_20' ) start [2025-03-16 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693213', 'tblTempUsageDetail_20' ) end [2025-03-16 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693213', 'tblTempVendorCDR_20' ) start [2025-03-16 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693213', 'tblTempVendorCDR_20' ) end [2025-03-16 11:35:18] Production.INFO: ProcessCDR(1,14693213,1,1,2) [2025-03-16 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693213', 'tblTempUsageDetail_20' ) start [2025-03-16 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693213', 'tblTempUsageDetail_20' ) end [2025-03-16 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:35:22] Production.INFO: ==2064== Releasing lock... [2025-03-16 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:35:22] Production.INFO: 32 MB #Memory Used# [2025-03-16 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:36:05 [end_date_ymd] => 2025-03-16 11:36:05 [RateCDR] => 1 ) [2025-03-16 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:36:05' and `end` < '2025-03-16 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:36:17] Production.INFO: count ==449 [2025-03-16 11:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:36:05 - End Time 2025-03-16 11:36:05 [2025-03-16 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693218', 'tblTempUsageDetail_20' ) start [2025-03-16 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693218', 'tblTempUsageDetail_20' ) end [2025-03-16 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693218', 'tblTempVendorCDR_20' ) start [2025-03-16 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693218', 'tblTempVendorCDR_20' ) end [2025-03-16 11:36:18] Production.INFO: ProcessCDR(1,14693218,1,1,2) [2025-03-16 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693218', 'tblTempUsageDetail_20' ) start [2025-03-16 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693218', 'tblTempUsageDetail_20' ) end [2025-03-16 11:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:36:21] Production.INFO: ==2136== Releasing lock... [2025-03-16 11:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-16 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:37:05 [end_date_ymd] => 2025-03-16 11:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:37:05' and `end` < '2025-03-16 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-03-16 11:37:18] Production.INFO: count ==453 [2025-03-16 11:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:37:05 - End Time 2025-03-16 11:37:05 [2025-03-16 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693223', 'tblTempUsageDetail_20' ) start [2025-03-16 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693223', 'tblTempUsageDetail_20' ) end [2025-03-16 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693223', 'tblTempVendorCDR_20' ) start [2025-03-16 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693223', 'tblTempVendorCDR_20' ) end [2025-03-16 11:37:18] Production.INFO: ProcessCDR(1,14693223,1,1,2) [2025-03-16 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693223', 'tblTempUsageDetail_20' ) start [2025-03-16 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693223', 'tblTempUsageDetail_20' ) end [2025-03-16 11:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:37:21] Production.INFO: ==2209== Releasing lock... [2025-03-16 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:38:05 [end_date_ymd] => 2025-03-16 11:38:05 [RateCDR] => 1 ) [2025-03-16 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:38:05' and `end` < '2025-03-16 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:38:17] Production.INFO: count ==453 [2025-03-16 11:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:38:05 - End Time 2025-03-16 11:38:05 [2025-03-16 11:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693228', 'tblTempUsageDetail_20' ) start [2025-03-16 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693228', 'tblTempUsageDetail_20' ) end [2025-03-16 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693228', 'tblTempVendorCDR_20' ) start [2025-03-16 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693228', 'tblTempVendorCDR_20' ) end [2025-03-16 11:38:17] Production.INFO: ProcessCDR(1,14693228,1,1,2) [2025-03-16 11:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693228', 'tblTempUsageDetail_20' ) start [2025-03-16 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693228', 'tblTempUsageDetail_20' ) end [2025-03-16 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:38:22] Production.INFO: ==2280== Releasing lock... [2025-03-16 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:39:05 [end_date_ymd] => 2025-03-16 11:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:39:05' and `end` < '2025-03-16 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-03-16 11:39:17] Production.INFO: count ==466 [2025-03-16 11:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:39:05 - End Time 2025-03-16 11:39:05 [2025-03-16 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693233', 'tblTempUsageDetail_20' ) start [2025-03-16 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693233', 'tblTempUsageDetail_20' ) end [2025-03-16 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693233', 'tblTempVendorCDR_20' ) start [2025-03-16 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693233', 'tblTempVendorCDR_20' ) end [2025-03-16 11:39:17] Production.INFO: ProcessCDR(1,14693233,1,1,2) [2025-03-16 11:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693233', 'tblTempUsageDetail_20' ) start [2025-03-16 11:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693233', 'tblTempUsageDetail_20' ) end [2025-03-16 11:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:39:20] Production.INFO: ==2355== Releasing lock... [2025-03-16 11:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:39:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:40:06 [end_date_ymd] => 2025-03-16 11:40:06 [RateCDR] => 1 ) [2025-03-16 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:40:06' and `end` < '2025-03-16 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:40:18] Production.INFO: count ==475 [2025-03-16 11:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:40:06 - End Time 2025-03-16 11:40:06 [2025-03-16 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693239', 'tblTempUsageDetail_20' ) start [2025-03-16 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693239', 'tblTempUsageDetail_20' ) end [2025-03-16 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693239', 'tblTempVendorCDR_20' ) start [2025-03-16 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693239', 'tblTempVendorCDR_20' ) end [2025-03-16 11:40:18] Production.INFO: ProcessCDR(1,14693239,1,1,2) [2025-03-16 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693239', 'tblTempUsageDetail_20' ) start [2025-03-16 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693239', 'tblTempUsageDetail_20' ) end [2025-03-16 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:40:23] Production.INFO: ==2471== Releasing lock... [2025-03-16 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:41:05 [end_date_ymd] => 2025-03-16 11:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:41:05' and `end` < '2025-03-16 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-03-16 11:41:18] Production.INFO: count ==483 [2025-03-16 11:41:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:41:05 - End Time 2025-03-16 11:41:05 [2025-03-16 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693244', 'tblTempUsageDetail_20' ) start [2025-03-16 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693244', 'tblTempUsageDetail_20' ) end [2025-03-16 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693244', 'tblTempVendorCDR_20' ) start [2025-03-16 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693244', 'tblTempVendorCDR_20' ) end [2025-03-16 11:41:18] Production.INFO: ProcessCDR(1,14693244,1,1,2) [2025-03-16 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693244', 'tblTempUsageDetail_20' ) start [2025-03-16 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693244', 'tblTempUsageDetail_20' ) end [2025-03-16 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:41:22] Production.INFO: ==2549== Releasing lock... [2025-03-16 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:42:04 [end_date_ymd] => 2025-03-16 11:42:04 [RateCDR] => 1 ) [2025-03-16 11:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:42:04' and `end` < '2025-03-16 11:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:42:16] Production.INFO: count ==488 [2025-03-16 11:42:16] Production.ERROR: pbx CDR StartTime 2025-03-16 08:42:04 - End Time 2025-03-16 11:42:04 [2025-03-16 11:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693249', 'tblTempUsageDetail_20' ) start [2025-03-16 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693249', 'tblTempUsageDetail_20' ) end [2025-03-16 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693249', 'tblTempVendorCDR_20' ) start [2025-03-16 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693249', 'tblTempVendorCDR_20' ) end [2025-03-16 11:42:16] Production.INFO: ProcessCDR(1,14693249,1,1,2) [2025-03-16 11:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693249', 'tblTempUsageDetail_20' ) start [2025-03-16 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693249', 'tblTempUsageDetail_20' ) end [2025-03-16 11:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:42:21] Production.INFO: ==2620== Releasing lock... [2025-03-16 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:43:05 [end_date_ymd] => 2025-03-16 11:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:43:05' and `end` < '2025-03-16 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-03-16 11:43:17] Production.INFO: count ==489 [2025-03-16 11:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:43:05 - End Time 2025-03-16 11:43:05 [2025-03-16 11:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693254', 'tblTempUsageDetail_20' ) start [2025-03-16 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693254', 'tblTempUsageDetail_20' ) end [2025-03-16 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693254', 'tblTempVendorCDR_20' ) start [2025-03-16 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693254', 'tblTempVendorCDR_20' ) end [2025-03-16 11:43:17] Production.INFO: ProcessCDR(1,14693254,1,1,2) [2025-03-16 11:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693254', 'tblTempUsageDetail_20' ) start [2025-03-16 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693254', 'tblTempUsageDetail_20' ) end [2025-03-16 11:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:43:22] Production.INFO: ==2693== Releasing lock... [2025-03-16 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:44:06 [end_date_ymd] => 2025-03-16 11:44:06 [RateCDR] => 1 ) [2025-03-16 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:44:06' and `end` < '2025-03-16 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:44:18] Production.INFO: count ==486 [2025-03-16 11:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:44:06 - End Time 2025-03-16 11:44:06 [2025-03-16 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693259', 'tblTempUsageDetail_20' ) start [2025-03-16 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693259', 'tblTempUsageDetail_20' ) end [2025-03-16 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693259', 'tblTempVendorCDR_20' ) start [2025-03-16 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693259', 'tblTempVendorCDR_20' ) end [2025-03-16 11:44:18] Production.INFO: ProcessCDR(1,14693259,1,1,2) [2025-03-16 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693259', 'tblTempUsageDetail_20' ) start [2025-03-16 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693259', 'tblTempUsageDetail_20' ) end [2025-03-16 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:44:23] Production.INFO: ==2773== Releasing lock... [2025-03-16 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:44:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:45:05 [end_date_ymd] => 2025-03-16 11:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:45:05' and `end` < '2025-03-16 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-03-16 11:45:17] Production.INFO: count ==487 [2025-03-16 11:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:45:05 - End Time 2025-03-16 11:45:05 [2025-03-16 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693264', 'tblTempUsageDetail_20' ) start [2025-03-16 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693264', 'tblTempUsageDetail_20' ) end [2025-03-16 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693264', 'tblTempVendorCDR_20' ) start [2025-03-16 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693264', 'tblTempVendorCDR_20' ) end [2025-03-16 11:45:17] Production.INFO: ProcessCDR(1,14693264,1,1,2) [2025-03-16 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693264', 'tblTempUsageDetail_20' ) start [2025-03-16 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693264', 'tblTempUsageDetail_20' ) end [2025-03-16 11:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:45:22] Production.INFO: ==2850== Releasing lock... [2025-03-16 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:46:06 [end_date_ymd] => 2025-03-16 11:46:06 [RateCDR] => 1 ) [2025-03-16 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:46:06' and `end` < '2025-03-16 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:46:18] Production.INFO: count ==483 [2025-03-16 11:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:46:06 - End Time 2025-03-16 11:46:06 [2025-03-16 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693269', 'tblTempUsageDetail_20' ) start [2025-03-16 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693269', 'tblTempUsageDetail_20' ) end [2025-03-16 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693269', 'tblTempVendorCDR_20' ) start [2025-03-16 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693269', 'tblTempVendorCDR_20' ) end [2025-03-16 11:46:18] Production.INFO: ProcessCDR(1,14693269,1,1,2) [2025-03-16 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693269', 'tblTempUsageDetail_20' ) start [2025-03-16 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693269', 'tblTempUsageDetail_20' ) end [2025-03-16 11:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:46:23] Production.INFO: ==2926== Releasing lock... [2025-03-16 11:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:47:06 [end_date_ymd] => 2025-03-16 11:47:06 [RateCDR] => 1 ) [2025-03-16 11: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-03-16 08:47:06' and `end` < '2025-03-16 11: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-03-16 11:47:18] Production.INFO: count ==484 [2025-03-16 11:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:47:06 - End Time 2025-03-16 11:47:06 [2025-03-16 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693274', 'tblTempUsageDetail_20' ) start [2025-03-16 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693274', 'tblTempUsageDetail_20' ) end [2025-03-16 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693274', 'tblTempVendorCDR_20' ) start [2025-03-16 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693274', 'tblTempVendorCDR_20' ) end [2025-03-16 11:47:18] Production.INFO: ProcessCDR(1,14693274,1,1,2) [2025-03-16 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693274', 'tblTempUsageDetail_20' ) start [2025-03-16 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693274', 'tblTempUsageDetail_20' ) end [2025-03-16 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:47:23] Production.INFO: ==3005== Releasing lock... [2025-03-16 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:47:23] Production.INFO: 32 MB #Memory Used# [2025-03-16 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:48:05 [end_date_ymd] => 2025-03-16 11:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:48:05' and `end` < '2025-03-16 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-03-16 11:48:17] Production.INFO: count ==486 [2025-03-16 11:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:48:05 - End Time 2025-03-16 11:48:05 [2025-03-16 11:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693279', 'tblTempUsageDetail_20' ) start [2025-03-16 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693279', 'tblTempUsageDetail_20' ) end [2025-03-16 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693279', 'tblTempVendorCDR_20' ) start [2025-03-16 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693279', 'tblTempVendorCDR_20' ) end [2025-03-16 11:48:17] Production.INFO: ProcessCDR(1,14693279,1,1,2) [2025-03-16 11:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693279', 'tblTempUsageDetail_20' ) start [2025-03-16 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693279', 'tblTempUsageDetail_20' ) end [2025-03-16 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:48:22] Production.INFO: ==3085== Releasing lock... [2025-03-16 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:49:05 [end_date_ymd] => 2025-03-16 11:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:49:05' and `end` < '2025-03-16 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-03-16 11:49:17] Production.INFO: count ==487 [2025-03-16 11:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:49:05 - End Time 2025-03-16 11:49:05 [2025-03-16 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693284', 'tblTempUsageDetail_20' ) start [2025-03-16 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693284', 'tblTempUsageDetail_20' ) end [2025-03-16 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693284', 'tblTempVendorCDR_20' ) start [2025-03-16 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693284', 'tblTempVendorCDR_20' ) end [2025-03-16 11:49:18] Production.INFO: ProcessCDR(1,14693284,1,1,2) [2025-03-16 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693284', 'tblTempUsageDetail_20' ) start [2025-03-16 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693284', 'tblTempUsageDetail_20' ) end [2025-03-16 11:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:49:22] Production.INFO: ==3161== Releasing lock... [2025-03-16 11:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:50:06 [end_date_ymd] => 2025-03-16 11:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:50:06' and `end` < '2025-03-16 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-03-16 11:50:18] Production.INFO: count ==496 [2025-03-16 11:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:50:06 - End Time 2025-03-16 11:50:06 [2025-03-16 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693290', 'tblTempUsageDetail_20' ) start [2025-03-16 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693290', 'tblTempUsageDetail_20' ) end [2025-03-16 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693290', 'tblTempVendorCDR_20' ) start [2025-03-16 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693290', 'tblTempVendorCDR_20' ) end [2025-03-16 11:50:18] Production.INFO: ProcessCDR(1,14693290,1,1,2) [2025-03-16 11:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693290', 'tblTempUsageDetail_20' ) start [2025-03-16 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693290', 'tblTempUsageDetail_20' ) end [2025-03-16 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:50:23] Production.INFO: ==3238== Releasing lock... [2025-03-16 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:51:05 [end_date_ymd] => 2025-03-16 11:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:51:05' and `end` < '2025-03-16 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-03-16 11:51:17] Production.INFO: count ==496 [2025-03-16 11:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:51:05 - End Time 2025-03-16 11:51:05 [2025-03-16 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693295', 'tblTempUsageDetail_20' ) start [2025-03-16 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693295', 'tblTempUsageDetail_20' ) end [2025-03-16 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693295', 'tblTempVendorCDR_20' ) start [2025-03-16 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693295', 'tblTempVendorCDR_20' ) end [2025-03-16 11:51:17] Production.INFO: ProcessCDR(1,14693295,1,1,2) [2025-03-16 11:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693295', 'tblTempUsageDetail_20' ) start [2025-03-16 11:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693295', 'tblTempUsageDetail_20' ) end [2025-03-16 11:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:51:21] Production.INFO: ==3317== Releasing lock... [2025-03-16 11:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:52:05 [end_date_ymd] => 2025-03-16 11:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:52:05' and `end` < '2025-03-16 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-03-16 11:52:17] Production.INFO: count ==498 [2025-03-16 11:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:52:05 - End Time 2025-03-16 11:52:05 [2025-03-16 11:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693300', 'tblTempUsageDetail_20' ) start [2025-03-16 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693300', 'tblTempUsageDetail_20' ) end [2025-03-16 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693300', 'tblTempVendorCDR_20' ) start [2025-03-16 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693300', 'tblTempVendorCDR_20' ) end [2025-03-16 11:52:17] Production.INFO: ProcessCDR(1,14693300,1,1,2) [2025-03-16 11:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693300', 'tblTempUsageDetail_20' ) start [2025-03-16 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693300', 'tblTempUsageDetail_20' ) end [2025-03-16 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:52:22] Production.INFO: ==3391== Releasing lock... [2025-03-16 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:53:05 [end_date_ymd] => 2025-03-16 11:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:53:05' and `end` < '2025-03-16 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-03-16 11:53:17] Production.INFO: count ==506 [2025-03-16 11:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:53:05 - End Time 2025-03-16 11:53:05 [2025-03-16 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693305', 'tblTempUsageDetail_20' ) start [2025-03-16 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693305', 'tblTempUsageDetail_20' ) end [2025-03-16 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693305', 'tblTempVendorCDR_20' ) start [2025-03-16 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693305', 'tblTempVendorCDR_20' ) end [2025-03-16 11:53:17] Production.INFO: ProcessCDR(1,14693305,1,1,2) [2025-03-16 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693305', 'tblTempUsageDetail_20' ) start [2025-03-16 11:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693305', 'tblTempUsageDetail_20' ) end [2025-03-16 11:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:53:21] Production.INFO: ==3467== Releasing lock... [2025-03-16 11:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:54:05 [end_date_ymd] => 2025-03-16 11:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:54:05' and `end` < '2025-03-16 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-03-16 11:54:17] Production.INFO: count ==512 [2025-03-16 11:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:54:05 - End Time 2025-03-16 11:54:05 [2025-03-16 11:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693310', 'tblTempUsageDetail_20' ) start [2025-03-16 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693310', 'tblTempUsageDetail_20' ) end [2025-03-16 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693310', 'tblTempVendorCDR_20' ) start [2025-03-16 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693310', 'tblTempVendorCDR_20' ) end [2025-03-16 11:54:17] Production.INFO: ProcessCDR(1,14693310,1,1,2) [2025-03-16 11:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693310', 'tblTempUsageDetail_20' ) start [2025-03-16 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693310', 'tblTempUsageDetail_20' ) end [2025-03-16 11:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:54:22] Production.INFO: ==3542== Releasing lock... [2025-03-16 11:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:54:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:55:05 [end_date_ymd] => 2025-03-16 11:55:05 [RateCDR] => 1 ) [2025-03-16 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 08:55:05' and `end` < '2025-03-16 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 11:55:17] Production.INFO: count ==515 [2025-03-16 11:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:55:05 - End Time 2025-03-16 11:55:05 [2025-03-16 11:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693315', 'tblTempUsageDetail_20' ) start [2025-03-16 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693315', 'tblTempUsageDetail_20' ) end [2025-03-16 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693315', 'tblTempVendorCDR_20' ) start [2025-03-16 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693315', 'tblTempVendorCDR_20' ) end [2025-03-16 11:55:17] Production.INFO: ProcessCDR(1,14693315,1,1,2) [2025-03-16 11:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693315', 'tblTempUsageDetail_20' ) start [2025-03-16 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693315', 'tblTempUsageDetail_20' ) end [2025-03-16 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:55:22] Production.INFO: ==3657== Releasing lock... [2025-03-16 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:56:05 [end_date_ymd] => 2025-03-16 11:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:56:05' and `end` < '2025-03-16 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-03-16 11:56:17] Production.INFO: count ==516 [2025-03-16 11:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:56:05 - End Time 2025-03-16 11:56:05 [2025-03-16 11:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693320', 'tblTempUsageDetail_20' ) start [2025-03-16 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693320', 'tblTempUsageDetail_20' ) end [2025-03-16 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693320', 'tblTempVendorCDR_20' ) start [2025-03-16 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693320', 'tblTempVendorCDR_20' ) end [2025-03-16 11:56:17] Production.INFO: ProcessCDR(1,14693320,1,1,2) [2025-03-16 11:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693320', 'tblTempUsageDetail_20' ) start [2025-03-16 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693320', 'tblTempUsageDetail_20' ) end [2025-03-16 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:56:22] Production.INFO: ==3731== Releasing lock... [2025-03-16 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:57:05 [end_date_ymd] => 2025-03-16 11:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:57:05' and `end` < '2025-03-16 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-03-16 11:57:17] Production.INFO: count ==517 [2025-03-16 11:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:57:05 - End Time 2025-03-16 11:57:05 [2025-03-16 11:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693325', 'tblTempUsageDetail_20' ) start [2025-03-16 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693325', 'tblTempUsageDetail_20' ) end [2025-03-16 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693325', 'tblTempVendorCDR_20' ) start [2025-03-16 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693325', 'tblTempVendorCDR_20' ) end [2025-03-16 11:57:17] Production.INFO: ProcessCDR(1,14693325,1,1,2) [2025-03-16 11:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693325', 'tblTempUsageDetail_20' ) start [2025-03-16 11:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693325', 'tblTempUsageDetail_20' ) end [2025-03-16 11:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:57:20] Production.INFO: ==3803== Releasing lock... [2025-03-16 11:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:57:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:58:04 [end_date_ymd] => 2025-03-16 11:58:04 [RateCDR] => 1 ) [2025-03-16 11: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-03-16 08:58:04' and `end` < '2025-03-16 11: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-03-16 11:58:17] Production.INFO: count ==518 [2025-03-16 11:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 08:58:04 - End Time 2025-03-16 11:58:04 [2025-03-16 11:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693330', 'tblTempUsageDetail_20' ) start [2025-03-16 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693330', 'tblTempUsageDetail_20' ) end [2025-03-16 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693330', 'tblTempVendorCDR_20' ) start [2025-03-16 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693330', 'tblTempVendorCDR_20' ) end [2025-03-16 11:58:17] Production.INFO: ProcessCDR(1,14693330,1,1,2) [2025-03-16 11:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693330', 'tblTempUsageDetail_20' ) start [2025-03-16 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693330', 'tblTempUsageDetail_20' ) end [2025-03-16 11:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:58:21] Production.INFO: ==3904== Releasing lock... [2025-03-16 11:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 08:59:05 [end_date_ymd] => 2025-03-16 11:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 08:59:05' and `end` < '2025-03-16 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-03-16 11:59:18] Production.INFO: count ==517 [2025-03-16 11:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 08:59:05 - End Time 2025-03-16 11:59:05 [2025-03-16 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693335', 'tblTempUsageDetail_20' ) start [2025-03-16 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693335', 'tblTempUsageDetail_20' ) end [2025-03-16 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693335', 'tblTempVendorCDR_20' ) start [2025-03-16 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693335', 'tblTempVendorCDR_20' ) end [2025-03-16 11:59:18] Production.INFO: ProcessCDR(1,14693335,1,1,2) [2025-03-16 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693335', 'tblTempUsageDetail_20' ) start [2025-03-16 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693335', 'tblTempUsageDetail_20' ) end [2025-03-16 11:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 11:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 11:59:21] Production.INFO: ==4018== Releasing lock... [2025-03-16 11:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 11:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:00:06 [end_date_ymd] => 2025-03-16 12:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:00:06' and `end` < '2025-03-16 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-03-16 12:00:18] Production.INFO: count ==525 [2025-03-16 12:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:00:06 - End Time 2025-03-16 12:00:06 [2025-03-16 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693341', 'tblTempUsageDetail_20' ) start [2025-03-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693341', 'tblTempUsageDetail_20' ) end [2025-03-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693341', 'tblTempVendorCDR_20' ) start [2025-03-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693341', 'tblTempVendorCDR_20' ) end [2025-03-16 12:00:18] Production.INFO: ProcessCDR(1,14693341,1,1,2) [2025-03-16 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693341', 'tblTempUsageDetail_20' ) start [2025-03-16 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693341', 'tblTempUsageDetail_20' ) end [2025-03-16 12:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:00:22] Production.INFO: ==4104== Releasing lock... [2025-03-16 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:01:05 [end_date_ymd] => 2025-03-16 12:01:05 [RateCDR] => 1 ) [2025-03-16 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:01:05' and `end` < '2025-03-16 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:01:17] Production.INFO: count ==521 [2025-03-16 12:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:01:05 - End Time 2025-03-16 12:01:05 [2025-03-16 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693346', 'tblTempUsageDetail_20' ) start [2025-03-16 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693346', 'tblTempUsageDetail_20' ) end [2025-03-16 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693346', 'tblTempVendorCDR_20' ) start [2025-03-16 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693346', 'tblTempVendorCDR_20' ) end [2025-03-16 12:01:18] Production.INFO: ProcessCDR(1,14693346,1,1,2) [2025-03-16 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693346', 'tblTempUsageDetail_20' ) start [2025-03-16 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693346', 'tblTempUsageDetail_20' ) end [2025-03-16 12:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:01:21] Production.INFO: ==4190== Releasing lock... [2025-03-16 12:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:02:05 [end_date_ymd] => 2025-03-16 12:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:02:05' and `end` < '2025-03-16 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-03-16 12:02:17] Production.INFO: count ==521 [2025-03-16 12:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:02:05 - End Time 2025-03-16 12:02:05 [2025-03-16 12:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693351', 'tblTempUsageDetail_20' ) start [2025-03-16 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693351', 'tblTempUsageDetail_20' ) end [2025-03-16 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693351', 'tblTempVendorCDR_20' ) start [2025-03-16 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693351', 'tblTempVendorCDR_20' ) end [2025-03-16 12:02:17] Production.INFO: ProcessCDR(1,14693351,1,1,2) [2025-03-16 12:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693351', 'tblTempUsageDetail_20' ) start [2025-03-16 12:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693351', 'tblTempUsageDetail_20' ) end [2025-03-16 12:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:02:20] Production.INFO: ==4271== Releasing lock... [2025-03-16 12:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:02:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:03:05 [end_date_ymd] => 2025-03-16 12:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:03:05' and `end` < '2025-03-16 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-03-16 12:03:18] Production.INFO: count ==530 [2025-03-16 12:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:03:05 - End Time 2025-03-16 12:03:05 [2025-03-16 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693356', 'tblTempUsageDetail_20' ) start [2025-03-16 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693356', 'tblTempUsageDetail_20' ) end [2025-03-16 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693356', 'tblTempVendorCDR_20' ) start [2025-03-16 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693356', 'tblTempVendorCDR_20' ) end [2025-03-16 12:03:18] Production.INFO: ProcessCDR(1,14693356,1,1,2) [2025-03-16 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693356', 'tblTempUsageDetail_20' ) start [2025-03-16 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693356', 'tblTempUsageDetail_20' ) end [2025-03-16 12:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:03:21] Production.INFO: ==4353== Releasing lock... [2025-03-16 12:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:04:05 [end_date_ymd] => 2025-03-16 12:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:04:05' and `end` < '2025-03-16 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-03-16 12:04:17] Production.INFO: count ==530 [2025-03-16 12:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:04:05 - End Time 2025-03-16 12:04:05 [2025-03-16 12:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693361', 'tblTempUsageDetail_20' ) start [2025-03-16 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693361', 'tblTempUsageDetail_20' ) end [2025-03-16 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693361', 'tblTempVendorCDR_20' ) start [2025-03-16 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693361', 'tblTempVendorCDR_20' ) end [2025-03-16 12:04:17] Production.INFO: ProcessCDR(1,14693361,1,1,2) [2025-03-16 12:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693361', 'tblTempUsageDetail_20' ) start [2025-03-16 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693361', 'tblTempUsageDetail_20' ) end [2025-03-16 12:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:04:21] Production.INFO: ==4433== Releasing lock... [2025-03-16 12:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:05:05 [end_date_ymd] => 2025-03-16 12:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:05:05' and `end` < '2025-03-16 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-03-16 12:05:17] Production.INFO: count ==545 [2025-03-16 12:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:05:05 - End Time 2025-03-16 12:05:05 [2025-03-16 12:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693366', 'tblTempUsageDetail_20' ) start [2025-03-16 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693366', 'tblTempUsageDetail_20' ) end [2025-03-16 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693366', 'tblTempVendorCDR_20' ) start [2025-03-16 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693366', 'tblTempVendorCDR_20' ) end [2025-03-16 12:05:17] Production.INFO: ProcessCDR(1,14693366,1,1,2) [2025-03-16 12:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693366', 'tblTempUsageDetail_20' ) start [2025-03-16 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693366', 'tblTempUsageDetail_20' ) end [2025-03-16 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:05:22] Production.INFO: ==4511== Releasing lock... [2025-03-16 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:05:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:06:05 [end_date_ymd] => 2025-03-16 12:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:06:05' and `end` < '2025-03-16 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-03-16 12:06:17] Production.INFO: count ==571 [2025-03-16 12:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:06:05 - End Time 2025-03-16 12:06:05 [2025-03-16 12:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693371', 'tblTempUsageDetail_20' ) start [2025-03-16 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693371', 'tblTempUsageDetail_20' ) end [2025-03-16 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693371', 'tblTempVendorCDR_20' ) start [2025-03-16 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693371', 'tblTempVendorCDR_20' ) end [2025-03-16 12:06:17] Production.INFO: ProcessCDR(1,14693371,1,1,2) [2025-03-16 12:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693371', 'tblTempUsageDetail_20' ) start [2025-03-16 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693371', 'tblTempUsageDetail_20' ) end [2025-03-16 12:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:06:22] Production.INFO: ==4597== Releasing lock... [2025-03-16 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:06:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:07:05 [end_date_ymd] => 2025-03-16 12:07:05 [RateCDR] => 1 ) [2025-03-16 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:07:05' and `end` < '2025-03-16 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-03-16 12:07:17] Production.INFO: count ==567 [2025-03-16 12:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:07:05 - End Time 2025-03-16 12:07:05 [2025-03-16 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693376', 'tblTempUsageDetail_20' ) start [2025-03-16 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693376', 'tblTempUsageDetail_20' ) end [2025-03-16 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693376', 'tblTempVendorCDR_20' ) start [2025-03-16 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693376', 'tblTempVendorCDR_20' ) end [2025-03-16 12:07:17] Production.INFO: ProcessCDR(1,14693376,1,1,2) [2025-03-16 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693376', 'tblTempUsageDetail_20' ) start [2025-03-16 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693376', 'tblTempUsageDetail_20' ) end [2025-03-16 12:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:07:21] Production.INFO: ==4677== Releasing lock... [2025-03-16 12:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:08:05 [end_date_ymd] => 2025-03-16 12:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:08:05' and `end` < '2025-03-16 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-03-16 12:08:17] Production.INFO: count ==568 [2025-03-16 12:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:08:05 - End Time 2025-03-16 12:08:05 [2025-03-16 12:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693381', 'tblTempUsageDetail_20' ) start [2025-03-16 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693381', 'tblTempUsageDetail_20' ) end [2025-03-16 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693381', 'tblTempVendorCDR_20' ) start [2025-03-16 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693381', 'tblTempVendorCDR_20' ) end [2025-03-16 12:08:17] Production.INFO: ProcessCDR(1,14693381,1,1,2) [2025-03-16 12:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693381', 'tblTempUsageDetail_20' ) start [2025-03-16 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693381', 'tblTempUsageDetail_20' ) end [2025-03-16 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:08:22] Production.INFO: ==4754== Releasing lock... [2025-03-16 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-16 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:09:05 [end_date_ymd] => 2025-03-16 12:09:05 [RateCDR] => 1 ) [2025-03-16 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:09:05' and `end` < '2025-03-16 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:09:17] Production.INFO: count ==567 [2025-03-16 12:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:09:05 - End Time 2025-03-16 12:09:05 [2025-03-16 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693386', 'tblTempUsageDetail_20' ) start [2025-03-16 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693386', 'tblTempUsageDetail_20' ) end [2025-03-16 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693386', 'tblTempVendorCDR_20' ) start [2025-03-16 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693386', 'tblTempVendorCDR_20' ) end [2025-03-16 12:09:18] Production.INFO: ProcessCDR(1,14693386,1,1,2) [2025-03-16 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693386', 'tblTempUsageDetail_20' ) start [2025-03-16 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693386', 'tblTempUsageDetail_20' ) end [2025-03-16 12:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:09:22] Production.INFO: ==4838== Releasing lock... [2025-03-16 12:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:09:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:10:06 [end_date_ymd] => 2025-03-16 12:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:10:06' and `end` < '2025-03-16 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-03-16 12:10:18] Production.INFO: count ==575 [2025-03-16 12:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:10:06 - End Time 2025-03-16 12:10:06 [2025-03-16 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693391', 'tblTempUsageDetail_20' ) start [2025-03-16 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693391', 'tblTempUsageDetail_20' ) end [2025-03-16 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693391', 'tblTempVendorCDR_20' ) start [2025-03-16 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693391', 'tblTempVendorCDR_20' ) end [2025-03-16 12:10:18] Production.INFO: ProcessCDR(1,14693391,1,1,2) [2025-03-16 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693391', 'tblTempUsageDetail_20' ) start [2025-03-16 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693391', 'tblTempUsageDetail_20' ) end [2025-03-16 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:10:23] Production.INFO: ==4922== Releasing lock... [2025-03-16 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:10:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:11:05 [end_date_ymd] => 2025-03-16 12:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:11:05' and `end` < '2025-03-16 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-03-16 12:11:17] Production.INFO: count ==575 [2025-03-16 12:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:11:05 - End Time 2025-03-16 12:11:05 [2025-03-16 12:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693397', 'tblTempUsageDetail_20' ) start [2025-03-16 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693397', 'tblTempUsageDetail_20' ) end [2025-03-16 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693397', 'tblTempVendorCDR_20' ) start [2025-03-16 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693397', 'tblTempVendorCDR_20' ) end [2025-03-16 12:11:17] Production.INFO: ProcessCDR(1,14693397,1,1,2) [2025-03-16 12:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693397', 'tblTempUsageDetail_20' ) start [2025-03-16 12:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693397', 'tblTempUsageDetail_20' ) end [2025-03-16 12:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:11:20] Production.INFO: ==5050== Releasing lock... [2025-03-16 12:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:11:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:12:06 [end_date_ymd] => 2025-03-16 12:12:06 [RateCDR] => 1 ) [2025-03-16 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:12:06' and `end` < '2025-03-16 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:12:18] Production.INFO: count ==575 [2025-03-16 12:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:12:06 - End Time 2025-03-16 12:12:06 [2025-03-16 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693402', 'tblTempUsageDetail_20' ) start [2025-03-16 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693402', 'tblTempUsageDetail_20' ) end [2025-03-16 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693402', 'tblTempVendorCDR_20' ) start [2025-03-16 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693402', 'tblTempVendorCDR_20' ) end [2025-03-16 12:12:18] Production.INFO: ProcessCDR(1,14693402,1,1,2) [2025-03-16 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693402', 'tblTempUsageDetail_20' ) start [2025-03-16 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693402', 'tblTempUsageDetail_20' ) end [2025-03-16 12:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:12:21] Production.INFO: ==5133== Releasing lock... [2025-03-16 12:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:13:05 [end_date_ymd] => 2025-03-16 12:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:13:05' and `end` < '2025-03-16 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-03-16 12:13:17] Production.INFO: count ==576 [2025-03-16 12:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:13:05 - End Time 2025-03-16 12:13:05 [2025-03-16 12:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693407', 'tblTempUsageDetail_20' ) start [2025-03-16 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693407', 'tblTempUsageDetail_20' ) end [2025-03-16 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693407', 'tblTempVendorCDR_20' ) start [2025-03-16 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693407', 'tblTempVendorCDR_20' ) end [2025-03-16 12:13:17] Production.INFO: ProcessCDR(1,14693407,1,1,2) [2025-03-16 12:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693407', 'tblTempUsageDetail_20' ) start [2025-03-16 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693407', 'tblTempUsageDetail_20' ) end [2025-03-16 12:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:13:22] Production.INFO: ==5215== Releasing lock... [2025-03-16 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:13:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:14:06 [end_date_ymd] => 2025-03-16 12:14:06 [RateCDR] => 1 ) [2025-03-16 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:14:06' and `end` < '2025-03-16 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:14:18] Production.INFO: count ==577 [2025-03-16 12:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:14:06 - End Time 2025-03-16 12:14:06 [2025-03-16 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693412', 'tblTempUsageDetail_20' ) start [2025-03-16 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693412', 'tblTempUsageDetail_20' ) end [2025-03-16 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693412', 'tblTempVendorCDR_20' ) start [2025-03-16 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693412', 'tblTempVendorCDR_20' ) end [2025-03-16 12:14:18] Production.INFO: ProcessCDR(1,14693412,1,1,2) [2025-03-16 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693412', 'tblTempUsageDetail_20' ) start [2025-03-16 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693412', 'tblTempUsageDetail_20' ) end [2025-03-16 12:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:14:23] Production.INFO: ==5291== Releasing lock... [2025-03-16 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:14:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:15:05 [end_date_ymd] => 2025-03-16 12:15:05 [RateCDR] => 1 ) [2025-03-16 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:15:05' and `end` < '2025-03-16 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:15:17] Production.INFO: count ==577 [2025-03-16 12:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:15:05 - End Time 2025-03-16 12:15:05 [2025-03-16 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693417', 'tblTempUsageDetail_20' ) start [2025-03-16 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693417', 'tblTempUsageDetail_20' ) end [2025-03-16 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693417', 'tblTempVendorCDR_20' ) start [2025-03-16 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693417', 'tblTempVendorCDR_20' ) end [2025-03-16 12:15:17] Production.INFO: ProcessCDR(1,14693417,1,1,2) [2025-03-16 12:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693417', 'tblTempUsageDetail_20' ) start [2025-03-16 12:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693417', 'tblTempUsageDetail_20' ) end [2025-03-16 12:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:15:20] Production.INFO: ==5368== Releasing lock... [2025-03-16 12:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:15:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:16:05 [end_date_ymd] => 2025-03-16 12:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:16:05' and `end` < '2025-03-16 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-03-16 12:16:17] Production.INFO: count ==579 [2025-03-16 12:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:16:05 - End Time 2025-03-16 12:16:05 [2025-03-16 12:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693422', 'tblTempUsageDetail_20' ) start [2025-03-16 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693422', 'tblTempUsageDetail_20' ) end [2025-03-16 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693422', 'tblTempVendorCDR_20' ) start [2025-03-16 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693422', 'tblTempVendorCDR_20' ) end [2025-03-16 12:16:17] Production.INFO: ProcessCDR(1,14693422,1,1,2) [2025-03-16 12:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693422', 'tblTempUsageDetail_20' ) start [2025-03-16 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693422', 'tblTempUsageDetail_20' ) end [2025-03-16 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:16:22] Production.INFO: ==5446== Releasing lock... [2025-03-16 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:17:05 [end_date_ymd] => 2025-03-16 12:17:05 [RateCDR] => 1 ) [2025-03-16 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:17:05' and `end` < '2025-03-16 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:17:17] Production.INFO: count ==581 [2025-03-16 12:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:17:05 - End Time 2025-03-16 12:17:05 [2025-03-16 12:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693427', 'tblTempUsageDetail_20' ) start [2025-03-16 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693427', 'tblTempUsageDetail_20' ) end [2025-03-16 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693427', 'tblTempVendorCDR_20' ) start [2025-03-16 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693427', 'tblTempVendorCDR_20' ) end [2025-03-16 12:17:17] Production.INFO: ProcessCDR(1,14693427,1,1,2) [2025-03-16 12:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693427', 'tblTempUsageDetail_20' ) start [2025-03-16 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693427', 'tblTempUsageDetail_20' ) end [2025-03-16 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:17:22] Production.INFO: ==5527== Releasing lock... [2025-03-16 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:17:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:18:06 [end_date_ymd] => 2025-03-16 12:18:06 [RateCDR] => 1 ) [2025-03-16 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:18:06' and `end` < '2025-03-16 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:18:18] Production.INFO: count ==587 [2025-03-16 12:18:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:18:06 - End Time 2025-03-16 12:18:06 [2025-03-16 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693432', 'tblTempUsageDetail_20' ) start [2025-03-16 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693432', 'tblTempUsageDetail_20' ) end [2025-03-16 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693432', 'tblTempVendorCDR_20' ) start [2025-03-16 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693432', 'tblTempVendorCDR_20' ) end [2025-03-16 12:18:18] Production.INFO: ProcessCDR(1,14693432,1,1,2) [2025-03-16 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693432', 'tblTempUsageDetail_20' ) start [2025-03-16 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693432', 'tblTempUsageDetail_20' ) end [2025-03-16 12:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:18:21] Production.INFO: ==5607== Releasing lock... [2025-03-16 12:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:18:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:19:06 [end_date_ymd] => 2025-03-16 12:19:06 [RateCDR] => 1 ) [2025-03-16 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:19:06' and `end` < '2025-03-16 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:19:18] Production.INFO: count ==586 [2025-03-16 12:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:19:06 - End Time 2025-03-16 12:19:06 [2025-03-16 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693437', 'tblTempUsageDetail_20' ) start [2025-03-16 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693437', 'tblTempUsageDetail_20' ) end [2025-03-16 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693437', 'tblTempVendorCDR_20' ) start [2025-03-16 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693437', 'tblTempVendorCDR_20' ) end [2025-03-16 12:19:18] Production.INFO: ProcessCDR(1,14693437,1,1,2) [2025-03-16 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693437', 'tblTempUsageDetail_20' ) start [2025-03-16 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693437', 'tblTempUsageDetail_20' ) end [2025-03-16 12:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:19:22] Production.INFO: ==5684== Releasing lock... [2025-03-16 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:19:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:20:06 [end_date_ymd] => 2025-03-16 12:20:06 [RateCDR] => 1 ) [2025-03-16 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:20:06' and `end` < '2025-03-16 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:20:18] Production.INFO: count ==593 [2025-03-16 12:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:20:06 - End Time 2025-03-16 12:20:06 [2025-03-16 12:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693443', 'tblTempUsageDetail_20' ) start [2025-03-16 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693443', 'tblTempUsageDetail_20' ) end [2025-03-16 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693443', 'tblTempVendorCDR_20' ) start [2025-03-16 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693443', 'tblTempVendorCDR_20' ) end [2025-03-16 12:20:18] Production.INFO: ProcessCDR(1,14693443,1,1,2) [2025-03-16 12:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693443', 'tblTempUsageDetail_20' ) start [2025-03-16 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693443', 'tblTempUsageDetail_20' ) end [2025-03-16 12:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:20:21] Production.INFO: ==5768== Releasing lock... [2025-03-16 12:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:20:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:21:06 [end_date_ymd] => 2025-03-16 12:21:06 [RateCDR] => 1 ) [2025-03-16 12: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-03-16 09:21:06' and `end` < '2025-03-16 12: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-03-16 12:21:18] Production.INFO: count ==595 [2025-03-16 12:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:21:06 - End Time 2025-03-16 12:21:06 [2025-03-16 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693448', 'tblTempUsageDetail_20' ) start [2025-03-16 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693448', 'tblTempUsageDetail_20' ) end [2025-03-16 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693448', 'tblTempVendorCDR_20' ) start [2025-03-16 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693448', 'tblTempVendorCDR_20' ) end [2025-03-16 12:21:18] Production.INFO: ProcessCDR(1,14693448,1,1,2) [2025-03-16 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693448', 'tblTempUsageDetail_20' ) start [2025-03-16 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693448', 'tblTempUsageDetail_20' ) end [2025-03-16 12:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:21:21] Production.INFO: ==5848== Releasing lock... [2025-03-16 12:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:22:04 [end_date_ymd] => 2025-03-16 12:22:04 [RateCDR] => 1 ) [2025-03-16 12: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-03-16 09:22:04' and `end` < '2025-03-16 12: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-03-16 12:22:17] Production.INFO: count ==596 [2025-03-16 12:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:22:04 - End Time 2025-03-16 12:22:04 [2025-03-16 12:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693453', 'tblTempUsageDetail_20' ) start [2025-03-16 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693453', 'tblTempUsageDetail_20' ) end [2025-03-16 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693453', 'tblTempVendorCDR_20' ) start [2025-03-16 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693453', 'tblTempVendorCDR_20' ) end [2025-03-16 12:22:17] Production.INFO: ProcessCDR(1,14693453,1,1,2) [2025-03-16 12:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693453', 'tblTempUsageDetail_20' ) start [2025-03-16 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693453', 'tblTempUsageDetail_20' ) end [2025-03-16 12:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:22:21] Production.INFO: ==5926== Releasing lock... [2025-03-16 12:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:23:05 [end_date_ymd] => 2025-03-16 12:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:23:05' and `end` < '2025-03-16 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-03-16 12:23:17] Production.INFO: count ==596 [2025-03-16 12:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:23:05 - End Time 2025-03-16 12:23:05 [2025-03-16 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693458', 'tblTempUsageDetail_20' ) start [2025-03-16 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693458', 'tblTempUsageDetail_20' ) end [2025-03-16 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693458', 'tblTempVendorCDR_20' ) start [2025-03-16 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693458', 'tblTempVendorCDR_20' ) end [2025-03-16 12:23:18] Production.INFO: ProcessCDR(1,14693458,1,1,2) [2025-03-16 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693458', 'tblTempUsageDetail_20' ) start [2025-03-16 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693458', 'tblTempUsageDetail_20' ) end [2025-03-16 12:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:23:21] Production.INFO: ==6007== Releasing lock... [2025-03-16 12:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:24:05 [end_date_ymd] => 2025-03-16 12:24:05 [RateCDR] => 1 ) [2025-03-16 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:24:05' and `end` < '2025-03-16 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:24:17] Production.INFO: count ==600 [2025-03-16 12:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:24:05 - End Time 2025-03-16 12:24:05 [2025-03-16 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693463', 'tblTempUsageDetail_20' ) start [2025-03-16 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693463', 'tblTempUsageDetail_20' ) end [2025-03-16 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693463', 'tblTempVendorCDR_20' ) start [2025-03-16 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693463', 'tblTempVendorCDR_20' ) end [2025-03-16 12:24:18] Production.INFO: ProcessCDR(1,14693463,1,1,2) [2025-03-16 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693463', 'tblTempUsageDetail_20' ) start [2025-03-16 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693463', 'tblTempUsageDetail_20' ) end [2025-03-16 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:24:22] Production.INFO: ==6089== Releasing lock... [2025-03-16 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:25:05 [end_date_ymd] => 2025-03-16 12:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:25:05' and `end` < '2025-03-16 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-03-16 12:25:17] Production.INFO: count ==599 [2025-03-16 12:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:25:05 - End Time 2025-03-16 12:25:05 [2025-03-16 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693468', 'tblTempUsageDetail_20' ) start [2025-03-16 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693468', 'tblTempUsageDetail_20' ) end [2025-03-16 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693468', 'tblTempVendorCDR_20' ) start [2025-03-16 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693468', 'tblTempVendorCDR_20' ) end [2025-03-16 12:25:17] Production.INFO: ProcessCDR(1,14693468,1,1,2) [2025-03-16 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693468', 'tblTempUsageDetail_20' ) start [2025-03-16 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693468', 'tblTempUsageDetail_20' ) end [2025-03-16 12:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:25:22] Production.INFO: ==6167== Releasing lock... [2025-03-16 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:25:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:26:04 [end_date_ymd] => 2025-03-16 12:26:04 [RateCDR] => 1 ) [2025-03-16 12:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:26:04' and `end` < '2025-03-16 12:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:26:16] Production.INFO: count ==600 [2025-03-16 12:26:16] Production.ERROR: pbx CDR StartTime 2025-03-16 09:26:04 - End Time 2025-03-16 12:26:04 [2025-03-16 12:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693473', 'tblTempUsageDetail_20' ) start [2025-03-16 12:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693473', 'tblTempUsageDetail_20' ) end [2025-03-16 12:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693473', 'tblTempVendorCDR_20' ) start [2025-03-16 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693473', 'tblTempVendorCDR_20' ) end [2025-03-16 12:26:17] Production.INFO: ProcessCDR(1,14693473,1,1,2) [2025-03-16 12:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693473', 'tblTempUsageDetail_20' ) start [2025-03-16 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693473', 'tblTempUsageDetail_20' ) end [2025-03-16 12:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:26:21] Production.INFO: ==6288== Releasing lock... [2025-03-16 12:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:27:05 [end_date_ymd] => 2025-03-16 12:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:27:05' and `end` < '2025-03-16 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-03-16 12:27:17] Production.INFO: count ==601 [2025-03-16 12:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:27:05 - End Time 2025-03-16 12:27:05 [2025-03-16 12:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693478', 'tblTempUsageDetail_20' ) start [2025-03-16 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693478', 'tblTempUsageDetail_20' ) end [2025-03-16 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693478', 'tblTempVendorCDR_20' ) start [2025-03-16 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693478', 'tblTempVendorCDR_20' ) end [2025-03-16 12:27:17] Production.INFO: ProcessCDR(1,14693478,1,1,2) [2025-03-16 12:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693478', 'tblTempUsageDetail_20' ) start [2025-03-16 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693478', 'tblTempUsageDetail_20' ) end [2025-03-16 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:27:22] Production.INFO: ==6371== Releasing lock... [2025-03-16 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:28:05 [end_date_ymd] => 2025-03-16 12:28:05 [RateCDR] => 1 ) [2025-03-16 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:28:05' and `end` < '2025-03-16 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:28:17] Production.INFO: count ==601 [2025-03-16 12:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:28:05 - End Time 2025-03-16 12:28:05 [2025-03-16 12:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693483', 'tblTempUsageDetail_20' ) start [2025-03-16 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693483', 'tblTempUsageDetail_20' ) end [2025-03-16 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693483', 'tblTempVendorCDR_20' ) start [2025-03-16 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693483', 'tblTempVendorCDR_20' ) end [2025-03-16 12:28:17] Production.INFO: ProcessCDR(1,14693483,1,1,2) [2025-03-16 12:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693483', 'tblTempUsageDetail_20' ) start [2025-03-16 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693483', 'tblTempUsageDetail_20' ) end [2025-03-16 12:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:28:21] Production.INFO: ==6449== Releasing lock... [2025-03-16 12:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:28:21] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:29:04 [end_date_ymd] => 2025-03-16 12:29:04 [RateCDR] => 1 ) [2025-03-16 12: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-03-16 09:29:04' and `end` < '2025-03-16 12: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-03-16 12:29:17] Production.INFO: count ==601 [2025-03-16 12:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:29:04 - End Time 2025-03-16 12:29:04 [2025-03-16 12:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693488', 'tblTempUsageDetail_20' ) start [2025-03-16 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693488', 'tblTempUsageDetail_20' ) end [2025-03-16 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693488', 'tblTempVendorCDR_20' ) start [2025-03-16 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693488', 'tblTempVendorCDR_20' ) end [2025-03-16 12:29:17] Production.INFO: ProcessCDR(1,14693488,1,1,2) [2025-03-16 12:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693488', 'tblTempUsageDetail_20' ) start [2025-03-16 12:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693488', 'tblTempUsageDetail_20' ) end [2025-03-16 12:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:29:20] Production.INFO: ==6524== Releasing lock... [2025-03-16 12:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:29:20] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:30:06 [end_date_ymd] => 2025-03-16 12:30:06 [RateCDR] => 1 ) [2025-03-16 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:30:06' and `end` < '2025-03-16 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:30:18] Production.INFO: count ==603 [2025-03-16 12:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 09:30:06 - End Time 2025-03-16 12:30:06 [2025-03-16 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693493', 'tblTempUsageDetail_20' ) start [2025-03-16 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693493', 'tblTempUsageDetail_20' ) end [2025-03-16 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693493', 'tblTempVendorCDR_20' ) start [2025-03-16 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693493', 'tblTempVendorCDR_20' ) end [2025-03-16 12:30:19] Production.INFO: ProcessCDR(1,14693493,1,1,2) [2025-03-16 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693493', 'tblTempUsageDetail_20' ) start [2025-03-16 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693493', 'tblTempUsageDetail_20' ) end [2025-03-16 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:30:23] Production.INFO: ==6611== Releasing lock... [2025-03-16 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:31:05 [end_date_ymd] => 2025-03-16 12:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:31:05' and `end` < '2025-03-16 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-03-16 12:31:17] Production.INFO: count ==607 [2025-03-16 12:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:31:05 - End Time 2025-03-16 12:31:05 [2025-03-16 12:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693499', 'tblTempUsageDetail_20' ) start [2025-03-16 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693499', 'tblTempUsageDetail_20' ) end [2025-03-16 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693499', 'tblTempVendorCDR_20' ) start [2025-03-16 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693499', 'tblTempVendorCDR_20' ) end [2025-03-16 12:31:17] Production.INFO: ProcessCDR(1,14693499,1,1,2) [2025-03-16 12:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693499', 'tblTempUsageDetail_20' ) start [2025-03-16 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693499', 'tblTempUsageDetail_20' ) end [2025-03-16 12:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:31:22] Production.INFO: ==6692== Releasing lock... [2025-03-16 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:31:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:32:05 [end_date_ymd] => 2025-03-16 12:32:05 [RateCDR] => 1 ) [2025-03-16 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:32:05' and `end` < '2025-03-16 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:32:17] Production.INFO: count ==607 [2025-03-16 12:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:32:05 - End Time 2025-03-16 12:32:05 [2025-03-16 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693504', 'tblTempUsageDetail_20' ) start [2025-03-16 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693504', 'tblTempUsageDetail_20' ) end [2025-03-16 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693504', 'tblTempVendorCDR_20' ) start [2025-03-16 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693504', 'tblTempVendorCDR_20' ) end [2025-03-16 12:32:18] Production.INFO: ProcessCDR(1,14693504,1,1,2) [2025-03-16 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693504', 'tblTempUsageDetail_20' ) start [2025-03-16 12:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693504', 'tblTempUsageDetail_20' ) end [2025-03-16 12:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:32:21] Production.INFO: ==6769== Releasing lock... [2025-03-16 12:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:33:05 [end_date_ymd] => 2025-03-16 12:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:33:05' and `end` < '2025-03-16 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-03-16 12:33:17] Production.INFO: count ==603 [2025-03-16 12:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:33:05 - End Time 2025-03-16 12:33:05 [2025-03-16 12:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693509', 'tblTempUsageDetail_20' ) start [2025-03-16 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693509', 'tblTempUsageDetail_20' ) end [2025-03-16 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693509', 'tblTempVendorCDR_20' ) start [2025-03-16 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693509', 'tblTempVendorCDR_20' ) end [2025-03-16 12:33:17] Production.INFO: ProcessCDR(1,14693509,1,1,2) [2025-03-16 12:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693509', 'tblTempUsageDetail_20' ) start [2025-03-16 12:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693509', 'tblTempUsageDetail_20' ) end [2025-03-16 12:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:33:20] Production.INFO: ==6846== Releasing lock... [2025-03-16 12:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:33:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-16 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:34:06 [end_date_ymd] => 2025-03-16 12:34:06 [RateCDR] => 1 ) [2025-03-16 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:34:06' and `end` < '2025-03-16 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:34:18] Production.INFO: count ==602 [2025-03-16 12:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:34:06 - End Time 2025-03-16 12:34:06 [2025-03-16 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693514', 'tblTempUsageDetail_20' ) start [2025-03-16 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693514', 'tblTempUsageDetail_20' ) end [2025-03-16 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693514', 'tblTempVendorCDR_20' ) start [2025-03-16 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693514', 'tblTempVendorCDR_20' ) end [2025-03-16 12:34:18] Production.INFO: ProcessCDR(1,14693514,1,1,2) [2025-03-16 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693514', 'tblTempUsageDetail_20' ) start [2025-03-16 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693514', 'tblTempUsageDetail_20' ) end [2025-03-16 12:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:34:21] Production.INFO: ==6924== Releasing lock... [2025-03-16 12:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:35:04 [end_date_ymd] => 2025-03-16 12:35:04 [RateCDR] => 1 ) [2025-03-16 12: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-03-16 09:35:04' and `end` < '2025-03-16 12: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-03-16 12:35:16] Production.INFO: count ==602 [2025-03-16 12:35:16] Production.ERROR: pbx CDR StartTime 2025-03-16 09:35:04 - End Time 2025-03-16 12:35:04 [2025-03-16 12:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693519', 'tblTempUsageDetail_20' ) start [2025-03-16 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693519', 'tblTempUsageDetail_20' ) end [2025-03-16 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693519', 'tblTempVendorCDR_20' ) start [2025-03-16 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693519', 'tblTempVendorCDR_20' ) end [2025-03-16 12:35:17] Production.INFO: ProcessCDR(1,14693519,1,1,2) [2025-03-16 12:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693519', 'tblTempUsageDetail_20' ) start [2025-03-16 12:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693519', 'tblTempUsageDetail_20' ) end [2025-03-16 12:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:35:20] Production.INFO: ==7003== Releasing lock... [2025-03-16 12:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:35:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:36:05 [end_date_ymd] => 2025-03-16 12:36:05 [RateCDR] => 1 ) [2025-03-16 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:36:05' and `end` < '2025-03-16 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:36:17] Production.INFO: count ==604 [2025-03-16 12:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:36:05 - End Time 2025-03-16 12:36:05 [2025-03-16 12:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693524', 'tblTempUsageDetail_20' ) start [2025-03-16 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693524', 'tblTempUsageDetail_20' ) end [2025-03-16 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693524', 'tblTempVendorCDR_20' ) start [2025-03-16 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693524', 'tblTempVendorCDR_20' ) end [2025-03-16 12:36:17] Production.INFO: ProcessCDR(1,14693524,1,1,2) [2025-03-16 12:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693524', 'tblTempUsageDetail_20' ) start [2025-03-16 12:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693524', 'tblTempUsageDetail_20' ) end [2025-03-16 12:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:36:20] Production.INFO: ==7080== Releasing lock... [2025-03-16 12:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:36:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:37:06 [end_date_ymd] => 2025-03-16 12:37:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:37:06' and `end` < '2025-03-16 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-03-16 12:37:18] Production.INFO: count ==611 [2025-03-16 12:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:37:06 - End Time 2025-03-16 12:37:06 [2025-03-16 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693529', 'tblTempUsageDetail_20' ) start [2025-03-16 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693529', 'tblTempUsageDetail_20' ) end [2025-03-16 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693529', 'tblTempVendorCDR_20' ) start [2025-03-16 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693529', 'tblTempVendorCDR_20' ) end [2025-03-16 12:37:18] Production.INFO: ProcessCDR(1,14693529,1,1,2) [2025-03-16 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693529', 'tblTempUsageDetail_20' ) start [2025-03-16 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693529', 'tblTempUsageDetail_20' ) end [2025-03-16 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:37:22] Production.INFO: ==7157== Releasing lock... [2025-03-16 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:38:05 [end_date_ymd] => 2025-03-16 12:38:05 [RateCDR] => 1 ) [2025-03-16 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:38:05' and `end` < '2025-03-16 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:38:17] Production.INFO: count ==613 [2025-03-16 12:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:38:05 - End Time 2025-03-16 12:38:05 [2025-03-16 12:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693534', 'tblTempUsageDetail_20' ) start [2025-03-16 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693534', 'tblTempUsageDetail_20' ) end [2025-03-16 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693534', 'tblTempVendorCDR_20' ) start [2025-03-16 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693534', 'tblTempVendorCDR_20' ) end [2025-03-16 12:38:17] Production.INFO: ProcessCDR(1,14693534,1,1,2) [2025-03-16 12:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693534', 'tblTempUsageDetail_20' ) start [2025-03-16 12:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693534', 'tblTempUsageDetail_20' ) end [2025-03-16 12:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:38:20] Production.INFO: ==7236== Releasing lock... [2025-03-16 12:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:38:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:39:05 [end_date_ymd] => 2025-03-16 12:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:39:05' and `end` < '2025-03-16 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-03-16 12:39:17] Production.INFO: count ==622 [2025-03-16 12:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:39:05 - End Time 2025-03-16 12:39:05 [2025-03-16 12:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693537', 'tblTempUsageDetail_20' ) start [2025-03-16 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693537', 'tblTempUsageDetail_20' ) end [2025-03-16 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693537', 'tblTempVendorCDR_20' ) start [2025-03-16 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693537', 'tblTempVendorCDR_20' ) end [2025-03-16 12:39:17] Production.INFO: ProcessCDR(1,14693537,1,1,2) [2025-03-16 12:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693537', 'tblTempUsageDetail_20' ) start [2025-03-16 12:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693537', 'tblTempUsageDetail_20' ) end [2025-03-16 12:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:39:20] Production.INFO: ==7319== Releasing lock... [2025-03-16 12:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:39:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-16 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:40:06 [end_date_ymd] => 2025-03-16 12:40:06 [RateCDR] => 1 ) [2025-03-16 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:40:06' and `end` < '2025-03-16 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:40:18] Production.INFO: count ==640 [2025-03-16 12:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:40:06 - End Time 2025-03-16 12:40:06 [2025-03-16 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693545', 'tblTempUsageDetail_20' ) start [2025-03-16 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693545', 'tblTempUsageDetail_20' ) end [2025-03-16 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693545', 'tblTempVendorCDR_20' ) start [2025-03-16 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693545', 'tblTempVendorCDR_20' ) end [2025-03-16 12:40:18] Production.INFO: ProcessCDR(1,14693545,1,1,2) [2025-03-16 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693545', 'tblTempUsageDetail_20' ) start [2025-03-16 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693545', 'tblTempUsageDetail_20' ) end [2025-03-16 12:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:40:21] Production.INFO: ==7408== Releasing lock... [2025-03-16 12:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:40:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:41:06 [end_date_ymd] => 2025-03-16 12:41:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:41:06' and `end` < '2025-03-16 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-03-16 12:41:18] Production.INFO: count ==668 [2025-03-16 12:41:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:41:06 - End Time 2025-03-16 12:41:06 [2025-03-16 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693550', 'tblTempUsageDetail_20' ) start [2025-03-16 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693550', 'tblTempUsageDetail_20' ) end [2025-03-16 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693550', 'tblTempVendorCDR_20' ) start [2025-03-16 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693550', 'tblTempVendorCDR_20' ) end [2025-03-16 12:41:18] Production.INFO: ProcessCDR(1,14693550,1,1,2) [2025-03-16 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693550', 'tblTempUsageDetail_20' ) start [2025-03-16 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693550', 'tblTempUsageDetail_20' ) end [2025-03-16 12:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:41:21] Production.INFO: ==7488== Releasing lock... [2025-03-16 12:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:41:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:42:05 [end_date_ymd] => 2025-03-16 12:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:42:05' and `end` < '2025-03-16 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-03-16 12:42:17] Production.INFO: count ==671 [2025-03-16 12:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:42:05 - End Time 2025-03-16 12:42:05 [2025-03-16 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693555', 'tblTempUsageDetail_20' ) start [2025-03-16 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693555', 'tblTempUsageDetail_20' ) end [2025-03-16 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693555', 'tblTempVendorCDR_20' ) start [2025-03-16 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693555', 'tblTempVendorCDR_20' ) end [2025-03-16 12:42:18] Production.INFO: ProcessCDR(1,14693555,1,1,2) [2025-03-16 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693555', 'tblTempUsageDetail_20' ) start [2025-03-16 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693555', 'tblTempUsageDetail_20' ) end [2025-03-16 12:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:42:21] Production.INFO: ==7602== Releasing lock... [2025-03-16 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:43:05 [end_date_ymd] => 2025-03-16 12:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:43:05' and `end` < '2025-03-16 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-03-16 12:43:17] Production.INFO: count ==680 [2025-03-16 12:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:43:05 - End Time 2025-03-16 12:43:05 [2025-03-16 12:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693560', 'tblTempUsageDetail_20' ) start [2025-03-16 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693560', 'tblTempUsageDetail_20' ) end [2025-03-16 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693560', 'tblTempVendorCDR_20' ) start [2025-03-16 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693560', 'tblTempVendorCDR_20' ) end [2025-03-16 12:43:17] Production.INFO: ProcessCDR(1,14693560,1,1,2) [2025-03-16 12:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693560', 'tblTempUsageDetail_20' ) start [2025-03-16 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693560', 'tblTempUsageDetail_20' ) end [2025-03-16 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:43:21] Production.INFO: ==7675== Releasing lock... [2025-03-16 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:43:21] Production.INFO: 34 MB #Memory Used# [2025-03-16 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:44:05 [end_date_ymd] => 2025-03-16 12:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:44:05' and `end` < '2025-03-16 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-03-16 12:44:17] Production.INFO: count ==684 [2025-03-16 12:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:44:05 - End Time 2025-03-16 12:44:05 [2025-03-16 12:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693565', 'tblTempUsageDetail_20' ) start [2025-03-16 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693565', 'tblTempUsageDetail_20' ) end [2025-03-16 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693565', 'tblTempVendorCDR_20' ) start [2025-03-16 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693565', 'tblTempVendorCDR_20' ) end [2025-03-16 12:44:17] Production.INFO: ProcessCDR(1,14693565,1,1,2) [2025-03-16 12:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693565', 'tblTempUsageDetail_20' ) start [2025-03-16 12:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693565', 'tblTempUsageDetail_20' ) end [2025-03-16 12:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:44:20] Production.INFO: ==7754== Releasing lock... [2025-03-16 12:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:44:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:45:05 [end_date_ymd] => 2025-03-16 12:45:05 [RateCDR] => 1 ) [2025-03-16 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:45:05' and `end` < '2025-03-16 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:45:18] Production.INFO: count ==687 [2025-03-16 12:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:45:05 - End Time 2025-03-16 12:45:05 [2025-03-16 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693570', 'tblTempUsageDetail_20' ) start [2025-03-16 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693570', 'tblTempUsageDetail_20' ) end [2025-03-16 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693570', 'tblTempVendorCDR_20' ) start [2025-03-16 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693570', 'tblTempVendorCDR_20' ) end [2025-03-16 12:45:18] Production.INFO: ProcessCDR(1,14693570,1,1,2) [2025-03-16 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693570', 'tblTempUsageDetail_20' ) start [2025-03-16 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693570', 'tblTempUsageDetail_20' ) end [2025-03-16 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:45:22] Production.INFO: ==7830== Releasing lock... [2025-03-16 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-16 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:46:05 [end_date_ymd] => 2025-03-16 12:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:46:05' and `end` < '2025-03-16 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-03-16 12:46:17] Production.INFO: count ==688 [2025-03-16 12:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:46:05 - End Time 2025-03-16 12:46:05 [2025-03-16 12:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693575', 'tblTempUsageDetail_20' ) start [2025-03-16 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693575', 'tblTempUsageDetail_20' ) end [2025-03-16 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693575', 'tblTempVendorCDR_20' ) start [2025-03-16 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693575', 'tblTempVendorCDR_20' ) end [2025-03-16 12:46:17] Production.INFO: ProcessCDR(1,14693575,1,1,2) [2025-03-16 12:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693575', 'tblTempUsageDetail_20' ) start [2025-03-16 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693575', 'tblTempUsageDetail_20' ) end [2025-03-16 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:46:22] Production.INFO: ==7905== Releasing lock... [2025-03-16 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:47:05 [end_date_ymd] => 2025-03-16 12:47:05 [RateCDR] => 1 ) [2025-03-16 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:47:05' and `end` < '2025-03-16 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:47:17] Production.INFO: count ==692 [2025-03-16 12:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:47:05 - End Time 2025-03-16 12:47:05 [2025-03-16 12:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693580', 'tblTempUsageDetail_20' ) start [2025-03-16 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693580', 'tblTempUsageDetail_20' ) end [2025-03-16 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693580', 'tblTempVendorCDR_20' ) start [2025-03-16 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693580', 'tblTempVendorCDR_20' ) end [2025-03-16 12:47:18] Production.INFO: ProcessCDR(1,14693580,1,1,2) [2025-03-16 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693580', 'tblTempUsageDetail_20' ) start [2025-03-16 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693580', 'tblTempUsageDetail_20' ) end [2025-03-16 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:47:23] Production.INFO: ==7978== Releasing lock... [2025-03-16 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:48:05 [end_date_ymd] => 2025-03-16 12:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:48:05' and `end` < '2025-03-16 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-03-16 12:48:18] Production.INFO: count ==690 [2025-03-16 12:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:48:05 - End Time 2025-03-16 12:48:05 [2025-03-16 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693585', 'tblTempUsageDetail_20' ) start [2025-03-16 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693585', 'tblTempUsageDetail_20' ) end [2025-03-16 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693585', 'tblTempVendorCDR_20' ) start [2025-03-16 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693585', 'tblTempVendorCDR_20' ) end [2025-03-16 12:48:18] Production.INFO: ProcessCDR(1,14693585,1,1,2) [2025-03-16 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693585', 'tblTempUsageDetail_20' ) start [2025-03-16 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693585', 'tblTempUsageDetail_20' ) end [2025-03-16 12:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:48:21] Production.INFO: ==8059== Releasing lock... [2025-03-16 12:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:48:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:49:05 [end_date_ymd] => 2025-03-16 12:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:49:05' and `end` < '2025-03-16 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-03-16 12:49:17] Production.INFO: count ==677 [2025-03-16 12:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:49:05 - End Time 2025-03-16 12:49:05 [2025-03-16 12:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693590', 'tblTempUsageDetail_20' ) start [2025-03-16 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693590', 'tblTempUsageDetail_20' ) end [2025-03-16 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693590', 'tblTempVendorCDR_20' ) start [2025-03-16 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693590', 'tblTempVendorCDR_20' ) end [2025-03-16 12:49:17] Production.INFO: ProcessCDR(1,14693590,1,1,2) [2025-03-16 12:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693590', 'tblTempUsageDetail_20' ) start [2025-03-16 12:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693590', 'tblTempUsageDetail_20' ) end [2025-03-16 12:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:49:20] Production.INFO: ==8143== Releasing lock... [2025-03-16 12:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:49:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:50:06 [end_date_ymd] => 2025-03-16 12:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:50:06' and `end` < '2025-03-16 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-03-16 12:50:19] Production.INFO: count ==675 [2025-03-16 12:50:19] Production.ERROR: pbx CDR StartTime 2025-03-16 09:50:06 - End Time 2025-03-16 12:50:06 [2025-03-16 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693596', 'tblTempUsageDetail_20' ) start [2025-03-16 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693596', 'tblTempUsageDetail_20' ) end [2025-03-16 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693596', 'tblTempVendorCDR_20' ) start [2025-03-16 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693596', 'tblTempVendorCDR_20' ) end [2025-03-16 12:50:19] Production.INFO: ProcessCDR(1,14693596,1,1,2) [2025-03-16 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693596', 'tblTempUsageDetail_20' ) start [2025-03-16 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693596', 'tblTempUsageDetail_20' ) end [2025-03-16 12:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:50:22] Production.INFO: ==8227== Releasing lock... [2025-03-16 12:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:51:05 [end_date_ymd] => 2025-03-16 12:51:05 [RateCDR] => 1 ) [2025-03-16 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:51:05' and `end` < '2025-03-16 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:51:17] Production.INFO: count ==692 [2025-03-16 12:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:51:05 - End Time 2025-03-16 12:51:05 [2025-03-16 12:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693601', 'tblTempUsageDetail_20' ) start [2025-03-16 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693601', 'tblTempUsageDetail_20' ) end [2025-03-16 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693601', 'tblTempVendorCDR_20' ) start [2025-03-16 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693601', 'tblTempVendorCDR_20' ) end [2025-03-16 12:51:17] Production.INFO: ProcessCDR(1,14693601,1,1,2) [2025-03-16 12:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693601', 'tblTempUsageDetail_20' ) start [2025-03-16 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693601', 'tblTempUsageDetail_20' ) end [2025-03-16 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:51:22] Production.INFO: ==8307== Releasing lock... [2025-03-16 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:52:05 [end_date_ymd] => 2025-03-16 12:52:05 [RateCDR] => 1 ) [2025-03-16 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:52:05' and `end` < '2025-03-16 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:52:18] Production.INFO: count ==691 [2025-03-16 12:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:52:05 - End Time 2025-03-16 12:52:05 [2025-03-16 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693606', 'tblTempUsageDetail_20' ) start [2025-03-16 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693606', 'tblTempUsageDetail_20' ) end [2025-03-16 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693606', 'tblTempVendorCDR_20' ) start [2025-03-16 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693606', 'tblTempVendorCDR_20' ) end [2025-03-16 12:52:18] Production.INFO: ProcessCDR(1,14693606,1,1,2) [2025-03-16 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693606', 'tblTempUsageDetail_20' ) start [2025-03-16 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693606', 'tblTempUsageDetail_20' ) end [2025-03-16 12:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:52:22] Production.INFO: ==8385== Releasing lock... [2025-03-16 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:52:22] Production.INFO: 33 MB #Memory Used# [2025-03-16 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:53:05 [end_date_ymd] => 2025-03-16 12:53:05 [RateCDR] => 1 ) [2025-03-16 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:53:05' and `end` < '2025-03-16 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:53:17] Production.INFO: count ==685 [2025-03-16 12:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:53:05 - End Time 2025-03-16 12:53:05 [2025-03-16 12:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693611', 'tblTempUsageDetail_20' ) start [2025-03-16 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693611', 'tblTempUsageDetail_20' ) end [2025-03-16 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693611', 'tblTempVendorCDR_20' ) start [2025-03-16 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693611', 'tblTempVendorCDR_20' ) end [2025-03-16 12:53:17] Production.INFO: ProcessCDR(1,14693611,1,1,2) [2025-03-16 12:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693611', 'tblTempUsageDetail_20' ) start [2025-03-16 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693611', 'tblTempUsageDetail_20' ) end [2025-03-16 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:53:22] Production.INFO: ==8462== Releasing lock... [2025-03-16 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:53:22] Production.INFO: 34 MB #Memory Used# [2025-03-16 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:54:05 [end_date_ymd] => 2025-03-16 12:54:05 [RateCDR] => 1 ) [2025-03-16 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:54:05' and `end` < '2025-03-16 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:54:17] Production.INFO: count ==684 [2025-03-16 12:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:54:05 - End Time 2025-03-16 12:54:05 [2025-03-16 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693616', 'tblTempUsageDetail_20' ) start [2025-03-16 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693616', 'tblTempUsageDetail_20' ) end [2025-03-16 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693616', 'tblTempVendorCDR_20' ) start [2025-03-16 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693616', 'tblTempVendorCDR_20' ) end [2025-03-16 12:54:18] Production.INFO: ProcessCDR(1,14693616,1,1,2) [2025-03-16 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693616', 'tblTempUsageDetail_20' ) start [2025-03-16 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693616', 'tblTempUsageDetail_20' ) end [2025-03-16 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:54:23] Production.INFO: ==8548== Releasing lock... [2025-03-16 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:54:23] Production.INFO: 34 MB #Memory Used# [2025-03-16 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:55:05 [end_date_ymd] => 2025-03-16 12:55:05 [RateCDR] => 1 ) [2025-03-16 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:55:05' and `end` < '2025-03-16 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:55:17] Production.INFO: count ==690 [2025-03-16 12:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:55:05 - End Time 2025-03-16 12:55:05 [2025-03-16 12:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693621', 'tblTempUsageDetail_20' ) start [2025-03-16 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693621', 'tblTempUsageDetail_20' ) end [2025-03-16 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693621', 'tblTempVendorCDR_20' ) start [2025-03-16 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693621', 'tblTempVendorCDR_20' ) end [2025-03-16 12:55:17] Production.INFO: ProcessCDR(1,14693621,1,1,2) [2025-03-16 12:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693621', 'tblTempUsageDetail_20' ) start [2025-03-16 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693621', 'tblTempUsageDetail_20' ) end [2025-03-16 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:55:22] Production.INFO: ==8629== Releasing lock... [2025-03-16 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:56:05 [end_date_ymd] => 2025-03-16 12:56:05 [RateCDR] => 1 ) [2025-03-16 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:56:05' and `end` < '2025-03-16 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:56:17] Production.INFO: count ==692 [2025-03-16 12:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:56:05 - End Time 2025-03-16 12:56:05 [2025-03-16 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693626', 'tblTempUsageDetail_20' ) start [2025-03-16 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693626', 'tblTempUsageDetail_20' ) end [2025-03-16 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693626', 'tblTempVendorCDR_20' ) start [2025-03-16 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693626', 'tblTempVendorCDR_20' ) end [2025-03-16 12:56:18] Production.INFO: ProcessCDR(1,14693626,1,1,2) [2025-03-16 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693626', 'tblTempUsageDetail_20' ) start [2025-03-16 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693626', 'tblTempUsageDetail_20' ) end [2025-03-16 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:56:22] Production.INFO: ==8709== Releasing lock... [2025-03-16 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:57:06 [end_date_ymd] => 2025-03-16 12:57:06 [RateCDR] => 1 ) [2025-03-16 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 09:57:06' and `end` < '2025-03-16 12:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 12:57:18] Production.INFO: count ==695 [2025-03-16 12:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:57:06 - End Time 2025-03-16 12:57:06 [2025-03-16 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693631', 'tblTempUsageDetail_20' ) start [2025-03-16 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693631', 'tblTempUsageDetail_20' ) end [2025-03-16 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693631', 'tblTempVendorCDR_20' ) start [2025-03-16 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693631', 'tblTempVendorCDR_20' ) end [2025-03-16 12:57:18] Production.INFO: ProcessCDR(1,14693631,1,1,2) [2025-03-16 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693631', 'tblTempUsageDetail_20' ) start [2025-03-16 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693631', 'tblTempUsageDetail_20' ) end [2025-03-16 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:57:23] Production.INFO: ==8832== Releasing lock... [2025-03-16 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:58:05 [end_date_ymd] => 2025-03-16 12:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:58:05' and `end` < '2025-03-16 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-03-16 12:58:17] Production.INFO: count ==697 [2025-03-16 12:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 09:58:05 - End Time 2025-03-16 12:58:05 [2025-03-16 12:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693636', 'tblTempUsageDetail_20' ) start [2025-03-16 12:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693636', 'tblTempUsageDetail_20' ) end [2025-03-16 12:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693636', 'tblTempVendorCDR_20' ) start [2025-03-16 12:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693636', 'tblTempVendorCDR_20' ) end [2025-03-16 12:58:17] Production.INFO: ProcessCDR(1,14693636,1,1,2) [2025-03-16 12:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693636', 'tblTempUsageDetail_20' ) start [2025-03-16 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693636', 'tblTempUsageDetail_20' ) end [2025-03-16 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:58:22] Production.INFO: ==8916== Releasing lock... [2025-03-16 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:58:22] Production.INFO: 34 MB #Memory Used# [2025-03-16 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 09:59:05 [end_date_ymd] => 2025-03-16 12:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 09:59:05' and `end` < '2025-03-16 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-03-16 12:59:18] Production.INFO: count ==703 [2025-03-16 12:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 09:59:05 - End Time 2025-03-16 12:59:05 [2025-03-16 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693641', 'tblTempUsageDetail_20' ) start [2025-03-16 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693641', 'tblTempUsageDetail_20' ) end [2025-03-16 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693641', 'tblTempVendorCDR_20' ) start [2025-03-16 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693641', 'tblTempVendorCDR_20' ) end [2025-03-16 12:59:18] Production.INFO: ProcessCDR(1,14693641,1,1,2) [2025-03-16 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693641', 'tblTempUsageDetail_20' ) start [2025-03-16 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693641', 'tblTempUsageDetail_20' ) end [2025-03-16 12:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 12:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 12:59:23] Production.INFO: ==8999== Releasing lock... [2025-03-16 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 12:59:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-16 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:00:06 [end_date_ymd] => 2025-03-16 13:00:06 [RateCDR] => 1 ) [2025-03-16 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:00:06' and `end` < '2025-03-16 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:00:18] Production.INFO: count ==715 [2025-03-16 13:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:00:06 - End Time 2025-03-16 13:00:06 [2025-03-16 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693647', 'tblTempUsageDetail_20' ) start [2025-03-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693647', 'tblTempUsageDetail_20' ) end [2025-03-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693647', 'tblTempVendorCDR_20' ) start [2025-03-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693647', 'tblTempVendorCDR_20' ) end [2025-03-16 13:00:18] Production.INFO: ProcessCDR(1,14693647,1,1,2) [2025-03-16 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693647', 'tblTempUsageDetail_20' ) start [2025-03-16 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693647', 'tblTempUsageDetail_20' ) end [2025-03-16 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:00:23] Production.INFO: ==9090== Releasing lock... [2025-03-16 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:00:23] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:01:06 [end_date_ymd] => 2025-03-16 13:01:06 [RateCDR] => 1 ) [2025-03-16 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:01:06' and `end` < '2025-03-16 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:01:18] Production.INFO: count ==747 [2025-03-16 13:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:01:06 - End Time 2025-03-16 13:01:06 [2025-03-16 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693652', 'tblTempUsageDetail_20' ) start [2025-03-16 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693652', 'tblTempUsageDetail_20' ) end [2025-03-16 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693652', 'tblTempVendorCDR_20' ) start [2025-03-16 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693652', 'tblTempVendorCDR_20' ) end [2025-03-16 13:01:18] Production.INFO: ProcessCDR(1,14693652,1,1,2) [2025-03-16 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693652', 'tblTempUsageDetail_20' ) start [2025-03-16 13:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693652', 'tblTempUsageDetail_20' ) end [2025-03-16 13:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:01:21] Production.INFO: ==9184== Releasing lock... [2025-03-16 13:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:01:21] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:02:05 [end_date_ymd] => 2025-03-16 13:02:05 [RateCDR] => 1 ) [2025-03-16 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:02:05' and `end` < '2025-03-16 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:02:17] Production.INFO: count ==749 [2025-03-16 13:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:02:05 - End Time 2025-03-16 13:02:05 [2025-03-16 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693657', 'tblTempUsageDetail_20' ) start [2025-03-16 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693657', 'tblTempUsageDetail_20' ) end [2025-03-16 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693657', 'tblTempVendorCDR_20' ) start [2025-03-16 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693657', 'tblTempVendorCDR_20' ) end [2025-03-16 13:02:18] Production.INFO: ProcessCDR(1,14693657,1,1,2) [2025-03-16 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693657', 'tblTempUsageDetail_20' ) start [2025-03-16 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693657', 'tblTempUsageDetail_20' ) end [2025-03-16 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:02:23] Production.INFO: ==9269== Releasing lock... [2025-03-16 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:02:23] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:03:06 [end_date_ymd] => 2025-03-16 13:03:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:03:06' and `end` < '2025-03-16 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-03-16 13:03:18] Production.INFO: count ==758 [2025-03-16 13:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:03:06 - End Time 2025-03-16 13:03:06 [2025-03-16 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693662', 'tblTempUsageDetail_20' ) start [2025-03-16 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693662', 'tblTempUsageDetail_20' ) end [2025-03-16 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693662', 'tblTempVendorCDR_20' ) start [2025-03-16 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693662', 'tblTempVendorCDR_20' ) end [2025-03-16 13:03:18] Production.INFO: ProcessCDR(1,14693662,1,1,2) [2025-03-16 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693662', 'tblTempUsageDetail_20' ) start [2025-03-16 13:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693662', 'tblTempUsageDetail_20' ) end [2025-03-16 13:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:03:24] Production.INFO: ==9352== Releasing lock... [2025-03-16 13:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:03:24] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:04:05 [end_date_ymd] => 2025-03-16 13:04:05 [RateCDR] => 1 ) [2025-03-16 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:04:05' and `end` < '2025-03-16 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:04:17] Production.INFO: count ==760 [2025-03-16 13:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:04:05 - End Time 2025-03-16 13:04:05 [2025-03-16 13:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693667', 'tblTempUsageDetail_20' ) start [2025-03-16 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693667', 'tblTempUsageDetail_20' ) end [2025-03-16 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693667', 'tblTempVendorCDR_20' ) start [2025-03-16 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693667', 'tblTempVendorCDR_20' ) end [2025-03-16 13:04:17] Production.INFO: ProcessCDR(1,14693667,1,1,2) [2025-03-16 13:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693667', 'tblTempUsageDetail_20' ) start [2025-03-16 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693667', 'tblTempUsageDetail_20' ) end [2025-03-16 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:04:23] Production.INFO: ==9437== Releasing lock... [2025-03-16 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:04:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:05:06 [end_date_ymd] => 2025-03-16 13:05:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:05:06' and `end` < '2025-03-16 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-03-16 13:05:18] Production.INFO: count ==761 [2025-03-16 13:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:05:06 - End Time 2025-03-16 13:05:06 [2025-03-16 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693672', 'tblTempUsageDetail_20' ) start [2025-03-16 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693672', 'tblTempUsageDetail_20' ) end [2025-03-16 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693672', 'tblTempVendorCDR_20' ) start [2025-03-16 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693672', 'tblTempVendorCDR_20' ) end [2025-03-16 13:05:18] Production.INFO: ProcessCDR(1,14693672,1,1,2) [2025-03-16 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693672', 'tblTempUsageDetail_20' ) start [2025-03-16 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693672', 'tblTempUsageDetail_20' ) end [2025-03-16 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:05:23] Production.INFO: ==9516== Releasing lock... [2025-03-16 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:05:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-16 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:06:05 [end_date_ymd] => 2025-03-16 13:06:05 [RateCDR] => 1 ) [2025-03-16 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:06:05' and `end` < '2025-03-16 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:06:18] Production.INFO: count ==766 [2025-03-16 13:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:06:05 - End Time 2025-03-16 13:06:05 [2025-03-16 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693677', 'tblTempUsageDetail_20' ) start [2025-03-16 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693677', 'tblTempUsageDetail_20' ) end [2025-03-16 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693677', 'tblTempVendorCDR_20' ) start [2025-03-16 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693677', 'tblTempVendorCDR_20' ) end [2025-03-16 13:06:18] Production.INFO: ProcessCDR(1,14693677,1,1,2) [2025-03-16 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693677', 'tblTempUsageDetail_20' ) start [2025-03-16 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693677', 'tblTempUsageDetail_20' ) end [2025-03-16 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:06:24] Production.INFO: ==9597== Releasing lock... [2025-03-16 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:06:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-16 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:07:06 [end_date_ymd] => 2025-03-16 13:07:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:07:06' and `end` < '2025-03-16 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-03-16 13:07:18] Production.INFO: count ==772 [2025-03-16 13:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:07:06 - End Time 2025-03-16 13:07:06 [2025-03-16 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693682', 'tblTempUsageDetail_20' ) start [2025-03-16 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693682', 'tblTempUsageDetail_20' ) end [2025-03-16 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693682', 'tblTempVendorCDR_20' ) start [2025-03-16 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693682', 'tblTempVendorCDR_20' ) end [2025-03-16 13:07:18] Production.INFO: ProcessCDR(1,14693682,1,1,2) [2025-03-16 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693682', 'tblTempUsageDetail_20' ) start [2025-03-16 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693682', 'tblTempUsageDetail_20' ) end [2025-03-16 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:07:23] Production.INFO: ==9682== Releasing lock... [2025-03-16 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:07:23] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:08:05 [end_date_ymd] => 2025-03-16 13:08:05 [RateCDR] => 1 ) [2025-03-16 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:08:05' and `end` < '2025-03-16 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:08:17] Production.INFO: count ==774 [2025-03-16 13:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:08:05 - End Time 2025-03-16 13:08:05 [2025-03-16 13:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693687', 'tblTempUsageDetail_20' ) start [2025-03-16 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693687', 'tblTempUsageDetail_20' ) end [2025-03-16 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693687', 'tblTempVendorCDR_20' ) start [2025-03-16 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693687', 'tblTempVendorCDR_20' ) end [2025-03-16 13:08:17] Production.INFO: ProcessCDR(1,14693687,1,1,2) [2025-03-16 13:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693687', 'tblTempUsageDetail_20' ) start [2025-03-16 13:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693687', 'tblTempUsageDetail_20' ) end [2025-03-16 13:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:08:20] Production.INFO: ==9764== Releasing lock... [2025-03-16 13:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:08:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-16 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:09:05 [end_date_ymd] => 2025-03-16 13:09:05 [RateCDR] => 1 ) [2025-03-16 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:09:05' and `end` < '2025-03-16 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:09:18] Production.INFO: count ==774 [2025-03-16 13:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:09:05 - End Time 2025-03-16 13:09:05 [2025-03-16 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693692', 'tblTempUsageDetail_20' ) start [2025-03-16 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693692', 'tblTempUsageDetail_20' ) end [2025-03-16 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693692', 'tblTempVendorCDR_20' ) start [2025-03-16 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693692', 'tblTempVendorCDR_20' ) end [2025-03-16 13:09:18] Production.INFO: ProcessCDR(1,14693692,1,1,2) [2025-03-16 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693692', 'tblTempUsageDetail_20' ) start [2025-03-16 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693692', 'tblTempUsageDetail_20' ) end [2025-03-16 13:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:09:23] Production.INFO: ==9857== Releasing lock... [2025-03-16 13:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:09:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:10:06 [end_date_ymd] => 2025-03-16 13:10:06 [RateCDR] => 1 ) [2025-03-16 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:10:06' and `end` < '2025-03-16 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:10:18] Production.INFO: count ==782 [2025-03-16 13:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:10:06 - End Time 2025-03-16 13:10:06 [2025-03-16 13:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693697', 'tblTempUsageDetail_20' ) start [2025-03-16 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693697', 'tblTempUsageDetail_20' ) end [2025-03-16 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693697', 'tblTempVendorCDR_20' ) start [2025-03-16 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693697', 'tblTempVendorCDR_20' ) end [2025-03-16 13:10:18] Production.INFO: ProcessCDR(1,14693697,1,1,2) [2025-03-16 13:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693697', 'tblTempUsageDetail_20' ) start [2025-03-16 13:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693697', 'tblTempUsageDetail_20' ) end [2025-03-16 13:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:10:21] Production.INFO: ==9942== Releasing lock... [2025-03-16 13:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:10:21] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:11:05 [end_date_ymd] => 2025-03-16 13:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:11:05' and `end` < '2025-03-16 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-03-16 13:11:17] Production.INFO: count ==802 [2025-03-16 13:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:11:05 - End Time 2025-03-16 13:11:05 [2025-03-16 13:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693703', 'tblTempUsageDetail_20' ) start [2025-03-16 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693703', 'tblTempUsageDetail_20' ) end [2025-03-16 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693703', 'tblTempVendorCDR_20' ) start [2025-03-16 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693703', 'tblTempVendorCDR_20' ) end [2025-03-16 13:11:17] Production.INFO: ProcessCDR(1,14693703,1,1,2) [2025-03-16 13:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693703', 'tblTempUsageDetail_20' ) start [2025-03-16 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693703', 'tblTempUsageDetail_20' ) end [2025-03-16 13:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:11:22] Production.INFO: ==10050== Releasing lock... [2025-03-16 13:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:12:06 [end_date_ymd] => 2025-03-16 13:12:06 [RateCDR] => 1 ) [2025-03-16 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:12:06' and `end` < '2025-03-16 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:12:18] Production.INFO: count ==803 [2025-03-16 13:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:12:06 - End Time 2025-03-16 13:12:06 [2025-03-16 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693708', 'tblTempUsageDetail_20' ) start [2025-03-16 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693708', 'tblTempUsageDetail_20' ) end [2025-03-16 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693708', 'tblTempVendorCDR_20' ) start [2025-03-16 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693708', 'tblTempVendorCDR_20' ) end [2025-03-16 13:12:18] Production.INFO: ProcessCDR(1,14693708,1,1,2) [2025-03-16 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693708', 'tblTempUsageDetail_20' ) start [2025-03-16 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693708', 'tblTempUsageDetail_20' ) end [2025-03-16 13:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:12:22] Production.INFO: ==10201== Releasing lock... [2025-03-16 13:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:12:22] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:13:05 [end_date_ymd] => 2025-03-16 13:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:13:05' and `end` < '2025-03-16 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-03-16 13:13:17] Production.INFO: count ==797 [2025-03-16 13:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:13:05 - End Time 2025-03-16 13:13:05 [2025-03-16 13:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693713', 'tblTempUsageDetail_20' ) start [2025-03-16 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693713', 'tblTempUsageDetail_20' ) end [2025-03-16 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693713', 'tblTempVendorCDR_20' ) start [2025-03-16 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693713', 'tblTempVendorCDR_20' ) end [2025-03-16 13:13:17] Production.INFO: ProcessCDR(1,14693713,1,1,2) [2025-03-16 13:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693713', 'tblTempUsageDetail_20' ) start [2025-03-16 13:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693713', 'tblTempUsageDetail_20' ) end [2025-03-16 13:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:13:21] Production.INFO: ==10305== Releasing lock... [2025-03-16 13:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:13:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:14:05 [end_date_ymd] => 2025-03-16 13:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:14:05' and `end` < '2025-03-16 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-03-16 13:14:17] Production.INFO: count ==798 [2025-03-16 13:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:14:05 - End Time 2025-03-16 13:14:05 [2025-03-16 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693718', 'tblTempUsageDetail_20' ) start [2025-03-16 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693718', 'tblTempUsageDetail_20' ) end [2025-03-16 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693718', 'tblTempVendorCDR_20' ) start [2025-03-16 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693718', 'tblTempVendorCDR_20' ) end [2025-03-16 13:14:18] Production.INFO: ProcessCDR(1,14693718,1,1,2) [2025-03-16 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693718', 'tblTempUsageDetail_20' ) start [2025-03-16 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693718', 'tblTempUsageDetail_20' ) end [2025-03-16 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:14:22] Production.INFO: ==10414== Releasing lock... [2025-03-16 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:15:05 [end_date_ymd] => 2025-03-16 13:15:05 [RateCDR] => 1 ) [2025-03-16 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:15:05' and `end` < '2025-03-16 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:15:17] Production.INFO: count ==788 [2025-03-16 13:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:15:05 - End Time 2025-03-16 13:15:05 [2025-03-16 13:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693723', 'tblTempUsageDetail_20' ) start [2025-03-16 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693723', 'tblTempUsageDetail_20' ) end [2025-03-16 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693723', 'tblTempVendorCDR_20' ) start [2025-03-16 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693723', 'tblTempVendorCDR_20' ) end [2025-03-16 13:15:17] Production.INFO: ProcessCDR(1,14693723,1,1,2) [2025-03-16 13:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693723', 'tblTempUsageDetail_20' ) start [2025-03-16 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693723', 'tblTempUsageDetail_20' ) end [2025-03-16 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:15:22] Production.INFO: ==10518== Releasing lock... [2025-03-16 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:15:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-16 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:16:05 [end_date_ymd] => 2025-03-16 13:16:05 [RateCDR] => 1 ) [2025-03-16 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:16:05' and `end` < '2025-03-16 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:16:17] Production.INFO: count ==785 [2025-03-16 13:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:16:05 - End Time 2025-03-16 13:16:05 [2025-03-16 13:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693728', 'tblTempUsageDetail_20' ) start [2025-03-16 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693728', 'tblTempUsageDetail_20' ) end [2025-03-16 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693728', 'tblTempVendorCDR_20' ) start [2025-03-16 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693728', 'tblTempVendorCDR_20' ) end [2025-03-16 13:16:17] Production.INFO: ProcessCDR(1,14693728,1,1,2) [2025-03-16 13:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693728', 'tblTempUsageDetail_20' ) start [2025-03-16 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693728', 'tblTempUsageDetail_20' ) end [2025-03-16 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:16:22] Production.INFO: ==10628== Releasing lock... [2025-03-16 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:16:22] Production.INFO: 34 MB #Memory Used# [2025-03-16 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:17:05 [end_date_ymd] => 2025-03-16 13:17:05 [RateCDR] => 1 ) [2025-03-16 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:17:05' and `end` < '2025-03-16 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:17:17] Production.INFO: count ==800 [2025-03-16 13:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:17:05 - End Time 2025-03-16 13:17:05 [2025-03-16 13:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693733', 'tblTempUsageDetail_20' ) start [2025-03-16 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693733', 'tblTempUsageDetail_20' ) end [2025-03-16 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693733', 'tblTempVendorCDR_20' ) start [2025-03-16 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693733', 'tblTempVendorCDR_20' ) end [2025-03-16 13:17:17] Production.INFO: ProcessCDR(1,14693733,1,1,2) [2025-03-16 13:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693733', 'tblTempUsageDetail_20' ) start [2025-03-16 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693733', 'tblTempUsageDetail_20' ) end [2025-03-16 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:17:22] Production.INFO: ==10737== Releasing lock... [2025-03-16 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:17:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-16 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:18:05 [end_date_ymd] => 2025-03-16 13:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:18:05' and `end` < '2025-03-16 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-03-16 13:18:17] Production.INFO: count ==816 [2025-03-16 13:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:18:05 - End Time 2025-03-16 13:18:05 [2025-03-16 13:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693738', 'tblTempUsageDetail_20' ) start [2025-03-16 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693738', 'tblTempUsageDetail_20' ) end [2025-03-16 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693738', 'tblTempVendorCDR_20' ) start [2025-03-16 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693738', 'tblTempVendorCDR_20' ) end [2025-03-16 13:18:17] Production.INFO: ProcessCDR(1,14693738,1,1,2) [2025-03-16 13:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693738', 'tblTempUsageDetail_20' ) start [2025-03-16 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693738', 'tblTempUsageDetail_20' ) end [2025-03-16 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:18:22] Production.INFO: ==10852== Releasing lock... [2025-03-16 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:18:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-16 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:19:06 [end_date_ymd] => 2025-03-16 13:19:06 [RateCDR] => 1 ) [2025-03-16 13: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-03-16 10:19:06' and `end` < '2025-03-16 13: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-03-16 13:19:18] Production.INFO: count ==819 [2025-03-16 13:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:19:06 - End Time 2025-03-16 13:19:06 [2025-03-16 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693743', 'tblTempUsageDetail_20' ) start [2025-03-16 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693743', 'tblTempUsageDetail_20' ) end [2025-03-16 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693743', 'tblTempVendorCDR_20' ) start [2025-03-16 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693743', 'tblTempVendorCDR_20' ) end [2025-03-16 13:19:18] Production.INFO: ProcessCDR(1,14693743,1,1,2) [2025-03-16 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693743', 'tblTempUsageDetail_20' ) start [2025-03-16 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693743', 'tblTempUsageDetail_20' ) end [2025-03-16 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:19:23] Production.INFO: ==10963== Releasing lock... [2025-03-16 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:19:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:20:05 [end_date_ymd] => 2025-03-16 13:20:05 [RateCDR] => 1 ) [2025-03-16 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:20:05' and `end` < '2025-03-16 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:20:18] Production.INFO: count ==823 [2025-03-16 13:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:20:05 - End Time 2025-03-16 13:20:05 [2025-03-16 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693749', 'tblTempUsageDetail_20' ) start [2025-03-16 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693749', 'tblTempUsageDetail_20' ) end [2025-03-16 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693749', 'tblTempVendorCDR_20' ) start [2025-03-16 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693749', 'tblTempVendorCDR_20' ) end [2025-03-16 13:20:18] Production.INFO: ProcessCDR(1,14693749,1,1,2) [2025-03-16 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693749', 'tblTempUsageDetail_20' ) start [2025-03-16 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693749', 'tblTempUsageDetail_20' ) end [2025-03-16 13:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:20:23] Production.INFO: ==11073== Releasing lock... [2025-03-16 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:21:06 [end_date_ymd] => 2025-03-16 13:21:06 [RateCDR] => 1 ) [2025-03-16 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:21:06' and `end` < '2025-03-16 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:21:18] Production.INFO: count ==894 [2025-03-16 13:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:21:06 - End Time 2025-03-16 13:21:06 [2025-03-16 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693754', 'tblTempUsageDetail_20' ) start [2025-03-16 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693754', 'tblTempUsageDetail_20' ) end [2025-03-16 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693754', 'tblTempVendorCDR_20' ) start [2025-03-16 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693754', 'tblTempVendorCDR_20' ) end [2025-03-16 13:21:18] Production.INFO: ProcessCDR(1,14693754,1,1,2) [2025-03-16 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693754', 'tblTempUsageDetail_20' ) start [2025-03-16 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693754', 'tblTempUsageDetail_20' ) end [2025-03-16 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:21:23] Production.INFO: ==11180== Releasing lock... [2025-03-16 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:21:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:22:05 [end_date_ymd] => 2025-03-16 13:22:05 [RateCDR] => 1 ) [2025-03-16 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:22:05' and `end` < '2025-03-16 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:22:17] Production.INFO: count ==895 [2025-03-16 13:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:22:05 - End Time 2025-03-16 13:22:05 [2025-03-16 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693759', 'tblTempUsageDetail_20' ) start [2025-03-16 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693759', 'tblTempUsageDetail_20' ) end [2025-03-16 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693759', 'tblTempVendorCDR_20' ) start [2025-03-16 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693759', 'tblTempVendorCDR_20' ) end [2025-03-16 13:22:18] Production.INFO: ProcessCDR(1,14693759,1,1,2) [2025-03-16 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693759', 'tblTempUsageDetail_20' ) start [2025-03-16 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693759', 'tblTempUsageDetail_20' ) end [2025-03-16 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:22:22] Production.INFO: ==11284== Releasing lock... [2025-03-16 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:22:22] Production.INFO: 35 MB #Memory Used# [2025-03-16 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:23:05 [end_date_ymd] => 2025-03-16 13:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:23:05' and `end` < '2025-03-16 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-03-16 13:23:18] Production.INFO: count ==899 [2025-03-16 13:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:23:05 - End Time 2025-03-16 13:23:05 [2025-03-16 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693764', 'tblTempUsageDetail_20' ) start [2025-03-16 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693764', 'tblTempUsageDetail_20' ) end [2025-03-16 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693764', 'tblTempVendorCDR_20' ) start [2025-03-16 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693764', 'tblTempVendorCDR_20' ) end [2025-03-16 13:23:18] Production.INFO: ProcessCDR(1,14693764,1,1,2) [2025-03-16 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693764', 'tblTempUsageDetail_20' ) start [2025-03-16 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693764', 'tblTempUsageDetail_20' ) end [2025-03-16 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:23:23] Production.INFO: ==11389== Releasing lock... [2025-03-16 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:23:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:24:05 [end_date_ymd] => 2025-03-16 13:24:05 [RateCDR] => 1 ) [2025-03-16 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:24:05' and `end` < '2025-03-16 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:24:17] Production.INFO: count ==902 [2025-03-16 13:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:24:05 - End Time 2025-03-16 13:24:05 [2025-03-16 13:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693769', 'tblTempUsageDetail_20' ) start [2025-03-16 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693769', 'tblTempUsageDetail_20' ) end [2025-03-16 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693769', 'tblTempVendorCDR_20' ) start [2025-03-16 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693769', 'tblTempVendorCDR_20' ) end [2025-03-16 13:24:17] Production.INFO: ProcessCDR(1,14693769,1,1,2) [2025-03-16 13:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693769', 'tblTempUsageDetail_20' ) start [2025-03-16 13:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693769', 'tblTempUsageDetail_20' ) end [2025-03-16 13:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:24:20] Production.INFO: ==11490== Releasing lock... [2025-03-16 13:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:24:20] Production.INFO: 35 MB #Memory Used# [2025-03-16 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:25:06 [end_date_ymd] => 2025-03-16 13:25:06 [RateCDR] => 1 ) [2025-03-16 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:25:06' and `end` < '2025-03-16 13: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-03-16 13:25:18] Production.INFO: count ==905 [2025-03-16 13:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:25:06 - End Time 2025-03-16 13:25:06 [2025-03-16 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693774', 'tblTempUsageDetail_20' ) start [2025-03-16 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693774', 'tblTempUsageDetail_20' ) end [2025-03-16 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693774', 'tblTempVendorCDR_20' ) start [2025-03-16 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693774', 'tblTempVendorCDR_20' ) end [2025-03-16 13:25:18] Production.INFO: ProcessCDR(1,14693774,1,1,2) [2025-03-16 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693774', 'tblTempUsageDetail_20' ) start [2025-03-16 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693774', 'tblTempUsageDetail_20' ) end [2025-03-16 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:25:23] Production.INFO: ==11597== Releasing lock... [2025-03-16 13:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:25:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:26:05 [end_date_ymd] => 2025-03-16 13:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:26:05' and `end` < '2025-03-16 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-03-16 13:26:17] Production.INFO: count ==906 [2025-03-16 13:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:26:05 - End Time 2025-03-16 13:26:05 [2025-03-16 13:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693779', 'tblTempUsageDetail_20' ) start [2025-03-16 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693779', 'tblTempUsageDetail_20' ) end [2025-03-16 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693779', 'tblTempVendorCDR_20' ) start [2025-03-16 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693779', 'tblTempVendorCDR_20' ) end [2025-03-16 13:26:17] Production.INFO: ProcessCDR(1,14693779,1,1,2) [2025-03-16 13:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693779', 'tblTempUsageDetail_20' ) start [2025-03-16 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693779', 'tblTempUsageDetail_20' ) end [2025-03-16 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:26:22] Production.INFO: ==11698== Releasing lock... [2025-03-16 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:27:05 [end_date_ymd] => 2025-03-16 13:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:27:05' and `end` < '2025-03-16 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-03-16 13:27:17] Production.INFO: count ==906 [2025-03-16 13:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:27:05 - End Time 2025-03-16 13:27:05 [2025-03-16 13:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693784', 'tblTempUsageDetail_20' ) start [2025-03-16 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693784', 'tblTempUsageDetail_20' ) end [2025-03-16 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693784', 'tblTempVendorCDR_20' ) start [2025-03-16 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693784', 'tblTempVendorCDR_20' ) end [2025-03-16 13:27:17] Production.INFO: ProcessCDR(1,14693784,1,1,2) [2025-03-16 13:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693784', 'tblTempUsageDetail_20' ) start [2025-03-16 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693784', 'tblTempUsageDetail_20' ) end [2025-03-16 13:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:27:21] Production.INFO: ==11802== Releasing lock... [2025-03-16 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:27:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:28:05 [end_date_ymd] => 2025-03-16 13:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:28:05' and `end` < '2025-03-16 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-03-16 13:28:18] Production.INFO: count ==907 [2025-03-16 13:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:28:05 - End Time 2025-03-16 13:28:05 [2025-03-16 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693789', 'tblTempUsageDetail_20' ) start [2025-03-16 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693789', 'tblTempUsageDetail_20' ) end [2025-03-16 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693789', 'tblTempVendorCDR_20' ) start [2025-03-16 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693789', 'tblTempVendorCDR_20' ) end [2025-03-16 13:28:18] Production.INFO: ProcessCDR(1,14693789,1,1,2) [2025-03-16 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693789', 'tblTempUsageDetail_20' ) start [2025-03-16 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693789', 'tblTempUsageDetail_20' ) end [2025-03-16 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:28:23] Production.INFO: ==11936== Releasing lock... [2025-03-16 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:28:23] Production.INFO: 35 MB #Memory Used# [2025-03-16 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:29:05 [end_date_ymd] => 2025-03-16 13:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:29:05' and `end` < '2025-03-16 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-03-16 13:29:17] Production.INFO: count ==904 [2025-03-16 13:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:29:05 - End Time 2025-03-16 13:29:05 [2025-03-16 13:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693794', 'tblTempUsageDetail_20' ) start [2025-03-16 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693794', 'tblTempUsageDetail_20' ) end [2025-03-16 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693794', 'tblTempVendorCDR_20' ) start [2025-03-16 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693794', 'tblTempVendorCDR_20' ) end [2025-03-16 13:29:17] Production.INFO: ProcessCDR(1,14693794,1,1,2) [2025-03-16 13:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693794', 'tblTempUsageDetail_20' ) start [2025-03-16 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693794', 'tblTempUsageDetail_20' ) end [2025-03-16 13:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:29:21] Production.INFO: ==12013== Releasing lock... [2025-03-16 13:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:29:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:30:06 [end_date_ymd] => 2025-03-16 13:30:06 [RateCDR] => 1 ) [2025-03-16 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:30:06' and `end` < '2025-03-16 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:30:18] Production.INFO: count ==904 [2025-03-16 13:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 10:30:06 - End Time 2025-03-16 13:30:06 [2025-03-16 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693800', 'tblTempUsageDetail_20' ) start [2025-03-16 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693800', 'tblTempUsageDetail_20' ) end [2025-03-16 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693800', 'tblTempVendorCDR_20' ) start [2025-03-16 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693800', 'tblTempVendorCDR_20' ) end [2025-03-16 13:30:19] Production.INFO: ProcessCDR(1,14693800,1,1,2) [2025-03-16 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693800', 'tblTempUsageDetail_20' ) start [2025-03-16 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693800', 'tblTempUsageDetail_20' ) end [2025-03-16 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:30:23] Production.INFO: ==12102== Releasing lock... [2025-03-16 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:30:23] Production.INFO: 35 MB #Memory Used# [2025-03-16 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:31:04 [end_date_ymd] => 2025-03-16 13:31:04 [RateCDR] => 1 ) [2025-03-16 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:31:04' and `end` < '2025-03-16 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:31:17] Production.INFO: count ==910 [2025-03-16 13:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:31:04 - End Time 2025-03-16 13:31:04 [2025-03-16 13:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693805', 'tblTempUsageDetail_20' ) start [2025-03-16 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693805', 'tblTempUsageDetail_20' ) end [2025-03-16 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693805', 'tblTempVendorCDR_20' ) start [2025-03-16 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693805', 'tblTempVendorCDR_20' ) end [2025-03-16 13:31:17] Production.INFO: ProcessCDR(1,14693805,1,1,2) [2025-03-16 13:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693805', 'tblTempUsageDetail_20' ) start [2025-03-16 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693805', 'tblTempUsageDetail_20' ) end [2025-03-16 13:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:31:22] Production.INFO: ==12180== Releasing lock... [2025-03-16 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:32:05 [end_date_ymd] => 2025-03-16 13:32:05 [RateCDR] => 1 ) [2025-03-16 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:32:05' and `end` < '2025-03-16 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:32:17] Production.INFO: count ==912 [2025-03-16 13:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:32:05 - End Time 2025-03-16 13:32:05 [2025-03-16 13:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693810', 'tblTempUsageDetail_20' ) start [2025-03-16 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693810', 'tblTempUsageDetail_20' ) end [2025-03-16 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693810', 'tblTempVendorCDR_20' ) start [2025-03-16 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693810', 'tblTempVendorCDR_20' ) end [2025-03-16 13:32:17] Production.INFO: ProcessCDR(1,14693810,1,1,2) [2025-03-16 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693810', 'tblTempUsageDetail_20' ) start [2025-03-16 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693810', 'tblTempUsageDetail_20' ) end [2025-03-16 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:32:22] Production.INFO: ==12256== Releasing lock... [2025-03-16 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:32:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:33:04 [end_date_ymd] => 2025-03-16 13:33:04 [RateCDR] => 1 ) [2025-03-16 13: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-03-16 10:33:04' and `end` < '2025-03-16 13: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-03-16 13:33:17] Production.INFO: count ==924 [2025-03-16 13:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:33:04 - End Time 2025-03-16 13:33:04 [2025-03-16 13:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693815', 'tblTempUsageDetail_20' ) start [2025-03-16 13:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693815', 'tblTempUsageDetail_20' ) end [2025-03-16 13:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693815', 'tblTempVendorCDR_20' ) start [2025-03-16 13:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693815', 'tblTempVendorCDR_20' ) end [2025-03-16 13:33:17] Production.INFO: ProcessCDR(1,14693815,1,1,2) [2025-03-16 13:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693815', 'tblTempUsageDetail_20' ) start [2025-03-16 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693815', 'tblTempUsageDetail_20' ) end [2025-03-16 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:33:22] Production.INFO: ==12326== Releasing lock... [2025-03-16 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:33:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:34:05 [end_date_ymd] => 2025-03-16 13:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:34:05' and `end` < '2025-03-16 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-03-16 13:34:17] Production.INFO: count ==938 [2025-03-16 13:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:34:05 - End Time 2025-03-16 13:34:05 [2025-03-16 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693820', 'tblTempUsageDetail_20' ) start [2025-03-16 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693820', 'tblTempUsageDetail_20' ) end [2025-03-16 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693820', 'tblTempVendorCDR_20' ) start [2025-03-16 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693820', 'tblTempVendorCDR_20' ) end [2025-03-16 13:34:18] Production.INFO: ProcessCDR(1,14693820,1,1,2) [2025-03-16 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693820', 'tblTempUsageDetail_20' ) start [2025-03-16 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693820', 'tblTempUsageDetail_20' ) end [2025-03-16 13:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:34:22] Production.INFO: ==12399== Releasing lock... [2025-03-16 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:34:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:35:05 [end_date_ymd] => 2025-03-16 13:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:35:05' and `end` < '2025-03-16 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-03-16 13:35:17] Production.INFO: count ==945 [2025-03-16 13:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:35:05 - End Time 2025-03-16 13:35:05 [2025-03-16 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693825', 'tblTempUsageDetail_20' ) start [2025-03-16 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693825', 'tblTempUsageDetail_20' ) end [2025-03-16 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693825', 'tblTempVendorCDR_20' ) start [2025-03-16 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693825', 'tblTempVendorCDR_20' ) end [2025-03-16 13:35:18] Production.INFO: ProcessCDR(1,14693825,1,1,2) [2025-03-16 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693825', 'tblTempUsageDetail_20' ) start [2025-03-16 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693825', 'tblTempUsageDetail_20' ) end [2025-03-16 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:35:22] Production.INFO: ==12471== Releasing lock... [2025-03-16 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:35:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:36:05 [end_date_ymd] => 2025-03-16 13:36:05 [RateCDR] => 1 ) [2025-03-16 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:36:05' and `end` < '2025-03-16 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:36:17] Production.INFO: count ==948 [2025-03-16 13:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:36:05 - End Time 2025-03-16 13:36:05 [2025-03-16 13:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693830', 'tblTempUsageDetail_20' ) start [2025-03-16 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693830', 'tblTempUsageDetail_20' ) end [2025-03-16 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693830', 'tblTempVendorCDR_20' ) start [2025-03-16 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693830', 'tblTempVendorCDR_20' ) end [2025-03-16 13:36:17] Production.INFO: ProcessCDR(1,14693830,1,1,2) [2025-03-16 13:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693830', 'tblTempUsageDetail_20' ) start [2025-03-16 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693830', 'tblTempUsageDetail_20' ) end [2025-03-16 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:36:22] Production.INFO: ==12544== Releasing lock... [2025-03-16 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:36:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:37:05 [end_date_ymd] => 2025-03-16 13:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:37:05' and `end` < '2025-03-16 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-03-16 13:37:17] Production.INFO: count ==946 [2025-03-16 13:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:37:05 - End Time 2025-03-16 13:37:05 [2025-03-16 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693835', 'tblTempUsageDetail_20' ) start [2025-03-16 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693835', 'tblTempUsageDetail_20' ) end [2025-03-16 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693835', 'tblTempVendorCDR_20' ) start [2025-03-16 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693835', 'tblTempVendorCDR_20' ) end [2025-03-16 13:37:18] Production.INFO: ProcessCDR(1,14693835,1,1,2) [2025-03-16 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693835', 'tblTempUsageDetail_20' ) start [2025-03-16 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693835', 'tblTempUsageDetail_20' ) end [2025-03-16 13:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:37:22] Production.INFO: ==12617== Releasing lock... [2025-03-16 13:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:37:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:38:05 [end_date_ymd] => 2025-03-16 13:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:38:05' and `end` < '2025-03-16 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-03-16 13:38:17] Production.INFO: count ==946 [2025-03-16 13:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:38:05 - End Time 2025-03-16 13:38:05 [2025-03-16 13:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693840', 'tblTempUsageDetail_20' ) start [2025-03-16 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693840', 'tblTempUsageDetail_20' ) end [2025-03-16 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693840', 'tblTempVendorCDR_20' ) start [2025-03-16 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693840', 'tblTempVendorCDR_20' ) end [2025-03-16 13:38:17] Production.INFO: ProcessCDR(1,14693840,1,1,2) [2025-03-16 13:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693840', 'tblTempUsageDetail_20' ) start [2025-03-16 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693840', 'tblTempUsageDetail_20' ) end [2025-03-16 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:38:22] Production.INFO: ==12688== Releasing lock... [2025-03-16 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:38:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:39:05 [end_date_ymd] => 2025-03-16 13:39:05 [RateCDR] => 1 ) [2025-03-16 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:39:05' and `end` < '2025-03-16 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:39:17] Production.INFO: count ==944 [2025-03-16 13:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:39:05 - End Time 2025-03-16 13:39:05 [2025-03-16 13:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693845', 'tblTempUsageDetail_20' ) start [2025-03-16 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693845', 'tblTempUsageDetail_20' ) end [2025-03-16 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693845', 'tblTempVendorCDR_20' ) start [2025-03-16 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693845', 'tblTempVendorCDR_20' ) end [2025-03-16 13:39:17] Production.INFO: ProcessCDR(1,14693845,1,1,2) [2025-03-16 13:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693845', 'tblTempUsageDetail_20' ) start [2025-03-16 13:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693845', 'tblTempUsageDetail_20' ) end [2025-03-16 13:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:39:20] Production.INFO: ==12762== Releasing lock... [2025-03-16 13:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:39:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:40:06 [end_date_ymd] => 2025-03-16 13:40:06 [RateCDR] => 1 ) [2025-03-16 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:40:06' and `end` < '2025-03-16 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:40:18] Production.INFO: count ==945 [2025-03-16 13:40:19] Production.ERROR: pbx CDR StartTime 2025-03-16 10:40:06 - End Time 2025-03-16 13:40:06 [2025-03-16 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693851', 'tblTempUsageDetail_20' ) start [2025-03-16 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693851', 'tblTempUsageDetail_20' ) end [2025-03-16 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693851', 'tblTempVendorCDR_20' ) start [2025-03-16 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693851', 'tblTempVendorCDR_20' ) end [2025-03-16 13:40:19] Production.INFO: ProcessCDR(1,14693851,1,1,2) [2025-03-16 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693851', 'tblTempUsageDetail_20' ) start [2025-03-16 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693851', 'tblTempUsageDetail_20' ) end [2025-03-16 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:40:24] Production.INFO: ==12839== Releasing lock... [2025-03-16 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:40:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:41:05 [end_date_ymd] => 2025-03-16 13:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:41:05' and `end` < '2025-03-16 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-03-16 13:41:17] Production.INFO: count ==972 [2025-03-16 13:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:41:05 - End Time 2025-03-16 13:41:05 [2025-03-16 13:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693856', 'tblTempUsageDetail_20' ) start [2025-03-16 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693856', 'tblTempUsageDetail_20' ) end [2025-03-16 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693856', 'tblTempVendorCDR_20' ) start [2025-03-16 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693856', 'tblTempVendorCDR_20' ) end [2025-03-16 13:41:17] Production.INFO: ProcessCDR(1,14693856,1,1,2) [2025-03-16 13:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693856', 'tblTempUsageDetail_20' ) start [2025-03-16 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693856', 'tblTempUsageDetail_20' ) end [2025-03-16 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:41:22] Production.INFO: ==12914== Releasing lock... [2025-03-16 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:41:22] Production.INFO: 36 MB #Memory Used# [2025-03-16 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:42:06 [end_date_ymd] => 2025-03-16 13:42:06 [RateCDR] => 1 ) [2025-03-16 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:42:06' and `end` < '2025-03-16 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:42:18] Production.INFO: count ==974 [2025-03-16 13:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:42:06 - End Time 2025-03-16 13:42:06 [2025-03-16 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693861', 'tblTempUsageDetail_20' ) start [2025-03-16 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693861', 'tblTempUsageDetail_20' ) end [2025-03-16 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693861', 'tblTempVendorCDR_20' ) start [2025-03-16 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693861', 'tblTempVendorCDR_20' ) end [2025-03-16 13:42:18] Production.INFO: ProcessCDR(1,14693861,1,1,2) [2025-03-16 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693861', 'tblTempUsageDetail_20' ) start [2025-03-16 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693861', 'tblTempUsageDetail_20' ) end [2025-03-16 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:42:23] Production.INFO: ==12986== Releasing lock... [2025-03-16 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:42:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:43:05 [end_date_ymd] => 2025-03-16 13:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:43:05' and `end` < '2025-03-16 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-03-16 13:43:17] Production.INFO: count ==974 [2025-03-16 13:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:43:05 - End Time 2025-03-16 13:43:05 [2025-03-16 13:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693866', 'tblTempUsageDetail_20' ) start [2025-03-16 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693866', 'tblTempUsageDetail_20' ) end [2025-03-16 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693866', 'tblTempVendorCDR_20' ) start [2025-03-16 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693866', 'tblTempVendorCDR_20' ) end [2025-03-16 13:43:17] Production.INFO: ProcessCDR(1,14693866,1,1,2) [2025-03-16 13:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693866', 'tblTempUsageDetail_20' ) start [2025-03-16 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693866', 'tblTempUsageDetail_20' ) end [2025-03-16 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:43:21] Production.INFO: ==13098== Releasing lock... [2025-03-16 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:43:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:44:05 [end_date_ymd] => 2025-03-16 13:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:44:05' and `end` < '2025-03-16 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-03-16 13:44:18] Production.INFO: count ==977 [2025-03-16 13:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:44:05 - End Time 2025-03-16 13:44:05 [2025-03-16 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693871', 'tblTempUsageDetail_20' ) start [2025-03-16 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693871', 'tblTempUsageDetail_20' ) end [2025-03-16 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693871', 'tblTempVendorCDR_20' ) start [2025-03-16 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693871', 'tblTempVendorCDR_20' ) end [2025-03-16 13:44:18] Production.INFO: ProcessCDR(1,14693871,1,1,2) [2025-03-16 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693871', 'tblTempUsageDetail_20' ) start [2025-03-16 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693871', 'tblTempUsageDetail_20' ) end [2025-03-16 13:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:44:22] Production.INFO: ==13171== Releasing lock... [2025-03-16 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:44:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:45:04 [end_date_ymd] => 2025-03-16 13:45:04 [RateCDR] => 1 ) [2025-03-16 13: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-03-16 10:45:04' and `end` < '2025-03-16 13: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-03-16 13:45:16] Production.INFO: count ==980 [2025-03-16 13:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:45:04 - End Time 2025-03-16 13:45:04 [2025-03-16 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693872', 'tblTempUsageDetail_20' ) start [2025-03-16 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693872', 'tblTempUsageDetail_20' ) end [2025-03-16 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693872', 'tblTempVendorCDR_20' ) start [2025-03-16 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693872', 'tblTempVendorCDR_20' ) end [2025-03-16 13:45:17] Production.INFO: ProcessCDR(1,14693872,1,1,2) [2025-03-16 13:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693872', 'tblTempUsageDetail_20' ) start [2025-03-16 13:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693872', 'tblTempUsageDetail_20' ) end [2025-03-16 13:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:45:20] Production.INFO: ==13245== Releasing lock... [2025-03-16 13:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:45:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:46:05 [end_date_ymd] => 2025-03-16 13:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:46:05' and `end` < '2025-03-16 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-03-16 13:46:17] Production.INFO: count ==992 [2025-03-16 13:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:46:05 - End Time 2025-03-16 13:46:05 [2025-03-16 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693881', 'tblTempUsageDetail_20' ) start [2025-03-16 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693881', 'tblTempUsageDetail_20' ) end [2025-03-16 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693881', 'tblTempVendorCDR_20' ) start [2025-03-16 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693881', 'tblTempVendorCDR_20' ) end [2025-03-16 13:46:18] Production.INFO: ProcessCDR(1,14693881,1,1,2) [2025-03-16 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693881', 'tblTempUsageDetail_20' ) start [2025-03-16 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693881', 'tblTempUsageDetail_20' ) end [2025-03-16 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:46:23] Production.INFO: ==13321== Releasing lock... [2025-03-16 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:46:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:47:05 [end_date_ymd] => 2025-03-16 13:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:47:05' and `end` < '2025-03-16 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-03-16 13:47:17] Production.INFO: count ==994 [2025-03-16 13:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:47:05 - End Time 2025-03-16 13:47:05 [2025-03-16 13:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693886', 'tblTempUsageDetail_20' ) start [2025-03-16 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693886', 'tblTempUsageDetail_20' ) end [2025-03-16 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693886', 'tblTempVendorCDR_20' ) start [2025-03-16 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693886', 'tblTempVendorCDR_20' ) end [2025-03-16 13:47:17] Production.INFO: ProcessCDR(1,14693886,1,1,2) [2025-03-16 13:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693886', 'tblTempUsageDetail_20' ) start [2025-03-16 13:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693886', 'tblTempUsageDetail_20' ) end [2025-03-16 13:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:47:20] Production.INFO: ==13398== Releasing lock... [2025-03-16 13:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:47:20] Production.INFO: 36 MB #Memory Used# [2025-03-16 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:48:05 [end_date_ymd] => 2025-03-16 13:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:48:05' and `end` < '2025-03-16 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-03-16 13:48:17] Production.INFO: count ==994 [2025-03-16 13:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:48:05 - End Time 2025-03-16 13:48:05 [2025-03-16 13:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693891', 'tblTempUsageDetail_20' ) start [2025-03-16 13:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693891', 'tblTempUsageDetail_20' ) end [2025-03-16 13:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693891', 'tblTempVendorCDR_20' ) start [2025-03-16 13:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693891', 'tblTempVendorCDR_20' ) end [2025-03-16 13:48:17] Production.INFO: ProcessCDR(1,14693891,1,1,2) [2025-03-16 13:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693891', 'tblTempUsageDetail_20' ) start [2025-03-16 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693891', 'tblTempUsageDetail_20' ) end [2025-03-16 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:48:22] Production.INFO: ==13471== Releasing lock... [2025-03-16 13:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:48:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:49:05 [end_date_ymd] => 2025-03-16 13:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:49:05' and `end` < '2025-03-16 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-03-16 13:49:17] Production.INFO: count ==994 [2025-03-16 13:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:49:05 - End Time 2025-03-16 13:49:05 [2025-03-16 13:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693896', 'tblTempUsageDetail_20' ) start [2025-03-16 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693896', 'tblTempUsageDetail_20' ) end [2025-03-16 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693896', 'tblTempVendorCDR_20' ) start [2025-03-16 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693896', 'tblTempVendorCDR_20' ) end [2025-03-16 13:49:17] Production.INFO: ProcessCDR(1,14693896,1,1,2) [2025-03-16 13:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693896', 'tblTempUsageDetail_20' ) start [2025-03-16 13:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693896', 'tblTempUsageDetail_20' ) end [2025-03-16 13:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:49:20] Production.INFO: ==13548== Releasing lock... [2025-03-16 13:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:49:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:50:05 [end_date_ymd] => 2025-03-16 13:50:05 [RateCDR] => 1 ) [2025-03-16 13: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-03-16 10:50:05' and `end` < '2025-03-16 13: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-03-16 13:50:18] Production.INFO: count ==997 [2025-03-16 13:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:50:05 - End Time 2025-03-16 13:50:05 [2025-03-16 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693902', 'tblTempUsageDetail_20' ) start [2025-03-16 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693902', 'tblTempUsageDetail_20' ) end [2025-03-16 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693902', 'tblTempVendorCDR_20' ) start [2025-03-16 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693902', 'tblTempVendorCDR_20' ) end [2025-03-16 13:50:18] Production.INFO: ProcessCDR(1,14693902,1,1,2) [2025-03-16 13:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693902', 'tblTempUsageDetail_20' ) start [2025-03-16 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693902', 'tblTempUsageDetail_20' ) end [2025-03-16 13:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:50:23] Production.INFO: ==13623== Releasing lock... [2025-03-16 13:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:50:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:51:05 [end_date_ymd] => 2025-03-16 13:51:05 [RateCDR] => 1 ) [2025-03-16 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:51:05' and `end` < '2025-03-16 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:51:17] Production.INFO: count ==1008 [2025-03-16 13:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:51:05 - End Time 2025-03-16 13:51:05 [2025-03-16 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693907', 'tblTempUsageDetail_20' ) start [2025-03-16 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693907', 'tblTempUsageDetail_20' ) end [2025-03-16 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693907', 'tblTempVendorCDR_20' ) start [2025-03-16 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693907', 'tblTempVendorCDR_20' ) end [2025-03-16 13:51:18] Production.INFO: ProcessCDR(1,14693907,1,1,2) [2025-03-16 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693907', 'tblTempUsageDetail_20' ) start [2025-03-16 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693907', 'tblTempUsageDetail_20' ) end [2025-03-16 13:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:51:23] Production.INFO: ==13700== Releasing lock... [2025-03-16 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:52:05 [end_date_ymd] => 2025-03-16 13:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:52:05' and `end` < '2025-03-16 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-03-16 13:52:17] Production.INFO: count ==1007 [2025-03-16 13:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:52:05 - End Time 2025-03-16 13:52:05 [2025-03-16 13:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693912', 'tblTempUsageDetail_20' ) start [2025-03-16 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693912', 'tblTempUsageDetail_20' ) end [2025-03-16 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693912', 'tblTempVendorCDR_20' ) start [2025-03-16 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693912', 'tblTempVendorCDR_20' ) end [2025-03-16 13:52:17] Production.INFO: ProcessCDR(1,14693912,1,1,2) [2025-03-16 13:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693912', 'tblTempUsageDetail_20' ) start [2025-03-16 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693912', 'tblTempUsageDetail_20' ) end [2025-03-16 13:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:52:21] Production.INFO: ==13769== Releasing lock... [2025-03-16 13:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:52:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:53:05 [end_date_ymd] => 2025-03-16 13:53:05 [RateCDR] => 1 ) [2025-03-16 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:53:05' and `end` < '2025-03-16 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:53:17] Production.INFO: count ==1017 [2025-03-16 13:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:53:05 - End Time 2025-03-16 13:53:05 [2025-03-16 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693917', 'tblTempUsageDetail_20' ) start [2025-03-16 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693917', 'tblTempUsageDetail_20' ) end [2025-03-16 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693917', 'tblTempVendorCDR_20' ) start [2025-03-16 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693917', 'tblTempVendorCDR_20' ) end [2025-03-16 13:53:18] Production.INFO: ProcessCDR(1,14693917,1,1,2) [2025-03-16 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693917', 'tblTempUsageDetail_20' ) start [2025-03-16 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693917', 'tblTempUsageDetail_20' ) end [2025-03-16 13:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:53:21] Production.INFO: ==13844== Releasing lock... [2025-03-16 13:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:53:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:54:04 [end_date_ymd] => 2025-03-16 13:54:04 [RateCDR] => 1 ) [2025-03-16 13:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:54:04' and `end` < '2025-03-16 13:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:54:17] Production.INFO: count ==1014 [2025-03-16 13:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:54:04 - End Time 2025-03-16 13:54:04 [2025-03-16 13:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693922', 'tblTempUsageDetail_20' ) start [2025-03-16 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693922', 'tblTempUsageDetail_20' ) end [2025-03-16 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693922', 'tblTempVendorCDR_20' ) start [2025-03-16 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693922', 'tblTempVendorCDR_20' ) end [2025-03-16 13:54:17] Production.INFO: ProcessCDR(1,14693922,1,1,2) [2025-03-16 13:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693922', 'tblTempUsageDetail_20' ) start [2025-03-16 13:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693922', 'tblTempUsageDetail_20' ) end [2025-03-16 13:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:54:20] Production.INFO: ==13918== Releasing lock... [2025-03-16 13:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:54:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:55:05 [end_date_ymd] => 2025-03-16 13:55:05 [RateCDR] => 1 ) [2025-03-16 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:55:05' and `end` < '2025-03-16 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:55:18] Production.INFO: count ==1014 [2025-03-16 13:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:55:05 - End Time 2025-03-16 13:55:05 [2025-03-16 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693927', 'tblTempUsageDetail_20' ) start [2025-03-16 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693927', 'tblTempUsageDetail_20' ) end [2025-03-16 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693927', 'tblTempVendorCDR_20' ) start [2025-03-16 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693927', 'tblTempVendorCDR_20' ) end [2025-03-16 13:55:18] Production.INFO: ProcessCDR(1,14693927,1,1,2) [2025-03-16 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693927', 'tblTempUsageDetail_20' ) start [2025-03-16 13:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693927', 'tblTempUsageDetail_20' ) end [2025-03-16 13:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:55:21] Production.INFO: ==13991== Releasing lock... [2025-03-16 13:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:56:06 [end_date_ymd] => 2025-03-16 13:56:06 [RateCDR] => 1 ) [2025-03-16 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:56:06' and `end` < '2025-03-16 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:56:18] Production.INFO: count ==1014 [2025-03-16 13:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:56:06 - End Time 2025-03-16 13:56:06 [2025-03-16 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693932', 'tblTempUsageDetail_20' ) start [2025-03-16 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693932', 'tblTempUsageDetail_20' ) end [2025-03-16 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693932', 'tblTempVendorCDR_20' ) start [2025-03-16 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693932', 'tblTempVendorCDR_20' ) end [2025-03-16 13:56:18] Production.INFO: ProcessCDR(1,14693932,1,1,2) [2025-03-16 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693932', 'tblTempUsageDetail_20' ) start [2025-03-16 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693932', 'tblTempUsageDetail_20' ) end [2025-03-16 13:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:56:21] Production.INFO: ==14065== Releasing lock... [2025-03-16 13:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:56:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:57:06 [end_date_ymd] => 2025-03-16 13:57:06 [RateCDR] => 1 ) [2025-03-16 13: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-03-16 10:57:06' and `end` < '2025-03-16 13: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-03-16 13:57:18] Production.INFO: count ==1011 [2025-03-16 13:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:57:06 - End Time 2025-03-16 13:57:06 [2025-03-16 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693937', 'tblTempUsageDetail_20' ) start [2025-03-16 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693937', 'tblTempUsageDetail_20' ) end [2025-03-16 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693937', 'tblTempVendorCDR_20' ) start [2025-03-16 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693937', 'tblTempVendorCDR_20' ) end [2025-03-16 13:57:18] Production.INFO: ProcessCDR(1,14693937,1,1,2) [2025-03-16 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693937', 'tblTempUsageDetail_20' ) start [2025-03-16 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693937', 'tblTempUsageDetail_20' ) end [2025-03-16 13:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:57:22] Production.INFO: ==14138== Releasing lock... [2025-03-16 13:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:57:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:58:04 [end_date_ymd] => 2025-03-16 13:58:04 [RateCDR] => 1 ) [2025-03-16 13:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 10:58:04' and `end` < '2025-03-16 13:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 13:58:17] Production.INFO: count ==1017 [2025-03-16 13:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 10:58:04 - End Time 2025-03-16 13:58:04 [2025-03-16 13:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693942', 'tblTempUsageDetail_20' ) start [2025-03-16 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693942', 'tblTempUsageDetail_20' ) end [2025-03-16 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693942', 'tblTempVendorCDR_20' ) start [2025-03-16 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693942', 'tblTempVendorCDR_20' ) end [2025-03-16 13:58:17] Production.INFO: ProcessCDR(1,14693942,1,1,2) [2025-03-16 13:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693942', 'tblTempUsageDetail_20' ) start [2025-03-16 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693942', 'tblTempUsageDetail_20' ) end [2025-03-16 13:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:58:22] Production.INFO: ==14211== Releasing lock... [2025-03-16 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:58:22] Production.INFO: 36 MB #Memory Used# [2025-03-16 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 10:59:05 [end_date_ymd] => 2025-03-16 13:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 10:59:05' and `end` < '2025-03-16 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-03-16 13:59:17] Production.INFO: count ==1016 [2025-03-16 13:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 10:59:05 - End Time 2025-03-16 13:59:05 [2025-03-16 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693947', 'tblTempUsageDetail_20' ) start [2025-03-16 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693947', 'tblTempUsageDetail_20' ) end [2025-03-16 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693947', 'tblTempVendorCDR_20' ) start [2025-03-16 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693947', 'tblTempVendorCDR_20' ) end [2025-03-16 13:59:18] Production.INFO: ProcessCDR(1,14693947,1,1,2) [2025-03-16 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 13:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693947', 'tblTempUsageDetail_20' ) start [2025-03-16 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693947', 'tblTempUsageDetail_20' ) end [2025-03-16 13:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 13:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 13:59:21] Production.INFO: ==14324== Releasing lock... [2025-03-16 13:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 13:59:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:00:06 [end_date_ymd] => 2025-03-16 14:00:06 [RateCDR] => 1 ) [2025-03-16 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:00:06' and `end` < '2025-03-16 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:00:18] Production.INFO: count ==1017 [2025-03-16 14:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:00:06 - End Time 2025-03-16 14:00:06 [2025-03-16 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693953', 'tblTempUsageDetail_20' ) start [2025-03-16 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693953', 'tblTempUsageDetail_20' ) end [2025-03-16 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693953', 'tblTempVendorCDR_20' ) start [2025-03-16 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693953', 'tblTempVendorCDR_20' ) end [2025-03-16 14:00:18] Production.INFO: ProcessCDR(1,14693953,1,1,2) [2025-03-16 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693953', 'tblTempUsageDetail_20' ) start [2025-03-16 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693953', 'tblTempUsageDetail_20' ) end [2025-03-16 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:00:24] Production.INFO: ==14400== Releasing lock... [2025-03-16 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:00:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:01:05 [end_date_ymd] => 2025-03-16 14:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:01:05' and `end` < '2025-03-16 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-03-16 14:01:17] Production.INFO: count ==1011 [2025-03-16 14:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:01:05 - End Time 2025-03-16 14:01:05 [2025-03-16 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693958', 'tblTempUsageDetail_20' ) start [2025-03-16 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693958', 'tblTempUsageDetail_20' ) end [2025-03-16 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693958', 'tblTempVendorCDR_20' ) start [2025-03-16 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693958', 'tblTempVendorCDR_20' ) end [2025-03-16 14:01:18] Production.INFO: ProcessCDR(1,14693958,1,1,2) [2025-03-16 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693958', 'tblTempUsageDetail_20' ) start [2025-03-16 14:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693958', 'tblTempUsageDetail_20' ) end [2025-03-16 14:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:01:21] Production.INFO: ==14486== Releasing lock... [2025-03-16 14:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:01:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:02:05 [end_date_ymd] => 2025-03-16 14:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:02:05' and `end` < '2025-03-16 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-03-16 14:02:17] Production.INFO: count ==1009 [2025-03-16 14:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:02:05 - End Time 2025-03-16 14:02:05 [2025-03-16 14:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693963', 'tblTempUsageDetail_20' ) start [2025-03-16 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693963', 'tblTempUsageDetail_20' ) end [2025-03-16 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693963', 'tblTempVendorCDR_20' ) start [2025-03-16 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693963', 'tblTempVendorCDR_20' ) end [2025-03-16 14:02:17] Production.INFO: ProcessCDR(1,14693963,1,1,2) [2025-03-16 14:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693963', 'tblTempUsageDetail_20' ) start [2025-03-16 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693963', 'tblTempUsageDetail_20' ) end [2025-03-16 14:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:02:21] Production.INFO: ==14562== Releasing lock... [2025-03-16 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:02:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:03:05 [end_date_ymd] => 2025-03-16 14:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:03:05' and `end` < '2025-03-16 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-03-16 14:03:17] Production.INFO: count ==1010 [2025-03-16 14:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:03:05 - End Time 2025-03-16 14:03:05 [2025-03-16 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693968', 'tblTempUsageDetail_20' ) start [2025-03-16 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693968', 'tblTempUsageDetail_20' ) end [2025-03-16 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693968', 'tblTempVendorCDR_20' ) start [2025-03-16 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693968', 'tblTempVendorCDR_20' ) end [2025-03-16 14:03:18] Production.INFO: ProcessCDR(1,14693968,1,1,2) [2025-03-16 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693968', 'tblTempUsageDetail_20' ) start [2025-03-16 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693968', 'tblTempUsageDetail_20' ) end [2025-03-16 14:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:03:22] Production.INFO: ==14635== Releasing lock... [2025-03-16 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:03:22] Production.INFO: 36 MB #Memory Used# [2025-03-16 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:04:04 [end_date_ymd] => 2025-03-16 14:04:04 [RateCDR] => 1 ) [2025-03-16 14: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-03-16 11:04:04' and `end` < '2025-03-16 14: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-03-16 14:04:17] Production.INFO: count ==1006 [2025-03-16 14:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:04:04 - End Time 2025-03-16 14:04:04 [2025-03-16 14:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693973', 'tblTempUsageDetail_20' ) start [2025-03-16 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693973', 'tblTempUsageDetail_20' ) end [2025-03-16 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693973', 'tblTempVendorCDR_20' ) start [2025-03-16 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693973', 'tblTempVendorCDR_20' ) end [2025-03-16 14:04:17] Production.INFO: ProcessCDR(1,14693973,1,1,2) [2025-03-16 14:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693973', 'tblTempUsageDetail_20' ) start [2025-03-16 14:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693973', 'tblTempUsageDetail_20' ) end [2025-03-16 14:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:04:20] Production.INFO: ==14707== Releasing lock... [2025-03-16 14:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:04:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:05:05 [end_date_ymd] => 2025-03-16 14:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:05:05' and `end` < '2025-03-16 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-03-16 14:05:17] Production.INFO: count ==1005 [2025-03-16 14:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:05:05 - End Time 2025-03-16 14:05:05 [2025-03-16 14:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693978', 'tblTempUsageDetail_20' ) start [2025-03-16 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693978', 'tblTempUsageDetail_20' ) end [2025-03-16 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693978', 'tblTempVendorCDR_20' ) start [2025-03-16 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693978', 'tblTempVendorCDR_20' ) end [2025-03-16 14:05:17] Production.INFO: ProcessCDR(1,14693978,1,1,2) [2025-03-16 14:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693978', 'tblTempUsageDetail_20' ) start [2025-03-16 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693978', 'tblTempUsageDetail_20' ) end [2025-03-16 14:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:05:22] Production.INFO: ==14778== Releasing lock... [2025-03-16 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:05:22] Production.INFO: 36 MB #Memory Used# [2025-03-16 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:06:05 [end_date_ymd] => 2025-03-16 14:06:05 [RateCDR] => 1 ) [2025-03-16 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:06:05' and `end` < '2025-03-16 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:06:18] Production.INFO: count ==1007 [2025-03-16 14:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:06:05 - End Time 2025-03-16 14:06:05 [2025-03-16 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693983', 'tblTempUsageDetail_20' ) start [2025-03-16 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693983', 'tblTempUsageDetail_20' ) end [2025-03-16 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693983', 'tblTempVendorCDR_20' ) start [2025-03-16 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693983', 'tblTempVendorCDR_20' ) end [2025-03-16 14:06:18] Production.INFO: ProcessCDR(1,14693983,1,1,2) [2025-03-16 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693983', 'tblTempUsageDetail_20' ) start [2025-03-16 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693983', 'tblTempUsageDetail_20' ) end [2025-03-16 14:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:06:22] Production.INFO: ==14851== Releasing lock... [2025-03-16 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:07:05 [end_date_ymd] => 2025-03-16 14:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:07:05' and `end` < '2025-03-16 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-03-16 14:07:18] Production.INFO: count ==1007 [2025-03-16 14:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:07:05 - End Time 2025-03-16 14:07:05 [2025-03-16 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693988', 'tblTempUsageDetail_20' ) start [2025-03-16 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693988', 'tblTempUsageDetail_20' ) end [2025-03-16 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693988', 'tblTempVendorCDR_20' ) start [2025-03-16 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693988', 'tblTempVendorCDR_20' ) end [2025-03-16 14:07:18] Production.INFO: ProcessCDR(1,14693988,1,1,2) [2025-03-16 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693988', 'tblTempUsageDetail_20' ) start [2025-03-16 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693988', 'tblTempUsageDetail_20' ) end [2025-03-16 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:07:23] Production.INFO: ==14927== Releasing lock... [2025-03-16 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:07:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:08:05 [end_date_ymd] => 2025-03-16 14:08:05 [RateCDR] => 1 ) [2025-03-16 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:08:05' and `end` < '2025-03-16 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:08:18] Production.INFO: count ==1010 [2025-03-16 14:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:08:05 - End Time 2025-03-16 14:08:05 [2025-03-16 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693993', 'tblTempUsageDetail_20' ) start [2025-03-16 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693993', 'tblTempUsageDetail_20' ) end [2025-03-16 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693993', 'tblTempVendorCDR_20' ) start [2025-03-16 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693993', 'tblTempVendorCDR_20' ) end [2025-03-16 14:08:18] Production.INFO: ProcessCDR(1,14693993,1,1,2) [2025-03-16 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693993', 'tblTempUsageDetail_20' ) start [2025-03-16 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693993', 'tblTempUsageDetail_20' ) end [2025-03-16 14:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:08:21] Production.INFO: ==15003== Releasing lock... [2025-03-16 14:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:08:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:09:05 [end_date_ymd] => 2025-03-16 14:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:09:05' and `end` < '2025-03-16 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-03-16 14:09:17] Production.INFO: count ==1010 [2025-03-16 14:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:09:05 - End Time 2025-03-16 14:09:05 [2025-03-16 14:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693998', 'tblTempUsageDetail_20' ) start [2025-03-16 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14693998', 'tblTempUsageDetail_20' ) end [2025-03-16 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693998', 'tblTempVendorCDR_20' ) start [2025-03-16 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14693998', 'tblTempVendorCDR_20' ) end [2025-03-16 14:09:17] Production.INFO: ProcessCDR(1,14693998,1,1,2) [2025-03-16 14:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14693998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14693998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14693998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14693998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693998', 'tblTempUsageDetail_20' ) start [2025-03-16 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14693998', 'tblTempUsageDetail_20' ) end [2025-03-16 14:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:09:21] Production.INFO: ==15083== Releasing lock... [2025-03-16 14:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:09:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:10:06 [end_date_ymd] => 2025-03-16 14:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:10:06' and `end` < '2025-03-16 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-03-16 14:10:18] Production.INFO: count ==1012 [2025-03-16 14:10:19] Production.ERROR: pbx CDR StartTime 2025-03-16 11:10:06 - End Time 2025-03-16 14:10:06 [2025-03-16 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694004', 'tblTempUsageDetail_20' ) start [2025-03-16 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694004', 'tblTempUsageDetail_20' ) end [2025-03-16 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694004', 'tblTempVendorCDR_20' ) start [2025-03-16 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694004', 'tblTempVendorCDR_20' ) end [2025-03-16 14:10:19] Production.INFO: ProcessCDR(1,14694004,1,1,2) [2025-03-16 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694004', 'tblTempUsageDetail_20' ) start [2025-03-16 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694004', 'tblTempUsageDetail_20' ) end [2025-03-16 14:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:10:24] Production.INFO: ==15156== Releasing lock... [2025-03-16 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:10:24] Production.INFO: 36 MB #Memory Used# [2025-03-16 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:11:05 [end_date_ymd] => 2025-03-16 14:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:11:05' and `end` < '2025-03-16 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-03-16 14:11:17] Production.INFO: count ==1020 [2025-03-16 14:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:11:05 - End Time 2025-03-16 14:11:05 [2025-03-16 14:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694009', 'tblTempUsageDetail_20' ) start [2025-03-16 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694009', 'tblTempUsageDetail_20' ) end [2025-03-16 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694009', 'tblTempVendorCDR_20' ) start [2025-03-16 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694009', 'tblTempVendorCDR_20' ) end [2025-03-16 14:11:18] Production.INFO: ProcessCDR(1,14694009,1,1,2) [2025-03-16 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694009', 'tblTempUsageDetail_20' ) start [2025-03-16 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694009', 'tblTempUsageDetail_20' ) end [2025-03-16 14:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:11:21] Production.INFO: ==15232== Releasing lock... [2025-03-16 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:11:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:12:05 [end_date_ymd] => 2025-03-16 14:12:05 [RateCDR] => 1 ) [2025-03-16 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:12:05' and `end` < '2025-03-16 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-03-16 14:12:18] Production.INFO: count ==1023 [2025-03-16 14:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:12:05 - End Time 2025-03-16 14:12:05 [2025-03-16 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694014', 'tblTempUsageDetail_20' ) start [2025-03-16 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694014', 'tblTempUsageDetail_20' ) end [2025-03-16 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694014', 'tblTempVendorCDR_20' ) start [2025-03-16 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694014', 'tblTempVendorCDR_20' ) end [2025-03-16 14:12:18] Production.INFO: ProcessCDR(1,14694014,1,1,2) [2025-03-16 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694014', 'tblTempUsageDetail_20' ) start [2025-03-16 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694014', 'tblTempUsageDetail_20' ) end [2025-03-16 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:12:23] Production.INFO: ==15304== Releasing lock... [2025-03-16 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:12:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:13:05 [end_date_ymd] => 2025-03-16 14:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:13:05' and `end` < '2025-03-16 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-03-16 14:13:17] Production.INFO: count ==1024 [2025-03-16 14:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:13:05 - End Time 2025-03-16 14:13:05 [2025-03-16 14:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694019', 'tblTempUsageDetail_20' ) start [2025-03-16 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694019', 'tblTempUsageDetail_20' ) end [2025-03-16 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694019', 'tblTempVendorCDR_20' ) start [2025-03-16 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694019', 'tblTempVendorCDR_20' ) end [2025-03-16 14:13:17] Production.INFO: ProcessCDR(1,14694019,1,1,2) [2025-03-16 14:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694019', 'tblTempUsageDetail_20' ) start [2025-03-16 14:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694019', 'tblTempUsageDetail_20' ) end [2025-03-16 14:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:13:21] Production.INFO: ==15378== Releasing lock... [2025-03-16 14:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:13:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:14:05 [end_date_ymd] => 2025-03-16 14:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:14:05' and `end` < '2025-03-16 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-03-16 14:14:18] Production.INFO: count ==1025 [2025-03-16 14:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:14:05 - End Time 2025-03-16 14:14:05 [2025-03-16 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694024', 'tblTempUsageDetail_20' ) start [2025-03-16 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694024', 'tblTempUsageDetail_20' ) end [2025-03-16 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694024', 'tblTempVendorCDR_20' ) start [2025-03-16 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694024', 'tblTempVendorCDR_20' ) end [2025-03-16 14:14:18] Production.INFO: ProcessCDR(1,14694024,1,1,2) [2025-03-16 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694024', 'tblTempUsageDetail_20' ) start [2025-03-16 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694024', 'tblTempUsageDetail_20' ) end [2025-03-16 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:14:23] Production.INFO: ==15491== Releasing lock... [2025-03-16 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:15:06 [end_date_ymd] => 2025-03-16 14:15:06 [RateCDR] => 1 ) [2025-03-16 14: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-03-16 11:15:06' and `end` < '2025-03-16 14: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-03-16 14:15:18] Production.INFO: count ==1016 [2025-03-16 14:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:15:06 - End Time 2025-03-16 14:15:06 [2025-03-16 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694029', 'tblTempUsageDetail_20' ) start [2025-03-16 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694029', 'tblTempUsageDetail_20' ) end [2025-03-16 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694029', 'tblTempVendorCDR_20' ) start [2025-03-16 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694029', 'tblTempVendorCDR_20' ) end [2025-03-16 14:15:18] Production.INFO: ProcessCDR(1,14694029,1,1,2) [2025-03-16 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694029', 'tblTempUsageDetail_20' ) start [2025-03-16 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694029', 'tblTempUsageDetail_20' ) end [2025-03-16 14:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:15:22] Production.INFO: ==15567== Releasing lock... [2025-03-16 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:15:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:16:05 [end_date_ymd] => 2025-03-16 14:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:16:05' and `end` < '2025-03-16 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-03-16 14:16:18] Production.INFO: count ==1015 [2025-03-16 14:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:16:05 - End Time 2025-03-16 14:16:05 [2025-03-16 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694034', 'tblTempUsageDetail_20' ) start [2025-03-16 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694034', 'tblTempUsageDetail_20' ) end [2025-03-16 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694034', 'tblTempVendorCDR_20' ) start [2025-03-16 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694034', 'tblTempVendorCDR_20' ) end [2025-03-16 14:16:18] Production.INFO: ProcessCDR(1,14694034,1,1,2) [2025-03-16 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694034', 'tblTempUsageDetail_20' ) start [2025-03-16 14:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694034', 'tblTempUsageDetail_20' ) end [2025-03-16 14:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:16:21] Production.INFO: ==15645== Releasing lock... [2025-03-16 14:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:16:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:17:05 [end_date_ymd] => 2025-03-16 14:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:17:05' and `end` < '2025-03-16 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-03-16 14:17:18] Production.INFO: count ==1030 [2025-03-16 14:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:17:05 - End Time 2025-03-16 14:17:05 [2025-03-16 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694039', 'tblTempUsageDetail_20' ) start [2025-03-16 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694039', 'tblTempUsageDetail_20' ) end [2025-03-16 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694039', 'tblTempVendorCDR_20' ) start [2025-03-16 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694039', 'tblTempVendorCDR_20' ) end [2025-03-16 14:17:18] Production.INFO: ProcessCDR(1,14694039,1,1,2) [2025-03-16 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694039', 'tblTempUsageDetail_20' ) start [2025-03-16 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694039', 'tblTempUsageDetail_20' ) end [2025-03-16 14:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:17:21] Production.INFO: ==15721== Releasing lock... [2025-03-16 14:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:17:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:18:05 [end_date_ymd] => 2025-03-16 14:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:18:05' and `end` < '2025-03-16 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-03-16 14:18:17] Production.INFO: count ==1031 [2025-03-16 14:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:18:05 - End Time 2025-03-16 14:18:05 [2025-03-16 14:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694044', 'tblTempUsageDetail_20' ) start [2025-03-16 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694044', 'tblTempUsageDetail_20' ) end [2025-03-16 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694044', 'tblTempVendorCDR_20' ) start [2025-03-16 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694044', 'tblTempVendorCDR_20' ) end [2025-03-16 14:18:17] Production.INFO: ProcessCDR(1,14694044,1,1,2) [2025-03-16 14:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694044', 'tblTempUsageDetail_20' ) start [2025-03-16 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694044', 'tblTempUsageDetail_20' ) end [2025-03-16 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:18:22] Production.INFO: ==15793== Releasing lock... [2025-03-16 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:18:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:19:05 [end_date_ymd] => 2025-03-16 14:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:19:05' and `end` < '2025-03-16 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-03-16 14:19:18] Production.INFO: count ==1031 [2025-03-16 14:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:19:05 - End Time 2025-03-16 14:19:05 [2025-03-16 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694049', 'tblTempUsageDetail_20' ) start [2025-03-16 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694049', 'tblTempUsageDetail_20' ) end [2025-03-16 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694049', 'tblTempVendorCDR_20' ) start [2025-03-16 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694049', 'tblTempVendorCDR_20' ) end [2025-03-16 14:19:18] Production.INFO: ProcessCDR(1,14694049,1,1,2) [2025-03-16 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694049', 'tblTempUsageDetail_20' ) start [2025-03-16 14:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694049', 'tblTempUsageDetail_20' ) end [2025-03-16 14:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:19:21] Production.INFO: ==15869== Releasing lock... [2025-03-16 14:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:19:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:20:05 [end_date_ymd] => 2025-03-16 14:20:05 [RateCDR] => 1 ) [2025-03-16 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:20:05' and `end` < '2025-03-16 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:20:17] Production.INFO: count ==1037 [2025-03-16 14:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:20:05 - End Time 2025-03-16 14:20:05 [2025-03-16 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694054', 'tblTempUsageDetail_20' ) start [2025-03-16 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694054', 'tblTempUsageDetail_20' ) end [2025-03-16 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694054', 'tblTempVendorCDR_20' ) start [2025-03-16 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694054', 'tblTempVendorCDR_20' ) end [2025-03-16 14:20:18] Production.INFO: ProcessCDR(1,14694054,1,1,2) [2025-03-16 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694054', 'tblTempUsageDetail_20' ) start [2025-03-16 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694054', 'tblTempUsageDetail_20' ) end [2025-03-16 14:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:20:21] Production.INFO: ==15952== Releasing lock... [2025-03-16 14:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:20:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:21:05 [end_date_ymd] => 2025-03-16 14:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:21:05' and `end` < '2025-03-16 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-03-16 14:21:18] Production.INFO: count ==1066 [2025-03-16 14:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:21:05 - End Time 2025-03-16 14:21:05 [2025-03-16 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694060', 'tblTempUsageDetail_20' ) start [2025-03-16 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694060', 'tblTempUsageDetail_20' ) end [2025-03-16 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694060', 'tblTempVendorCDR_20' ) start [2025-03-16 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694060', 'tblTempVendorCDR_20' ) end [2025-03-16 14:21:18] Production.INFO: ProcessCDR(1,14694060,1,1,2) [2025-03-16 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694060', 'tblTempUsageDetail_20' ) start [2025-03-16 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694060', 'tblTempUsageDetail_20' ) end [2025-03-16 14:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:21:21] Production.INFO: ==16031== Releasing lock... [2025-03-16 14:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:22:05 [end_date_ymd] => 2025-03-16 14:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:22:05' and `end` < '2025-03-16 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-03-16 14:22:17] Production.INFO: count ==1064 [2025-03-16 14:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:22:05 - End Time 2025-03-16 14:22:05 [2025-03-16 14:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694065', 'tblTempUsageDetail_20' ) start [2025-03-16 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694065', 'tblTempUsageDetail_20' ) end [2025-03-16 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694065', 'tblTempVendorCDR_20' ) start [2025-03-16 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694065', 'tblTempVendorCDR_20' ) end [2025-03-16 14:22:17] Production.INFO: ProcessCDR(1,14694065,1,1,2) [2025-03-16 14:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694065', 'tblTempUsageDetail_20' ) start [2025-03-16 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694065', 'tblTempUsageDetail_20' ) end [2025-03-16 14:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:22:22] Production.INFO: ==16111== Releasing lock... [2025-03-16 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:22:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:23:05 [end_date_ymd] => 2025-03-16 14:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:23:05' and `end` < '2025-03-16 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-03-16 14:23:17] Production.INFO: count ==1062 [2025-03-16 14:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:23:05 - End Time 2025-03-16 14:23:05 [2025-03-16 14:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694070', 'tblTempUsageDetail_20' ) start [2025-03-16 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694070', 'tblTempUsageDetail_20' ) end [2025-03-16 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694070', 'tblTempVendorCDR_20' ) start [2025-03-16 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694070', 'tblTempVendorCDR_20' ) end [2025-03-16 14:23:17] Production.INFO: ProcessCDR(1,14694070,1,1,2) [2025-03-16 14:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694070', 'tblTempUsageDetail_20' ) start [2025-03-16 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694070', 'tblTempUsageDetail_20' ) end [2025-03-16 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:23:22] Production.INFO: ==16192== Releasing lock... [2025-03-16 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:23:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:24:05 [end_date_ymd] => 2025-03-16 14:24:05 [RateCDR] => 1 ) [2025-03-16 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:24:05' and `end` < '2025-03-16 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:24:18] Production.INFO: count ==1072 [2025-03-16 14:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:24:05 - End Time 2025-03-16 14:24:05 [2025-03-16 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694075', 'tblTempUsageDetail_20' ) start [2025-03-16 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694075', 'tblTempUsageDetail_20' ) end [2025-03-16 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694075', 'tblTempVendorCDR_20' ) start [2025-03-16 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694075', 'tblTempVendorCDR_20' ) end [2025-03-16 14:24:18] Production.INFO: ProcessCDR(1,14694075,1,1,2) [2025-03-16 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694075', 'tblTempUsageDetail_20' ) start [2025-03-16 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694075', 'tblTempUsageDetail_20' ) end [2025-03-16 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:24:23] Production.INFO: ==16268== Releasing lock... [2025-03-16 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:24:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:25:05 [end_date_ymd] => 2025-03-16 14:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:25:05' and `end` < '2025-03-16 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-03-16 14:25:17] Production.INFO: count ==1073 [2025-03-16 14:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:25:05 - End Time 2025-03-16 14:25:05 [2025-03-16 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694080', 'tblTempUsageDetail_20' ) start [2025-03-16 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694080', 'tblTempUsageDetail_20' ) end [2025-03-16 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694080', 'tblTempVendorCDR_20' ) start [2025-03-16 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694080', 'tblTempVendorCDR_20' ) end [2025-03-16 14:25:17] Production.INFO: ProcessCDR(1,14694080,1,1,2) [2025-03-16 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694080', 'tblTempUsageDetail_20' ) start [2025-03-16 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694080', 'tblTempUsageDetail_20' ) end [2025-03-16 14:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:25:21] Production.INFO: ==16345== Releasing lock... [2025-03-16 14:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:25:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:26:05 [end_date_ymd] => 2025-03-16 14:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:26:05' and `end` < '2025-03-16 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-03-16 14:26:18] Production.INFO: count ==1071 [2025-03-16 14:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:26:05 - End Time 2025-03-16 14:26:05 [2025-03-16 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694085', 'tblTempUsageDetail_20' ) start [2025-03-16 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694085', 'tblTempUsageDetail_20' ) end [2025-03-16 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694085', 'tblTempVendorCDR_20' ) start [2025-03-16 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694085', 'tblTempVendorCDR_20' ) end [2025-03-16 14:26:18] Production.INFO: ProcessCDR(1,14694085,1,1,2) [2025-03-16 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694085', 'tblTempUsageDetail_20' ) start [2025-03-16 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694085', 'tblTempUsageDetail_20' ) end [2025-03-16 14:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:26:21] Production.INFO: ==16430== Releasing lock... [2025-03-16 14:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:26:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:27:05 [end_date_ymd] => 2025-03-16 14:27:05 [RateCDR] => 1 ) [2025-03-16 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:27:05' and `end` < '2025-03-16 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:27:17] Production.INFO: count ==1060 [2025-03-16 14:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:27:05 - End Time 2025-03-16 14:27:05 [2025-03-16 14:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694090', 'tblTempUsageDetail_20' ) start [2025-03-16 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694090', 'tblTempUsageDetail_20' ) end [2025-03-16 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694090', 'tblTempVendorCDR_20' ) start [2025-03-16 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694090', 'tblTempVendorCDR_20' ) end [2025-03-16 14:27:17] Production.INFO: ProcessCDR(1,14694090,1,1,2) [2025-03-16 14:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694090', 'tblTempUsageDetail_20' ) start [2025-03-16 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694090', 'tblTempUsageDetail_20' ) end [2025-03-16 14:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:27:21] Production.INFO: ==16504== Releasing lock... [2025-03-16 14:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:27:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:28:05 [end_date_ymd] => 2025-03-16 14:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:28:05' and `end` < '2025-03-16 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-03-16 14:28:18] Production.INFO: count ==1060 [2025-03-16 14:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:28:05 - End Time 2025-03-16 14:28:05 [2025-03-16 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694095', 'tblTempUsageDetail_20' ) start [2025-03-16 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694095', 'tblTempUsageDetail_20' ) end [2025-03-16 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694095', 'tblTempVendorCDR_20' ) start [2025-03-16 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694095', 'tblTempVendorCDR_20' ) end [2025-03-16 14:28:18] Production.INFO: ProcessCDR(1,14694095,1,1,2) [2025-03-16 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694095', 'tblTempUsageDetail_20' ) start [2025-03-16 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694095', 'tblTempUsageDetail_20' ) end [2025-03-16 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:28:23] Production.INFO: ==16586== Releasing lock... [2025-03-16 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:28:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:29:05 [end_date_ymd] => 2025-03-16 14:29:05 [RateCDR] => 1 ) [2025-03-16 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:29:05' and `end` < '2025-03-16 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:29:17] Production.INFO: count ==1059 [2025-03-16 14:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:29:05 - End Time 2025-03-16 14:29:05 [2025-03-16 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694100', 'tblTempUsageDetail_20' ) start [2025-03-16 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694100', 'tblTempUsageDetail_20' ) end [2025-03-16 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694100', 'tblTempVendorCDR_20' ) start [2025-03-16 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694100', 'tblTempVendorCDR_20' ) end [2025-03-16 14:29:18] Production.INFO: ProcessCDR(1,14694100,1,1,2) [2025-03-16 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694100', 'tblTempUsageDetail_20' ) start [2025-03-16 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694100', 'tblTempUsageDetail_20' ) end [2025-03-16 14:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:29:22] Production.INFO: ==16680== Releasing lock... [2025-03-16 14:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:29:22] Production.INFO: 36 MB #Memory Used# [2025-03-16 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:30:06 [end_date_ymd] => 2025-03-16 14:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:30:06' and `end` < '2025-03-16 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:30:18] Production.INFO: count ==1063 [2025-03-16 14:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 11:30:06 - End Time 2025-03-16 14:30:06 [2025-03-16 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694106', 'tblTempUsageDetail_20' ) start [2025-03-16 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694106', 'tblTempUsageDetail_20' ) end [2025-03-16 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694106', 'tblTempVendorCDR_20' ) start [2025-03-16 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694106', 'tblTempVendorCDR_20' ) end [2025-03-16 14:30:19] Production.INFO: ProcessCDR(1,14694106,1,1,2) [2025-03-16 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694106', 'tblTempUsageDetail_20' ) start [2025-03-16 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694106', 'tblTempUsageDetail_20' ) end [2025-03-16 14:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:30:23] Production.INFO: ==16830== Releasing lock... [2025-03-16 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:30:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:31:04 [end_date_ymd] => 2025-03-16 14:31:04 [RateCDR] => 1 ) [2025-03-16 14:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:31:04' and `end` < '2025-03-16 14:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:31:17] Production.INFO: count ==1094 [2025-03-16 14:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:31:04 - End Time 2025-03-16 14:31:04 [2025-03-16 14:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694111', 'tblTempUsageDetail_20' ) start [2025-03-16 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694111', 'tblTempUsageDetail_20' ) end [2025-03-16 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694111', 'tblTempVendorCDR_20' ) start [2025-03-16 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694111', 'tblTempVendorCDR_20' ) end [2025-03-16 14:31:17] Production.INFO: ProcessCDR(1,14694111,1,1,2) [2025-03-16 14:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694111', 'tblTempUsageDetail_20' ) start [2025-03-16 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694111', 'tblTempUsageDetail_20' ) end [2025-03-16 14:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:31:22] Production.INFO: ==16934== Releasing lock... [2025-03-16 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:32:05 [end_date_ymd] => 2025-03-16 14:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:32:05' and `end` < '2025-03-16 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-03-16 14:32:17] Production.INFO: count ==1106 [2025-03-16 14:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:32:05 - End Time 2025-03-16 14:32:05 [2025-03-16 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694116', 'tblTempUsageDetail_20' ) start [2025-03-16 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694116', 'tblTempUsageDetail_20' ) end [2025-03-16 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694116', 'tblTempVendorCDR_20' ) start [2025-03-16 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694116', 'tblTempVendorCDR_20' ) end [2025-03-16 14:32:18] Production.INFO: ProcessCDR(1,14694116,1,1,2) [2025-03-16 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694116', 'tblTempUsageDetail_20' ) start [2025-03-16 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694116', 'tblTempUsageDetail_20' ) end [2025-03-16 14:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:32:21] Production.INFO: ==17041== Releasing lock... [2025-03-16 14:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:32:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:33:05 [end_date_ymd] => 2025-03-16 14:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:33:05' and `end` < '2025-03-16 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-03-16 14:33:18] Production.INFO: count ==1110 [2025-03-16 14:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:33:05 - End Time 2025-03-16 14:33:05 [2025-03-16 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694121', 'tblTempUsageDetail_20' ) start [2025-03-16 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694121', 'tblTempUsageDetail_20' ) end [2025-03-16 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694121', 'tblTempVendorCDR_20' ) start [2025-03-16 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694121', 'tblTempVendorCDR_20' ) end [2025-03-16 14:33:18] Production.INFO: ProcessCDR(1,14694121,1,1,2) [2025-03-16 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694121', 'tblTempUsageDetail_20' ) start [2025-03-16 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694121', 'tblTempUsageDetail_20' ) end [2025-03-16 14:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:33:21] Production.INFO: ==17144== Releasing lock... [2025-03-16 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:33:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:34:05 [end_date_ymd] => 2025-03-16 14:34:05 [RateCDR] => 1 ) [2025-03-16 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:34:05' and `end` < '2025-03-16 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:34:17] Production.INFO: count ==1117 [2025-03-16 14:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:34:05 - End Time 2025-03-16 14:34:05 [2025-03-16 14:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694126', 'tblTempUsageDetail_20' ) start [2025-03-16 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694126', 'tblTempUsageDetail_20' ) end [2025-03-16 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694126', 'tblTempVendorCDR_20' ) start [2025-03-16 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694126', 'tblTempVendorCDR_20' ) end [2025-03-16 14:34:17] Production.INFO: ProcessCDR(1,14694126,1,1,2) [2025-03-16 14:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694126', 'tblTempUsageDetail_20' ) start [2025-03-16 14:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694126', 'tblTempUsageDetail_20' ) end [2025-03-16 14:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:34:21] Production.INFO: ==17252== Releasing lock... [2025-03-16 14:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:34:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:35:05 [end_date_ymd] => 2025-03-16 14:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:35:05' and `end` < '2025-03-16 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-03-16 14:35:18] Production.INFO: count ==1121 [2025-03-16 14:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:35:05 - End Time 2025-03-16 14:35:05 [2025-03-16 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694131', 'tblTempUsageDetail_20' ) start [2025-03-16 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694131', 'tblTempUsageDetail_20' ) end [2025-03-16 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694131', 'tblTempVendorCDR_20' ) start [2025-03-16 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694131', 'tblTempVendorCDR_20' ) end [2025-03-16 14:35:18] Production.INFO: ProcessCDR(1,14694131,1,1,2) [2025-03-16 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694131', 'tblTempUsageDetail_20' ) start [2025-03-16 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694131', 'tblTempUsageDetail_20' ) end [2025-03-16 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:35:23] Production.INFO: ==17362== Releasing lock... [2025-03-16 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:35:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:36:06 [end_date_ymd] => 2025-03-16 14:36:06 [RateCDR] => 1 ) [2025-03-16 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:36:06' and `end` < '2025-03-16 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:36:18] Production.INFO: count ==1121 [2025-03-16 14:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:36:06 - End Time 2025-03-16 14:36:06 [2025-03-16 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694136', 'tblTempUsageDetail_20' ) start [2025-03-16 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694136', 'tblTempUsageDetail_20' ) end [2025-03-16 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694136', 'tblTempVendorCDR_20' ) start [2025-03-16 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694136', 'tblTempVendorCDR_20' ) end [2025-03-16 14:36:18] Production.INFO: ProcessCDR(1,14694136,1,1,2) [2025-03-16 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694136', 'tblTempUsageDetail_20' ) start [2025-03-16 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694136', 'tblTempUsageDetail_20' ) end [2025-03-16 14:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:36:21] Production.INFO: ==17462== Releasing lock... [2025-03-16 14:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:36:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:37:06 [end_date_ymd] => 2025-03-16 14:37:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:37:06' and `end` < '2025-03-16 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-03-16 14:37:18] Production.INFO: count ==1119 [2025-03-16 14:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:37:06 - End Time 2025-03-16 14:37:06 [2025-03-16 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694141', 'tblTempUsageDetail_20' ) start [2025-03-16 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694141', 'tblTempUsageDetail_20' ) end [2025-03-16 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694141', 'tblTempVendorCDR_20' ) start [2025-03-16 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694141', 'tblTempVendorCDR_20' ) end [2025-03-16 14:37:18] Production.INFO: ProcessCDR(1,14694141,1,1,2) [2025-03-16 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694141', 'tblTempUsageDetail_20' ) start [2025-03-16 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694141', 'tblTempUsageDetail_20' ) end [2025-03-16 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:37:23] Production.INFO: ==17572== Releasing lock... [2025-03-16 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:37:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:38:05 [end_date_ymd] => 2025-03-16 14:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:38:05' and `end` < '2025-03-16 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-03-16 14:38:18] Production.INFO: count ==1112 [2025-03-16 14:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:38:05 - End Time 2025-03-16 14:38:05 [2025-03-16 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694146', 'tblTempUsageDetail_20' ) start [2025-03-16 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694146', 'tblTempUsageDetail_20' ) end [2025-03-16 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694146', 'tblTempVendorCDR_20' ) start [2025-03-16 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694146', 'tblTempVendorCDR_20' ) end [2025-03-16 14:38:18] Production.INFO: ProcessCDR(1,14694146,1,1,2) [2025-03-16 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694146', 'tblTempUsageDetail_20' ) start [2025-03-16 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694146', 'tblTempUsageDetail_20' ) end [2025-03-16 14:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:38:22] Production.INFO: ==17674== Releasing lock... [2025-03-16 14:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:38:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:39:05 [end_date_ymd] => 2025-03-16 14:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:39:05' and `end` < '2025-03-16 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-03-16 14:39:18] Production.INFO: count ==1107 [2025-03-16 14:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:39:05 - End Time 2025-03-16 14:39:05 [2025-03-16 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694151', 'tblTempUsageDetail_20' ) start [2025-03-16 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694151', 'tblTempUsageDetail_20' ) end [2025-03-16 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694151', 'tblTempVendorCDR_20' ) start [2025-03-16 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694151', 'tblTempVendorCDR_20' ) end [2025-03-16 14:39:18] Production.INFO: ProcessCDR(1,14694151,1,1,2) [2025-03-16 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694151', 'tblTempUsageDetail_20' ) start [2025-03-16 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694151', 'tblTempUsageDetail_20' ) end [2025-03-16 14:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:39:22] Production.INFO: ==17781== Releasing lock... [2025-03-16 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:40:06 [end_date_ymd] => 2025-03-16 14:40:06 [RateCDR] => 1 ) [2025-03-16 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:40:06' and `end` < '2025-03-16 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:40:18] Production.INFO: count ==1111 [2025-03-16 14:40:19] Production.ERROR: pbx CDR StartTime 2025-03-16 11:40:06 - End Time 2025-03-16 14:40:06 [2025-03-16 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694157', 'tblTempUsageDetail_20' ) start [2025-03-16 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694157', 'tblTempUsageDetail_20' ) end [2025-03-16 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694157', 'tblTempVendorCDR_20' ) start [2025-03-16 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694157', 'tblTempVendorCDR_20' ) end [2025-03-16 14:40:19] Production.INFO: ProcessCDR(1,14694157,1,1,2) [2025-03-16 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694157', 'tblTempUsageDetail_20' ) start [2025-03-16 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694157', 'tblTempUsageDetail_20' ) end [2025-03-16 14:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:40:24] Production.INFO: ==17888== Releasing lock... [2025-03-16 14:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:40:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:41:05 [end_date_ymd] => 2025-03-16 14:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:41:05' and `end` < '2025-03-16 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-03-16 14:41:17] Production.INFO: count ==1124 [2025-03-16 14:41:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:41:05 - End Time 2025-03-16 14:41:05 [2025-03-16 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694162', 'tblTempUsageDetail_20' ) start [2025-03-16 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694162', 'tblTempUsageDetail_20' ) end [2025-03-16 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694162', 'tblTempVendorCDR_20' ) start [2025-03-16 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694162', 'tblTempVendorCDR_20' ) end [2025-03-16 14:41:18] Production.INFO: ProcessCDR(1,14694162,1,1,2) [2025-03-16 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694162', 'tblTempUsageDetail_20' ) start [2025-03-16 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694162', 'tblTempUsageDetail_20' ) end [2025-03-16 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:41:22] Production.INFO: ==17997== Releasing lock... [2025-03-16 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:42:05 [end_date_ymd] => 2025-03-16 14:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:42:05' and `end` < '2025-03-16 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-03-16 14:42:17] Production.INFO: count ==1123 [2025-03-16 14:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:42:05 - End Time 2025-03-16 14:42:05 [2025-03-16 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694167', 'tblTempUsageDetail_20' ) start [2025-03-16 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694167', 'tblTempUsageDetail_20' ) end [2025-03-16 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694167', 'tblTempVendorCDR_20' ) start [2025-03-16 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694167', 'tblTempVendorCDR_20' ) end [2025-03-16 14:42:18] Production.INFO: ProcessCDR(1,14694167,1,1,2) [2025-03-16 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694167', 'tblTempUsageDetail_20' ) start [2025-03-16 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694167', 'tblTempUsageDetail_20' ) end [2025-03-16 14:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:42:23] Production.INFO: ==18098== Releasing lock... [2025-03-16 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:42:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:43:05 [end_date_ymd] => 2025-03-16 14:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:43:05' and `end` < '2025-03-16 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-03-16 14:43:17] Production.INFO: count ==1126 [2025-03-16 14:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:43:05 - End Time 2025-03-16 14:43:05 [2025-03-16 14:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694172', 'tblTempUsageDetail_20' ) start [2025-03-16 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694172', 'tblTempUsageDetail_20' ) end [2025-03-16 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694172', 'tblTempVendorCDR_20' ) start [2025-03-16 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694172', 'tblTempVendorCDR_20' ) end [2025-03-16 14:43:17] Production.INFO: ProcessCDR(1,14694172,1,1,2) [2025-03-16 14:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694172', 'tblTempUsageDetail_20' ) start [2025-03-16 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694172', 'tblTempUsageDetail_20' ) end [2025-03-16 14:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:43:21] Production.INFO: ==18206== Releasing lock... [2025-03-16 14:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:44:05 [end_date_ymd] => 2025-03-16 14:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:44:05' and `end` < '2025-03-16 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-03-16 14:44:17] Production.INFO: count ==1132 [2025-03-16 14:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:44:05 - End Time 2025-03-16 14:44:05 [2025-03-16 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694177', 'tblTempUsageDetail_20' ) start [2025-03-16 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694177', 'tblTempUsageDetail_20' ) end [2025-03-16 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694177', 'tblTempVendorCDR_20' ) start [2025-03-16 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694177', 'tblTempVendorCDR_20' ) end [2025-03-16 14:44:18] Production.INFO: ProcessCDR(1,14694177,1,1,2) [2025-03-16 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694177', 'tblTempUsageDetail_20' ) start [2025-03-16 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694177', 'tblTempUsageDetail_20' ) end [2025-03-16 14:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:44:21] Production.INFO: ==18312== Releasing lock... [2025-03-16 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:44:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:45:05 [end_date_ymd] => 2025-03-16 14:45:05 [RateCDR] => 1 ) [2025-03-16 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:45:05' and `end` < '2025-03-16 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:45:18] Production.INFO: count ==1132 [2025-03-16 14:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:45:05 - End Time 2025-03-16 14:45:05 [2025-03-16 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694182', 'tblTempUsageDetail_20' ) start [2025-03-16 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694182', 'tblTempUsageDetail_20' ) end [2025-03-16 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694182', 'tblTempVendorCDR_20' ) start [2025-03-16 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694182', 'tblTempVendorCDR_20' ) end [2025-03-16 14:45:18] Production.INFO: ProcessCDR(1,14694182,1,1,2) [2025-03-16 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694182', 'tblTempUsageDetail_20' ) start [2025-03-16 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694182', 'tblTempUsageDetail_20' ) end [2025-03-16 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:45:23] Production.INFO: ==18455== Releasing lock... [2025-03-16 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:45:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:46:05 [end_date_ymd] => 2025-03-16 14:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:46:05' and `end` < '2025-03-16 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-03-16 14:46:17] Production.INFO: count ==1132 [2025-03-16 14:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:46:05 - End Time 2025-03-16 14:46:05 [2025-03-16 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694187', 'tblTempUsageDetail_20' ) start [2025-03-16 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694187', 'tblTempUsageDetail_20' ) end [2025-03-16 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694187', 'tblTempVendorCDR_20' ) start [2025-03-16 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694187', 'tblTempVendorCDR_20' ) end [2025-03-16 14:46:18] Production.INFO: ProcessCDR(1,14694187,1,1,2) [2025-03-16 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694187', 'tblTempUsageDetail_20' ) start [2025-03-16 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694187', 'tblTempUsageDetail_20' ) end [2025-03-16 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:46:22] Production.INFO: ==18563== Releasing lock... [2025-03-16 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:47:06 [end_date_ymd] => 2025-03-16 14:47:06 [RateCDR] => 1 ) [2025-03-16 14: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-03-16 11:47:06' and `end` < '2025-03-16 14: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-03-16 14:47:18] Production.INFO: count ==1132 [2025-03-16 14:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:47:06 - End Time 2025-03-16 14:47:06 [2025-03-16 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694192', 'tblTempUsageDetail_20' ) start [2025-03-16 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694192', 'tblTempUsageDetail_20' ) end [2025-03-16 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694192', 'tblTempVendorCDR_20' ) start [2025-03-16 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694192', 'tblTempVendorCDR_20' ) end [2025-03-16 14:47:18] Production.INFO: ProcessCDR(1,14694192,1,1,2) [2025-03-16 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694192', 'tblTempUsageDetail_20' ) start [2025-03-16 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694192', 'tblTempUsageDetail_20' ) end [2025-03-16 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:47:24] Production.INFO: ==18653== Releasing lock... [2025-03-16 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:47:24] Production.INFO: 37 MB #Memory Used# [2025-03-16 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:48:05 [end_date_ymd] => 2025-03-16 14:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:48:05' and `end` < '2025-03-16 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-03-16 14:48:17] Production.INFO: count ==1130 [2025-03-16 14:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:48:05 - End Time 2025-03-16 14:48:05 [2025-03-16 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694197', 'tblTempUsageDetail_20' ) start [2025-03-16 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694197', 'tblTempUsageDetail_20' ) end [2025-03-16 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694197', 'tblTempVendorCDR_20' ) start [2025-03-16 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694197', 'tblTempVendorCDR_20' ) end [2025-03-16 14:48:18] Production.INFO: ProcessCDR(1,14694197,1,1,2) [2025-03-16 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694197', 'tblTempUsageDetail_20' ) start [2025-03-16 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694197', 'tblTempUsageDetail_20' ) end [2025-03-16 14:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:48:21] Production.INFO: ==18733== Releasing lock... [2025-03-16 14:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:48:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:49:05 [end_date_ymd] => 2025-03-16 14:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:49:05' and `end` < '2025-03-16 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-03-16 14:49:18] Production.INFO: count ==1129 [2025-03-16 14:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:49:05 - End Time 2025-03-16 14:49:05 [2025-03-16 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694202', 'tblTempUsageDetail_20' ) start [2025-03-16 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694202', 'tblTempUsageDetail_20' ) end [2025-03-16 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694202', 'tblTempVendorCDR_20' ) start [2025-03-16 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694202', 'tblTempVendorCDR_20' ) end [2025-03-16 14:49:18] Production.INFO: ProcessCDR(1,14694202,1,1,2) [2025-03-16 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694202', 'tblTempUsageDetail_20' ) start [2025-03-16 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694202', 'tblTempUsageDetail_20' ) end [2025-03-16 14:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:49:21] Production.INFO: ==18815== Releasing lock... [2025-03-16 14:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:50:06 [end_date_ymd] => 2025-03-16 14:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:50:06' and `end` < '2025-03-16 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-03-16 14:50:18] Production.INFO: count ==1130 [2025-03-16 14:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:50:06 - End Time 2025-03-16 14:50:06 [2025-03-16 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694208', 'tblTempUsageDetail_20' ) start [2025-03-16 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694208', 'tblTempUsageDetail_20' ) end [2025-03-16 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694208', 'tblTempVendorCDR_20' ) start [2025-03-16 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694208', 'tblTempVendorCDR_20' ) end [2025-03-16 14:50:18] Production.INFO: ProcessCDR(1,14694208,1,1,2) [2025-03-16 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694208', 'tblTempUsageDetail_20' ) start [2025-03-16 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694208', 'tblTempUsageDetail_20' ) end [2025-03-16 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:50:22] Production.INFO: ==18893== Releasing lock... [2025-03-16 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:51:05 [end_date_ymd] => 2025-03-16 14:51:05 [RateCDR] => 1 ) [2025-03-16 14: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-03-16 11:51:05' and `end` < '2025-03-16 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-03-16 14:51:18] Production.INFO: count ==1143 [2025-03-16 14:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:51:05 - End Time 2025-03-16 14:51:05 [2025-03-16 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694213', 'tblTempUsageDetail_20' ) start [2025-03-16 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694213', 'tblTempUsageDetail_20' ) end [2025-03-16 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694213', 'tblTempVendorCDR_20' ) start [2025-03-16 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694213', 'tblTempVendorCDR_20' ) end [2025-03-16 14:51:18] Production.INFO: ProcessCDR(1,14694213,1,1,2) [2025-03-16 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694213', 'tblTempUsageDetail_20' ) start [2025-03-16 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694213', 'tblTempUsageDetail_20' ) end [2025-03-16 14:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:51:23] Production.INFO: ==18972== Releasing lock... [2025-03-16 14:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:51:23] Production.INFO: 37 MB #Memory Used# [2025-03-16 14:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:52:04 [end_date_ymd] => 2025-03-16 14:52:04 [RateCDR] => 1 ) [2025-03-16 14: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-03-16 11:52:04' and `end` < '2025-03-16 14: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-03-16 14:52:17] Production.INFO: count ==1131 [2025-03-16 14:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:52:04 - End Time 2025-03-16 14:52:04 [2025-03-16 14:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694218', 'tblTempUsageDetail_20' ) start [2025-03-16 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694218', 'tblTempUsageDetail_20' ) end [2025-03-16 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694218', 'tblTempVendorCDR_20' ) start [2025-03-16 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694218', 'tblTempVendorCDR_20' ) end [2025-03-16 14:52:17] Production.INFO: ProcessCDR(1,14694218,1,1,2) [2025-03-16 14:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694218', 'tblTempUsageDetail_20' ) start [2025-03-16 14:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694218', 'tblTempUsageDetail_20' ) end [2025-03-16 14:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:52:20] Production.INFO: ==19042== Releasing lock... [2025-03-16 14:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:52:20] Production.INFO: 37 MB #Memory Used# [2025-03-16 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:53:05 [end_date_ymd] => 2025-03-16 14:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:53:05' and `end` < '2025-03-16 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-03-16 14:53:17] Production.INFO: count ==1134 [2025-03-16 14:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:53:05 - End Time 2025-03-16 14:53:05 [2025-03-16 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694223', 'tblTempUsageDetail_20' ) start [2025-03-16 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694223', 'tblTempUsageDetail_20' ) end [2025-03-16 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694223', 'tblTempVendorCDR_20' ) start [2025-03-16 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694223', 'tblTempVendorCDR_20' ) end [2025-03-16 14:53:18] Production.INFO: ProcessCDR(1,14694223,1,1,2) [2025-03-16 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694223', 'tblTempUsageDetail_20' ) start [2025-03-16 14:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694223', 'tblTempUsageDetail_20' ) end [2025-03-16 14:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:53:21] Production.INFO: ==19126== Releasing lock... [2025-03-16 14:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:53:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:54:05 [end_date_ymd] => 2025-03-16 14:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:54:05' and `end` < '2025-03-16 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-03-16 14:54:17] Production.INFO: count ==1132 [2025-03-16 14:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 11:54:05 - End Time 2025-03-16 14:54:05 [2025-03-16 14:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694228', 'tblTempUsageDetail_20' ) start [2025-03-16 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694228', 'tblTempUsageDetail_20' ) end [2025-03-16 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694228', 'tblTempVendorCDR_20' ) start [2025-03-16 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694228', 'tblTempVendorCDR_20' ) end [2025-03-16 14:54:17] Production.INFO: ProcessCDR(1,14694228,1,1,2) [2025-03-16 14:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694228', 'tblTempUsageDetail_20' ) start [2025-03-16 14:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694228', 'tblTempUsageDetail_20' ) end [2025-03-16 14:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:54:20] Production.INFO: ==19209== Releasing lock... [2025-03-16 14:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:54:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:55:05 [end_date_ymd] => 2025-03-16 14:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:55:05' and `end` < '2025-03-16 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-03-16 14:55:18] Production.INFO: count ==1130 [2025-03-16 14:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:55:05 - End Time 2025-03-16 14:55:05 [2025-03-16 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694233', 'tblTempUsageDetail_20' ) start [2025-03-16 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694233', 'tblTempUsageDetail_20' ) end [2025-03-16 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694233', 'tblTempVendorCDR_20' ) start [2025-03-16 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694233', 'tblTempVendorCDR_20' ) end [2025-03-16 14:55:18] Production.INFO: ProcessCDR(1,14694233,1,1,2) [2025-03-16 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694233', 'tblTempUsageDetail_20' ) start [2025-03-16 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694233', 'tblTempUsageDetail_20' ) end [2025-03-16 14:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:55:21] Production.INFO: ==19286== Releasing lock... [2025-03-16 14:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:55:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:56:06 [end_date_ymd] => 2025-03-16 14:56:06 [RateCDR] => 1 ) [2025-03-16 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 11:56:06' and `end` < '2025-03-16 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 14:56:18] Production.INFO: count ==1134 [2025-03-16 14:56:19] Production.ERROR: pbx CDR StartTime 2025-03-16 11:56:06 - End Time 2025-03-16 14:56:06 [2025-03-16 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694238', 'tblTempUsageDetail_20' ) start [2025-03-16 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694238', 'tblTempUsageDetail_20' ) end [2025-03-16 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694238', 'tblTempVendorCDR_20' ) start [2025-03-16 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694238', 'tblTempVendorCDR_20' ) end [2025-03-16 14:56:19] Production.INFO: ProcessCDR(1,14694238,1,1,2) [2025-03-16 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694238', 'tblTempUsageDetail_20' ) start [2025-03-16 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694238', 'tblTempUsageDetail_20' ) end [2025-03-16 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:56:23] Production.INFO: ==19370== Releasing lock... [2025-03-16 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:56:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:57:05 [end_date_ymd] => 2025-03-16 14:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:57:05' and `end` < '2025-03-16 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-03-16 14:57:17] Production.INFO: count ==1137 [2025-03-16 14:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:57:05 - End Time 2025-03-16 14:57:05 [2025-03-16 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694243', 'tblTempUsageDetail_20' ) start [2025-03-16 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694243', 'tblTempUsageDetail_20' ) end [2025-03-16 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694243', 'tblTempVendorCDR_20' ) start [2025-03-16 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694243', 'tblTempVendorCDR_20' ) end [2025-03-16 14:57:18] Production.INFO: ProcessCDR(1,14694243,1,1,2) [2025-03-16 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694243', 'tblTempUsageDetail_20' ) start [2025-03-16 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694243', 'tblTempUsageDetail_20' ) end [2025-03-16 14:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:57:22] Production.INFO: ==19447== Releasing lock... [2025-03-16 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:57:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:58:06 [end_date_ymd] => 2025-03-16 14:58:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:58:06' and `end` < '2025-03-16 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-03-16 14:58:18] Production.INFO: count ==1139 [2025-03-16 14:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:58:06 - End Time 2025-03-16 14:58:06 [2025-03-16 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694248', 'tblTempUsageDetail_20' ) start [2025-03-16 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694248', 'tblTempUsageDetail_20' ) end [2025-03-16 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694248', 'tblTempVendorCDR_20' ) start [2025-03-16 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694248', 'tblTempVendorCDR_20' ) end [2025-03-16 14:58:18] Production.INFO: ProcessCDR(1,14694248,1,1,2) [2025-03-16 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694248', 'tblTempUsageDetail_20' ) start [2025-03-16 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694248', 'tblTempUsageDetail_20' ) end [2025-03-16 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:58:23] Production.INFO: ==19520== Releasing lock... [2025-03-16 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 11:59:05 [end_date_ymd] => 2025-03-16 14:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 11:59:05' and `end` < '2025-03-16 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-03-16 14:59:18] Production.INFO: count ==1137 [2025-03-16 14:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 11:59:05 - End Time 2025-03-16 14:59:05 [2025-03-16 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694253', 'tblTempUsageDetail_20' ) start [2025-03-16 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694253', 'tblTempUsageDetail_20' ) end [2025-03-16 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694253', 'tblTempVendorCDR_20' ) start [2025-03-16 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694253', 'tblTempVendorCDR_20' ) end [2025-03-16 14:59:18] Production.INFO: ProcessCDR(1,14694253,1,1,2) [2025-03-16 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694253', 'tblTempUsageDetail_20' ) start [2025-03-16 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694253', 'tblTempUsageDetail_20' ) end [2025-03-16 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 14:59:23] Production.INFO: ==19599== Releasing lock... [2025-03-16 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 14:59:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:00:07 [end_date_ymd] => 2025-03-16 15:00:07 [RateCDR] => 1 ) [2025-03-16 15: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-03-16 12:00:07' and `end` < '2025-03-16 15: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-03-16 15:00:19] Production.INFO: count ==1153 [2025-03-16 15:00:19] Production.ERROR: pbx CDR StartTime 2025-03-16 12:00:07 - End Time 2025-03-16 15:00:07 [2025-03-16 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694259', 'tblTempUsageDetail_20' ) start [2025-03-16 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694259', 'tblTempUsageDetail_20' ) end [2025-03-16 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694259', 'tblTempVendorCDR_20' ) start [2025-03-16 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694259', 'tblTempVendorCDR_20' ) end [2025-03-16 15:00:19] Production.INFO: ProcessCDR(1,14694259,1,1,2) [2025-03-16 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694259', 'tblTempUsageDetail_20' ) start [2025-03-16 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694259', 'tblTempUsageDetail_20' ) end [2025-03-16 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:00:25] Production.INFO: ==19683== Releasing lock... [2025-03-16 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:00:25] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:01:05 [end_date_ymd] => 2025-03-16 15:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:01:05' and `end` < '2025-03-16 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-03-16 15:01:18] Production.INFO: count ==1185 [2025-03-16 15:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:01:05 - End Time 2025-03-16 15:01:05 [2025-03-16 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694264', 'tblTempUsageDetail_20' ) start [2025-03-16 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694264', 'tblTempUsageDetail_20' ) end [2025-03-16 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694264', 'tblTempVendorCDR_20' ) start [2025-03-16 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694264', 'tblTempVendorCDR_20' ) end [2025-03-16 15:01:18] Production.INFO: ProcessCDR(1,14694264,1,1,2) [2025-03-16 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694264', 'tblTempUsageDetail_20' ) start [2025-03-16 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694264', 'tblTempUsageDetail_20' ) end [2025-03-16 15:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:01:21] Production.INFO: ==19812== Releasing lock... [2025-03-16 15:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:01:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:02:05 [end_date_ymd] => 2025-03-16 15:02:05 [RateCDR] => 1 ) [2025-03-16 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:02:05' and `end` < '2025-03-16 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:02:18] Production.INFO: count ==1185 [2025-03-16 15:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:02:05 - End Time 2025-03-16 15:02:05 [2025-03-16 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694269', 'tblTempUsageDetail_20' ) start [2025-03-16 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694269', 'tblTempUsageDetail_20' ) end [2025-03-16 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694269', 'tblTempVendorCDR_20' ) start [2025-03-16 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694269', 'tblTempVendorCDR_20' ) end [2025-03-16 15:02:18] Production.INFO: ProcessCDR(1,14694269,1,1,2) [2025-03-16 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694269', 'tblTempUsageDetail_20' ) start [2025-03-16 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694269', 'tblTempUsageDetail_20' ) end [2025-03-16 15:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:02:21] Production.INFO: ==19970== Releasing lock... [2025-03-16 15:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:02:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:03:05 [end_date_ymd] => 2025-03-16 15:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:03:05' and `end` < '2025-03-16 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-03-16 15:03:17] Production.INFO: count ==1172 [2025-03-16 15:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:03:05 - End Time 2025-03-16 15:03:05 [2025-03-16 15:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694274', 'tblTempUsageDetail_20' ) start [2025-03-16 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694274', 'tblTempUsageDetail_20' ) end [2025-03-16 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694274', 'tblTempVendorCDR_20' ) start [2025-03-16 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694274', 'tblTempVendorCDR_20' ) end [2025-03-16 15:03:17] Production.INFO: ProcessCDR(1,14694274,1,1,2) [2025-03-16 15:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694274', 'tblTempUsageDetail_20' ) start [2025-03-16 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694274', 'tblTempUsageDetail_20' ) end [2025-03-16 15:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:03:21] Production.INFO: ==20047== Releasing lock... [2025-03-16 15:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:03:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:04:05 [end_date_ymd] => 2025-03-16 15:04:05 [RateCDR] => 1 ) [2025-03-16 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:04:05' and `end` < '2025-03-16 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:04:18] Production.INFO: count ==1175 [2025-03-16 15:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:04:05 - End Time 2025-03-16 15:04:05 [2025-03-16 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694279', 'tblTempUsageDetail_20' ) start [2025-03-16 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694279', 'tblTempUsageDetail_20' ) end [2025-03-16 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694279', 'tblTempVendorCDR_20' ) start [2025-03-16 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694279', 'tblTempVendorCDR_20' ) end [2025-03-16 15:04:18] Production.INFO: ProcessCDR(1,14694279,1,1,2) [2025-03-16 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694279', 'tblTempUsageDetail_20' ) start [2025-03-16 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694279', 'tblTempUsageDetail_20' ) end [2025-03-16 15:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:04:21] Production.INFO: ==20123== Releasing lock... [2025-03-16 15:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:04:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:05:04 [end_date_ymd] => 2025-03-16 15:05:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:05:04' and `end` < '2025-03-16 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-03-16 15:05:17] Production.INFO: count ==1153 [2025-03-16 15:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:05:04 - End Time 2025-03-16 15:05:04 [2025-03-16 15:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694284', 'tblTempUsageDetail_20' ) start [2025-03-16 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694284', 'tblTempUsageDetail_20' ) end [2025-03-16 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694284', 'tblTempVendorCDR_20' ) start [2025-03-16 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694284', 'tblTempVendorCDR_20' ) end [2025-03-16 15:05:17] Production.INFO: ProcessCDR(1,14694284,1,1,2) [2025-03-16 15:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694284', 'tblTempUsageDetail_20' ) start [2025-03-16 15:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694284', 'tblTempUsageDetail_20' ) end [2025-03-16 15:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:05:20] Production.INFO: ==20279== Releasing lock... [2025-03-16 15:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:05:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:06:05 [end_date_ymd] => 2025-03-16 15:06:05 [RateCDR] => 1 ) [2025-03-16 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:06:05' and `end` < '2025-03-16 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:06:17] Production.INFO: count ==1134 [2025-03-16 15:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:06:05 - End Time 2025-03-16 15:06:05 [2025-03-16 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694289', 'tblTempUsageDetail_20' ) start [2025-03-16 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694289', 'tblTempUsageDetail_20' ) end [2025-03-16 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694289', 'tblTempVendorCDR_20' ) start [2025-03-16 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694289', 'tblTempVendorCDR_20' ) end [2025-03-16 15:06:18] Production.INFO: ProcessCDR(1,14694289,1,1,2) [2025-03-16 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694289', 'tblTempUsageDetail_20' ) start [2025-03-16 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694289', 'tblTempUsageDetail_20' ) end [2025-03-16 15:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:06:21] Production.INFO: ==20353== Releasing lock... [2025-03-16 15:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:06:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:07:04 [end_date_ymd] => 2025-03-16 15:07:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:07:04' and `end` < '2025-03-16 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-03-16 15:07:17] Production.INFO: count ==1136 [2025-03-16 15:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:07:04 - End Time 2025-03-16 15:07:04 [2025-03-16 15:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694294', 'tblTempUsageDetail_20' ) start [2025-03-16 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694294', 'tblTempUsageDetail_20' ) end [2025-03-16 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694294', 'tblTempVendorCDR_20' ) start [2025-03-16 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694294', 'tblTempVendorCDR_20' ) end [2025-03-16 15:07:17] Production.INFO: ProcessCDR(1,14694294,1,1,2) [2025-03-16 15:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694294', 'tblTempUsageDetail_20' ) start [2025-03-16 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694294', 'tblTempUsageDetail_20' ) end [2025-03-16 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:07:22] Production.INFO: ==20428== Releasing lock... [2025-03-16 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:07:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:08:05 [end_date_ymd] => 2025-03-16 15:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:08:05' and `end` < '2025-03-16 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-03-16 15:08:17] Production.INFO: count ==1138 [2025-03-16 15:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:08:05 - End Time 2025-03-16 15:08:05 [2025-03-16 15:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694299', 'tblTempUsageDetail_20' ) start [2025-03-16 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694299', 'tblTempUsageDetail_20' ) end [2025-03-16 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694299', 'tblTempVendorCDR_20' ) start [2025-03-16 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694299', 'tblTempVendorCDR_20' ) end [2025-03-16 15:08:18] Production.INFO: ProcessCDR(1,14694299,1,1,2) [2025-03-16 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694299', 'tblTempUsageDetail_20' ) start [2025-03-16 15:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694299', 'tblTempUsageDetail_20' ) end [2025-03-16 15:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:08:21] Production.INFO: ==20585== Releasing lock... [2025-03-16 15:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:08:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:09:05 [end_date_ymd] => 2025-03-16 15:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:09:05' and `end` < '2025-03-16 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-03-16 15:09:17] Production.INFO: count ==1140 [2025-03-16 15:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:09:05 - End Time 2025-03-16 15:09:05 [2025-03-16 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694304', 'tblTempUsageDetail_20' ) start [2025-03-16 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694304', 'tblTempUsageDetail_20' ) end [2025-03-16 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694304', 'tblTempVendorCDR_20' ) start [2025-03-16 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694304', 'tblTempVendorCDR_20' ) end [2025-03-16 15:09:18] Production.INFO: ProcessCDR(1,14694304,1,1,2) [2025-03-16 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694304', 'tblTempUsageDetail_20' ) start [2025-03-16 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694304', 'tblTempUsageDetail_20' ) end [2025-03-16 15:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:09:21] Production.INFO: ==20670== Releasing lock... [2025-03-16 15:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:09:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:10:06 [end_date_ymd] => 2025-03-16 15:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:10:06' and `end` < '2025-03-16 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-03-16 15:10:18] Production.INFO: count ==1141 [2025-03-16 15:10:19] Production.ERROR: pbx CDR StartTime 2025-03-16 12:10:06 - End Time 2025-03-16 15:10:06 [2025-03-16 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694310', 'tblTempUsageDetail_20' ) start [2025-03-16 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694310', 'tblTempUsageDetail_20' ) end [2025-03-16 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694310', 'tblTempVendorCDR_20' ) start [2025-03-16 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694310', 'tblTempVendorCDR_20' ) end [2025-03-16 15:10:19] Production.INFO: ProcessCDR(1,14694310,1,1,2) [2025-03-16 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694310', 'tblTempUsageDetail_20' ) start [2025-03-16 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694310', 'tblTempUsageDetail_20' ) end [2025-03-16 15:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:10:22] Production.INFO: ==20764== Releasing lock... [2025-03-16 15:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:10:22] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:11:05 [end_date_ymd] => 2025-03-16 15:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:11:05' and `end` < '2025-03-16 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-03-16 15:11:18] Production.INFO: count ==1157 [2025-03-16 15:11:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:11:05 - End Time 2025-03-16 15:11:05 [2025-03-16 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694315', 'tblTempUsageDetail_20' ) start [2025-03-16 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694315', 'tblTempUsageDetail_20' ) end [2025-03-16 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694315', 'tblTempVendorCDR_20' ) start [2025-03-16 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694315', 'tblTempVendorCDR_20' ) end [2025-03-16 15:11:18] Production.INFO: ProcessCDR(1,14694315,1,1,2) [2025-03-16 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694315', 'tblTempUsageDetail_20' ) start [2025-03-16 15:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694315', 'tblTempUsageDetail_20' ) end [2025-03-16 15:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:11:21] Production.INFO: ==20842== Releasing lock... [2025-03-16 15:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:11:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:12:06 [end_date_ymd] => 2025-03-16 15:12:06 [RateCDR] => 1 ) [2025-03-16 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:12:06' and `end` < '2025-03-16 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:12:18] Production.INFO: count ==1167 [2025-03-16 15:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:12:06 - End Time 2025-03-16 15:12:06 [2025-03-16 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694320', 'tblTempUsageDetail_20' ) start [2025-03-16 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694320', 'tblTempUsageDetail_20' ) end [2025-03-16 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694320', 'tblTempVendorCDR_20' ) start [2025-03-16 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694320', 'tblTempVendorCDR_20' ) end [2025-03-16 15:12:18] Production.INFO: ProcessCDR(1,14694320,1,1,2) [2025-03-16 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694320', 'tblTempUsageDetail_20' ) start [2025-03-16 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694320', 'tblTempUsageDetail_20' ) end [2025-03-16 15:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:12:21] Production.INFO: ==20997== Releasing lock... [2025-03-16 15:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:12:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:13:05 [end_date_ymd] => 2025-03-16 15:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:13:05' and `end` < '2025-03-16 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-03-16 15:13:17] Production.INFO: count ==1169 [2025-03-16 15:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:13:05 - End Time 2025-03-16 15:13:05 [2025-03-16 15:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694325', 'tblTempUsageDetail_20' ) start [2025-03-16 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694325', 'tblTempUsageDetail_20' ) end [2025-03-16 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694325', 'tblTempVendorCDR_20' ) start [2025-03-16 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694325', 'tblTempVendorCDR_20' ) end [2025-03-16 15:13:17] Production.INFO: ProcessCDR(1,14694325,1,1,2) [2025-03-16 15:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694325', 'tblTempUsageDetail_20' ) start [2025-03-16 15:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694325', 'tblTempUsageDetail_20' ) end [2025-03-16 15:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:13:20] Production.INFO: ==21071== Releasing lock... [2025-03-16 15:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:13:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:14:05 [end_date_ymd] => 2025-03-16 15:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:14:05' and `end` < '2025-03-16 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-03-16 15:14:17] Production.INFO: count ==1169 [2025-03-16 15:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:14:05 - End Time 2025-03-16 15:14:05 [2025-03-16 15:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694330', 'tblTempUsageDetail_20' ) start [2025-03-16 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694330', 'tblTempUsageDetail_20' ) end [2025-03-16 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694330', 'tblTempVendorCDR_20' ) start [2025-03-16 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694330', 'tblTempVendorCDR_20' ) end [2025-03-16 15:14:17] Production.INFO: ProcessCDR(1,14694330,1,1,2) [2025-03-16 15:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694330', 'tblTempUsageDetail_20' ) start [2025-03-16 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694330', 'tblTempUsageDetail_20' ) end [2025-03-16 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:14:22] Production.INFO: ==21145== Releasing lock... [2025-03-16 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:15:05 [end_date_ymd] => 2025-03-16 15:15:05 [RateCDR] => 1 ) [2025-03-16 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:15:05' and `end` < '2025-03-16 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:15:18] Production.INFO: count ==1169 [2025-03-16 15:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:15:05 - End Time 2025-03-16 15:15:05 [2025-03-16 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694335', 'tblTempUsageDetail_20' ) start [2025-03-16 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694335', 'tblTempUsageDetail_20' ) end [2025-03-16 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694335', 'tblTempVendorCDR_20' ) start [2025-03-16 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694335', 'tblTempVendorCDR_20' ) end [2025-03-16 15:15:18] Production.INFO: ProcessCDR(1,14694335,1,1,2) [2025-03-16 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694335', 'tblTempUsageDetail_20' ) start [2025-03-16 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694335', 'tblTempUsageDetail_20' ) end [2025-03-16 15:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:15:21] Production.INFO: ==21301== Releasing lock... [2025-03-16 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:15:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:16:05 [end_date_ymd] => 2025-03-16 15:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:16:05' and `end` < '2025-03-16 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-03-16 15:16:17] Production.INFO: count ==1170 [2025-03-16 15:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:16:05 - End Time 2025-03-16 15:16:05 [2025-03-16 15:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694340', 'tblTempUsageDetail_20' ) start [2025-03-16 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694340', 'tblTempUsageDetail_20' ) end [2025-03-16 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694340', 'tblTempVendorCDR_20' ) start [2025-03-16 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694340', 'tblTempVendorCDR_20' ) end [2025-03-16 15:16:17] Production.INFO: ProcessCDR(1,14694340,1,1,2) [2025-03-16 15:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694340', 'tblTempUsageDetail_20' ) start [2025-03-16 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694340', 'tblTempUsageDetail_20' ) end [2025-03-16 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:16:22] Production.INFO: ==21414== Releasing lock... [2025-03-16 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:16:22] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:17:05 [end_date_ymd] => 2025-03-16 15:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:17:05' and `end` < '2025-03-16 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-03-16 15:17:18] Production.INFO: count ==1169 [2025-03-16 15:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:17:05 - End Time 2025-03-16 15:17:05 [2025-03-16 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694345', 'tblTempUsageDetail_20' ) start [2025-03-16 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694345', 'tblTempUsageDetail_20' ) end [2025-03-16 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694345', 'tblTempVendorCDR_20' ) start [2025-03-16 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694345', 'tblTempVendorCDR_20' ) end [2025-03-16 15:17:18] Production.INFO: ProcessCDR(1,14694345,1,1,2) [2025-03-16 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694345', 'tblTempUsageDetail_20' ) start [2025-03-16 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694345', 'tblTempUsageDetail_20' ) end [2025-03-16 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:17:22] Production.INFO: ==21489== Releasing lock... [2025-03-16 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:18:05 [end_date_ymd] => 2025-03-16 15:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:18:05' and `end` < '2025-03-16 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-03-16 15:18:17] Production.INFO: count ==1163 [2025-03-16 15:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:18:05 - End Time 2025-03-16 15:18:05 [2025-03-16 15:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694350', 'tblTempUsageDetail_20' ) start [2025-03-16 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694350', 'tblTempUsageDetail_20' ) end [2025-03-16 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694350', 'tblTempVendorCDR_20' ) start [2025-03-16 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694350', 'tblTempVendorCDR_20' ) end [2025-03-16 15:18:18] Production.INFO: ProcessCDR(1,14694350,1,1,2) [2025-03-16 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694350', 'tblTempUsageDetail_20' ) start [2025-03-16 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694350', 'tblTempUsageDetail_20' ) end [2025-03-16 15:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:18:21] Production.INFO: ==21564== Releasing lock... [2025-03-16 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:18:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:19:05 [end_date_ymd] => 2025-03-16 15:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:19:05' and `end` < '2025-03-16 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-03-16 15:19:18] Production.INFO: count ==1166 [2025-03-16 15:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:19:05 - End Time 2025-03-16 15:19:05 [2025-03-16 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694355', 'tblTempUsageDetail_20' ) start [2025-03-16 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694355', 'tblTempUsageDetail_20' ) end [2025-03-16 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694355', 'tblTempVendorCDR_20' ) start [2025-03-16 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694355', 'tblTempVendorCDR_20' ) end [2025-03-16 15:19:18] Production.INFO: ProcessCDR(1,14694355,1,1,2) [2025-03-16 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694355', 'tblTempUsageDetail_20' ) start [2025-03-16 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694355', 'tblTempUsageDetail_20' ) end [2025-03-16 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:19:23] Production.INFO: ==21639== Releasing lock... [2025-03-16 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:19:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:20:05 [end_date_ymd] => 2025-03-16 15:20:05 [RateCDR] => 1 ) [2025-03-16 15: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-03-16 12:20:05' and `end` < '2025-03-16 15: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-03-16 15:20:18] Production.INFO: count ==1169 [2025-03-16 15:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:20:05 - End Time 2025-03-16 15:20:05 [2025-03-16 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694361', 'tblTempUsageDetail_20' ) start [2025-03-16 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694361', 'tblTempUsageDetail_20' ) end [2025-03-16 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694361', 'tblTempVendorCDR_20' ) start [2025-03-16 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694361', 'tblTempVendorCDR_20' ) end [2025-03-16 15:20:18] Production.INFO: ProcessCDR(1,14694361,1,1,2) [2025-03-16 15:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694361', 'tblTempUsageDetail_20' ) start [2025-03-16 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694361', 'tblTempUsageDetail_20' ) end [2025-03-16 15:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:20:23] Production.INFO: ==21721== Releasing lock... [2025-03-16 15:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:20:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:21:05 [end_date_ymd] => 2025-03-16 15:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:21:05' and `end` < '2025-03-16 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-03-16 15:21:17] Production.INFO: count ==1205 [2025-03-16 15:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:21:05 - End Time 2025-03-16 15:21:05 [2025-03-16 15:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694366', 'tblTempUsageDetail_20' ) start [2025-03-16 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694366', 'tblTempUsageDetail_20' ) end [2025-03-16 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694366', 'tblTempVendorCDR_20' ) start [2025-03-16 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694366', 'tblTempVendorCDR_20' ) end [2025-03-16 15:21:17] Production.INFO: ProcessCDR(1,14694366,1,1,2) [2025-03-16 15:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694366', 'tblTempUsageDetail_20' ) start [2025-03-16 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694366', 'tblTempUsageDetail_20' ) end [2025-03-16 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:21:22] Production.INFO: ==21798== Releasing lock... [2025-03-16 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:21:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:22:04 [end_date_ymd] => 2025-03-16 15:22:04 [RateCDR] => 1 ) [2025-03-16 15:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:22:04' and `end` < '2025-03-16 15:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:22:16] Production.INFO: count ==1207 [2025-03-16 15:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:22:04 - End Time 2025-03-16 15:22:04 [2025-03-16 15:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694371', 'tblTempUsageDetail_20' ) start [2025-03-16 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694371', 'tblTempUsageDetail_20' ) end [2025-03-16 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694371', 'tblTempVendorCDR_20' ) start [2025-03-16 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694371', 'tblTempVendorCDR_20' ) end [2025-03-16 15:22:17] Production.INFO: ProcessCDR(1,14694371,1,1,2) [2025-03-16 15:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694371', 'tblTempUsageDetail_20' ) start [2025-03-16 15:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694371', 'tblTempUsageDetail_20' ) end [2025-03-16 15:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:22:20] Production.INFO: ==21878== Releasing lock... [2025-03-16 15:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:22:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:23:05 [end_date_ymd] => 2025-03-16 15:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:23:05' and `end` < '2025-03-16 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-03-16 15:23:17] Production.INFO: count ==1207 [2025-03-16 15:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:23:05 - End Time 2025-03-16 15:23:05 [2025-03-16 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694376', 'tblTempUsageDetail_20' ) start [2025-03-16 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694376', 'tblTempUsageDetail_20' ) end [2025-03-16 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694376', 'tblTempVendorCDR_20' ) start [2025-03-16 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694376', 'tblTempVendorCDR_20' ) end [2025-03-16 15:23:18] Production.INFO: ProcessCDR(1,14694376,1,1,2) [2025-03-16 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694376', 'tblTempUsageDetail_20' ) start [2025-03-16 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694376', 'tblTempUsageDetail_20' ) end [2025-03-16 15:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:23:21] Production.INFO: ==21957== Releasing lock... [2025-03-16 15:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:23:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:24:05 [end_date_ymd] => 2025-03-16 15:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:24:05' and `end` < '2025-03-16 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-03-16 15:24:18] Production.INFO: count ==1208 [2025-03-16 15:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:24:05 - End Time 2025-03-16 15:24:05 [2025-03-16 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694381', 'tblTempUsageDetail_20' ) start [2025-03-16 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694381', 'tblTempUsageDetail_20' ) end [2025-03-16 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694381', 'tblTempVendorCDR_20' ) start [2025-03-16 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694381', 'tblTempVendorCDR_20' ) end [2025-03-16 15:24:18] Production.INFO: ProcessCDR(1,14694381,1,1,2) [2025-03-16 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694381', 'tblTempUsageDetail_20' ) start [2025-03-16 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694381', 'tblTempUsageDetail_20' ) end [2025-03-16 15:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:24:21] Production.INFO: ==22034== Releasing lock... [2025-03-16 15:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:24:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:25:05 [end_date_ymd] => 2025-03-16 15:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:25:05' and `end` < '2025-03-16 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-03-16 15:25:17] Production.INFO: count ==1213 [2025-03-16 15:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:25:05 - End Time 2025-03-16 15:25:05 [2025-03-16 15:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694386', 'tblTempUsageDetail_20' ) start [2025-03-16 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694386', 'tblTempUsageDetail_20' ) end [2025-03-16 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694386', 'tblTempVendorCDR_20' ) start [2025-03-16 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694386', 'tblTempVendorCDR_20' ) end [2025-03-16 15:25:17] Production.INFO: ProcessCDR(1,14694386,1,1,2) [2025-03-16 15:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694386', 'tblTempUsageDetail_20' ) start [2025-03-16 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694386', 'tblTempUsageDetail_20' ) end [2025-03-16 15:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:25:21] Production.INFO: ==22111== Releasing lock... [2025-03-16 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:26:05 [end_date_ymd] => 2025-03-16 15:26:05 [RateCDR] => 1 ) [2025-03-16 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:26:05' and `end` < '2025-03-16 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:26:18] Production.INFO: count ==1213 [2025-03-16 15:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:26:05 - End Time 2025-03-16 15:26:05 [2025-03-16 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694391', 'tblTempUsageDetail_20' ) start [2025-03-16 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694391', 'tblTempUsageDetail_20' ) end [2025-03-16 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694391', 'tblTempVendorCDR_20' ) start [2025-03-16 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694391', 'tblTempVendorCDR_20' ) end [2025-03-16 15:26:18] Production.INFO: ProcessCDR(1,14694391,1,1,2) [2025-03-16 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694391', 'tblTempUsageDetail_20' ) start [2025-03-16 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694391', 'tblTempUsageDetail_20' ) end [2025-03-16 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:26:23] Production.INFO: ==22186== Releasing lock... [2025-03-16 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:26:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:27:05 [end_date_ymd] => 2025-03-16 15:27:05 [RateCDR] => 1 ) [2025-03-16 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:27:05' and `end` < '2025-03-16 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:27:17] Production.INFO: count ==1212 [2025-03-16 15:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:27:05 - End Time 2025-03-16 15:27:05 [2025-03-16 15:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694396', 'tblTempUsageDetail_20' ) start [2025-03-16 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694396', 'tblTempUsageDetail_20' ) end [2025-03-16 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694396', 'tblTempVendorCDR_20' ) start [2025-03-16 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694396', 'tblTempVendorCDR_20' ) end [2025-03-16 15:27:17] Production.INFO: ProcessCDR(1,14694396,1,1,2) [2025-03-16 15:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694396', 'tblTempUsageDetail_20' ) start [2025-03-16 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694396', 'tblTempUsageDetail_20' ) end [2025-03-16 15:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:27:21] Production.INFO: ==22263== Releasing lock... [2025-03-16 15:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:27:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:28:05 [end_date_ymd] => 2025-03-16 15:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:28:05' and `end` < '2025-03-16 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-03-16 15:28:17] Production.INFO: count ==1216 [2025-03-16 15:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:28:05 - End Time 2025-03-16 15:28:05 [2025-03-16 15:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694401', 'tblTempUsageDetail_20' ) start [2025-03-16 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694401', 'tblTempUsageDetail_20' ) end [2025-03-16 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694401', 'tblTempVendorCDR_20' ) start [2025-03-16 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694401', 'tblTempVendorCDR_20' ) end [2025-03-16 15:28:17] Production.INFO: ProcessCDR(1,14694401,1,1,2) [2025-03-16 15:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694401', 'tblTempUsageDetail_20' ) start [2025-03-16 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694401', 'tblTempUsageDetail_20' ) end [2025-03-16 15:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:28:22] Production.INFO: ==22336== Releasing lock... [2025-03-16 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:28:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:29:05 [end_date_ymd] => 2025-03-16 15:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:29:05' and `end` < '2025-03-16 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-03-16 15:29:18] Production.INFO: count ==1220 [2025-03-16 15:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:29:05 - End Time 2025-03-16 15:29:05 [2025-03-16 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694406', 'tblTempUsageDetail_20' ) start [2025-03-16 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694406', 'tblTempUsageDetail_20' ) end [2025-03-16 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694406', 'tblTempVendorCDR_20' ) start [2025-03-16 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694406', 'tblTempVendorCDR_20' ) end [2025-03-16 15:29:18] Production.INFO: ProcessCDR(1,14694406,1,1,2) [2025-03-16 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694406', 'tblTempUsageDetail_20' ) start [2025-03-16 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694406', 'tblTempUsageDetail_20' ) end [2025-03-16 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:29:23] Production.INFO: ==22410== Releasing lock... [2025-03-16 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:29:23] Production.INFO: 37 MB #Memory Used# [2025-03-16 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:30:06 [end_date_ymd] => 2025-03-16 15:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:30:06' and `end` < '2025-03-16 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-03-16 15:30:18] Production.INFO: count ==1218 [2025-03-16 15:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:30:06 - End Time 2025-03-16 15:30:06 [2025-03-16 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694412', 'tblTempUsageDetail_20' ) start [2025-03-16 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694412', 'tblTempUsageDetail_20' ) end [2025-03-16 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694412', 'tblTempVendorCDR_20' ) start [2025-03-16 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694412', 'tblTempVendorCDR_20' ) end [2025-03-16 15:30:18] Production.INFO: ProcessCDR(1,14694412,1,1,2) [2025-03-16 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694412', 'tblTempUsageDetail_20' ) start [2025-03-16 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694412', 'tblTempUsageDetail_20' ) end [2025-03-16 15:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:30:21] Production.INFO: ==22490== Releasing lock... [2025-03-16 15:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:30:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:31:05 [end_date_ymd] => 2025-03-16 15:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:31:05' and `end` < '2025-03-16 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-03-16 15:31:18] Production.INFO: count ==1261 [2025-03-16 15:31:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:31:05 - End Time 2025-03-16 15:31:05 [2025-03-16 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694417', 'tblTempUsageDetail_20' ) start [2025-03-16 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694417', 'tblTempUsageDetail_20' ) end [2025-03-16 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694417', 'tblTempVendorCDR_20' ) start [2025-03-16 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694417', 'tblTempVendorCDR_20' ) end [2025-03-16 15:31:18] Production.INFO: ProcessCDR(1,14694417,1,1,2) [2025-03-16 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694417', 'tblTempUsageDetail_20' ) start [2025-03-16 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694417', 'tblTempUsageDetail_20' ) end [2025-03-16 15:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:31:22] Production.INFO: ==22607== Releasing lock... [2025-03-16 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:31:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:32:05 [end_date_ymd] => 2025-03-16 15:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:32:05' and `end` < '2025-03-16 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-03-16 15:32:17] Production.INFO: count ==1262 [2025-03-16 15:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:32:05 - End Time 2025-03-16 15:32:05 [2025-03-16 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694422', 'tblTempUsageDetail_20' ) start [2025-03-16 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694422', 'tblTempUsageDetail_20' ) end [2025-03-16 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694422', 'tblTempVendorCDR_20' ) start [2025-03-16 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694422', 'tblTempVendorCDR_20' ) end [2025-03-16 15:32:18] Production.INFO: ProcessCDR(1,14694422,1,1,2) [2025-03-16 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694422', 'tblTempUsageDetail_20' ) start [2025-03-16 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694422', 'tblTempUsageDetail_20' ) end [2025-03-16 15:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:32:22] Production.INFO: ==22687== Releasing lock... [2025-03-16 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:33:05 [end_date_ymd] => 2025-03-16 15:33:05 [RateCDR] => 1 ) [2025-03-16 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:33:05' and `end` < '2025-03-16 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:33:17] Production.INFO: count ==1276 [2025-03-16 15:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:33:05 - End Time 2025-03-16 15:33:05 [2025-03-16 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694427', 'tblTempUsageDetail_20' ) start [2025-03-16 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694427', 'tblTempUsageDetail_20' ) end [2025-03-16 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694427', 'tblTempVendorCDR_20' ) start [2025-03-16 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694427', 'tblTempVendorCDR_20' ) end [2025-03-16 15:33:18] Production.INFO: ProcessCDR(1,14694427,1,1,2) [2025-03-16 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694427', 'tblTempUsageDetail_20' ) start [2025-03-16 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694427', 'tblTempUsageDetail_20' ) end [2025-03-16 15:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:33:22] Production.INFO: ==22756== Releasing lock... [2025-03-16 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:34:05 [end_date_ymd] => 2025-03-16 15:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:34:05' and `end` < '2025-03-16 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-03-16 15:34:17] Production.INFO: count ==1278 [2025-03-16 15:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:34:05 - End Time 2025-03-16 15:34:05 [2025-03-16 15:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694432', 'tblTempUsageDetail_20' ) start [2025-03-16 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694432', 'tblTempUsageDetail_20' ) end [2025-03-16 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694432', 'tblTempVendorCDR_20' ) start [2025-03-16 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694432', 'tblTempVendorCDR_20' ) end [2025-03-16 15:34:17] Production.INFO: ProcessCDR(1,14694432,1,1,2) [2025-03-16 15:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694432', 'tblTempUsageDetail_20' ) start [2025-03-16 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694432', 'tblTempUsageDetail_20' ) end [2025-03-16 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:34:22] Production.INFO: ==22831== Releasing lock... [2025-03-16 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:34:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:35:05 [end_date_ymd] => 2025-03-16 15:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:35:05' and `end` < '2025-03-16 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-03-16 15:35:17] Production.INFO: count ==1282 [2025-03-16 15:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:35:05 - End Time 2025-03-16 15:35:05 [2025-03-16 15:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694437', 'tblTempUsageDetail_20' ) start [2025-03-16 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694437', 'tblTempUsageDetail_20' ) end [2025-03-16 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694437', 'tblTempVendorCDR_20' ) start [2025-03-16 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694437', 'tblTempVendorCDR_20' ) end [2025-03-16 15:35:17] Production.INFO: ProcessCDR(1,14694437,1,1,2) [2025-03-16 15:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694437', 'tblTempUsageDetail_20' ) start [2025-03-16 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694437', 'tblTempUsageDetail_20' ) end [2025-03-16 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:35:22] Production.INFO: ==22920== Releasing lock... [2025-03-16 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:35:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:36:05 [end_date_ymd] => 2025-03-16 15:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:36:05' and `end` < '2025-03-16 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-03-16 15:36:17] Production.INFO: count ==1282 [2025-03-16 15:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:36:05 - End Time 2025-03-16 15:36:05 [2025-03-16 15:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694442', 'tblTempUsageDetail_20' ) start [2025-03-16 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694442', 'tblTempUsageDetail_20' ) end [2025-03-16 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694442', 'tblTempVendorCDR_20' ) start [2025-03-16 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694442', 'tblTempVendorCDR_20' ) end [2025-03-16 15:36:17] Production.INFO: ProcessCDR(1,14694442,1,1,2) [2025-03-16 15:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694442', 'tblTempUsageDetail_20' ) start [2025-03-16 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694442', 'tblTempUsageDetail_20' ) end [2025-03-16 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:36:22] Production.INFO: ==23000== Releasing lock... [2025-03-16 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:36:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:37:05 [end_date_ymd] => 2025-03-16 15:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:37:05' and `end` < '2025-03-16 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-03-16 15:37:17] Production.INFO: count ==1275 [2025-03-16 15:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:37:05 - End Time 2025-03-16 15:37:05 [2025-03-16 15:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694446', 'tblTempUsageDetail_20' ) start [2025-03-16 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694446', 'tblTempUsageDetail_20' ) end [2025-03-16 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694446', 'tblTempVendorCDR_20' ) start [2025-03-16 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694446', 'tblTempVendorCDR_20' ) end [2025-03-16 15:37:18] Production.INFO: ProcessCDR(1,14694446,1,1,2) [2025-03-16 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694446', 'tblTempUsageDetail_20' ) start [2025-03-16 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694446', 'tblTempUsageDetail_20' ) end [2025-03-16 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:37:22] Production.INFO: ==23072== Releasing lock... [2025-03-16 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:37:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:38:05 [end_date_ymd] => 2025-03-16 15:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:38:05' and `end` < '2025-03-16 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-03-16 15:38:17] Production.INFO: count ==1307 [2025-03-16 15:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:38:05 - End Time 2025-03-16 15:38:05 [2025-03-16 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694452', 'tblTempUsageDetail_20' ) start [2025-03-16 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694452', 'tblTempUsageDetail_20' ) end [2025-03-16 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694452', 'tblTempVendorCDR_20' ) start [2025-03-16 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694452', 'tblTempVendorCDR_20' ) end [2025-03-16 15:38:18] Production.INFO: ProcessCDR(1,14694452,1,1,2) [2025-03-16 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694452', 'tblTempUsageDetail_20' ) start [2025-03-16 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694452', 'tblTempUsageDetail_20' ) end [2025-03-16 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:38:22] Production.INFO: ==23148== Releasing lock... [2025-03-16 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:38:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:39:05 [end_date_ymd] => 2025-03-16 15:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:39:05' and `end` < '2025-03-16 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-03-16 15:39:17] Production.INFO: count ==1292 [2025-03-16 15:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:39:05 - End Time 2025-03-16 15:39:05 [2025-03-16 15:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694457', 'tblTempUsageDetail_20' ) start [2025-03-16 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694457', 'tblTempUsageDetail_20' ) end [2025-03-16 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694457', 'tblTempVendorCDR_20' ) start [2025-03-16 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694457', 'tblTempVendorCDR_20' ) end [2025-03-16 15:39:17] Production.INFO: ProcessCDR(1,14694457,1,1,2) [2025-03-16 15:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694457', 'tblTempUsageDetail_20' ) start [2025-03-16 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694457', 'tblTempUsageDetail_20' ) end [2025-03-16 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:39:22] Production.INFO: ==23224== Releasing lock... [2025-03-16 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:39:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:40:06 [end_date_ymd] => 2025-03-16 15:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:40:06' and `end` < '2025-03-16 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-03-16 15:40:18] Production.INFO: count ==1292 [2025-03-16 15:40:19] Production.ERROR: pbx CDR StartTime 2025-03-16 12:40:06 - End Time 2025-03-16 15:40:06 [2025-03-16 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694463', 'tblTempUsageDetail_20' ) start [2025-03-16 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694463', 'tblTempUsageDetail_20' ) end [2025-03-16 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694463', 'tblTempVendorCDR_20' ) start [2025-03-16 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694463', 'tblTempVendorCDR_20' ) end [2025-03-16 15:40:19] Production.INFO: ProcessCDR(1,14694463,1,1,2) [2025-03-16 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694463', 'tblTempUsageDetail_20' ) start [2025-03-16 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694463', 'tblTempUsageDetail_20' ) end [2025-03-16 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:40:24] Production.INFO: ==23307== Releasing lock... [2025-03-16 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:40:24] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:41:05 [end_date_ymd] => 2025-03-16 15:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:41:05' and `end` < '2025-03-16 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-03-16 15:41:17] Production.INFO: count ==1312 [2025-03-16 15:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:41:05 - End Time 2025-03-16 15:41:05 [2025-03-16 15:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694468', 'tblTempUsageDetail_20' ) start [2025-03-16 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694468', 'tblTempUsageDetail_20' ) end [2025-03-16 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694468', 'tblTempVendorCDR_20' ) start [2025-03-16 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694468', 'tblTempVendorCDR_20' ) end [2025-03-16 15:41:17] Production.INFO: ProcessCDR(1,14694468,1,1,2) [2025-03-16 15:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694468', 'tblTempUsageDetail_20' ) start [2025-03-16 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694468', 'tblTempUsageDetail_20' ) end [2025-03-16 15:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:41:22] Production.INFO: ==23387== Releasing lock... [2025-03-16 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:41:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:42:06 [end_date_ymd] => 2025-03-16 15:42:06 [RateCDR] => 1 ) [2025-03-16 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:42:06' and `end` < '2025-03-16 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:42:18] Production.INFO: count ==1299 [2025-03-16 15:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:42:06 - End Time 2025-03-16 15:42:06 [2025-03-16 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694473', 'tblTempUsageDetail_20' ) start [2025-03-16 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694473', 'tblTempUsageDetail_20' ) end [2025-03-16 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694473', 'tblTempVendorCDR_20' ) start [2025-03-16 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694473', 'tblTempVendorCDR_20' ) end [2025-03-16 15:42:18] Production.INFO: ProcessCDR(1,14694473,1,1,2) [2025-03-16 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694473', 'tblTempUsageDetail_20' ) start [2025-03-16 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694473', 'tblTempUsageDetail_20' ) end [2025-03-16 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:42:23] Production.INFO: ==23459== Releasing lock... [2025-03-16 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:42:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:43:06 [end_date_ymd] => 2025-03-16 15:43:06 [RateCDR] => 1 ) [2025-03-16 15: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-03-16 12:43:06' and `end` < '2025-03-16 15: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-03-16 15:43:18] Production.INFO: count ==1295 [2025-03-16 15:43:19] Production.ERROR: pbx CDR StartTime 2025-03-16 12:43:06 - End Time 2025-03-16 15:43:06 [2025-03-16 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694478', 'tblTempUsageDetail_20' ) start [2025-03-16 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694478', 'tblTempUsageDetail_20' ) end [2025-03-16 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694478', 'tblTempVendorCDR_20' ) start [2025-03-16 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694478', 'tblTempVendorCDR_20' ) end [2025-03-16 15:43:19] Production.INFO: ProcessCDR(1,14694478,1,1,2) [2025-03-16 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694478', 'tblTempUsageDetail_20' ) start [2025-03-16 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694478', 'tblTempUsageDetail_20' ) end [2025-03-16 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:43:22] Production.INFO: ==23533== Releasing lock... [2025-03-16 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:43:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:44:05 [end_date_ymd] => 2025-03-16 15:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:44:05' and `end` < '2025-03-16 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-03-16 15:44:17] Production.INFO: count ==1296 [2025-03-16 15:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:44:05 - End Time 2025-03-16 15:44:05 [2025-03-16 15:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694483', 'tblTempUsageDetail_20' ) start [2025-03-16 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694483', 'tblTempUsageDetail_20' ) end [2025-03-16 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694483', 'tblTempVendorCDR_20' ) start [2025-03-16 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694483', 'tblTempVendorCDR_20' ) end [2025-03-16 15:44:17] Production.INFO: ProcessCDR(1,14694483,1,1,2) [2025-03-16 15:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694483', 'tblTempUsageDetail_20' ) start [2025-03-16 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694483', 'tblTempUsageDetail_20' ) end [2025-03-16 15:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:44:22] Production.INFO: ==23610== Releasing lock... [2025-03-16 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:44:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:45:05 [end_date_ymd] => 2025-03-16 15:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:45:05' and `end` < '2025-03-16 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-03-16 15:45:18] Production.INFO: count ==1305 [2025-03-16 15:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:45:05 - End Time 2025-03-16 15:45:05 [2025-03-16 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694488', 'tblTempUsageDetail_20' ) start [2025-03-16 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694488', 'tblTempUsageDetail_20' ) end [2025-03-16 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694488', 'tblTempVendorCDR_20' ) start [2025-03-16 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694488', 'tblTempVendorCDR_20' ) end [2025-03-16 15:45:18] Production.INFO: ProcessCDR(1,14694488,1,1,2) [2025-03-16 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694488', 'tblTempUsageDetail_20' ) start [2025-03-16 15:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694488', 'tblTempUsageDetail_20' ) end [2025-03-16 15:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:45:23] Production.INFO: ==23688== Releasing lock... [2025-03-16 15:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:45:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:46:05 [end_date_ymd] => 2025-03-16 15:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:46:05' and `end` < '2025-03-16 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-03-16 15:46:17] Production.INFO: count ==1308 [2025-03-16 15:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:46:05 - End Time 2025-03-16 15:46:05 [2025-03-16 15:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694493', 'tblTempUsageDetail_20' ) start [2025-03-16 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694493', 'tblTempUsageDetail_20' ) end [2025-03-16 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694493', 'tblTempVendorCDR_20' ) start [2025-03-16 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694493', 'tblTempVendorCDR_20' ) end [2025-03-16 15:46:17] Production.INFO: ProcessCDR(1,14694493,1,1,2) [2025-03-16 15:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694493', 'tblTempUsageDetail_20' ) start [2025-03-16 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694493', 'tblTempUsageDetail_20' ) end [2025-03-16 15:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:46:22] Production.INFO: ==23760== Releasing lock... [2025-03-16 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:47:05 [end_date_ymd] => 2025-03-16 15:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:47:05' and `end` < '2025-03-16 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-03-16 15:47:18] Production.INFO: count ==1307 [2025-03-16 15:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:47:05 - End Time 2025-03-16 15:47:05 [2025-03-16 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694498', 'tblTempUsageDetail_20' ) start [2025-03-16 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694498', 'tblTempUsageDetail_20' ) end [2025-03-16 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694498', 'tblTempVendorCDR_20' ) start [2025-03-16 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694498', 'tblTempVendorCDR_20' ) end [2025-03-16 15:47:18] Production.INFO: ProcessCDR(1,14694498,1,1,2) [2025-03-16 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694498', 'tblTempUsageDetail_20' ) start [2025-03-16 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694498', 'tblTempUsageDetail_20' ) end [2025-03-16 15:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:47:23] Production.INFO: ==23878== Releasing lock... [2025-03-16 15:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:47:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:48:04 [end_date_ymd] => 2025-03-16 15:48:04 [RateCDR] => 1 ) [2025-03-16 15: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-03-16 12:48:04' and `end` < '2025-03-16 15: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-03-16 15:48:16] Production.INFO: count ==1310 [2025-03-16 15:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:48:04 - End Time 2025-03-16 15:48:04 [2025-03-16 15:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694503', 'tblTempUsageDetail_20' ) start [2025-03-16 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694503', 'tblTempUsageDetail_20' ) end [2025-03-16 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694503', 'tblTempVendorCDR_20' ) start [2025-03-16 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694503', 'tblTempVendorCDR_20' ) end [2025-03-16 15:48:17] Production.INFO: ProcessCDR(1,14694503,1,1,2) [2025-03-16 15:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694503', 'tblTempUsageDetail_20' ) start [2025-03-16 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694503', 'tblTempUsageDetail_20' ) end [2025-03-16 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:48:22] Production.INFO: ==23956== Releasing lock... [2025-03-16 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:48:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:49:05 [end_date_ymd] => 2025-03-16 15:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:49:05' and `end` < '2025-03-16 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-03-16 15:49:18] Production.INFO: count ==1312 [2025-03-16 15:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:49:05 - End Time 2025-03-16 15:49:05 [2025-03-16 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694508', 'tblTempUsageDetail_20' ) start [2025-03-16 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694508', 'tblTempUsageDetail_20' ) end [2025-03-16 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694508', 'tblTempVendorCDR_20' ) start [2025-03-16 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694508', 'tblTempVendorCDR_20' ) end [2025-03-16 15:49:18] Production.INFO: ProcessCDR(1,14694508,1,1,2) [2025-03-16 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694508', 'tblTempUsageDetail_20' ) start [2025-03-16 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694508', 'tblTempUsageDetail_20' ) end [2025-03-16 15:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:49:23] Production.INFO: ==24036== Releasing lock... [2025-03-16 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:49:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:50:05 [end_date_ymd] => 2025-03-16 15:50:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:50:05' and `end` < '2025-03-16 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-03-16 15:50:18] Production.INFO: count ==1310 [2025-03-16 15:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:50:05 - End Time 2025-03-16 15:50:05 [2025-03-16 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694513', 'tblTempUsageDetail_20' ) start [2025-03-16 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694513', 'tblTempUsageDetail_20' ) end [2025-03-16 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694513', 'tblTempVendorCDR_20' ) start [2025-03-16 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694513', 'tblTempVendorCDR_20' ) end [2025-03-16 15:50:18] Production.INFO: ProcessCDR(1,14694513,1,1,2) [2025-03-16 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694513', 'tblTempUsageDetail_20' ) start [2025-03-16 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694513', 'tblTempUsageDetail_20' ) end [2025-03-16 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:50:22] Production.INFO: ==24112== Releasing lock... [2025-03-16 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:51:04 [end_date_ymd] => 2025-03-16 15:51:04 [RateCDR] => 1 ) [2025-03-16 15: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-03-16 12:51:04' and `end` < '2025-03-16 15: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-03-16 15:51:17] Production.INFO: count ==1303 [2025-03-16 15:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:51:04 - End Time 2025-03-16 15:51:04 [2025-03-16 15:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694519', 'tblTempUsageDetail_20' ) start [2025-03-16 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694519', 'tblTempUsageDetail_20' ) end [2025-03-16 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694519', 'tblTempVendorCDR_20' ) start [2025-03-16 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694519', 'tblTempVendorCDR_20' ) end [2025-03-16 15:51:17] Production.INFO: ProcessCDR(1,14694519,1,1,2) [2025-03-16 15:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694519', 'tblTempUsageDetail_20' ) start [2025-03-16 15:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694519', 'tblTempUsageDetail_20' ) end [2025-03-16 15:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:51:20] Production.INFO: ==24190== Releasing lock... [2025-03-16 15:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:51:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:52:05 [end_date_ymd] => 2025-03-16 15:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:52:05' and `end` < '2025-03-16 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-03-16 15:52:17] Production.INFO: count ==1307 [2025-03-16 15:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:52:05 - End Time 2025-03-16 15:52:05 [2025-03-16 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694524', 'tblTempUsageDetail_20' ) start [2025-03-16 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694524', 'tblTempUsageDetail_20' ) end [2025-03-16 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694524', 'tblTempVendorCDR_20' ) start [2025-03-16 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694524', 'tblTempVendorCDR_20' ) end [2025-03-16 15:52:18] Production.INFO: ProcessCDR(1,14694524,1,1,2) [2025-03-16 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694524', 'tblTempUsageDetail_20' ) start [2025-03-16 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694524', 'tblTempUsageDetail_20' ) end [2025-03-16 15:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:52:21] Production.INFO: ==24297== Releasing lock... [2025-03-16 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:52:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:53:05 [end_date_ymd] => 2025-03-16 15:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:53:05' and `end` < '2025-03-16 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-03-16 15:53:17] Production.INFO: count ==1306 [2025-03-16 15:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:53:05 - End Time 2025-03-16 15:53:05 [2025-03-16 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694529', 'tblTempUsageDetail_20' ) start [2025-03-16 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694529', 'tblTempUsageDetail_20' ) end [2025-03-16 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694529', 'tblTempVendorCDR_20' ) start [2025-03-16 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694529', 'tblTempVendorCDR_20' ) end [2025-03-16 15:53:18] Production.INFO: ProcessCDR(1,14694529,1,1,2) [2025-03-16 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694529', 'tblTempUsageDetail_20' ) start [2025-03-16 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694529', 'tblTempUsageDetail_20' ) end [2025-03-16 15:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:53:21] Production.INFO: ==24409== Releasing lock... [2025-03-16 15:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:53:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:54:05 [end_date_ymd] => 2025-03-16 15:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:54:05' and `end` < '2025-03-16 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-03-16 15:54:18] Production.INFO: count ==1305 [2025-03-16 15:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:54:05 - End Time 2025-03-16 15:54:05 [2025-03-16 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694534', 'tblTempUsageDetail_20' ) start [2025-03-16 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694534', 'tblTempUsageDetail_20' ) end [2025-03-16 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694534', 'tblTempVendorCDR_20' ) start [2025-03-16 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694534', 'tblTempVendorCDR_20' ) end [2025-03-16 15:54:18] Production.INFO: ProcessCDR(1,14694534,1,1,2) [2025-03-16 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694534', 'tblTempUsageDetail_20' ) start [2025-03-16 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694534', 'tblTempUsageDetail_20' ) end [2025-03-16 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:54:23] Production.INFO: ==24490== Releasing lock... [2025-03-16 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:54:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:55:05 [end_date_ymd] => 2025-03-16 15:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:55:05' and `end` < '2025-03-16 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-03-16 15:55:17] Production.INFO: count ==1299 [2025-03-16 15:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 12:55:05 - End Time 2025-03-16 15:55:05 [2025-03-16 15:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694539', 'tblTempUsageDetail_20' ) start [2025-03-16 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694539', 'tblTempUsageDetail_20' ) end [2025-03-16 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694539', 'tblTempVendorCDR_20' ) start [2025-03-16 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694539', 'tblTempVendorCDR_20' ) end [2025-03-16 15:55:17] Production.INFO: ProcessCDR(1,14694539,1,1,2) [2025-03-16 15:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694539', 'tblTempUsageDetail_20' ) start [2025-03-16 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694539', 'tblTempUsageDetail_20' ) end [2025-03-16 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:55:21] Production.INFO: ==24566== Releasing lock... [2025-03-16 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:55:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:56:06 [end_date_ymd] => 2025-03-16 15:56:06 [RateCDR] => 1 ) [2025-03-16 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 12:56:06' and `end` < '2025-03-16 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 15:56:18] Production.INFO: count ==1297 [2025-03-16 15:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:56:06 - End Time 2025-03-16 15:56:06 [2025-03-16 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694544', 'tblTempUsageDetail_20' ) start [2025-03-16 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694544', 'tblTempUsageDetail_20' ) end [2025-03-16 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694544', 'tblTempVendorCDR_20' ) start [2025-03-16 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694544', 'tblTempVendorCDR_20' ) end [2025-03-16 15:56:18] Production.INFO: ProcessCDR(1,14694544,1,1,2) [2025-03-16 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694544', 'tblTempUsageDetail_20' ) start [2025-03-16 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694544', 'tblTempUsageDetail_20' ) end [2025-03-16 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:56:23] Production.INFO: ==24647== Releasing lock... [2025-03-16 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:56:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:57:05 [end_date_ymd] => 2025-03-16 15:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:57:05' and `end` < '2025-03-16 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-03-16 15:57:17] Production.INFO: count ==1326 [2025-03-16 15:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:57:05 - End Time 2025-03-16 15:57:05 [2025-03-16 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694549', 'tblTempUsageDetail_20' ) start [2025-03-16 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694549', 'tblTempUsageDetail_20' ) end [2025-03-16 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694549', 'tblTempVendorCDR_20' ) start [2025-03-16 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694549', 'tblTempVendorCDR_20' ) end [2025-03-16 15:57:18] Production.INFO: ProcessCDR(1,14694549,1,1,2) [2025-03-16 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694549', 'tblTempUsageDetail_20' ) start [2025-03-16 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694549', 'tblTempUsageDetail_20' ) end [2025-03-16 15:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:57:21] Production.INFO: ==24725== Releasing lock... [2025-03-16 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:57:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:58:05 [end_date_ymd] => 2025-03-16 15:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:58:05' and `end` < '2025-03-16 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-03-16 15:58:17] Production.INFO: count ==1319 [2025-03-16 15:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:58:05 - End Time 2025-03-16 15:58:05 [2025-03-16 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694554', 'tblTempUsageDetail_20' ) start [2025-03-16 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694554', 'tblTempUsageDetail_20' ) end [2025-03-16 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694554', 'tblTempVendorCDR_20' ) start [2025-03-16 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694554', 'tblTempVendorCDR_20' ) end [2025-03-16 15:58:18] Production.INFO: ProcessCDR(1,14694554,1,1,2) [2025-03-16 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694554', 'tblTempUsageDetail_20' ) start [2025-03-16 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694554', 'tblTempUsageDetail_20' ) end [2025-03-16 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:58:23] Production.INFO: ==24804== Releasing lock... [2025-03-16 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:58:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 12:59:05 [end_date_ymd] => 2025-03-16 15:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 12:59:05' and `end` < '2025-03-16 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-03-16 15:59:17] Production.INFO: count ==1316 [2025-03-16 15:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 12:59:05 - End Time 2025-03-16 15:59:05 [2025-03-16 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694559', 'tblTempUsageDetail_20' ) start [2025-03-16 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694559', 'tblTempUsageDetail_20' ) end [2025-03-16 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694559', 'tblTempVendorCDR_20' ) start [2025-03-16 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694559', 'tblTempVendorCDR_20' ) end [2025-03-16 15:59:18] Production.INFO: ProcessCDR(1,14694559,1,1,2) [2025-03-16 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 15:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694559', 'tblTempUsageDetail_20' ) start [2025-03-16 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694559', 'tblTempUsageDetail_20' ) end [2025-03-16 15:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 15:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 15:59:21] Production.INFO: ==24882== Releasing lock... [2025-03-16 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 15:59:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:00:05 [end_date_ymd] => 2025-03-16 16:00:05 [RateCDR] => 1 ) [2025-03-16 16: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-03-16 13:00:05' and `end` < '2025-03-16 16: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-03-16 16:00:18] Production.INFO: count ==1313 [2025-03-16 16:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:00:05 - End Time 2025-03-16 16:00:05 [2025-03-16 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694565', 'tblTempUsageDetail_20' ) start [2025-03-16 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694565', 'tblTempUsageDetail_20' ) end [2025-03-16 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694565', 'tblTempVendorCDR_20' ) start [2025-03-16 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694565', 'tblTempVendorCDR_20' ) end [2025-03-16 16:00:18] Production.INFO: ProcessCDR(1,14694565,1,1,2) [2025-03-16 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694565', 'tblTempUsageDetail_20' ) start [2025-03-16 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694565', 'tblTempUsageDetail_20' ) end [2025-03-16 16:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:00:22] Production.INFO: ==24966== Releasing lock... [2025-03-16 16:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:00:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:01:05 [end_date_ymd] => 2025-03-16 16:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:01:05' and `end` < '2025-03-16 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-03-16 16:01:17] Production.INFO: count ==1293 [2025-03-16 16:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:01:05 - End Time 2025-03-16 16:01:05 [2025-03-16 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694570', 'tblTempUsageDetail_20' ) start [2025-03-16 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694570', 'tblTempUsageDetail_20' ) end [2025-03-16 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694570', 'tblTempVendorCDR_20' ) start [2025-03-16 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694570', 'tblTempVendorCDR_20' ) end [2025-03-16 16:01:18] Production.INFO: ProcessCDR(1,14694570,1,1,2) [2025-03-16 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694570', 'tblTempUsageDetail_20' ) start [2025-03-16 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694570', 'tblTempUsageDetail_20' ) end [2025-03-16 16:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:01:21] Production.INFO: ==25061== Releasing lock... [2025-03-16 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:01:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:02:05 [end_date_ymd] => 2025-03-16 16:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:02:05' and `end` < '2025-03-16 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-03-16 16:02:17] Production.INFO: count ==1286 [2025-03-16 16:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:02:05 - End Time 2025-03-16 16:02:05 [2025-03-16 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694575', 'tblTempUsageDetail_20' ) start [2025-03-16 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694575', 'tblTempUsageDetail_20' ) end [2025-03-16 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694575', 'tblTempVendorCDR_20' ) start [2025-03-16 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694575', 'tblTempVendorCDR_20' ) end [2025-03-16 16:02:18] Production.INFO: ProcessCDR(1,14694575,1,1,2) [2025-03-16 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694575', 'tblTempUsageDetail_20' ) start [2025-03-16 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694575', 'tblTempUsageDetail_20' ) end [2025-03-16 16:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:02:21] Production.INFO: ==25188== Releasing lock... [2025-03-16 16:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:02:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:03:05 [end_date_ymd] => 2025-03-16 16:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:03:05' and `end` < '2025-03-16 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-03-16 16:03:18] Production.INFO: count ==1282 [2025-03-16 16:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:03:05 - End Time 2025-03-16 16:03:05 [2025-03-16 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694580', 'tblTempUsageDetail_20' ) start [2025-03-16 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694580', 'tblTempUsageDetail_20' ) end [2025-03-16 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694580', 'tblTempVendorCDR_20' ) start [2025-03-16 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694580', 'tblTempVendorCDR_20' ) end [2025-03-16 16:03:18] Production.INFO: ProcessCDR(1,14694580,1,1,2) [2025-03-16 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694580', 'tblTempUsageDetail_20' ) start [2025-03-16 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694580', 'tblTempUsageDetail_20' ) end [2025-03-16 16:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:03:21] Production.INFO: ==25272== Releasing lock... [2025-03-16 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:03:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:04:05 [end_date_ymd] => 2025-03-16 16:04:05 [RateCDR] => 1 ) [2025-03-16 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:04:05' and `end` < '2025-03-16 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:04:17] Production.INFO: count ==1281 [2025-03-16 16:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:04:05 - End Time 2025-03-16 16:04:05 [2025-03-16 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694585', 'tblTempUsageDetail_20' ) start [2025-03-16 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694585', 'tblTempUsageDetail_20' ) end [2025-03-16 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694585', 'tblTempVendorCDR_20' ) start [2025-03-16 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694585', 'tblTempVendorCDR_20' ) end [2025-03-16 16:04:18] Production.INFO: ProcessCDR(1,14694585,1,1,2) [2025-03-16 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694585', 'tblTempUsageDetail_20' ) start [2025-03-16 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694585', 'tblTempUsageDetail_20' ) end [2025-03-16 16:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:04:23] Production.INFO: ==25354== Releasing lock... [2025-03-16 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:04:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:05:05 [end_date_ymd] => 2025-03-16 16:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:05:05' and `end` < '2025-03-16 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-03-16 16:05:17] Production.INFO: count ==1280 [2025-03-16 16:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:05:05 - End Time 2025-03-16 16:05:05 [2025-03-16 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694590', 'tblTempUsageDetail_20' ) start [2025-03-16 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694590', 'tblTempUsageDetail_20' ) end [2025-03-16 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694590', 'tblTempVendorCDR_20' ) start [2025-03-16 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694590', 'tblTempVendorCDR_20' ) end [2025-03-16 16:05:18] Production.INFO: ProcessCDR(1,14694590,1,1,2) [2025-03-16 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694590', 'tblTempUsageDetail_20' ) start [2025-03-16 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694590', 'tblTempUsageDetail_20' ) end [2025-03-16 16:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:05:23] Production.INFO: ==25432== Releasing lock... [2025-03-16 16:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:05:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:06:05 [end_date_ymd] => 2025-03-16 16:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:06:05' and `end` < '2025-03-16 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-03-16 16:06:17] Production.INFO: count ==1277 [2025-03-16 16:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:06:05 - End Time 2025-03-16 16:06:05 [2025-03-16 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694595', 'tblTempUsageDetail_20' ) start [2025-03-16 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694595', 'tblTempUsageDetail_20' ) end [2025-03-16 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694595', 'tblTempVendorCDR_20' ) start [2025-03-16 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694595', 'tblTempVendorCDR_20' ) end [2025-03-16 16:06:18] Production.INFO: ProcessCDR(1,14694595,1,1,2) [2025-03-16 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694595', 'tblTempUsageDetail_20' ) start [2025-03-16 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694595', 'tblTempUsageDetail_20' ) end [2025-03-16 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:06:23] Production.INFO: ==25515== Releasing lock... [2025-03-16 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:06:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:07:05 [end_date_ymd] => 2025-03-16 16:07:05 [RateCDR] => 1 ) [2025-03-16 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:07:05' and `end` < '2025-03-16 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:07:17] Production.INFO: count ==1264 [2025-03-16 16:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:07:05 - End Time 2025-03-16 16:07:05 [2025-03-16 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694600', 'tblTempUsageDetail_20' ) start [2025-03-16 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694600', 'tblTempUsageDetail_20' ) end [2025-03-16 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694600', 'tblTempVendorCDR_20' ) start [2025-03-16 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694600', 'tblTempVendorCDR_20' ) end [2025-03-16 16:07:18] Production.INFO: ProcessCDR(1,14694600,1,1,2) [2025-03-16 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694600', 'tblTempUsageDetail_20' ) start [2025-03-16 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694600', 'tblTempUsageDetail_20' ) end [2025-03-16 16:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:07:22] Production.INFO: ==25590== Releasing lock... [2025-03-16 16:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:07:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:08:04 [end_date_ymd] => 2025-03-16 16:08:04 [RateCDR] => 1 ) [2025-03-16 16:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:08:04' and `end` < '2025-03-16 16:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:08:17] Production.INFO: count ==1254 [2025-03-16 16:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:08:04 - End Time 2025-03-16 16:08:04 [2025-03-16 16:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694605', 'tblTempUsageDetail_20' ) start [2025-03-16 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694605', 'tblTempUsageDetail_20' ) end [2025-03-16 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694605', 'tblTempVendorCDR_20' ) start [2025-03-16 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694605', 'tblTempVendorCDR_20' ) end [2025-03-16 16:08:17] Production.INFO: ProcessCDR(1,14694605,1,1,2) [2025-03-16 16:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694605', 'tblTempUsageDetail_20' ) start [2025-03-16 16:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694605', 'tblTempUsageDetail_20' ) end [2025-03-16 16:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:08:20] Production.INFO: ==25668== Releasing lock... [2025-03-16 16:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:08:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:09:05 [end_date_ymd] => 2025-03-16 16:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:09:05' and `end` < '2025-03-16 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-03-16 16:09:18] Production.INFO: count ==1250 [2025-03-16 16:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:09:05 - End Time 2025-03-16 16:09:05 [2025-03-16 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694610', 'tblTempUsageDetail_20' ) start [2025-03-16 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694610', 'tblTempUsageDetail_20' ) end [2025-03-16 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694610', 'tblTempVendorCDR_20' ) start [2025-03-16 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694610', 'tblTempVendorCDR_20' ) end [2025-03-16 16:09:18] Production.INFO: ProcessCDR(1,14694610,1,1,2) [2025-03-16 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694610', 'tblTempUsageDetail_20' ) start [2025-03-16 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694610', 'tblTempUsageDetail_20' ) end [2025-03-16 16:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:09:21] Production.INFO: ==25744== Releasing lock... [2025-03-16 16:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:10:06 [end_date_ymd] => 2025-03-16 16:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:10:06' and `end` < '2025-03-16 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-03-16 16:10:18] Production.INFO: count ==1250 [2025-03-16 16:10:19] Production.ERROR: pbx CDR StartTime 2025-03-16 13:10:06 - End Time 2025-03-16 16:10:06 [2025-03-16 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694616', 'tblTempUsageDetail_20' ) start [2025-03-16 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694616', 'tblTempUsageDetail_20' ) end [2025-03-16 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694616', 'tblTempVendorCDR_20' ) start [2025-03-16 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694616', 'tblTempVendorCDR_20' ) end [2025-03-16 16:10:19] Production.INFO: ProcessCDR(1,14694616,1,1,2) [2025-03-16 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694616', 'tblTempUsageDetail_20' ) start [2025-03-16 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694616', 'tblTempUsageDetail_20' ) end [2025-03-16 16:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:10:22] Production.INFO: ==25825== Releasing lock... [2025-03-16 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:10:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:11:04 [end_date_ymd] => 2025-03-16 16:11:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:11:04' and `end` < '2025-03-16 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-03-16 16:11:17] Production.INFO: count ==1250 [2025-03-16 16:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:11:04 - End Time 2025-03-16 16:11:04 [2025-03-16 16:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694621', 'tblTempUsageDetail_20' ) start [2025-03-16 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694621', 'tblTempUsageDetail_20' ) end [2025-03-16 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694621', 'tblTempVendorCDR_20' ) start [2025-03-16 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694621', 'tblTempVendorCDR_20' ) end [2025-03-16 16:11:17] Production.INFO: ProcessCDR(1,14694621,1,1,2) [2025-03-16 16:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694621', 'tblTempUsageDetail_20' ) start [2025-03-16 16:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694621', 'tblTempUsageDetail_20' ) end [2025-03-16 16:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:11:20] Production.INFO: ==25905== Releasing lock... [2025-03-16 16:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:11:20] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:12:06 [end_date_ymd] => 2025-03-16 16:12:06 [RateCDR] => 1 ) [2025-03-16 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:12:06' and `end` < '2025-03-16 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:12:18] Production.INFO: count ==1250 [2025-03-16 16:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:12:06 - End Time 2025-03-16 16:12:06 [2025-03-16 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694626', 'tblTempUsageDetail_20' ) start [2025-03-16 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694626', 'tblTempUsageDetail_20' ) end [2025-03-16 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694626', 'tblTempVendorCDR_20' ) start [2025-03-16 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694626', 'tblTempVendorCDR_20' ) end [2025-03-16 16:12:18] Production.INFO: ProcessCDR(1,14694626,1,1,2) [2025-03-16 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694626', 'tblTempUsageDetail_20' ) start [2025-03-16 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694626', 'tblTempUsageDetail_20' ) end [2025-03-16 16:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:12:23] Production.INFO: ==25979== Releasing lock... [2025-03-16 16:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:12:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:13:05 [end_date_ymd] => 2025-03-16 16:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:13:05' and `end` < '2025-03-16 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-03-16 16:13:17] Production.INFO: count ==1250 [2025-03-16 16:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:13:05 - End Time 2025-03-16 16:13:05 [2025-03-16 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694631', 'tblTempUsageDetail_20' ) start [2025-03-16 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694631', 'tblTempUsageDetail_20' ) end [2025-03-16 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694631', 'tblTempVendorCDR_20' ) start [2025-03-16 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694631', 'tblTempVendorCDR_20' ) end [2025-03-16 16:13:18] Production.INFO: ProcessCDR(1,14694631,1,1,2) [2025-03-16 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694631', 'tblTempUsageDetail_20' ) start [2025-03-16 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694631', 'tblTempUsageDetail_20' ) end [2025-03-16 16:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:13:21] Production.INFO: ==26067== Releasing lock... [2025-03-16 16:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:13:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:14:05 [end_date_ymd] => 2025-03-16 16:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:14:05' and `end` < '2025-03-16 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-03-16 16:14:18] Production.INFO: count ==1246 [2025-03-16 16:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:14:05 - End Time 2025-03-16 16:14:05 [2025-03-16 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694636', 'tblTempUsageDetail_20' ) start [2025-03-16 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694636', 'tblTempUsageDetail_20' ) end [2025-03-16 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694636', 'tblTempVendorCDR_20' ) start [2025-03-16 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694636', 'tblTempVendorCDR_20' ) end [2025-03-16 16:14:18] Production.INFO: ProcessCDR(1,14694636,1,1,2) [2025-03-16 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694636', 'tblTempUsageDetail_20' ) start [2025-03-16 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694636', 'tblTempUsageDetail_20' ) end [2025-03-16 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:14:23] Production.INFO: ==26142== Releasing lock... [2025-03-16 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:14:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:15:05 [end_date_ymd] => 2025-03-16 16:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:15:05' and `end` < '2025-03-16 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-03-16 16:15:17] Production.INFO: count ==1242 [2025-03-16 16:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:15:05 - End Time 2025-03-16 16:15:05 [2025-03-16 16:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694641', 'tblTempUsageDetail_20' ) start [2025-03-16 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694641', 'tblTempUsageDetail_20' ) end [2025-03-16 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694641', 'tblTempVendorCDR_20' ) start [2025-03-16 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694641', 'tblTempVendorCDR_20' ) end [2025-03-16 16:15:17] Production.INFO: ProcessCDR(1,14694641,1,1,2) [2025-03-16 16:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694641', 'tblTempUsageDetail_20' ) start [2025-03-16 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694641', 'tblTempUsageDetail_20' ) end [2025-03-16 16:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:15:21] Production.INFO: ==26229== Releasing lock... [2025-03-16 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:15:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:16:05 [end_date_ymd] => 2025-03-16 16:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:16:05' and `end` < '2025-03-16 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-03-16 16:16:18] Production.INFO: count ==1235 [2025-03-16 16:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:16:05 - End Time 2025-03-16 16:16:05 [2025-03-16 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694646', 'tblTempUsageDetail_20' ) start [2025-03-16 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694646', 'tblTempUsageDetail_20' ) end [2025-03-16 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694646', 'tblTempVendorCDR_20' ) start [2025-03-16 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694646', 'tblTempVendorCDR_20' ) end [2025-03-16 16:16:18] Production.INFO: ProcessCDR(1,14694646,1,1,2) [2025-03-16 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694646', 'tblTempUsageDetail_20' ) start [2025-03-16 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694646', 'tblTempUsageDetail_20' ) end [2025-03-16 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:16:23] Production.INFO: ==26328== Releasing lock... [2025-03-16 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:16:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:17:04 [end_date_ymd] => 2025-03-16 16:17:04 [RateCDR] => 1 ) [2025-03-16 16:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:17:04' and `end` < '2025-03-16 16:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:17:16] Production.INFO: count ==1217 [2025-03-16 16:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:17:04 - End Time 2025-03-16 16:17:04 [2025-03-16 16:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694651', 'tblTempUsageDetail_20' ) start [2025-03-16 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694651', 'tblTempUsageDetail_20' ) end [2025-03-16 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694651', 'tblTempVendorCDR_20' ) start [2025-03-16 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694651', 'tblTempVendorCDR_20' ) end [2025-03-16 16:17:17] Production.INFO: ProcessCDR(1,14694651,1,1,2) [2025-03-16 16:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694651', 'tblTempUsageDetail_20' ) start [2025-03-16 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694651', 'tblTempUsageDetail_20' ) end [2025-03-16 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:17:22] Production.INFO: ==26422== Releasing lock... [2025-03-16 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:17:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:18:05 [end_date_ymd] => 2025-03-16 16:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:18:05' and `end` < '2025-03-16 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-03-16 16:18:17] Production.INFO: count ==1205 [2025-03-16 16:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:18:05 - End Time 2025-03-16 16:18:05 [2025-03-16 16:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694656', 'tblTempUsageDetail_20' ) start [2025-03-16 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694656', 'tblTempUsageDetail_20' ) end [2025-03-16 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694656', 'tblTempVendorCDR_20' ) start [2025-03-16 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694656', 'tblTempVendorCDR_20' ) end [2025-03-16 16:18:17] Production.INFO: ProcessCDR(1,14694656,1,1,2) [2025-03-16 16:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694656', 'tblTempUsageDetail_20' ) start [2025-03-16 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694656', 'tblTempUsageDetail_20' ) end [2025-03-16 16:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:18:21] Production.INFO: ==26552== Releasing lock... [2025-03-16 16:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:18:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:19:05 [end_date_ymd] => 2025-03-16 16:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:19:05' and `end` < '2025-03-16 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-03-16 16:19:17] Production.INFO: count ==1203 [2025-03-16 16:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:19:05 - End Time 2025-03-16 16:19:05 [2025-03-16 16:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694661', 'tblTempUsageDetail_20' ) start [2025-03-16 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694661', 'tblTempUsageDetail_20' ) end [2025-03-16 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694661', 'tblTempVendorCDR_20' ) start [2025-03-16 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694661', 'tblTempVendorCDR_20' ) end [2025-03-16 16:19:17] Production.INFO: ProcessCDR(1,14694661,1,1,2) [2025-03-16 16:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694661', 'tblTempUsageDetail_20' ) start [2025-03-16 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694661', 'tblTempUsageDetail_20' ) end [2025-03-16 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:19:22] Production.INFO: ==26645== Releasing lock... [2025-03-16 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:19:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:20:06 [end_date_ymd] => 2025-03-16 16:20:06 [RateCDR] => 1 ) [2025-03-16 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:20:06' and `end` < '2025-03-16 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:20:18] Production.INFO: count ==1202 [2025-03-16 16:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:20:06 - End Time 2025-03-16 16:20:06 [2025-03-16 16:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694667', 'tblTempUsageDetail_20' ) start [2025-03-16 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694667', 'tblTempUsageDetail_20' ) end [2025-03-16 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694667', 'tblTempVendorCDR_20' ) start [2025-03-16 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694667', 'tblTempVendorCDR_20' ) end [2025-03-16 16:20:19] Production.INFO: ProcessCDR(1,14694667,1,1,2) [2025-03-16 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694667', 'tblTempUsageDetail_20' ) start [2025-03-16 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694667', 'tblTempUsageDetail_20' ) end [2025-03-16 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:20:23] Production.INFO: ==26743== Releasing lock... [2025-03-16 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:20:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:21:06 [end_date_ymd] => 2025-03-16 16:21:06 [RateCDR] => 1 ) [2025-03-16 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:21:06' and `end` < '2025-03-16 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:21:18] Production.INFO: count ==1173 [2025-03-16 16:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:21:06 - End Time 2025-03-16 16:21:06 [2025-03-16 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694672', 'tblTempUsageDetail_20' ) start [2025-03-16 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694672', 'tblTempUsageDetail_20' ) end [2025-03-16 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694672', 'tblTempVendorCDR_20' ) start [2025-03-16 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694672', 'tblTempVendorCDR_20' ) end [2025-03-16 16:21:18] Production.INFO: ProcessCDR(1,14694672,1,1,2) [2025-03-16 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694672', 'tblTempUsageDetail_20' ) start [2025-03-16 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694672', 'tblTempUsageDetail_20' ) end [2025-03-16 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:21:23] Production.INFO: ==26840== Releasing lock... [2025-03-16 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:21:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:22:05 [end_date_ymd] => 2025-03-16 16:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:22:05' and `end` < '2025-03-16 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-03-16 16:22:17] Production.INFO: count ==1176 [2025-03-16 16:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:22:05 - End Time 2025-03-16 16:22:05 [2025-03-16 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694677', 'tblTempUsageDetail_20' ) start [2025-03-16 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694677', 'tblTempUsageDetail_20' ) end [2025-03-16 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694677', 'tblTempVendorCDR_20' ) start [2025-03-16 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694677', 'tblTempVendorCDR_20' ) end [2025-03-16 16:22:18] Production.INFO: ProcessCDR(1,14694677,1,1,2) [2025-03-16 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694677', 'tblTempUsageDetail_20' ) start [2025-03-16 16:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694677', 'tblTempUsageDetail_20' ) end [2025-03-16 16:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:22:21] Production.INFO: ==26938== Releasing lock... [2025-03-16 16:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:22:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:23:05 [end_date_ymd] => 2025-03-16 16:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:23:05' and `end` < '2025-03-16 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-03-16 16:23:17] Production.INFO: count ==1178 [2025-03-16 16:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:23:05 - End Time 2025-03-16 16:23:05 [2025-03-16 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694682', 'tblTempUsageDetail_20' ) start [2025-03-16 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694682', 'tblTempUsageDetail_20' ) end [2025-03-16 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694682', 'tblTempVendorCDR_20' ) start [2025-03-16 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694682', 'tblTempVendorCDR_20' ) end [2025-03-16 16:23:18] Production.INFO: ProcessCDR(1,14694682,1,1,2) [2025-03-16 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694682', 'tblTempUsageDetail_20' ) start [2025-03-16 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694682', 'tblTempUsageDetail_20' ) end [2025-03-16 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:23:22] Production.INFO: ==27030== Releasing lock... [2025-03-16 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:24:05 [end_date_ymd] => 2025-03-16 16:24:05 [RateCDR] => 1 ) [2025-03-16 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:24:05' and `end` < '2025-03-16 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:24:17] Production.INFO: count ==1181 [2025-03-16 16:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:24:05 - End Time 2025-03-16 16:24:05 [2025-03-16 16:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694687', 'tblTempUsageDetail_20' ) start [2025-03-16 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694687', 'tblTempUsageDetail_20' ) end [2025-03-16 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694687', 'tblTempVendorCDR_20' ) start [2025-03-16 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694687', 'tblTempVendorCDR_20' ) end [2025-03-16 16:24:18] Production.INFO: ProcessCDR(1,14694687,1,1,2) [2025-03-16 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694687', 'tblTempUsageDetail_20' ) start [2025-03-16 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694687', 'tblTempUsageDetail_20' ) end [2025-03-16 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:24:22] Production.INFO: ==27124== Releasing lock... [2025-03-16 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:25:06 [end_date_ymd] => 2025-03-16 16:25:06 [RateCDR] => 1 ) [2025-03-16 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:25:06' and `end` < '2025-03-16 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:25:18] Production.INFO: count ==1183 [2025-03-16 16:25:19] Production.ERROR: pbx CDR StartTime 2025-03-16 13:25:06 - End Time 2025-03-16 16:25:06 [2025-03-16 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694692', 'tblTempUsageDetail_20' ) start [2025-03-16 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694692', 'tblTempUsageDetail_20' ) end [2025-03-16 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694692', 'tblTempVendorCDR_20' ) start [2025-03-16 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694692', 'tblTempVendorCDR_20' ) end [2025-03-16 16:25:19] Production.INFO: ProcessCDR(1,14694692,1,1,2) [2025-03-16 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694692', 'tblTempUsageDetail_20' ) start [2025-03-16 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694692', 'tblTempUsageDetail_20' ) end [2025-03-16 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:25:22] Production.INFO: ==27218== Releasing lock... [2025-03-16 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:25:22] Production.INFO: 37 MB #Memory Used# [2025-03-16 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:26:05 [end_date_ymd] => 2025-03-16 16:26:05 [RateCDR] => 1 ) [2025-03-16 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:26:05' and `end` < '2025-03-16 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:26:18] Production.INFO: count ==1184 [2025-03-16 16:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:26:05 - End Time 2025-03-16 16:26:05 [2025-03-16 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694697', 'tblTempUsageDetail_20' ) start [2025-03-16 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694697', 'tblTempUsageDetail_20' ) end [2025-03-16 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694697', 'tblTempVendorCDR_20' ) start [2025-03-16 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694697', 'tblTempVendorCDR_20' ) end [2025-03-16 16:26:18] Production.INFO: ProcessCDR(1,14694697,1,1,2) [2025-03-16 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694697', 'tblTempUsageDetail_20' ) start [2025-03-16 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694697', 'tblTempUsageDetail_20' ) end [2025-03-16 16:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:26:23] Production.INFO: ==27317== Releasing lock... [2025-03-16 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:26:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:27:05 [end_date_ymd] => 2025-03-16 16:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:27:05' and `end` < '2025-03-16 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-03-16 16:27:17] Production.INFO: count ==1188 [2025-03-16 16:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:27:05 - End Time 2025-03-16 16:27:05 [2025-03-16 16:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694702', 'tblTempUsageDetail_20' ) start [2025-03-16 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694702', 'tblTempUsageDetail_20' ) end [2025-03-16 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694702', 'tblTempVendorCDR_20' ) start [2025-03-16 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694702', 'tblTempVendorCDR_20' ) end [2025-03-16 16:27:17] Production.INFO: ProcessCDR(1,14694702,1,1,2) [2025-03-16 16:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694702', 'tblTempUsageDetail_20' ) start [2025-03-16 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694702', 'tblTempUsageDetail_20' ) end [2025-03-16 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:27:22] Production.INFO: ==27413== Releasing lock... [2025-03-16 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:27:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:28:05 [end_date_ymd] => 2025-03-16 16:28:05 [RateCDR] => 1 ) [2025-03-16 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:28:05' and `end` < '2025-03-16 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:28:17] Production.INFO: count ==1191 [2025-03-16 16:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:28:05 - End Time 2025-03-16 16:28:05 [2025-03-16 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694707', 'tblTempUsageDetail_20' ) start [2025-03-16 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694707', 'tblTempUsageDetail_20' ) end [2025-03-16 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694707', 'tblTempVendorCDR_20' ) start [2025-03-16 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694707', 'tblTempVendorCDR_20' ) end [2025-03-16 16:28:18] Production.INFO: ProcessCDR(1,14694707,1,1,2) [2025-03-16 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694707', 'tblTempUsageDetail_20' ) start [2025-03-16 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694707', 'tblTempUsageDetail_20' ) end [2025-03-16 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:28:23] Production.INFO: ==27513== Releasing lock... [2025-03-16 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:28:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:29:06 [end_date_ymd] => 2025-03-16 16:29:06 [RateCDR] => 1 ) [2025-03-16 16: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-03-16 13:29:06' and `end` < '2025-03-16 16: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-03-16 16:29:18] Production.INFO: count ==1196 [2025-03-16 16:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:29:06 - End Time 2025-03-16 16:29:06 [2025-03-16 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694712', 'tblTempUsageDetail_20' ) start [2025-03-16 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694712', 'tblTempUsageDetail_20' ) end [2025-03-16 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694712', 'tblTempVendorCDR_20' ) start [2025-03-16 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694712', 'tblTempVendorCDR_20' ) end [2025-03-16 16:29:18] Production.INFO: ProcessCDR(1,14694712,1,1,2) [2025-03-16 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694712', 'tblTempUsageDetail_20' ) start [2025-03-16 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694712', 'tblTempUsageDetail_20' ) end [2025-03-16 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:29:23] Production.INFO: ==27609== Releasing lock... [2025-03-16 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:29:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:30:06 [end_date_ymd] => 2025-03-16 16:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:30:06' and `end` < '2025-03-16 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-03-16 16:30:18] Production.INFO: count ==1199 [2025-03-16 16:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:30:06 - End Time 2025-03-16 16:30:06 [2025-03-16 16:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694717', 'tblTempUsageDetail_20' ) start [2025-03-16 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694717', 'tblTempUsageDetail_20' ) end [2025-03-16 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694717', 'tblTempVendorCDR_20' ) start [2025-03-16 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694717', 'tblTempVendorCDR_20' ) end [2025-03-16 16:30:18] Production.INFO: ProcessCDR(1,14694717,1,1,2) [2025-03-16 16:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694717', 'tblTempUsageDetail_20' ) start [2025-03-16 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694717', 'tblTempUsageDetail_20' ) end [2025-03-16 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:30:23] Production.INFO: ==27712== Releasing lock... [2025-03-16 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:30:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:31:05 [end_date_ymd] => 2025-03-16 16:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:31:05' and `end` < '2025-03-16 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-03-16 16:31:18] Production.INFO: count ==1246 [2025-03-16 16:31:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:31:05 - End Time 2025-03-16 16:31:05 [2025-03-16 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694723', 'tblTempUsageDetail_20' ) start [2025-03-16 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694723', 'tblTempUsageDetail_20' ) end [2025-03-16 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694723', 'tblTempVendorCDR_20' ) start [2025-03-16 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694723', 'tblTempVendorCDR_20' ) end [2025-03-16 16:31:18] Production.INFO: ProcessCDR(1,14694723,1,1,2) [2025-03-16 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694723', 'tblTempUsageDetail_20' ) start [2025-03-16 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694723', 'tblTempUsageDetail_20' ) end [2025-03-16 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:31:23] Production.INFO: ==27810== Releasing lock... [2025-03-16 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:31:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:32:05 [end_date_ymd] => 2025-03-16 16:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:32:05' and `end` < '2025-03-16 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-03-16 16:32:17] Production.INFO: count ==1247 [2025-03-16 16:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:32:05 - End Time 2025-03-16 16:32:05 [2025-03-16 16:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694728', 'tblTempUsageDetail_20' ) start [2025-03-16 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694728', 'tblTempUsageDetail_20' ) end [2025-03-16 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694728', 'tblTempVendorCDR_20' ) start [2025-03-16 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694728', 'tblTempVendorCDR_20' ) end [2025-03-16 16:32:18] Production.INFO: ProcessCDR(1,14694728,1,1,2) [2025-03-16 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694728', 'tblTempUsageDetail_20' ) start [2025-03-16 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694728', 'tblTempUsageDetail_20' ) end [2025-03-16 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:32:22] Production.INFO: ==27905== Releasing lock... [2025-03-16 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:33:05 [end_date_ymd] => 2025-03-16 16:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:33:05' and `end` < '2025-03-16 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-03-16 16:33:17] Production.INFO: count ==1231 [2025-03-16 16:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:33:05 - End Time 2025-03-16 16:33:05 [2025-03-16 16:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694733', 'tblTempUsageDetail_20' ) start [2025-03-16 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694733', 'tblTempUsageDetail_20' ) end [2025-03-16 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694733', 'tblTempVendorCDR_20' ) start [2025-03-16 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694733', 'tblTempVendorCDR_20' ) end [2025-03-16 16:33:18] Production.INFO: ProcessCDR(1,14694733,1,1,2) [2025-03-16 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694733', 'tblTempUsageDetail_20' ) start [2025-03-16 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694733', 'tblTempUsageDetail_20' ) end [2025-03-16 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:33:22] Production.INFO: ==28044== Releasing lock... [2025-03-16 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:34:05 [end_date_ymd] => 2025-03-16 16:34:05 [RateCDR] => 1 ) [2025-03-16 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:34:05' and `end` < '2025-03-16 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:34:17] Production.INFO: count ==1229 [2025-03-16 16:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:34:05 - End Time 2025-03-16 16:34:05 [2025-03-16 16:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694738', 'tblTempUsageDetail_20' ) start [2025-03-16 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694738', 'tblTempUsageDetail_20' ) end [2025-03-16 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694738', 'tblTempVendorCDR_20' ) start [2025-03-16 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694738', 'tblTempVendorCDR_20' ) end [2025-03-16 16:34:17] Production.INFO: ProcessCDR(1,14694738,1,1,2) [2025-03-16 16:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694738', 'tblTempUsageDetail_20' ) start [2025-03-16 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694738', 'tblTempUsageDetail_20' ) end [2025-03-16 16:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:34:22] Production.INFO: ==28140== Releasing lock... [2025-03-16 16:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:34:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:35:05 [end_date_ymd] => 2025-03-16 16:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:35:05' and `end` < '2025-03-16 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-03-16 16:35:17] Production.INFO: count ==1221 [2025-03-16 16:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:35:05 - End Time 2025-03-16 16:35:05 [2025-03-16 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694743', 'tblTempUsageDetail_20' ) start [2025-03-16 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694743', 'tblTempUsageDetail_20' ) end [2025-03-16 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694743', 'tblTempVendorCDR_20' ) start [2025-03-16 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694743', 'tblTempVendorCDR_20' ) end [2025-03-16 16:35:18] Production.INFO: ProcessCDR(1,14694743,1,1,2) [2025-03-16 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694743', 'tblTempUsageDetail_20' ) start [2025-03-16 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694743', 'tblTempUsageDetail_20' ) end [2025-03-16 16:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:35:23] Production.INFO: ==28239== Releasing lock... [2025-03-16 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:35:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:36:05 [end_date_ymd] => 2025-03-16 16:36:05 [RateCDR] => 1 ) [2025-03-16 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:36:05' and `end` < '2025-03-16 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:36:17] Production.INFO: count ==1228 [2025-03-16 16:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:36:05 - End Time 2025-03-16 16:36:05 [2025-03-16 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694748', 'tblTempUsageDetail_20' ) start [2025-03-16 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694748', 'tblTempUsageDetail_20' ) end [2025-03-16 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694748', 'tblTempVendorCDR_20' ) start [2025-03-16 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694748', 'tblTempVendorCDR_20' ) end [2025-03-16 16:36:18] Production.INFO: ProcessCDR(1,14694748,1,1,2) [2025-03-16 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694748', 'tblTempUsageDetail_20' ) start [2025-03-16 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694748', 'tblTempUsageDetail_20' ) end [2025-03-16 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:36:23] Production.INFO: ==28336== Releasing lock... [2025-03-16 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:36:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:37:05 [end_date_ymd] => 2025-03-16 16:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:37:05' and `end` < '2025-03-16 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-03-16 16:37:18] Production.INFO: count ==1230 [2025-03-16 16:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:37:05 - End Time 2025-03-16 16:37:05 [2025-03-16 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694753', 'tblTempUsageDetail_20' ) start [2025-03-16 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694753', 'tblTempUsageDetail_20' ) end [2025-03-16 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694753', 'tblTempVendorCDR_20' ) start [2025-03-16 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694753', 'tblTempVendorCDR_20' ) end [2025-03-16 16:37:18] Production.INFO: ProcessCDR(1,14694753,1,1,2) [2025-03-16 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694753', 'tblTempUsageDetail_20' ) start [2025-03-16 16:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694753', 'tblTempUsageDetail_20' ) end [2025-03-16 16:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:37:21] Production.INFO: ==28429== Releasing lock... [2025-03-16 16:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:37:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:38:04 [end_date_ymd] => 2025-03-16 16:38:04 [RateCDR] => 1 ) [2025-03-16 16: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-03-16 13:38:04' and `end` < '2025-03-16 16: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-03-16 16:38:17] Production.INFO: count ==1229 [2025-03-16 16:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:38:04 - End Time 2025-03-16 16:38:04 [2025-03-16 16:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694758', 'tblTempUsageDetail_20' ) start [2025-03-16 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694758', 'tblTempUsageDetail_20' ) end [2025-03-16 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694758', 'tblTempVendorCDR_20' ) start [2025-03-16 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694758', 'tblTempVendorCDR_20' ) end [2025-03-16 16:38:17] Production.INFO: ProcessCDR(1,14694758,1,1,2) [2025-03-16 16:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694758', 'tblTempUsageDetail_20' ) start [2025-03-16 16:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694758', 'tblTempUsageDetail_20' ) end [2025-03-16 16:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:38:20] Production.INFO: ==28531== Releasing lock... [2025-03-16 16:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:38:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:39:06 [end_date_ymd] => 2025-03-16 16:39:06 [RateCDR] => 1 ) [2025-03-16 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:39:06' and `end` < '2025-03-16 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:39:18] Production.INFO: count ==1230 [2025-03-16 16:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:39:06 - End Time 2025-03-16 16:39:06 [2025-03-16 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694763', 'tblTempUsageDetail_20' ) start [2025-03-16 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694763', 'tblTempUsageDetail_20' ) end [2025-03-16 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694763', 'tblTempVendorCDR_20' ) start [2025-03-16 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694763', 'tblTempVendorCDR_20' ) end [2025-03-16 16:39:18] Production.INFO: ProcessCDR(1,14694763,1,1,2) [2025-03-16 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694763', 'tblTempUsageDetail_20' ) start [2025-03-16 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694763', 'tblTempUsageDetail_20' ) end [2025-03-16 16:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:39:23] Production.INFO: ==28631== Releasing lock... [2025-03-16 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:39:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:40:06 [end_date_ymd] => 2025-03-16 16:40:06 [RateCDR] => 1 ) [2025-03-16 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:40:06' and `end` < '2025-03-16 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:40:18] Production.INFO: count ==1226 [2025-03-16 16:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:40:06 - End Time 2025-03-16 16:40:06 [2025-03-16 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694768', 'tblTempUsageDetail_20' ) start [2025-03-16 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694768', 'tblTempUsageDetail_20' ) end [2025-03-16 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694768', 'tblTempVendorCDR_20' ) start [2025-03-16 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694768', 'tblTempVendorCDR_20' ) end [2025-03-16 16:40:18] Production.INFO: ProcessCDR(1,14694768,1,1,2) [2025-03-16 16:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694768', 'tblTempUsageDetail_20' ) start [2025-03-16 16:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694768', 'tblTempUsageDetail_20' ) end [2025-03-16 16:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:40:21] Production.INFO: ==28735== Releasing lock... [2025-03-16 16:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:40:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:41:05 [end_date_ymd] => 2025-03-16 16:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:41:05' and `end` < '2025-03-16 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-03-16 16:41:17] Production.INFO: count ==1202 [2025-03-16 16:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:41:05 - End Time 2025-03-16 16:41:05 [2025-03-16 16:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694774', 'tblTempUsageDetail_20' ) start [2025-03-16 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694774', 'tblTempUsageDetail_20' ) end [2025-03-16 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694774', 'tblTempVendorCDR_20' ) start [2025-03-16 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694774', 'tblTempVendorCDR_20' ) end [2025-03-16 16:41:17] Production.INFO: ProcessCDR(1,14694774,1,1,2) [2025-03-16 16:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694774', 'tblTempUsageDetail_20' ) start [2025-03-16 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694774', 'tblTempUsageDetail_20' ) end [2025-03-16 16:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:41:21] Production.INFO: ==28832== Releasing lock... [2025-03-16 16:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:41:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:42:05 [end_date_ymd] => 2025-03-16 16:42:05 [RateCDR] => 1 ) [2025-03-16 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:42:05' and `end` < '2025-03-16 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:42:18] Production.INFO: count ==1200 [2025-03-16 16:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:42:05 - End Time 2025-03-16 16:42:05 [2025-03-16 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694779', 'tblTempUsageDetail_20' ) start [2025-03-16 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694779', 'tblTempUsageDetail_20' ) end [2025-03-16 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694779', 'tblTempVendorCDR_20' ) start [2025-03-16 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694779', 'tblTempVendorCDR_20' ) end [2025-03-16 16:42:18] Production.INFO: ProcessCDR(1,14694779,1,1,2) [2025-03-16 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694779', 'tblTempUsageDetail_20' ) start [2025-03-16 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694779', 'tblTempUsageDetail_20' ) end [2025-03-16 16:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:42:21] Production.INFO: ==28959== Releasing lock... [2025-03-16 16:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:42:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:43:05 [end_date_ymd] => 2025-03-16 16:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:43:05' and `end` < '2025-03-16 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-03-16 16:43:17] Production.INFO: count ==1198 [2025-03-16 16:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:43:05 - End Time 2025-03-16 16:43:05 [2025-03-16 16:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694784', 'tblTempUsageDetail_20' ) start [2025-03-16 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694784', 'tblTempUsageDetail_20' ) end [2025-03-16 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694784', 'tblTempVendorCDR_20' ) start [2025-03-16 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694784', 'tblTempVendorCDR_20' ) end [2025-03-16 16:43:17] Production.INFO: ProcessCDR(1,14694784,1,1,2) [2025-03-16 16:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694784', 'tblTempUsageDetail_20' ) start [2025-03-16 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694784', 'tblTempUsageDetail_20' ) end [2025-03-16 16:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:43:22] Production.INFO: ==29071== Releasing lock... [2025-03-16 16:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:44:05 [end_date_ymd] => 2025-03-16 16:44:05 [RateCDR] => 1 ) [2025-03-16 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:44:05' and `end` < '2025-03-16 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:44:17] Production.INFO: count ==1201 [2025-03-16 16:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:44:05 - End Time 2025-03-16 16:44:05 [2025-03-16 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694789', 'tblTempUsageDetail_20' ) start [2025-03-16 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694789', 'tblTempUsageDetail_20' ) end [2025-03-16 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694789', 'tblTempVendorCDR_20' ) start [2025-03-16 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694789', 'tblTempVendorCDR_20' ) end [2025-03-16 16:44:18] Production.INFO: ProcessCDR(1,14694789,1,1,2) [2025-03-16 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694789', 'tblTempUsageDetail_20' ) start [2025-03-16 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694789', 'tblTempUsageDetail_20' ) end [2025-03-16 16:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:44:21] Production.INFO: ==29173== Releasing lock... [2025-03-16 16:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:44:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:45:04 [end_date_ymd] => 2025-03-16 16:45:04 [RateCDR] => 1 ) [2025-03-16 16: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-03-16 13:45:04' and `end` < '2025-03-16 16: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-03-16 16:45:17] Production.INFO: count ==1192 [2025-03-16 16:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:45:04 - End Time 2025-03-16 16:45:04 [2025-03-16 16:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694794', 'tblTempUsageDetail_20' ) start [2025-03-16 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694794', 'tblTempUsageDetail_20' ) end [2025-03-16 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694794', 'tblTempVendorCDR_20' ) start [2025-03-16 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694794', 'tblTempVendorCDR_20' ) end [2025-03-16 16:45:17] Production.INFO: ProcessCDR(1,14694794,1,1,2) [2025-03-16 16:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694794', 'tblTempUsageDetail_20' ) start [2025-03-16 16:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694794', 'tblTempUsageDetail_20' ) end [2025-03-16 16:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:45:20] Production.INFO: ==29302== Releasing lock... [2025-03-16 16:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:45:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:46:05 [end_date_ymd] => 2025-03-16 16:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:46:05' and `end` < '2025-03-16 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-03-16 16:46:17] Production.INFO: count ==1191 [2025-03-16 16:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:46:05 - End Time 2025-03-16 16:46:05 [2025-03-16 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694799', 'tblTempUsageDetail_20' ) start [2025-03-16 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694799', 'tblTempUsageDetail_20' ) end [2025-03-16 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694799', 'tblTempVendorCDR_20' ) start [2025-03-16 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694799', 'tblTempVendorCDR_20' ) end [2025-03-16 16:46:18] Production.INFO: ProcessCDR(1,14694799,1,1,2) [2025-03-16 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694799', 'tblTempUsageDetail_20' ) start [2025-03-16 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694799', 'tblTempUsageDetail_20' ) end [2025-03-16 16:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:46:21] Production.INFO: ==29405== Releasing lock... [2025-03-16 16:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:46:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:47:05 [end_date_ymd] => 2025-03-16 16:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:47:05' and `end` < '2025-03-16 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-03-16 16:47:17] Production.INFO: count ==1190 [2025-03-16 16:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:47:05 - End Time 2025-03-16 16:47:05 [2025-03-16 16:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694804', 'tblTempUsageDetail_20' ) start [2025-03-16 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694804', 'tblTempUsageDetail_20' ) end [2025-03-16 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694804', 'tblTempVendorCDR_20' ) start [2025-03-16 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694804', 'tblTempVendorCDR_20' ) end [2025-03-16 16:47:17] Production.INFO: ProcessCDR(1,14694804,1,1,2) [2025-03-16 16:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694804', 'tblTempUsageDetail_20' ) start [2025-03-16 16:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694804', 'tblTempUsageDetail_20' ) end [2025-03-16 16:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:47:20] Production.INFO: ==29508== Releasing lock... [2025-03-16 16:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:47:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:48:05 [end_date_ymd] => 2025-03-16 16:48:05 [RateCDR] => 1 ) [2025-03-16 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:48:05' and `end` < '2025-03-16 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:48:18] Production.INFO: count ==1189 [2025-03-16 16:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:48:05 - End Time 2025-03-16 16:48:05 [2025-03-16 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694809', 'tblTempUsageDetail_20' ) start [2025-03-16 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694809', 'tblTempUsageDetail_20' ) end [2025-03-16 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694809', 'tblTempVendorCDR_20' ) start [2025-03-16 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694809', 'tblTempVendorCDR_20' ) end [2025-03-16 16:48:18] Production.INFO: ProcessCDR(1,14694809,1,1,2) [2025-03-16 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694809', 'tblTempUsageDetail_20' ) start [2025-03-16 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694809', 'tblTempUsageDetail_20' ) end [2025-03-16 16:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:48:21] Production.INFO: ==29617== Releasing lock... [2025-03-16 16:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:48:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:49:05 [end_date_ymd] => 2025-03-16 16:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:49:05' and `end` < '2025-03-16 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-03-16 16:49:18] Production.INFO: count ==1191 [2025-03-16 16:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:49:05 - End Time 2025-03-16 16:49:05 [2025-03-16 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694814', 'tblTempUsageDetail_20' ) start [2025-03-16 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694814', 'tblTempUsageDetail_20' ) end [2025-03-16 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694814', 'tblTempVendorCDR_20' ) start [2025-03-16 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694814', 'tblTempVendorCDR_20' ) end [2025-03-16 16:49:18] Production.INFO: ProcessCDR(1,14694814,1,1,2) [2025-03-16 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694814', 'tblTempUsageDetail_20' ) start [2025-03-16 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694814', 'tblTempUsageDetail_20' ) end [2025-03-16 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:49:23] Production.INFO: ==29760== Releasing lock... [2025-03-16 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:49:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:50:06 [end_date_ymd] => 2025-03-16 16:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:50:06' and `end` < '2025-03-16 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-03-16 16:50:18] Production.INFO: count ==1190 [2025-03-16 16:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:50:06 - End Time 2025-03-16 16:50:06 [2025-03-16 16:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694820', 'tblTempUsageDetail_20' ) start [2025-03-16 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694820', 'tblTempUsageDetail_20' ) end [2025-03-16 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694820', 'tblTempVendorCDR_20' ) start [2025-03-16 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694820', 'tblTempVendorCDR_20' ) end [2025-03-16 16:50:18] Production.INFO: ProcessCDR(1,14694820,1,1,2) [2025-03-16 16:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694820', 'tblTempUsageDetail_20' ) start [2025-03-16 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694820', 'tblTempUsageDetail_20' ) end [2025-03-16 16:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:50:23] Production.INFO: ==29867== Releasing lock... [2025-03-16 16:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:50:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:51:06 [end_date_ymd] => 2025-03-16 16:51:06 [RateCDR] => 1 ) [2025-03-16 16: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-03-16 13:51:06' and `end` < '2025-03-16 16: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-03-16 16:51:18] Production.INFO: count ==1207 [2025-03-16 16:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:51:06 - End Time 2025-03-16 16:51:06 [2025-03-16 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694825', 'tblTempUsageDetail_20' ) start [2025-03-16 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694825', 'tblTempUsageDetail_20' ) end [2025-03-16 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694825', 'tblTempVendorCDR_20' ) start [2025-03-16 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694825', 'tblTempVendorCDR_20' ) end [2025-03-16 16:51:18] Production.INFO: ProcessCDR(1,14694825,1,1,2) [2025-03-16 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694825', 'tblTempUsageDetail_20' ) start [2025-03-16 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694825', 'tblTempUsageDetail_20' ) end [2025-03-16 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:51:23] Production.INFO: ==29976== Releasing lock... [2025-03-16 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:51:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:52:05 [end_date_ymd] => 2025-03-16 16:52:05 [RateCDR] => 1 ) [2025-03-16 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 13:52:05' and `end` < '2025-03-16 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 16:52:17] Production.INFO: count ==1212 [2025-03-16 16:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:52:05 - End Time 2025-03-16 16:52:05 [2025-03-16 16:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694830', 'tblTempUsageDetail_20' ) start [2025-03-16 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694830', 'tblTempUsageDetail_20' ) end [2025-03-16 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694830', 'tblTempVendorCDR_20' ) start [2025-03-16 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694830', 'tblTempVendorCDR_20' ) end [2025-03-16 16:52:17] Production.INFO: ProcessCDR(1,14694830,1,1,2) [2025-03-16 16:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694830', 'tblTempUsageDetail_20' ) start [2025-03-16 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694830', 'tblTempUsageDetail_20' ) end [2025-03-16 16:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:52:21] Production.INFO: ==30084== Releasing lock... [2025-03-16 16:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:52:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:53:05 [end_date_ymd] => 2025-03-16 16:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:53:05' and `end` < '2025-03-16 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-03-16 16:53:18] Production.INFO: count ==1204 [2025-03-16 16:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:53:05 - End Time 2025-03-16 16:53:05 [2025-03-16 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694835', 'tblTempUsageDetail_20' ) start [2025-03-16 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694835', 'tblTempUsageDetail_20' ) end [2025-03-16 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694835', 'tblTempVendorCDR_20' ) start [2025-03-16 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694835', 'tblTempVendorCDR_20' ) end [2025-03-16 16:53:18] Production.INFO: ProcessCDR(1,14694835,1,1,2) [2025-03-16 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694835', 'tblTempUsageDetail_20' ) start [2025-03-16 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694835', 'tblTempUsageDetail_20' ) end [2025-03-16 16:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:53:21] Production.INFO: ==30187== Releasing lock... [2025-03-16 16:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:53:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:54:05 [end_date_ymd] => 2025-03-16 16:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:54:05' and `end` < '2025-03-16 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-03-16 16:54:17] Production.INFO: count ==1207 [2025-03-16 16:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:54:05 - End Time 2025-03-16 16:54:05 [2025-03-16 16:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694840', 'tblTempUsageDetail_20' ) start [2025-03-16 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694840', 'tblTempUsageDetail_20' ) end [2025-03-16 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694840', 'tblTempVendorCDR_20' ) start [2025-03-16 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694840', 'tblTempVendorCDR_20' ) end [2025-03-16 16:54:17] Production.INFO: ProcessCDR(1,14694840,1,1,2) [2025-03-16 16:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694840', 'tblTempUsageDetail_20' ) start [2025-03-16 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694840', 'tblTempUsageDetail_20' ) end [2025-03-16 16:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:54:21] Production.INFO: ==30290== Releasing lock... [2025-03-16 16:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:54:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:55:05 [end_date_ymd] => 2025-03-16 16:55:05 [RateCDR] => 1 ) [2025-03-16 16: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-03-16 13:55:05' and `end` < '2025-03-16 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-03-16 16:55:18] Production.INFO: count ==1213 [2025-03-16 16:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:55:05 - End Time 2025-03-16 16:55:05 [2025-03-16 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694845', 'tblTempUsageDetail_20' ) start [2025-03-16 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694845', 'tblTempUsageDetail_20' ) end [2025-03-16 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694845', 'tblTempVendorCDR_20' ) start [2025-03-16 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694845', 'tblTempVendorCDR_20' ) end [2025-03-16 16:55:18] Production.INFO: ProcessCDR(1,14694845,1,1,2) [2025-03-16 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694845', 'tblTempUsageDetail_20' ) start [2025-03-16 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694845', 'tblTempUsageDetail_20' ) end [2025-03-16 16:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:55:23] Production.INFO: ==30397== Releasing lock... [2025-03-16 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:55:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:56:04 [end_date_ymd] => 2025-03-16 16:56:04 [RateCDR] => 1 ) [2025-03-16 16: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-03-16 13:56:04' and `end` < '2025-03-16 16: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-03-16 16:56:17] Production.INFO: count ==1210 [2025-03-16 16:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:56:04 - End Time 2025-03-16 16:56:04 [2025-03-16 16:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694850', 'tblTempUsageDetail_20' ) start [2025-03-16 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694850', 'tblTempUsageDetail_20' ) end [2025-03-16 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694850', 'tblTempVendorCDR_20' ) start [2025-03-16 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694850', 'tblTempVendorCDR_20' ) end [2025-03-16 16:56:17] Production.INFO: ProcessCDR(1,14694850,1,1,2) [2025-03-16 16:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694850', 'tblTempUsageDetail_20' ) start [2025-03-16 16:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694850', 'tblTempUsageDetail_20' ) end [2025-03-16 16:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:56:20] Production.INFO: ==30499== Releasing lock... [2025-03-16 16:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:56:20] Production.INFO: 38 MB #Memory Used# [2025-03-16 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:57:05 [end_date_ymd] => 2025-03-16 16:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:57:05' and `end` < '2025-03-16 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-03-16 16:57:17] Production.INFO: count ==1205 [2025-03-16 16:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:57:05 - End Time 2025-03-16 16:57:05 [2025-03-16 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694855', 'tblTempUsageDetail_20' ) start [2025-03-16 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694855', 'tblTempUsageDetail_20' ) end [2025-03-16 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694855', 'tblTempVendorCDR_20' ) start [2025-03-16 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694855', 'tblTempVendorCDR_20' ) end [2025-03-16 16:57:18] Production.INFO: ProcessCDR(1,14694855,1,1,2) [2025-03-16 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694855', 'tblTempUsageDetail_20' ) start [2025-03-16 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694855', 'tblTempUsageDetail_20' ) end [2025-03-16 16:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:57:21] Production.INFO: ==30601== Releasing lock... [2025-03-16 16:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:57:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:58:04 [end_date_ymd] => 2025-03-16 16:58:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:58:04' and `end` < '2025-03-16 16: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-03-16 16:58:17] Production.INFO: count ==1204 [2025-03-16 16:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 13:58:04 - End Time 2025-03-16 16:58:04 [2025-03-16 16:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694860', 'tblTempUsageDetail_20' ) start [2025-03-16 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694860', 'tblTempUsageDetail_20' ) end [2025-03-16 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694860', 'tblTempVendorCDR_20' ) start [2025-03-16 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694860', 'tblTempVendorCDR_20' ) end [2025-03-16 16:58:17] Production.INFO: ProcessCDR(1,14694860,1,1,2) [2025-03-16 16:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694860', 'tblTempUsageDetail_20' ) start [2025-03-16 16:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694860', 'tblTempUsageDetail_20' ) end [2025-03-16 16:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:58:20] Production.INFO: ==30700== Releasing lock... [2025-03-16 16:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:58:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 13:59:05 [end_date_ymd] => 2025-03-16 16:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 13:59:05' and `end` < '2025-03-16 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-03-16 16:59:18] Production.INFO: count ==1205 [2025-03-16 16:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 13:59:05 - End Time 2025-03-16 16:59:05 [2025-03-16 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694865', 'tblTempUsageDetail_20' ) start [2025-03-16 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694865', 'tblTempUsageDetail_20' ) end [2025-03-16 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694865', 'tblTempVendorCDR_20' ) start [2025-03-16 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694865', 'tblTempVendorCDR_20' ) end [2025-03-16 16:59:18] Production.INFO: ProcessCDR(1,14694865,1,1,2) [2025-03-16 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694865', 'tblTempUsageDetail_20' ) start [2025-03-16 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694865', 'tblTempUsageDetail_20' ) end [2025-03-16 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 16:59:23] Production.INFO: ==30800== Releasing lock... [2025-03-16 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 16:59:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:00:05 [end_date_ymd] => 2025-03-16 17:00:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:00:05' and `end` < '2025-03-16 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 17:00:18] Production.INFO: count ==1206 [2025-03-16 17:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:00:05 - End Time 2025-03-16 17:00:05 [2025-03-16 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694871', 'tblTempUsageDetail_20' ) start [2025-03-16 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694871', 'tblTempUsageDetail_20' ) end [2025-03-16 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694871', 'tblTempVendorCDR_20' ) start [2025-03-16 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694871', 'tblTempVendorCDR_20' ) end [2025-03-16 17:00:18] Production.INFO: ProcessCDR(1,14694871,1,1,2) [2025-03-16 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694871', 'tblTempUsageDetail_20' ) start [2025-03-16 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694871', 'tblTempUsageDetail_20' ) end [2025-03-16 17:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:00:21] Production.INFO: ==30885== Releasing lock... [2025-03-16 17:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:00:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:01:05 [end_date_ymd] => 2025-03-16 17:01:05 [RateCDR] => 1 ) [2025-03-16 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 14:01:05' and `end` < '2025-03-16 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 17:01:17] Production.INFO: count ==1239 [2025-03-16 17:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:01:05 - End Time 2025-03-16 17:01:05 [2025-03-16 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694876', 'tblTempUsageDetail_20' ) start [2025-03-16 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694876', 'tblTempUsageDetail_20' ) end [2025-03-16 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694876', 'tblTempVendorCDR_20' ) start [2025-03-16 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694876', 'tblTempVendorCDR_20' ) end [2025-03-16 17:01:18] Production.INFO: ProcessCDR(1,14694876,1,1,2) [2025-03-16 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694876', 'tblTempUsageDetail_20' ) start [2025-03-16 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694876', 'tblTempUsageDetail_20' ) end [2025-03-16 17:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:01:22] Production.INFO: ==30978== Releasing lock... [2025-03-16 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:01:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:02:04 [end_date_ymd] => 2025-03-16 17:02:04 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:02:04' and `end` < '2025-03-16 17: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-03-16 17:02:17] Production.INFO: count ==1239 [2025-03-16 17:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:02:04 - End Time 2025-03-16 17:02:04 [2025-03-16 17:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694881', 'tblTempUsageDetail_20' ) start [2025-03-16 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694881', 'tblTempUsageDetail_20' ) end [2025-03-16 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694881', 'tblTempVendorCDR_20' ) start [2025-03-16 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694881', 'tblTempVendorCDR_20' ) end [2025-03-16 17:02:17] Production.INFO: ProcessCDR(1,14694881,1,1,2) [2025-03-16 17:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694881', 'tblTempUsageDetail_20' ) start [2025-03-16 17:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694881', 'tblTempUsageDetail_20' ) end [2025-03-16 17:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:02:20] Production.INFO: ==31056== Releasing lock... [2025-03-16 17:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:02:20] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:03:05 [end_date_ymd] => 2025-03-16 17:03:05 [RateCDR] => 1 ) [2025-03-16 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 14:03:05' and `end` < '2025-03-16 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 17:03:18] Production.INFO: count ==1242 [2025-03-16 17:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:03:05 - End Time 2025-03-16 17:03:05 [2025-03-16 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694886', 'tblTempUsageDetail_20' ) start [2025-03-16 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694886', 'tblTempUsageDetail_20' ) end [2025-03-16 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694886', 'tblTempVendorCDR_20' ) start [2025-03-16 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694886', 'tblTempVendorCDR_20' ) end [2025-03-16 17:03:18] Production.INFO: ProcessCDR(1,14694886,1,1,2) [2025-03-16 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694886', 'tblTempUsageDetail_20' ) start [2025-03-16 17:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694886', 'tblTempUsageDetail_20' ) end [2025-03-16 17:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:03:21] Production.INFO: ==31164== Releasing lock... [2025-03-16 17:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:03:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:04:05 [end_date_ymd] => 2025-03-16 17:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:04:05' and `end` < '2025-03-16 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-03-16 17:04:18] Production.INFO: count ==1242 [2025-03-16 17:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:04:05 - End Time 2025-03-16 17:04:05 [2025-03-16 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694891', 'tblTempUsageDetail_20' ) start [2025-03-16 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694891', 'tblTempUsageDetail_20' ) end [2025-03-16 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694891', 'tblTempVendorCDR_20' ) start [2025-03-16 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694891', 'tblTempVendorCDR_20' ) end [2025-03-16 17:04:18] Production.INFO: ProcessCDR(1,14694891,1,1,2) [2025-03-16 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694891', 'tblTempUsageDetail_20' ) start [2025-03-16 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694891', 'tblTempUsageDetail_20' ) end [2025-03-16 17:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:04:21] Production.INFO: ==31308== Releasing lock... [2025-03-16 17:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:04:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:05:05 [end_date_ymd] => 2025-03-16 17:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:05:05' and `end` < '2025-03-16 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-03-16 17:05:17] Production.INFO: count ==1241 [2025-03-16 17:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:05:05 - End Time 2025-03-16 17:05:05 [2025-03-16 17:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694896', 'tblTempUsageDetail_20' ) start [2025-03-16 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694896', 'tblTempUsageDetail_20' ) end [2025-03-16 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694896', 'tblTempVendorCDR_20' ) start [2025-03-16 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694896', 'tblTempVendorCDR_20' ) end [2025-03-16 17:05:17] Production.INFO: ProcessCDR(1,14694896,1,1,2) [2025-03-16 17:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694896', 'tblTempUsageDetail_20' ) start [2025-03-16 17:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694896', 'tblTempUsageDetail_20' ) end [2025-03-16 17:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:05:20] Production.INFO: ==31408== Releasing lock... [2025-03-16 17:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:05:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:06:05 [end_date_ymd] => 2025-03-16 17:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:06:05' and `end` < '2025-03-16 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-03-16 17:06:18] Production.INFO: count ==1253 [2025-03-16 17:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:06:05 - End Time 2025-03-16 17:06:05 [2025-03-16 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694901', 'tblTempUsageDetail_20' ) start [2025-03-16 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694901', 'tblTempUsageDetail_20' ) end [2025-03-16 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694901', 'tblTempVendorCDR_20' ) start [2025-03-16 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694901', 'tblTempVendorCDR_20' ) end [2025-03-16 17:06:18] Production.INFO: ProcessCDR(1,14694901,1,1,2) [2025-03-16 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694901', 'tblTempUsageDetail_20' ) start [2025-03-16 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694901', 'tblTempUsageDetail_20' ) end [2025-03-16 17:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:06:21] Production.INFO: ==31483== Releasing lock... [2025-03-16 17:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:06:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:07:05 [end_date_ymd] => 2025-03-16 17:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:07:05' and `end` < '2025-03-16 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-03-16 17:07:17] Production.INFO: count ==1252 [2025-03-16 17:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:07:05 - End Time 2025-03-16 17:07:05 [2025-03-16 17:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694906', 'tblTempUsageDetail_20' ) start [2025-03-16 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694906', 'tblTempUsageDetail_20' ) end [2025-03-16 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694906', 'tblTempVendorCDR_20' ) start [2025-03-16 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694906', 'tblTempVendorCDR_20' ) end [2025-03-16 17:07:18] Production.INFO: ProcessCDR(1,14694906,1,1,2) [2025-03-16 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694906', 'tblTempUsageDetail_20' ) start [2025-03-16 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694906', 'tblTempUsageDetail_20' ) end [2025-03-16 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:07:23] Production.INFO: ==31557== Releasing lock... [2025-03-16 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:07:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:08:05 [end_date_ymd] => 2025-03-16 17:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:08:05' and `end` < '2025-03-16 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-03-16 17:08:18] Production.INFO: count ==1254 [2025-03-16 17:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:08:05 - End Time 2025-03-16 17:08:05 [2025-03-16 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694911', 'tblTempUsageDetail_20' ) start [2025-03-16 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694911', 'tblTempUsageDetail_20' ) end [2025-03-16 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694911', 'tblTempVendorCDR_20' ) start [2025-03-16 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694911', 'tblTempVendorCDR_20' ) end [2025-03-16 17:08:18] Production.INFO: ProcessCDR(1,14694911,1,1,2) [2025-03-16 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694911', 'tblTempUsageDetail_20' ) start [2025-03-16 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694911', 'tblTempUsageDetail_20' ) end [2025-03-16 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:08:23] Production.INFO: ==31641== Releasing lock... [2025-03-16 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:08:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:09:05 [end_date_ymd] => 2025-03-16 17:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:09:05' and `end` < '2025-03-16 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-03-16 17:09:17] Production.INFO: count ==1255 [2025-03-16 17:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:09:05 - End Time 2025-03-16 17:09:05 [2025-03-16 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694916', 'tblTempUsageDetail_20' ) start [2025-03-16 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694916', 'tblTempUsageDetail_20' ) end [2025-03-16 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694916', 'tblTempVendorCDR_20' ) start [2025-03-16 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694916', 'tblTempVendorCDR_20' ) end [2025-03-16 17:09:18] Production.INFO: ProcessCDR(1,14694916,1,1,2) [2025-03-16 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694916', 'tblTempUsageDetail_20' ) start [2025-03-16 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694916', 'tblTempUsageDetail_20' ) end [2025-03-16 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:09:23] Production.INFO: ==31714== Releasing lock... [2025-03-16 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:09:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 17:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:10:07 [end_date_ymd] => 2025-03-16 17:10:07 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:10:07' and `end` < '2025-03-16 17: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-03-16 17:10:19] Production.INFO: count ==1256 [2025-03-16 17:10:19] Production.ERROR: pbx CDR StartTime 2025-03-16 14:10:07 - End Time 2025-03-16 17:10:07 [2025-03-16 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694922', 'tblTempUsageDetail_20' ) start [2025-03-16 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694922', 'tblTempUsageDetail_20' ) end [2025-03-16 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694922', 'tblTempVendorCDR_20' ) start [2025-03-16 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694922', 'tblTempVendorCDR_20' ) end [2025-03-16 17:10:19] Production.INFO: ProcessCDR(1,14694922,1,1,2) [2025-03-16 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694922', 'tblTempUsageDetail_20' ) start [2025-03-16 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694922', 'tblTempUsageDetail_20' ) end [2025-03-16 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:10:24] Production.INFO: ==31795== Releasing lock... [2025-03-16 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:10:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:11:05 [end_date_ymd] => 2025-03-16 17:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:11:05' and `end` < '2025-03-16 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-03-16 17:11:17] Production.INFO: count ==1312 [2025-03-16 17:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:11:05 - End Time 2025-03-16 17:11:05 [2025-03-16 17:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694927', 'tblTempUsageDetail_20' ) start [2025-03-16 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694927', 'tblTempUsageDetail_20' ) end [2025-03-16 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694927', 'tblTempVendorCDR_20' ) start [2025-03-16 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694927', 'tblTempVendorCDR_20' ) end [2025-03-16 17:11:17] Production.INFO: ProcessCDR(1,14694927,1,1,2) [2025-03-16 17:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694927', 'tblTempUsageDetail_20' ) start [2025-03-16 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694927', 'tblTempUsageDetail_20' ) end [2025-03-16 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:11:22] Production.INFO: ==31873== Releasing lock... [2025-03-16 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:11:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:12:05 [end_date_ymd] => 2025-03-16 17:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:12:05' and `end` < '2025-03-16 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-03-16 17:12:18] Production.INFO: count ==1307 [2025-03-16 17:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:12:05 - End Time 2025-03-16 17:12:05 [2025-03-16 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694932', 'tblTempUsageDetail_20' ) start [2025-03-16 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694932', 'tblTempUsageDetail_20' ) end [2025-03-16 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694932', 'tblTempVendorCDR_20' ) start [2025-03-16 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694932', 'tblTempVendorCDR_20' ) end [2025-03-16 17:12:18] Production.INFO: ProcessCDR(1,14694932,1,1,2) [2025-03-16 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694932', 'tblTempUsageDetail_20' ) start [2025-03-16 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694932', 'tblTempUsageDetail_20' ) end [2025-03-16 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:12:22] Production.INFO: ==31947== Releasing lock... [2025-03-16 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:12:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:13:05 [end_date_ymd] => 2025-03-16 17:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:13:05' and `end` < '2025-03-16 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-03-16 17:13:17] Production.INFO: count ==1315 [2025-03-16 17:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:13:05 - End Time 2025-03-16 17:13:05 [2025-03-16 17:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694937', 'tblTempUsageDetail_20' ) start [2025-03-16 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694937', 'tblTempUsageDetail_20' ) end [2025-03-16 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694937', 'tblTempVendorCDR_20' ) start [2025-03-16 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694937', 'tblTempVendorCDR_20' ) end [2025-03-16 17:13:17] Production.INFO: ProcessCDR(1,14694937,1,1,2) [2025-03-16 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694937', 'tblTempUsageDetail_20' ) start [2025-03-16 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694937', 'tblTempUsageDetail_20' ) end [2025-03-16 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:13:22] Production.INFO: ==32018== Releasing lock... [2025-03-16 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:13:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:14:05 [end_date_ymd] => 2025-03-16 17:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:14:05' and `end` < '2025-03-16 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-03-16 17:14:17] Production.INFO: count ==1316 [2025-03-16 17:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:14:05 - End Time 2025-03-16 17:14:05 [2025-03-16 17:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694942', 'tblTempUsageDetail_20' ) start [2025-03-16 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694942', 'tblTempUsageDetail_20' ) end [2025-03-16 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694942', 'tblTempVendorCDR_20' ) start [2025-03-16 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694942', 'tblTempVendorCDR_20' ) end [2025-03-16 17:14:17] Production.INFO: ProcessCDR(1,14694942,1,1,2) [2025-03-16 17:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694942', 'tblTempUsageDetail_20' ) start [2025-03-16 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694942', 'tblTempUsageDetail_20' ) end [2025-03-16 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:14:22] Production.INFO: ==32096== Releasing lock... [2025-03-16 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:14:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:15:05 [end_date_ymd] => 2025-03-16 17:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:15:05' and `end` < '2025-03-16 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-03-16 17:15:17] Production.INFO: count ==1318 [2025-03-16 17:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:15:05 - End Time 2025-03-16 17:15:05 [2025-03-16 17:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694947', 'tblTempUsageDetail_20' ) start [2025-03-16 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694947', 'tblTempUsageDetail_20' ) end [2025-03-16 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694947', 'tblTempVendorCDR_20' ) start [2025-03-16 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694947', 'tblTempVendorCDR_20' ) end [2025-03-16 17:15:17] Production.INFO: ProcessCDR(1,14694947,1,1,2) [2025-03-16 17:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694947', 'tblTempUsageDetail_20' ) start [2025-03-16 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694947', 'tblTempUsageDetail_20' ) end [2025-03-16 17:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:15:22] Production.INFO: ==32171== Releasing lock... [2025-03-16 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:16:05 [end_date_ymd] => 2025-03-16 17:16:05 [RateCDR] => 1 ) [2025-03-16 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 14:16:05' and `end` < '2025-03-16 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 17:16:18] Production.INFO: count ==1322 [2025-03-16 17:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:16:05 - End Time 2025-03-16 17:16:05 [2025-03-16 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694952', 'tblTempUsageDetail_20' ) start [2025-03-16 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694952', 'tblTempUsageDetail_20' ) end [2025-03-16 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694952', 'tblTempVendorCDR_20' ) start [2025-03-16 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694952', 'tblTempVendorCDR_20' ) end [2025-03-16 17:16:18] Production.INFO: ProcessCDR(1,14694952,1,1,2) [2025-03-16 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694952', 'tblTempUsageDetail_20' ) start [2025-03-16 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694952', 'tblTempUsageDetail_20' ) end [2025-03-16 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:16:23] Production.INFO: ==32246== Releasing lock... [2025-03-16 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:16:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:17:04 [end_date_ymd] => 2025-03-16 17:17:04 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:17:04' and `end` < '2025-03-16 17: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-03-16 17:17:17] Production.INFO: count ==1315 [2025-03-16 17:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:17:04 - End Time 2025-03-16 17:17:04 [2025-03-16 17:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694953', 'tblTempUsageDetail_20' ) start [2025-03-16 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694953', 'tblTempUsageDetail_20' ) end [2025-03-16 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694953', 'tblTempVendorCDR_20' ) start [2025-03-16 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694953', 'tblTempVendorCDR_20' ) end [2025-03-16 17:17:17] Production.INFO: ProcessCDR(1,14694953,1,1,2) [2025-03-16 17:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694953', 'tblTempUsageDetail_20' ) start [2025-03-16 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694953', 'tblTempUsageDetail_20' ) end [2025-03-16 17:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:17:22] Production.INFO: ==32323== Releasing lock... [2025-03-16 17:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:17:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:18:05 [end_date_ymd] => 2025-03-16 17:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:18:05' and `end` < '2025-03-16 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-03-16 17:18:18] Production.INFO: count ==1316 [2025-03-16 17:18:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:18:05 - End Time 2025-03-16 17:18:05 [2025-03-16 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694962', 'tblTempUsageDetail_20' ) start [2025-03-16 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694962', 'tblTempUsageDetail_20' ) end [2025-03-16 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694962', 'tblTempVendorCDR_20' ) start [2025-03-16 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694962', 'tblTempVendorCDR_20' ) end [2025-03-16 17:18:18] Production.INFO: ProcessCDR(1,14694962,1,1,2) [2025-03-16 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694962', 'tblTempUsageDetail_20' ) start [2025-03-16 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694962', 'tblTempUsageDetail_20' ) end [2025-03-16 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:18:23] Production.INFO: ==32412== Releasing lock... [2025-03-16 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:18:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:19:06 [end_date_ymd] => 2025-03-16 17:19:06 [RateCDR] => 1 ) [2025-03-16 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 14:19:06' and `end` < '2025-03-16 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 17:19:18] Production.INFO: count ==1316 [2025-03-16 17:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:19:06 - End Time 2025-03-16 17:19:06 [2025-03-16 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694967', 'tblTempUsageDetail_20' ) start [2025-03-16 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694967', 'tblTempUsageDetail_20' ) end [2025-03-16 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694967', 'tblTempVendorCDR_20' ) start [2025-03-16 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694967', 'tblTempVendorCDR_20' ) end [2025-03-16 17:19:18] Production.INFO: ProcessCDR(1,14694967,1,1,2) [2025-03-16 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694967', 'tblTempUsageDetail_20' ) start [2025-03-16 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694967', 'tblTempUsageDetail_20' ) end [2025-03-16 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:19:22] Production.INFO: ==32488== Releasing lock... [2025-03-16 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:19:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:20:06 [end_date_ymd] => 2025-03-16 17:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:20:06' and `end` < '2025-03-16 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-03-16 17:20:18] Production.INFO: count ==1304 [2025-03-16 17:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:20:06 - End Time 2025-03-16 17:20:06 [2025-03-16 17:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694973', 'tblTempUsageDetail_20' ) start [2025-03-16 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694973', 'tblTempUsageDetail_20' ) end [2025-03-16 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694973', 'tblTempVendorCDR_20' ) start [2025-03-16 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694973', 'tblTempVendorCDR_20' ) end [2025-03-16 17:20:18] Production.INFO: ProcessCDR(1,14694973,1,1,2) [2025-03-16 17:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694973', 'tblTempUsageDetail_20' ) start [2025-03-16 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694973', 'tblTempUsageDetail_20' ) end [2025-03-16 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:20:23] Production.INFO: ==32604== Releasing lock... [2025-03-16 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:20:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:21:05 [end_date_ymd] => 2025-03-16 17:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:21:05' and `end` < '2025-03-16 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-03-16 17:21:17] Production.INFO: count ==1289 [2025-03-16 17:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:21:05 - End Time 2025-03-16 17:21:05 [2025-03-16 17:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694978', 'tblTempUsageDetail_20' ) start [2025-03-16 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694978', 'tblTempUsageDetail_20' ) end [2025-03-16 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694978', 'tblTempVendorCDR_20' ) start [2025-03-16 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694978', 'tblTempVendorCDR_20' ) end [2025-03-16 17:21:17] Production.INFO: ProcessCDR(1,14694978,1,1,2) [2025-03-16 17:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694978', 'tblTempUsageDetail_20' ) start [2025-03-16 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694978', 'tblTempUsageDetail_20' ) end [2025-03-16 17:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:21:22] Production.INFO: ==32697== Releasing lock... [2025-03-16 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:21:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:22:05 [end_date_ymd] => 2025-03-16 17:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:22:05' and `end` < '2025-03-16 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-03-16 17:22:17] Production.INFO: count ==1291 [2025-03-16 17:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:22:05 - End Time 2025-03-16 17:22:05 [2025-03-16 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694983', 'tblTempUsageDetail_20' ) start [2025-03-16 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694983', 'tblTempUsageDetail_20' ) end [2025-03-16 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694983', 'tblTempVendorCDR_20' ) start [2025-03-16 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694983', 'tblTempVendorCDR_20' ) end [2025-03-16 17:22:18] Production.INFO: ProcessCDR(1,14694983,1,1,2) [2025-03-16 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694983', 'tblTempUsageDetail_20' ) start [2025-03-16 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694983', 'tblTempUsageDetail_20' ) end [2025-03-16 17:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:22:22] Production.INFO: ==305== Releasing lock... [2025-03-16 17:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:22:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:23:05 [end_date_ymd] => 2025-03-16 17:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:23:05' and `end` < '2025-03-16 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-03-16 17:23:17] Production.INFO: count ==1294 [2025-03-16 17:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:23:05 - End Time 2025-03-16 17:23:05 [2025-03-16 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694988', 'tblTempUsageDetail_20' ) start [2025-03-16 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694988', 'tblTempUsageDetail_20' ) end [2025-03-16 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694988', 'tblTempVendorCDR_20' ) start [2025-03-16 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694988', 'tblTempVendorCDR_20' ) end [2025-03-16 17:23:18] Production.INFO: ProcessCDR(1,14694988,1,1,2) [2025-03-16 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694988', 'tblTempUsageDetail_20' ) start [2025-03-16 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694988', 'tblTempUsageDetail_20' ) end [2025-03-16 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:23:22] Production.INFO: ==402== Releasing lock... [2025-03-16 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:24:05 [end_date_ymd] => 2025-03-16 17:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:24:05' and `end` < '2025-03-16 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-03-16 17:24:17] Production.INFO: count ==1297 [2025-03-16 17:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:24:05 - End Time 2025-03-16 17:24:05 [2025-03-16 17:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694993', 'tblTempUsageDetail_20' ) start [2025-03-16 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694993', 'tblTempUsageDetail_20' ) end [2025-03-16 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694993', 'tblTempVendorCDR_20' ) start [2025-03-16 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694993', 'tblTempVendorCDR_20' ) end [2025-03-16 17:24:17] Production.INFO: ProcessCDR(1,14694993,1,1,2) [2025-03-16 17:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694993', 'tblTempUsageDetail_20' ) start [2025-03-16 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694993', 'tblTempUsageDetail_20' ) end [2025-03-16 17:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:24:21] Production.INFO: ==484== Releasing lock... [2025-03-16 17:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:24:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:25:05 [end_date_ymd] => 2025-03-16 17:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:25:05' and `end` < '2025-03-16 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-03-16 17:25:17] Production.INFO: count ==1293 [2025-03-16 17:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:25:05 - End Time 2025-03-16 17:25:05 [2025-03-16 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694998', 'tblTempUsageDetail_20' ) start [2025-03-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14694998', 'tblTempUsageDetail_20' ) end [2025-03-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694998', 'tblTempVendorCDR_20' ) start [2025-03-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14694998', 'tblTempVendorCDR_20' ) end [2025-03-16 17:25:18] Production.INFO: ProcessCDR(1,14694998,1,1,2) [2025-03-16 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14694998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14694998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14694998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14694998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694998', 'tblTempUsageDetail_20' ) start [2025-03-16 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14694998', 'tblTempUsageDetail_20' ) end [2025-03-16 17:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:25:21] Production.INFO: ==569== Releasing lock... [2025-03-16 17:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:25:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:26:05 [end_date_ymd] => 2025-03-16 17:26:05 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:26:05' and `end` < '2025-03-16 17: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-03-16 17:26:17] Production.INFO: count ==1295 [2025-03-16 17:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:26:05 - End Time 2025-03-16 17:26:05 [2025-03-16 17:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695003', 'tblTempUsageDetail_20' ) start [2025-03-16 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695003', 'tblTempUsageDetail_20' ) end [2025-03-16 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695003', 'tblTempVendorCDR_20' ) start [2025-03-16 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695003', 'tblTempVendorCDR_20' ) end [2025-03-16 17:26:17] Production.INFO: ProcessCDR(1,14695003,1,1,2) [2025-03-16 17:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695003', 'tblTempUsageDetail_20' ) start [2025-03-16 17:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695003', 'tblTempUsageDetail_20' ) end [2025-03-16 17:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:26:20] Production.INFO: ==656== Releasing lock... [2025-03-16 17:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:26:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:27:05 [end_date_ymd] => 2025-03-16 17:27:05 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:27:05' and `end` < '2025-03-16 17: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-03-16 17:27:17] Production.INFO: count ==1299 [2025-03-16 17:27:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:27:05 - End Time 2025-03-16 17:27:05 [2025-03-16 17:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695008', 'tblTempUsageDetail_20' ) start [2025-03-16 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695008', 'tblTempUsageDetail_20' ) end [2025-03-16 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695008', 'tblTempVendorCDR_20' ) start [2025-03-16 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695008', 'tblTempVendorCDR_20' ) end [2025-03-16 17:27:18] Production.INFO: ProcessCDR(1,14695008,1,1,2) [2025-03-16 17:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695008', 'tblTempUsageDetail_20' ) start [2025-03-16 17:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695008', 'tblTempUsageDetail_20' ) end [2025-03-16 17:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:27:22] Production.INFO: ==759== Releasing lock... [2025-03-16 17:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:27:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:28:05 [end_date_ymd] => 2025-03-16 17:28:05 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:28:05' and `end` < '2025-03-16 17: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-03-16 17:28:17] Production.INFO: count ==1301 [2025-03-16 17:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:28:05 - End Time 2025-03-16 17:28:05 [2025-03-16 17:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695013', 'tblTempUsageDetail_20' ) start [2025-03-16 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695013', 'tblTempUsageDetail_20' ) end [2025-03-16 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695013', 'tblTempVendorCDR_20' ) start [2025-03-16 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695013', 'tblTempVendorCDR_20' ) end [2025-03-16 17:28:17] Production.INFO: ProcessCDR(1,14695013,1,1,2) [2025-03-16 17:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695013', 'tblTempUsageDetail_20' ) start [2025-03-16 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695013', 'tblTempUsageDetail_20' ) end [2025-03-16 17:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:28:22] Production.INFO: ==838== Releasing lock... [2025-03-16 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:28:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:29:05 [end_date_ymd] => 2025-03-16 17:29:05 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:29:05' and `end` < '2025-03-16 17: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-03-16 17:29:17] Production.INFO: count ==1308 [2025-03-16 17:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:29:05 - End Time 2025-03-16 17:29:05 [2025-03-16 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695018', 'tblTempUsageDetail_20' ) start [2025-03-16 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695018', 'tblTempUsageDetail_20' ) end [2025-03-16 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695018', 'tblTempVendorCDR_20' ) start [2025-03-16 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695018', 'tblTempVendorCDR_20' ) end [2025-03-16 17:29:18] Production.INFO: ProcessCDR(1,14695018,1,1,2) [2025-03-16 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695018', 'tblTempUsageDetail_20' ) start [2025-03-16 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695018', 'tblTempUsageDetail_20' ) end [2025-03-16 17:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:29:23] Production.INFO: ==918== Releasing lock... [2025-03-16 17:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:29:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:30:06 [end_date_ymd] => 2025-03-16 17:30:06 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:30:06' and `end` < '2025-03-16 17: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-03-16 17:30:19] Production.INFO: count ==1305 [2025-03-16 17:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 14:30:06 - End Time 2025-03-16 17:30:06 [2025-03-16 17:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695024', 'tblTempUsageDetail_20' ) start [2025-03-16 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695024', 'tblTempUsageDetail_20' ) end [2025-03-16 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695024', 'tblTempVendorCDR_20' ) start [2025-03-16 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695024', 'tblTempVendorCDR_20' ) end [2025-03-16 17:30:19] Production.INFO: ProcessCDR(1,14695024,1,1,2) [2025-03-16 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695024', 'tblTempUsageDetail_20' ) start [2025-03-16 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695024', 'tblTempUsageDetail_20' ) end [2025-03-16 17:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:30:24] Production.INFO: ==1007== Releasing lock... [2025-03-16 17:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:30:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 17:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:31:04 [end_date_ymd] => 2025-03-16 17:31:04 [RateCDR] => 1 ) [2025-03-16 17:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 14:31:04' and `end` < '2025-03-16 17:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 17:31:17] Production.INFO: count ==1344 [2025-03-16 17:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:31:04 - End Time 2025-03-16 17:31:04 [2025-03-16 17:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695029', 'tblTempUsageDetail_20' ) start [2025-03-16 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695029', 'tblTempUsageDetail_20' ) end [2025-03-16 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695029', 'tblTempVendorCDR_20' ) start [2025-03-16 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695029', 'tblTempVendorCDR_20' ) end [2025-03-16 17:31:17] Production.INFO: ProcessCDR(1,14695029,1,1,2) [2025-03-16 17:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695029', 'tblTempUsageDetail_20' ) start [2025-03-16 17:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695029', 'tblTempUsageDetail_20' ) end [2025-03-16 17:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:31:22] Production.INFO: ==1083== Releasing lock... [2025-03-16 17:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:31:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:32:05 [end_date_ymd] => 2025-03-16 17:32:05 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:32:05' and `end` < '2025-03-16 17: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-03-16 17:32:18] Production.INFO: count ==1341 [2025-03-16 17:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:32:05 - End Time 2025-03-16 17:32:05 [2025-03-16 17:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695034', 'tblTempUsageDetail_20' ) start [2025-03-16 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695034', 'tblTempUsageDetail_20' ) end [2025-03-16 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695034', 'tblTempVendorCDR_20' ) start [2025-03-16 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695034', 'tblTempVendorCDR_20' ) end [2025-03-16 17:32:18] Production.INFO: ProcessCDR(1,14695034,1,1,2) [2025-03-16 17:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695034', 'tblTempUsageDetail_20' ) start [2025-03-16 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695034', 'tblTempUsageDetail_20' ) end [2025-03-16 17:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:32:23] Production.INFO: ==1170== Releasing lock... [2025-03-16 17:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:32:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:33:04 [end_date_ymd] => 2025-03-16 17:33:04 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:33:04' and `end` < '2025-03-16 17: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-03-16 17:33:17] Production.INFO: count ==1338 [2025-03-16 17:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:33:04 - End Time 2025-03-16 17:33:04 [2025-03-16 17:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695039', 'tblTempUsageDetail_20' ) start [2025-03-16 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695039', 'tblTempUsageDetail_20' ) end [2025-03-16 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695039', 'tblTempVendorCDR_20' ) start [2025-03-16 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695039', 'tblTempVendorCDR_20' ) end [2025-03-16 17:33:17] Production.INFO: ProcessCDR(1,14695039,1,1,2) [2025-03-16 17:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695039', 'tblTempUsageDetail_20' ) start [2025-03-16 17:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695039', 'tblTempUsageDetail_20' ) end [2025-03-16 17:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:33:21] Production.INFO: ==1263== Releasing lock... [2025-03-16 17:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:33:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:34:05 [end_date_ymd] => 2025-03-16 17:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:34:05' and `end` < '2025-03-16 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-03-16 17:34:17] Production.INFO: count ==1340 [2025-03-16 17:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:34:05 - End Time 2025-03-16 17:34:05 [2025-03-16 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695044', 'tblTempUsageDetail_20' ) start [2025-03-16 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695044', 'tblTempUsageDetail_20' ) end [2025-03-16 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695044', 'tblTempVendorCDR_20' ) start [2025-03-16 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695044', 'tblTempVendorCDR_20' ) end [2025-03-16 17:34:18] Production.INFO: ProcessCDR(1,14695044,1,1,2) [2025-03-16 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695044', 'tblTempUsageDetail_20' ) start [2025-03-16 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695044', 'tblTempUsageDetail_20' ) end [2025-03-16 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:34:23] Production.INFO: ==1347== Releasing lock... [2025-03-16 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:34:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:35:04 [end_date_ymd] => 2025-03-16 17:35:04 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:35:04' and `end` < '2025-03-16 17: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-03-16 17:35:17] Production.INFO: count ==1341 [2025-03-16 17:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:35:04 - End Time 2025-03-16 17:35:04 [2025-03-16 17:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695049', 'tblTempUsageDetail_20' ) start [2025-03-16 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695049', 'tblTempUsageDetail_20' ) end [2025-03-16 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695049', 'tblTempVendorCDR_20' ) start [2025-03-16 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695049', 'tblTempVendorCDR_20' ) end [2025-03-16 17:35:17] Production.INFO: ProcessCDR(1,14695049,1,1,2) [2025-03-16 17:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695049', 'tblTempUsageDetail_20' ) start [2025-03-16 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695049', 'tblTempUsageDetail_20' ) end [2025-03-16 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:35:22] Production.INFO: ==1466== Releasing lock... [2025-03-16 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:35:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:36:05 [end_date_ymd] => 2025-03-16 17:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:36:05' and `end` < '2025-03-16 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-03-16 17:36:18] Production.INFO: count ==1344 [2025-03-16 17:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:36:05 - End Time 2025-03-16 17:36:05 [2025-03-16 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695054', 'tblTempUsageDetail_20' ) start [2025-03-16 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695054', 'tblTempUsageDetail_20' ) end [2025-03-16 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695054', 'tblTempVendorCDR_20' ) start [2025-03-16 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695054', 'tblTempVendorCDR_20' ) end [2025-03-16 17:36:18] Production.INFO: ProcessCDR(1,14695054,1,1,2) [2025-03-16 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695054', 'tblTempUsageDetail_20' ) start [2025-03-16 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695054', 'tblTempUsageDetail_20' ) end [2025-03-16 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:36:23] Production.INFO: ==1582== Releasing lock... [2025-03-16 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:36:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:37:05 [end_date_ymd] => 2025-03-16 17:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:37:05' and `end` < '2025-03-16 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-03-16 17:37:17] Production.INFO: count ==1343 [2025-03-16 17:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:37:05 - End Time 2025-03-16 17:37:05 [2025-03-16 17:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695059', 'tblTempUsageDetail_20' ) start [2025-03-16 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695059', 'tblTempUsageDetail_20' ) end [2025-03-16 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695059', 'tblTempVendorCDR_20' ) start [2025-03-16 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695059', 'tblTempVendorCDR_20' ) end [2025-03-16 17:37:17] Production.INFO: ProcessCDR(1,14695059,1,1,2) [2025-03-16 17:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695059', 'tblTempUsageDetail_20' ) start [2025-03-16 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695059', 'tblTempUsageDetail_20' ) end [2025-03-16 17:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:37:22] Production.INFO: ==1660== Releasing lock... [2025-03-16 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:37:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:38:05 [end_date_ymd] => 2025-03-16 17:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:38:05' and `end` < '2025-03-16 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-03-16 17:38:18] Production.INFO: count ==1347 [2025-03-16 17:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:38:05 - End Time 2025-03-16 17:38:05 [2025-03-16 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695064', 'tblTempUsageDetail_20' ) start [2025-03-16 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695064', 'tblTempUsageDetail_20' ) end [2025-03-16 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695064', 'tblTempVendorCDR_20' ) start [2025-03-16 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695064', 'tblTempVendorCDR_20' ) end [2025-03-16 17:38:18] Production.INFO: ProcessCDR(1,14695064,1,1,2) [2025-03-16 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695064', 'tblTempUsageDetail_20' ) start [2025-03-16 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695064', 'tblTempUsageDetail_20' ) end [2025-03-16 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:38:23] Production.INFO: ==1743== Releasing lock... [2025-03-16 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:38:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:39:05 [end_date_ymd] => 2025-03-16 17:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:39:05' and `end` < '2025-03-16 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-03-16 17:39:18] Production.INFO: count ==1347 [2025-03-16 17:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:39:05 - End Time 2025-03-16 17:39:05 [2025-03-16 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695069', 'tblTempUsageDetail_20' ) start [2025-03-16 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695069', 'tblTempUsageDetail_20' ) end [2025-03-16 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695069', 'tblTempVendorCDR_20' ) start [2025-03-16 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695069', 'tblTempVendorCDR_20' ) end [2025-03-16 17:39:18] Production.INFO: ProcessCDR(1,14695069,1,1,2) [2025-03-16 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695069', 'tblTempUsageDetail_20' ) start [2025-03-16 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695069', 'tblTempUsageDetail_20' ) end [2025-03-16 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:39:23] Production.INFO: ==1827== Releasing lock... [2025-03-16 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:40:06 [end_date_ymd] => 2025-03-16 17:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:40:06' and `end` < '2025-03-16 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-03-16 17:40:18] Production.INFO: count ==1345 [2025-03-16 17:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:40:06 - End Time 2025-03-16 17:40:06 [2025-03-16 17:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695075', 'tblTempUsageDetail_20' ) start [2025-03-16 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695075', 'tblTempUsageDetail_20' ) end [2025-03-16 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695075', 'tblTempVendorCDR_20' ) start [2025-03-16 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695075', 'tblTempVendorCDR_20' ) end [2025-03-16 17:40:18] Production.INFO: ProcessCDR(1,14695075,1,1,2) [2025-03-16 17:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695075', 'tblTempUsageDetail_20' ) start [2025-03-16 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695075', 'tblTempUsageDetail_20' ) end [2025-03-16 17:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:40:24] Production.INFO: ==1939== Releasing lock... [2025-03-16 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:40:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:41:05 [end_date_ymd] => 2025-03-16 17:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:41:05' and `end` < '2025-03-16 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-03-16 17:41:17] Production.INFO: count ==1331 [2025-03-16 17:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:41:05 - End Time 2025-03-16 17:41:05 [2025-03-16 17:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695080', 'tblTempUsageDetail_20' ) start [2025-03-16 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695080', 'tblTempUsageDetail_20' ) end [2025-03-16 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695080', 'tblTempVendorCDR_20' ) start [2025-03-16 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695080', 'tblTempVendorCDR_20' ) end [2025-03-16 17:41:18] Production.INFO: ProcessCDR(1,14695080,1,1,2) [2025-03-16 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695080', 'tblTempUsageDetail_20' ) start [2025-03-16 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695080', 'tblTempUsageDetail_20' ) end [2025-03-16 17:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:41:22] Production.INFO: ==2050== Releasing lock... [2025-03-16 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:41:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:42:05 [end_date_ymd] => 2025-03-16 17:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:42:05' and `end` < '2025-03-16 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-03-16 17:42:17] Production.INFO: count ==1332 [2025-03-16 17:42:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:42:05 - End Time 2025-03-16 17:42:05 [2025-03-16 17:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695085', 'tblTempUsageDetail_20' ) start [2025-03-16 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695085', 'tblTempUsageDetail_20' ) end [2025-03-16 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695085', 'tblTempVendorCDR_20' ) start [2025-03-16 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695085', 'tblTempVendorCDR_20' ) end [2025-03-16 17:42:17] Production.INFO: ProcessCDR(1,14695085,1,1,2) [2025-03-16 17:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695085', 'tblTempUsageDetail_20' ) start [2025-03-16 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695085', 'tblTempUsageDetail_20' ) end [2025-03-16 17:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:42:22] Production.INFO: ==2165== Releasing lock... [2025-03-16 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:42:22] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:43:05 [end_date_ymd] => 2025-03-16 17:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:43:05' and `end` < '2025-03-16 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-03-16 17:43:17] Production.INFO: count ==1332 [2025-03-16 17:43:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:43:05 - End Time 2025-03-16 17:43:05 [2025-03-16 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695090', 'tblTempUsageDetail_20' ) start [2025-03-16 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695090', 'tblTempUsageDetail_20' ) end [2025-03-16 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695090', 'tblTempVendorCDR_20' ) start [2025-03-16 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695090', 'tblTempVendorCDR_20' ) end [2025-03-16 17:43:18] Production.INFO: ProcessCDR(1,14695090,1,1,2) [2025-03-16 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695090', 'tblTempUsageDetail_20' ) start [2025-03-16 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695090', 'tblTempUsageDetail_20' ) end [2025-03-16 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:43:23] Production.INFO: ==2283== Releasing lock... [2025-03-16 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:43:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:44:05 [end_date_ymd] => 2025-03-16 17:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:44:05' and `end` < '2025-03-16 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-03-16 17:44:17] Production.INFO: count ==1333 [2025-03-16 17:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:44:05 - End Time 2025-03-16 17:44:05 [2025-03-16 17:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695095', 'tblTempUsageDetail_20' ) start [2025-03-16 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695095', 'tblTempUsageDetail_20' ) end [2025-03-16 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695095', 'tblTempVendorCDR_20' ) start [2025-03-16 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695095', 'tblTempVendorCDR_20' ) end [2025-03-16 17:44:18] Production.INFO: ProcessCDR(1,14695095,1,1,2) [2025-03-16 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695095', 'tblTempUsageDetail_20' ) start [2025-03-16 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695095', 'tblTempUsageDetail_20' ) end [2025-03-16 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:44:23] Production.INFO: ==2395== Releasing lock... [2025-03-16 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:44:23] Production.INFO: 38 MB #Memory Used# [2025-03-16 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:45:05 [end_date_ymd] => 2025-03-16 17:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:45:05' and `end` < '2025-03-16 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-03-16 17:45:17] Production.INFO: count ==1337 [2025-03-16 17:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:45:05 - End Time 2025-03-16 17:45:05 [2025-03-16 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695100', 'tblTempUsageDetail_20' ) start [2025-03-16 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695100', 'tblTempUsageDetail_20' ) end [2025-03-16 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695100', 'tblTempVendorCDR_20' ) start [2025-03-16 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695100', 'tblTempVendorCDR_20' ) end [2025-03-16 17:45:18] Production.INFO: ProcessCDR(1,14695100,1,1,2) [2025-03-16 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695100', 'tblTempUsageDetail_20' ) start [2025-03-16 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695100', 'tblTempUsageDetail_20' ) end [2025-03-16 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:45:22] Production.INFO: ==2508== Releasing lock... [2025-03-16 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:45:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-16 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:46:06 [end_date_ymd] => 2025-03-16 17:46:06 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:46:06' and `end` < '2025-03-16 17: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-03-16 17:46:18] Production.INFO: count ==1347 [2025-03-16 17:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:46:06 - End Time 2025-03-16 17:46:06 [2025-03-16 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695105', 'tblTempUsageDetail_20' ) start [2025-03-16 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695105', 'tblTempUsageDetail_20' ) end [2025-03-16 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695105', 'tblTempVendorCDR_20' ) start [2025-03-16 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695105', 'tblTempVendorCDR_20' ) end [2025-03-16 17:46:18] Production.INFO: ProcessCDR(1,14695105,1,1,2) [2025-03-16 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695105', 'tblTempUsageDetail_20' ) start [2025-03-16 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695105', 'tblTempUsageDetail_20' ) end [2025-03-16 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:46:23] Production.INFO: ==2620== Releasing lock... [2025-03-16 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:46:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:47:05 [end_date_ymd] => 2025-03-16 17:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:47:05' and `end` < '2025-03-16 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-03-16 17:47:18] Production.INFO: count ==1350 [2025-03-16 17:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:47:05 - End Time 2025-03-16 17:47:05 [2025-03-16 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695110', 'tblTempUsageDetail_20' ) start [2025-03-16 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695110', 'tblTempUsageDetail_20' ) end [2025-03-16 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695110', 'tblTempVendorCDR_20' ) start [2025-03-16 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695110', 'tblTempVendorCDR_20' ) end [2025-03-16 17:47:18] Production.INFO: ProcessCDR(1,14695110,1,1,2) [2025-03-16 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695110', 'tblTempUsageDetail_20' ) start [2025-03-16 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695110', 'tblTempUsageDetail_20' ) end [2025-03-16 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:47:23] Production.INFO: ==2731== Releasing lock... [2025-03-16 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:47:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:48:06 [end_date_ymd] => 2025-03-16 17:48:06 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:48:06' and `end` < '2025-03-16 17: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-03-16 17:48:18] Production.INFO: count ==1354 [2025-03-16 17:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:48:06 - End Time 2025-03-16 17:48:06 [2025-03-16 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695115', 'tblTempUsageDetail_20' ) start [2025-03-16 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695115', 'tblTempUsageDetail_20' ) end [2025-03-16 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695115', 'tblTempVendorCDR_20' ) start [2025-03-16 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695115', 'tblTempVendorCDR_20' ) end [2025-03-16 17:48:18] Production.INFO: ProcessCDR(1,14695115,1,1,2) [2025-03-16 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695115', 'tblTempUsageDetail_20' ) start [2025-03-16 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695115', 'tblTempUsageDetail_20' ) end [2025-03-16 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:48:23] Production.INFO: ==2849== Releasing lock... [2025-03-16 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:48:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:49:05 [end_date_ymd] => 2025-03-16 17:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:49:05' and `end` < '2025-03-16 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-03-16 17:49:17] Production.INFO: count ==1357 [2025-03-16 17:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:49:05 - End Time 2025-03-16 17:49:05 [2025-03-16 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695120', 'tblTempUsageDetail_20' ) start [2025-03-16 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695120', 'tblTempUsageDetail_20' ) end [2025-03-16 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695120', 'tblTempVendorCDR_20' ) start [2025-03-16 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695120', 'tblTempVendorCDR_20' ) end [2025-03-16 17:49:18] Production.INFO: ProcessCDR(1,14695120,1,1,2) [2025-03-16 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695120', 'tblTempUsageDetail_20' ) start [2025-03-16 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695120', 'tblTempUsageDetail_20' ) end [2025-03-16 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:49:23] Production.INFO: ==2963== Releasing lock... [2025-03-16 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:49:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:50:06 [end_date_ymd] => 2025-03-16 17:50:06 [RateCDR] => 1 ) [2025-03-16 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 14:50:06' and `end` < '2025-03-16 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 17:50:19] Production.INFO: count ==1366 [2025-03-16 17:50:19] Production.ERROR: pbx CDR StartTime 2025-03-16 14:50:06 - End Time 2025-03-16 17:50:06 [2025-03-16 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695126', 'tblTempUsageDetail_20' ) start [2025-03-16 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695126', 'tblTempUsageDetail_20' ) end [2025-03-16 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695126', 'tblTempVendorCDR_20' ) start [2025-03-16 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695126', 'tblTempVendorCDR_20' ) end [2025-03-16 17:50:19] Production.INFO: ProcessCDR(1,14695126,1,1,2) [2025-03-16 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695126', 'tblTempUsageDetail_20' ) start [2025-03-16 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695126', 'tblTempUsageDetail_20' ) end [2025-03-16 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:50:24] Production.INFO: ==3103== Releasing lock... [2025-03-16 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:50:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:51:05 [end_date_ymd] => 2025-03-16 17:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:51:05' and `end` < '2025-03-16 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-03-16 17:51:18] Production.INFO: count ==1405 [2025-03-16 17:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:51:05 - End Time 2025-03-16 17:51:05 [2025-03-16 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695131', 'tblTempUsageDetail_20' ) start [2025-03-16 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695131', 'tblTempUsageDetail_20' ) end [2025-03-16 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695131', 'tblTempVendorCDR_20' ) start [2025-03-16 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695131', 'tblTempVendorCDR_20' ) end [2025-03-16 17:51:18] Production.INFO: ProcessCDR(1,14695131,1,1,2) [2025-03-16 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695131', 'tblTempUsageDetail_20' ) start [2025-03-16 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695131', 'tblTempUsageDetail_20' ) end [2025-03-16 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:51:23] Production.INFO: ==3231== Releasing lock... [2025-03-16 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:51:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:52:05 [end_date_ymd] => 2025-03-16 17:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:52:05' and `end` < '2025-03-16 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-03-16 17:52:17] Production.INFO: count ==1409 [2025-03-16 17:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:52:05 - End Time 2025-03-16 17:52:05 [2025-03-16 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695136', 'tblTempUsageDetail_20' ) start [2025-03-16 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695136', 'tblTempUsageDetail_20' ) end [2025-03-16 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695136', 'tblTempVendorCDR_20' ) start [2025-03-16 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695136', 'tblTempVendorCDR_20' ) end [2025-03-16 17:52:18] Production.INFO: ProcessCDR(1,14695136,1,1,2) [2025-03-16 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695136', 'tblTempUsageDetail_20' ) start [2025-03-16 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695136', 'tblTempUsageDetail_20' ) end [2025-03-16 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:52:23] Production.INFO: ==3339== Releasing lock... [2025-03-16 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:52:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:53:05 [end_date_ymd] => 2025-03-16 17:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:53:05' and `end` < '2025-03-16 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-03-16 17:53:17] Production.INFO: count ==1416 [2025-03-16 17:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:53:05 - End Time 2025-03-16 17:53:05 [2025-03-16 17:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695141', 'tblTempUsageDetail_20' ) start [2025-03-16 17:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695141', 'tblTempUsageDetail_20' ) end [2025-03-16 17:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695141', 'tblTempVendorCDR_20' ) start [2025-03-16 17:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695141', 'tblTempVendorCDR_20' ) end [2025-03-16 17:53:17] Production.INFO: ProcessCDR(1,14695141,1,1,2) [2025-03-16 17:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695141', 'tblTempUsageDetail_20' ) start [2025-03-16 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695141', 'tblTempUsageDetail_20' ) end [2025-03-16 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:53:23] Production.INFO: ==3451== Releasing lock... [2025-03-16 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:53:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:54:05 [end_date_ymd] => 2025-03-16 17:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:54:05' and `end` < '2025-03-16 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-03-16 17:54:17] Production.INFO: count ==1418 [2025-03-16 17:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:54:05 - End Time 2025-03-16 17:54:05 [2025-03-16 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695146', 'tblTempUsageDetail_20' ) start [2025-03-16 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695146', 'tblTempUsageDetail_20' ) end [2025-03-16 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695146', 'tblTempVendorCDR_20' ) start [2025-03-16 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695146', 'tblTempVendorCDR_20' ) end [2025-03-16 17:54:18] Production.INFO: ProcessCDR(1,14695146,1,1,2) [2025-03-16 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695146', 'tblTempUsageDetail_20' ) start [2025-03-16 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695146', 'tblTempUsageDetail_20' ) end [2025-03-16 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:54:23] Production.INFO: ==3573== Releasing lock... [2025-03-16 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:54:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:55:05 [end_date_ymd] => 2025-03-16 17:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:55:05' and `end` < '2025-03-16 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-03-16 17:55:17] Production.INFO: count ==1419 [2025-03-16 17:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:55:05 - End Time 2025-03-16 17:55:05 [2025-03-16 17:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695151', 'tblTempUsageDetail_20' ) start [2025-03-16 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695151', 'tblTempUsageDetail_20' ) end [2025-03-16 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695151', 'tblTempVendorCDR_20' ) start [2025-03-16 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695151', 'tblTempVendorCDR_20' ) end [2025-03-16 17:55:17] Production.INFO: ProcessCDR(1,14695151,1,1,2) [2025-03-16 17:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695151', 'tblTempUsageDetail_20' ) start [2025-03-16 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695151', 'tblTempUsageDetail_20' ) end [2025-03-16 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:55:23] Production.INFO: ==3683== Releasing lock... [2025-03-16 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:55:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:56:05 [end_date_ymd] => 2025-03-16 17:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:56:05' and `end` < '2025-03-16 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-03-16 17:56:17] Production.INFO: count ==1419 [2025-03-16 17:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:56:05 - End Time 2025-03-16 17:56:05 [2025-03-16 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695156', 'tblTempUsageDetail_20' ) start [2025-03-16 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695156', 'tblTempUsageDetail_20' ) end [2025-03-16 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695156', 'tblTempVendorCDR_20' ) start [2025-03-16 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695156', 'tblTempVendorCDR_20' ) end [2025-03-16 17:56:18] Production.INFO: ProcessCDR(1,14695156,1,1,2) [2025-03-16 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695156', 'tblTempUsageDetail_20' ) start [2025-03-16 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695156', 'tblTempUsageDetail_20' ) end [2025-03-16 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:56:23] Production.INFO: ==3797== Releasing lock... [2025-03-16 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:56:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:57:05 [end_date_ymd] => 2025-03-16 17:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:57:05' and `end` < '2025-03-16 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-03-16 17:57:18] Production.INFO: count ==1433 [2025-03-16 17:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 14:57:05 - End Time 2025-03-16 17:57:05 [2025-03-16 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695161', 'tblTempUsageDetail_20' ) start [2025-03-16 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695161', 'tblTempUsageDetail_20' ) end [2025-03-16 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695161', 'tblTempVendorCDR_20' ) start [2025-03-16 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695161', 'tblTempVendorCDR_20' ) end [2025-03-16 17:57:18] Production.INFO: ProcessCDR(1,14695161,1,1,2) [2025-03-16 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695161', 'tblTempUsageDetail_20' ) start [2025-03-16 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695161', 'tblTempUsageDetail_20' ) end [2025-03-16 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:57:23] Production.INFO: ==3907== Releasing lock... [2025-03-16 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:57:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:58:05 [end_date_ymd] => 2025-03-16 17:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 14:58:05' and `end` < '2025-03-16 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-03-16 17:58:17] Production.INFO: count ==1436 [2025-03-16 17:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 14:58:05 - End Time 2025-03-16 17:58:05 [2025-03-16 17:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695166', 'tblTempUsageDetail_20' ) start [2025-03-16 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695166', 'tblTempUsageDetail_20' ) end [2025-03-16 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695166', 'tblTempVendorCDR_20' ) start [2025-03-16 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695166', 'tblTempVendorCDR_20' ) end [2025-03-16 17:58:17] Production.INFO: ProcessCDR(1,14695166,1,1,2) [2025-03-16 17:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695166', 'tblTempUsageDetail_20' ) start [2025-03-16 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695166', 'tblTempUsageDetail_20' ) end [2025-03-16 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:58:22] Production.INFO: ==3991== Releasing lock... [2025-03-16 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:58:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 14:59:06 [end_date_ymd] => 2025-03-16 17:59:06 [RateCDR] => 1 ) [2025-03-16 17: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-03-16 14:59:06' and `end` < '2025-03-16 17: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-03-16 17:59:18] Production.INFO: count ==1447 [2025-03-16 17:59:19] Production.ERROR: pbx CDR StartTime 2025-03-16 14:59:06 - End Time 2025-03-16 17:59:06 [2025-03-16 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695171', 'tblTempUsageDetail_20' ) start [2025-03-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695171', 'tblTempUsageDetail_20' ) end [2025-03-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695171', 'tblTempVendorCDR_20' ) start [2025-03-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695171', 'tblTempVendorCDR_20' ) end [2025-03-16 17:59:19] Production.INFO: ProcessCDR(1,14695171,1,1,2) [2025-03-16 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695171', 'tblTempUsageDetail_20' ) start [2025-03-16 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695171', 'tblTempUsageDetail_20' ) end [2025-03-16 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 17:59:24] Production.INFO: ==4077== Releasing lock... [2025-03-16 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 17:59:24] Production.INFO: 39 MB #Memory Used# [2025-03-16 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:00:05 [end_date_ymd] => 2025-03-16 18:00:05 [RateCDR] => 1 ) [2025-03-16 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:00:05' and `end` < '2025-03-16 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:00:18] Production.INFO: count ==1426 [2025-03-16 18:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:00:05 - End Time 2025-03-16 18:00:05 [2025-03-16 18:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695177', 'tblTempUsageDetail_20' ) start [2025-03-16 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695177', 'tblTempUsageDetail_20' ) end [2025-03-16 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695177', 'tblTempVendorCDR_20' ) start [2025-03-16 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695177', 'tblTempVendorCDR_20' ) end [2025-03-16 18:00:18] Production.INFO: ProcessCDR(1,14695177,1,1,2) [2025-03-16 18:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695177', 'tblTempUsageDetail_20' ) start [2025-03-16 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695177', 'tblTempUsageDetail_20' ) end [2025-03-16 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:00:24] Production.INFO: ==4168== Releasing lock... [2025-03-16 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:00:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:01:05 [end_date_ymd] => 2025-03-16 18:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:01:05' and `end` < '2025-03-16 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-03-16 18:01:17] Production.INFO: count ==1446 [2025-03-16 18:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:01:05 - End Time 2025-03-16 18:01:05 [2025-03-16 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695182', 'tblTempUsageDetail_20' ) start [2025-03-16 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695182', 'tblTempUsageDetail_20' ) end [2025-03-16 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695182', 'tblTempVendorCDR_20' ) start [2025-03-16 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695182', 'tblTempVendorCDR_20' ) end [2025-03-16 18:01:18] Production.INFO: ProcessCDR(1,14695182,1,1,2) [2025-03-16 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695182', 'tblTempUsageDetail_20' ) start [2025-03-16 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695182', 'tblTempUsageDetail_20' ) end [2025-03-16 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:01:23] Production.INFO: ==4267== Releasing lock... [2025-03-16 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:01:23] Production.INFO: 39 MB #Memory Used# [2025-03-16 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:02:05 [end_date_ymd] => 2025-03-16 18:02:05 [RateCDR] => 1 ) [2025-03-16 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:02:05' and `end` < '2025-03-16 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:02:17] Production.INFO: count ==1452 [2025-03-16 18:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:02:05 - End Time 2025-03-16 18:02:05 [2025-03-16 18:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695187', 'tblTempUsageDetail_20' ) start [2025-03-16 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695187', 'tblTempUsageDetail_20' ) end [2025-03-16 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695187', 'tblTempVendorCDR_20' ) start [2025-03-16 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695187', 'tblTempVendorCDR_20' ) end [2025-03-16 18:02:18] Production.INFO: ProcessCDR(1,14695187,1,1,2) [2025-03-16 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695187', 'tblTempUsageDetail_20' ) start [2025-03-16 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695187', 'tblTempUsageDetail_20' ) end [2025-03-16 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:02:22] Production.INFO: ==4352== Releasing lock... [2025-03-16 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:02:22] Production.INFO: 39 MB #Memory Used# [2025-03-16 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:03:05 [end_date_ymd] => 2025-03-16 18:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:03:05' and `end` < '2025-03-16 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-03-16 18:03:18] Production.INFO: count ==1456 [2025-03-16 18:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:03:05 - End Time 2025-03-16 18:03:05 [2025-03-16 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695192', 'tblTempUsageDetail_20' ) start [2025-03-16 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695192', 'tblTempUsageDetail_20' ) end [2025-03-16 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695192', 'tblTempVendorCDR_20' ) start [2025-03-16 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695192', 'tblTempVendorCDR_20' ) end [2025-03-16 18:03:18] Production.INFO: ProcessCDR(1,14695192,1,1,2) [2025-03-16 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695192', 'tblTempUsageDetail_20' ) start [2025-03-16 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695192', 'tblTempUsageDetail_20' ) end [2025-03-16 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:03:23] Production.INFO: ==4436== Releasing lock... [2025-03-16 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:03:23] Production.INFO: 39 MB #Memory Used# [2025-03-16 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:04:04 [end_date_ymd] => 2025-03-16 18:04:04 [RateCDR] => 1 ) [2025-03-16 18: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-03-16 15:04:04' and `end` < '2025-03-16 18: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-03-16 18:04:17] Production.INFO: count ==1464 [2025-03-16 18:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:04:04 - End Time 2025-03-16 18:04:04 [2025-03-16 18:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695197', 'tblTempUsageDetail_20' ) start [2025-03-16 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695197', 'tblTempUsageDetail_20' ) end [2025-03-16 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695197', 'tblTempVendorCDR_20' ) start [2025-03-16 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695197', 'tblTempVendorCDR_20' ) end [2025-03-16 18:04:17] Production.INFO: ProcessCDR(1,14695197,1,1,2) [2025-03-16 18:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695197', 'tblTempUsageDetail_20' ) start [2025-03-16 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695197', 'tblTempUsageDetail_20' ) end [2025-03-16 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:04:22] Production.INFO: ==4519== Releasing lock... [2025-03-16 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:04:22] Production.INFO: 39 MB #Memory Used# [2025-03-16 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:05:05 [end_date_ymd] => 2025-03-16 18:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:05:05' and `end` < '2025-03-16 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-03-16 18:05:17] Production.INFO: count ==1470 [2025-03-16 18:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:05:05 - End Time 2025-03-16 18:05:05 [2025-03-16 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695202', 'tblTempUsageDetail_20' ) start [2025-03-16 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695202', 'tblTempUsageDetail_20' ) end [2025-03-16 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695202', 'tblTempVendorCDR_20' ) start [2025-03-16 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695202', 'tblTempVendorCDR_20' ) end [2025-03-16 18:05:18] Production.INFO: ProcessCDR(1,14695202,1,1,2) [2025-03-16 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695202', 'tblTempUsageDetail_20' ) start [2025-03-16 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695202', 'tblTempUsageDetail_20' ) end [2025-03-16 18:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:05:23] Production.INFO: ==4605== Releasing lock... [2025-03-16 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:05:23] Production.INFO: 39 MB #Memory Used# [2025-03-16 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:06:05 [end_date_ymd] => 2025-03-16 18:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:06:05' and `end` < '2025-03-16 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-03-16 18:06:17] Production.INFO: count ==1471 [2025-03-16 18:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:06:05 - End Time 2025-03-16 18:06:05 [2025-03-16 18:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695207', 'tblTempUsageDetail_20' ) start [2025-03-16 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695207', 'tblTempUsageDetail_20' ) end [2025-03-16 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695207', 'tblTempVendorCDR_20' ) start [2025-03-16 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695207', 'tblTempVendorCDR_20' ) end [2025-03-16 18:06:17] Production.INFO: ProcessCDR(1,14695207,1,1,2) [2025-03-16 18:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695207', 'tblTempUsageDetail_20' ) start [2025-03-16 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695207', 'tblTempUsageDetail_20' ) end [2025-03-16 18:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:06:22] Production.INFO: ==4726== Releasing lock... [2025-03-16 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:06:22] Production.INFO: 39 MB #Memory Used# [2025-03-16 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:07:05 [end_date_ymd] => 2025-03-16 18:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:07:05' and `end` < '2025-03-16 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-03-16 18:07:17] Production.INFO: count ==1474 [2025-03-16 18:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:07:05 - End Time 2025-03-16 18:07:05 [2025-03-16 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695212', 'tblTempUsageDetail_20' ) start [2025-03-16 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695212', 'tblTempUsageDetail_20' ) end [2025-03-16 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695212', 'tblTempVendorCDR_20' ) start [2025-03-16 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695212', 'tblTempVendorCDR_20' ) end [2025-03-16 18:07:18] Production.INFO: ProcessCDR(1,14695212,1,1,2) [2025-03-16 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695212', 'tblTempUsageDetail_20' ) start [2025-03-16 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695212', 'tblTempUsageDetail_20' ) end [2025-03-16 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:07:22] Production.INFO: ==4807== Releasing lock... [2025-03-16 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:08:06 [end_date_ymd] => 2025-03-16 18:08:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:08:06' and `end` < '2025-03-16 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-03-16 18:08:18] Production.INFO: count ==1484 [2025-03-16 18:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:08:06 - End Time 2025-03-16 18:08:06 [2025-03-16 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695217', 'tblTempUsageDetail_20' ) start [2025-03-16 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695217', 'tblTempUsageDetail_20' ) end [2025-03-16 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695217', 'tblTempVendorCDR_20' ) start [2025-03-16 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695217', 'tblTempVendorCDR_20' ) end [2025-03-16 18:08:18] Production.INFO: ProcessCDR(1,14695217,1,1,2) [2025-03-16 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695217', 'tblTempUsageDetail_20' ) start [2025-03-16 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695217', 'tblTempUsageDetail_20' ) end [2025-03-16 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:08:23] Production.INFO: ==4888== Releasing lock... [2025-03-16 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:08:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:09:05 [end_date_ymd] => 2025-03-16 18:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:09:05' and `end` < '2025-03-16 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-03-16 18:09:17] Production.INFO: count ==1495 [2025-03-16 18:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:09:05 - End Time 2025-03-16 18:09:05 [2025-03-16 18:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695222', 'tblTempUsageDetail_20' ) start [2025-03-16 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695222', 'tblTempUsageDetail_20' ) end [2025-03-16 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695222', 'tblTempVendorCDR_20' ) start [2025-03-16 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695222', 'tblTempVendorCDR_20' ) end [2025-03-16 18:09:17] Production.INFO: ProcessCDR(1,14695222,1,1,2) [2025-03-16 18:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695222', 'tblTempUsageDetail_20' ) start [2025-03-16 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695222', 'tblTempUsageDetail_20' ) end [2025-03-16 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:09:22] Production.INFO: ==4970== Releasing lock... [2025-03-16 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:09:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:10:06 [end_date_ymd] => 2025-03-16 18:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:10:06' and `end` < '2025-03-16 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-03-16 18:10:18] Production.INFO: count ==1498 [2025-03-16 18:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:10:06 - End Time 2025-03-16 18:10:06 [2025-03-16 18:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695227', 'tblTempUsageDetail_20' ) start [2025-03-16 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695227', 'tblTempUsageDetail_20' ) end [2025-03-16 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695227', 'tblTempVendorCDR_20' ) start [2025-03-16 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695227', 'tblTempVendorCDR_20' ) end [2025-03-16 18:10:19] Production.INFO: ProcessCDR(1,14695227,1,1,2) [2025-03-16 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695227', 'tblTempUsageDetail_20' ) start [2025-03-16 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695227', 'tblTempUsageDetail_20' ) end [2025-03-16 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:10:24] Production.INFO: ==5055== Releasing lock... [2025-03-16 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:10:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:11:05 [end_date_ymd] => 2025-03-16 18:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:11:05' and `end` < '2025-03-16 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-03-16 18:11:17] Production.INFO: count ==1531 [2025-03-16 18:11:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:11:05 - End Time 2025-03-16 18:11:05 [2025-03-16 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695233', 'tblTempUsageDetail_20' ) start [2025-03-16 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695233', 'tblTempUsageDetail_20' ) end [2025-03-16 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695233', 'tblTempVendorCDR_20' ) start [2025-03-16 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695233', 'tblTempVendorCDR_20' ) end [2025-03-16 18:11:18] Production.INFO: ProcessCDR(1,14695233,1,1,2) [2025-03-16 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695233', 'tblTempUsageDetail_20' ) start [2025-03-16 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695233', 'tblTempUsageDetail_20' ) end [2025-03-16 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:11:23] Production.INFO: ==5132== Releasing lock... [2025-03-16 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:11:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:12:05 [end_date_ymd] => 2025-03-16 18:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:12:05' and `end` < '2025-03-16 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-03-16 18:12:18] Production.INFO: count ==1532 [2025-03-16 18:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:12:05 - End Time 2025-03-16 18:12:05 [2025-03-16 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695238', 'tblTempUsageDetail_20' ) start [2025-03-16 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695238', 'tblTempUsageDetail_20' ) end [2025-03-16 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695238', 'tblTempVendorCDR_20' ) start [2025-03-16 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695238', 'tblTempVendorCDR_20' ) end [2025-03-16 18:12:18] Production.INFO: ProcessCDR(1,14695238,1,1,2) [2025-03-16 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695238', 'tblTempUsageDetail_20' ) start [2025-03-16 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695238', 'tblTempUsageDetail_20' ) end [2025-03-16 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:12:23] Production.INFO: ==5210== Releasing lock... [2025-03-16 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:12:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:13:04 [end_date_ymd] => 2025-03-16 18:13:04 [RateCDR] => 1 ) [2025-03-16 18: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-03-16 15:13:04' and `end` < '2025-03-16 18: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-03-16 18:13:17] Production.INFO: count ==1533 [2025-03-16 18:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:13:04 - End Time 2025-03-16 18:13:04 [2025-03-16 18:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695243', 'tblTempUsageDetail_20' ) start [2025-03-16 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695243', 'tblTempUsageDetail_20' ) end [2025-03-16 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695243', 'tblTempVendorCDR_20' ) start [2025-03-16 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695243', 'tblTempVendorCDR_20' ) end [2025-03-16 18:13:17] Production.INFO: ProcessCDR(1,14695243,1,1,2) [2025-03-16 18:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695243', 'tblTempUsageDetail_20' ) start [2025-03-16 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695243', 'tblTempUsageDetail_20' ) end [2025-03-16 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:13:22] Production.INFO: ==5284== Releasing lock... [2025-03-16 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:14:05 [end_date_ymd] => 2025-03-16 18:14:05 [RateCDR] => 1 ) [2025-03-16 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:14:05' and `end` < '2025-03-16 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:14:17] Production.INFO: count ==1539 [2025-03-16 18:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:14:05 - End Time 2025-03-16 18:14:05 [2025-03-16 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695248', 'tblTempUsageDetail_20' ) start [2025-03-16 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695248', 'tblTempUsageDetail_20' ) end [2025-03-16 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695248', 'tblTempVendorCDR_20' ) start [2025-03-16 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695248', 'tblTempVendorCDR_20' ) end [2025-03-16 18:14:18] Production.INFO: ProcessCDR(1,14695248,1,1,2) [2025-03-16 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695248', 'tblTempUsageDetail_20' ) start [2025-03-16 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695248', 'tblTempUsageDetail_20' ) end [2025-03-16 18:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:14:22] Production.INFO: ==5362== Releasing lock... [2025-03-16 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:14:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:15:05 [end_date_ymd] => 2025-03-16 18:15:05 [RateCDR] => 1 ) [2025-03-16 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:15:05' and `end` < '2025-03-16 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:15:17] Production.INFO: count ==1541 [2025-03-16 18:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:15:05 - End Time 2025-03-16 18:15:05 [2025-03-16 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695253', 'tblTempUsageDetail_20' ) start [2025-03-16 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695253', 'tblTempUsageDetail_20' ) end [2025-03-16 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695253', 'tblTempVendorCDR_20' ) start [2025-03-16 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695253', 'tblTempVendorCDR_20' ) end [2025-03-16 18:15:18] Production.INFO: ProcessCDR(1,14695253,1,1,2) [2025-03-16 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695253', 'tblTempUsageDetail_20' ) start [2025-03-16 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695253', 'tblTempUsageDetail_20' ) end [2025-03-16 18:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:15:21] Production.INFO: ==5438== Releasing lock... [2025-03-16 18:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:15:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:16:05 [end_date_ymd] => 2025-03-16 18:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:16:05' and `end` < '2025-03-16 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-03-16 18:16:17] Production.INFO: count ==1539 [2025-03-16 18:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:16:05 - End Time 2025-03-16 18:16:05 [2025-03-16 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695258', 'tblTempUsageDetail_20' ) start [2025-03-16 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695258', 'tblTempUsageDetail_20' ) end [2025-03-16 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695258', 'tblTempVendorCDR_20' ) start [2025-03-16 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695258', 'tblTempVendorCDR_20' ) end [2025-03-16 18:16:18] Production.INFO: ProcessCDR(1,14695258,1,1,2) [2025-03-16 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695258', 'tblTempUsageDetail_20' ) start [2025-03-16 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695258', 'tblTempUsageDetail_20' ) end [2025-03-16 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:16:22] Production.INFO: ==5535== Releasing lock... [2025-03-16 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:17:05 [end_date_ymd] => 2025-03-16 18:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:17:05' and `end` < '2025-03-16 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-03-16 18:17:17] Production.INFO: count ==1542 [2025-03-16 18:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:17:05 - End Time 2025-03-16 18:17:05 [2025-03-16 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695263', 'tblTempUsageDetail_20' ) start [2025-03-16 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695263', 'tblTempUsageDetail_20' ) end [2025-03-16 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695263', 'tblTempVendorCDR_20' ) start [2025-03-16 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695263', 'tblTempVendorCDR_20' ) end [2025-03-16 18:17:18] Production.INFO: ProcessCDR(1,14695263,1,1,2) [2025-03-16 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695263', 'tblTempUsageDetail_20' ) start [2025-03-16 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695263', 'tblTempUsageDetail_20' ) end [2025-03-16 18:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:17:23] Production.INFO: ==5649== Releasing lock... [2025-03-16 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:17:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:18:05 [end_date_ymd] => 2025-03-16 18:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:18:05' and `end` < '2025-03-16 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-03-16 18:18:17] Production.INFO: count ==1545 [2025-03-16 18:18:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:18:05 - End Time 2025-03-16 18:18:05 [2025-03-16 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695268', 'tblTempUsageDetail_20' ) start [2025-03-16 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695268', 'tblTempUsageDetail_20' ) end [2025-03-16 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695268', 'tblTempVendorCDR_20' ) start [2025-03-16 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695268', 'tblTempVendorCDR_20' ) end [2025-03-16 18:18:18] Production.INFO: ProcessCDR(1,14695268,1,1,2) [2025-03-16 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695268', 'tblTempUsageDetail_20' ) start [2025-03-16 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695268', 'tblTempUsageDetail_20' ) end [2025-03-16 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:18:23] Production.INFO: ==5763== Releasing lock... [2025-03-16 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:18:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:19:05 [end_date_ymd] => 2025-03-16 18:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:19:05' and `end` < '2025-03-16 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-03-16 18:19:17] Production.INFO: count ==1546 [2025-03-16 18:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:19:05 - End Time 2025-03-16 18:19:05 [2025-03-16 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695273', 'tblTempUsageDetail_20' ) start [2025-03-16 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695273', 'tblTempUsageDetail_20' ) end [2025-03-16 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695273', 'tblTempVendorCDR_20' ) start [2025-03-16 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695273', 'tblTempVendorCDR_20' ) end [2025-03-16 18:19:18] Production.INFO: ProcessCDR(1,14695273,1,1,2) [2025-03-16 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695273', 'tblTempUsageDetail_20' ) start [2025-03-16 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695273', 'tblTempUsageDetail_20' ) end [2025-03-16 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:19:23] Production.INFO: ==5881== Releasing lock... [2025-03-16 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:19:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:20:05 [end_date_ymd] => 2025-03-16 18:20:05 [RateCDR] => 1 ) [2025-03-16 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:20:05' and `end` < '2025-03-16 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:20:18] Production.INFO: count ==1547 [2025-03-16 18:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:20:05 - End Time 2025-03-16 18:20:05 [2025-03-16 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695279', 'tblTempUsageDetail_20' ) start [2025-03-16 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695279', 'tblTempUsageDetail_20' ) end [2025-03-16 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695279', 'tblTempVendorCDR_20' ) start [2025-03-16 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695279', 'tblTempVendorCDR_20' ) end [2025-03-16 18:20:18] Production.INFO: ProcessCDR(1,14695279,1,1,2) [2025-03-16 18:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695279', 'tblTempUsageDetail_20' ) start [2025-03-16 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695279', 'tblTempUsageDetail_20' ) end [2025-03-16 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:20:23] Production.INFO: ==5997== Releasing lock... [2025-03-16 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:20:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:21:05 [end_date_ymd] => 2025-03-16 18:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:21:05' and `end` < '2025-03-16 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-03-16 18:21:17] Production.INFO: count ==1541 [2025-03-16 18:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:21:05 - End Time 2025-03-16 18:21:05 [2025-03-16 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695284', 'tblTempUsageDetail_20' ) start [2025-03-16 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695284', 'tblTempUsageDetail_20' ) end [2025-03-16 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695284', 'tblTempVendorCDR_20' ) start [2025-03-16 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695284', 'tblTempVendorCDR_20' ) end [2025-03-16 18:21:18] Production.INFO: ProcessCDR(1,14695284,1,1,2) [2025-03-16 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695284', 'tblTempUsageDetail_20' ) start [2025-03-16 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695284', 'tblTempUsageDetail_20' ) end [2025-03-16 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:21:23] Production.INFO: ==6151== Releasing lock... [2025-03-16 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:21:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:22:05 [end_date_ymd] => 2025-03-16 18:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:22:05' and `end` < '2025-03-16 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-03-16 18:22:17] Production.INFO: count ==1544 [2025-03-16 18:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:22:05 - End Time 2025-03-16 18:22:05 [2025-03-16 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695289', 'tblTempUsageDetail_20' ) start [2025-03-16 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695289', 'tblTempUsageDetail_20' ) end [2025-03-16 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695289', 'tblTempVendorCDR_20' ) start [2025-03-16 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695289', 'tblTempVendorCDR_20' ) end [2025-03-16 18:22:18] Production.INFO: ProcessCDR(1,14695289,1,1,2) [2025-03-16 18:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695289', 'tblTempUsageDetail_20' ) start [2025-03-16 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695289', 'tblTempUsageDetail_20' ) end [2025-03-16 18:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:22:23] Production.INFO: ==6262== Releasing lock... [2025-03-16 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:22:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:23:05 [end_date_ymd] => 2025-03-16 18:23:05 [RateCDR] => 1 ) [2025-03-16 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:23:05' and `end` < '2025-03-16 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:23:17] Production.INFO: count ==1545 [2025-03-16 18:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:23:05 - End Time 2025-03-16 18:23:05 [2025-03-16 18:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695294', 'tblTempUsageDetail_20' ) start [2025-03-16 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695294', 'tblTempUsageDetail_20' ) end [2025-03-16 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695294', 'tblTempVendorCDR_20' ) start [2025-03-16 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695294', 'tblTempVendorCDR_20' ) end [2025-03-16 18:23:17] Production.INFO: ProcessCDR(1,14695294,1,1,2) [2025-03-16 18:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695294', 'tblTempUsageDetail_20' ) start [2025-03-16 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695294', 'tblTempUsageDetail_20' ) end [2025-03-16 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:23:22] Production.INFO: ==6376== Releasing lock... [2025-03-16 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:23:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:24:06 [end_date_ymd] => 2025-03-16 18:24:06 [RateCDR] => 1 ) [2025-03-16 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:24:06' and `end` < '2025-03-16 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:24:18] Production.INFO: count ==1545 [2025-03-16 18:24:19] Production.ERROR: pbx CDR StartTime 2025-03-16 15:24:06 - End Time 2025-03-16 18:24:06 [2025-03-16 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695299', 'tblTempUsageDetail_20' ) start [2025-03-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695299', 'tblTempUsageDetail_20' ) end [2025-03-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695299', 'tblTempVendorCDR_20' ) start [2025-03-16 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695299', 'tblTempVendorCDR_20' ) end [2025-03-16 18:24:19] Production.INFO: ProcessCDR(1,14695299,1,1,2) [2025-03-16 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695299', 'tblTempUsageDetail_20' ) start [2025-03-16 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695299', 'tblTempUsageDetail_20' ) end [2025-03-16 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:24:23] Production.INFO: ==6490== Releasing lock... [2025-03-16 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:24:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:25:05 [end_date_ymd] => 2025-03-16 18:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:25:05' and `end` < '2025-03-16 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-03-16 18:25:17] Production.INFO: count ==1556 [2025-03-16 18:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:25:05 - End Time 2025-03-16 18:25:05 [2025-03-16 18:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695304', 'tblTempUsageDetail_20' ) start [2025-03-16 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695304', 'tblTempUsageDetail_20' ) end [2025-03-16 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695304', 'tblTempVendorCDR_20' ) start [2025-03-16 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695304', 'tblTempVendorCDR_20' ) end [2025-03-16 18:25:18] Production.INFO: ProcessCDR(1,14695304,1,1,2) [2025-03-16 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695304', 'tblTempUsageDetail_20' ) start [2025-03-16 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695304', 'tblTempUsageDetail_20' ) end [2025-03-16 18:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:25:22] Production.INFO: ==6606== Releasing lock... [2025-03-16 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:25:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 18:26:15] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:26:15 [end_date_ymd] => 2025-03-16 18:26:15 [RateCDR] => 1 ) [2025-03-16 18:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:26:15' and `end` < '2025-03-16 18:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:26:28] Production.INFO: count ==1570 [2025-03-16 18:26:33] Production.ERROR: pbx CDR StartTime 2025-03-16 15:26:15 - End Time 2025-03-16 18:26:15 [2025-03-16 18:26:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695309', 'tblTempUsageDetail_20' ) start [2025-03-16 18:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695309', 'tblTempUsageDetail_20' ) end [2025-03-16 18:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695309', 'tblTempVendorCDR_20' ) start [2025-03-16 18:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695309', 'tblTempVendorCDR_20' ) end [2025-03-16 18:26:38] Production.INFO: ProcessCDR(1,14695309,1,1,2) [2025-03-16 18:26:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:26:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:26:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695309', 'tblTempUsageDetail_20' ) start [2025-03-16 18:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695309', 'tblTempUsageDetail_20' ) end [2025-03-16 18:27:41] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:27:41] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:27:41] Production.INFO: ==6726== Releasing lock... [2025-03-16 18:27:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:27:41] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:28:15] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:28:15 [end_date_ymd] => 2025-03-16 18:28:15 [RateCDR] => 1 ) [2025-03-16 18:28:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:28:15' and `end` < '2025-03-16 18:28:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:28:27] Production.INFO: count ==1570 [2025-03-16 18:28:34] Production.ERROR: pbx CDR StartTime 2025-03-16 15:28:15 - End Time 2025-03-16 18:28:15 [2025-03-16 18:28:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695317', 'tblTempUsageDetail_20' ) start [2025-03-16 18:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695317', 'tblTempUsageDetail_20' ) end [2025-03-16 18:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695317', 'tblTempVendorCDR_20' ) start [2025-03-16 18:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695317', 'tblTempVendorCDR_20' ) end [2025-03-16 18:28:37] Production.INFO: ProcessCDR(1,14695317,1,1,2) [2025-03-16 18:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:28:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:28:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:29:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:29:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695317', 'tblTempUsageDetail_20' ) start [2025-03-16 18:29:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695317', 'tblTempUsageDetail_20' ) end [2025-03-16 18:29:04] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:29:04] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:29:08] Production.INFO: ==6920== Releasing lock... [2025-03-16 18:29:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:29:08] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:30:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:30:20 [end_date_ymd] => 2025-03-16 18:30:20 [RateCDR] => 1 ) [2025-03-16 18:30:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:30:20' and `end` < '2025-03-16 18:30:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:30:32] Production.INFO: count ==1572 [2025-03-16 18:30:45] Production.ERROR: pbx CDR StartTime 2025-03-16 15:30:20 - End Time 2025-03-16 18:30:20 [2025-03-16 18:30:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:30:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695326', 'tblTempUsageDetail_20' ) start [2025-03-16 18:30:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695326', 'tblTempUsageDetail_20' ) end [2025-03-16 18:30:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695326', 'tblTempVendorCDR_20' ) start [2025-03-16 18:30:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695326', 'tblTempVendorCDR_20' ) end [2025-03-16 18:30:51] Production.INFO: ProcessCDR(1,14695326,1,1,2) [2025-03-16 18:30:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:31:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:31:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695326', 'tblTempUsageDetail_20' ) start [2025-03-16 18:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695326', 'tblTempUsageDetail_20' ) end [2025-03-16 18:31:37] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:31:37] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:31:45] Production.INFO: ==7065== Releasing lock... [2025-03-16 18:31:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:31:45] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:32:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:32:22 [end_date_ymd] => 2025-03-16 18:32:22 [RateCDR] => 1 ) [2025-03-16 18: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-03-16 15:32:22' and `end` < '2025-03-16 18: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-03-16 18:32:34] Production.INFO: count ==1572 [2025-03-16 18:32:35] Production.ERROR: pbx CDR StartTime 2025-03-16 15:32:22 - End Time 2025-03-16 18:32:22 [2025-03-16 18:32:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695333', 'tblTempUsageDetail_20' ) start [2025-03-16 18:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695333', 'tblTempUsageDetail_20' ) end [2025-03-16 18:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695333', 'tblTempVendorCDR_20' ) start [2025-03-16 18:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695333', 'tblTempVendorCDR_20' ) end [2025-03-16 18:32:35] Production.INFO: ProcessCDR(1,14695333,1,1,2) [2025-03-16 18:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:32:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:32:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:32:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:32:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695333', 'tblTempUsageDetail_20' ) start [2025-03-16 18:32:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695333', 'tblTempUsageDetail_20' ) end [2025-03-16 18:32:39] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:32:40] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:32:40] Production.INFO: ==7207== Releasing lock... [2025-03-16 18:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:32:40] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:33:05 [end_date_ymd] => 2025-03-16 18:33:05 [RateCDR] => 1 ) [2025-03-16 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:33:05' and `end` < '2025-03-16 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:33:18] Production.INFO: count ==1565 [2025-03-16 18:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:33:05 - End Time 2025-03-16 18:33:05 [2025-03-16 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695338', 'tblTempUsageDetail_20' ) start [2025-03-16 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695338', 'tblTempUsageDetail_20' ) end [2025-03-16 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695338', 'tblTempVendorCDR_20' ) start [2025-03-16 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695338', 'tblTempVendorCDR_20' ) end [2025-03-16 18:33:18] Production.INFO: ProcessCDR(1,14695338,1,1,2) [2025-03-16 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695338', 'tblTempUsageDetail_20' ) start [2025-03-16 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695338', 'tblTempUsageDetail_20' ) end [2025-03-16 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:33:22] Production.INFO: ==7276== Releasing lock... [2025-03-16 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:34:05 [end_date_ymd] => 2025-03-16 18:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:34:05' and `end` < '2025-03-16 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-03-16 18:34:17] Production.INFO: count ==1565 [2025-03-16 18:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:34:05 - End Time 2025-03-16 18:34:05 [2025-03-16 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695343', 'tblTempUsageDetail_20' ) start [2025-03-16 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695343', 'tblTempUsageDetail_20' ) end [2025-03-16 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695343', 'tblTempVendorCDR_20' ) start [2025-03-16 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695343', 'tblTempVendorCDR_20' ) end [2025-03-16 18:34:18] Production.INFO: ProcessCDR(1,14695343,1,1,2) [2025-03-16 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695343', 'tblTempUsageDetail_20' ) start [2025-03-16 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695343', 'tblTempUsageDetail_20' ) end [2025-03-16 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:34:23] Production.INFO: ==7359== Releasing lock... [2025-03-16 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:35:05 [end_date_ymd] => 2025-03-16 18:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:35:05' and `end` < '2025-03-16 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-03-16 18:35:18] Production.INFO: count ==1567 [2025-03-16 18:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:35:05 - End Time 2025-03-16 18:35:05 [2025-03-16 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695348', 'tblTempUsageDetail_20' ) start [2025-03-16 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695348', 'tblTempUsageDetail_20' ) end [2025-03-16 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695348', 'tblTempVendorCDR_20' ) start [2025-03-16 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695348', 'tblTempVendorCDR_20' ) end [2025-03-16 18:35:18] Production.INFO: ProcessCDR(1,14695348,1,1,2) [2025-03-16 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695348', 'tblTempUsageDetail_20' ) start [2025-03-16 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695348', 'tblTempUsageDetail_20' ) end [2025-03-16 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:35:24] Production.INFO: ==7440== Releasing lock... [2025-03-16 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:35:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:36:05 [end_date_ymd] => 2025-03-16 18:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:36:05' and `end` < '2025-03-16 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-03-16 18:36:18] Production.INFO: count ==1557 [2025-03-16 18:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:36:05 - End Time 2025-03-16 18:36:05 [2025-03-16 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695353', 'tblTempUsageDetail_20' ) start [2025-03-16 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695353', 'tblTempUsageDetail_20' ) end [2025-03-16 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695353', 'tblTempVendorCDR_20' ) start [2025-03-16 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695353', 'tblTempVendorCDR_20' ) end [2025-03-16 18:36:18] Production.INFO: ProcessCDR(1,14695353,1,1,2) [2025-03-16 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695353', 'tblTempUsageDetail_20' ) start [2025-03-16 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695353', 'tblTempUsageDetail_20' ) end [2025-03-16 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:36:24] Production.INFO: ==7513== Releasing lock... [2025-03-16 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:36:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:37:05 [end_date_ymd] => 2025-03-16 18:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:37:05' and `end` < '2025-03-16 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-03-16 18:37:17] Production.INFO: count ==1551 [2025-03-16 18:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:37:05 - End Time 2025-03-16 18:37:05 [2025-03-16 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695358', 'tblTempUsageDetail_20' ) start [2025-03-16 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695358', 'tblTempUsageDetail_20' ) end [2025-03-16 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695358', 'tblTempVendorCDR_20' ) start [2025-03-16 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695358', 'tblTempVendorCDR_20' ) end [2025-03-16 18:37:18] Production.INFO: ProcessCDR(1,14695358,1,1,2) [2025-03-16 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695358', 'tblTempUsageDetail_20' ) start [2025-03-16 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695358', 'tblTempUsageDetail_20' ) end [2025-03-16 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:37:23] Production.INFO: ==7626== Releasing lock... [2025-03-16 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:37:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:38:05 [end_date_ymd] => 2025-03-16 18:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:38:05' and `end` < '2025-03-16 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-03-16 18:38:18] Production.INFO: count ==1549 [2025-03-16 18:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:38:05 - End Time 2025-03-16 18:38:05 [2025-03-16 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695363', 'tblTempUsageDetail_20' ) start [2025-03-16 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695363', 'tblTempUsageDetail_20' ) end [2025-03-16 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695363', 'tblTempVendorCDR_20' ) start [2025-03-16 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695363', 'tblTempVendorCDR_20' ) end [2025-03-16 18:38:18] Production.INFO: ProcessCDR(1,14695363,1,1,2) [2025-03-16 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695363', 'tblTempUsageDetail_20' ) start [2025-03-16 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695363', 'tblTempUsageDetail_20' ) end [2025-03-16 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:38:24] Production.INFO: ==7704== Releasing lock... [2025-03-16 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:38:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:39:05 [end_date_ymd] => 2025-03-16 18:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:39:05' and `end` < '2025-03-16 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-03-16 18:39:18] Production.INFO: count ==1543 [2025-03-16 18:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:39:05 - End Time 2025-03-16 18:39:05 [2025-03-16 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695368', 'tblTempUsageDetail_20' ) start [2025-03-16 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695368', 'tblTempUsageDetail_20' ) end [2025-03-16 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695368', 'tblTempVendorCDR_20' ) start [2025-03-16 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695368', 'tblTempVendorCDR_20' ) end [2025-03-16 18:39:18] Production.INFO: ProcessCDR(1,14695368,1,1,2) [2025-03-16 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695368', 'tblTempUsageDetail_20' ) start [2025-03-16 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695368', 'tblTempUsageDetail_20' ) end [2025-03-16 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:39:23] Production.INFO: ==7775== Releasing lock... [2025-03-16 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:39:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:40:06 [end_date_ymd] => 2025-03-16 18:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:40:06' and `end` < '2025-03-16 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-03-16 18:40:19] Production.INFO: count ==1537 [2025-03-16 18:40:19] Production.ERROR: pbx CDR StartTime 2025-03-16 15:40:06 - End Time 2025-03-16 18:40:06 [2025-03-16 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695374', 'tblTempUsageDetail_20' ) start [2025-03-16 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695374', 'tblTempUsageDetail_20' ) end [2025-03-16 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695374', 'tblTempVendorCDR_20' ) start [2025-03-16 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695374', 'tblTempVendorCDR_20' ) end [2025-03-16 18:40:19] Production.INFO: ProcessCDR(1,14695374,1,1,2) [2025-03-16 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695374', 'tblTempUsageDetail_20' ) start [2025-03-16 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695374', 'tblTempUsageDetail_20' ) end [2025-03-16 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:40:24] Production.INFO: ==7860== Releasing lock... [2025-03-16 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:40:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:41:04 [end_date_ymd] => 2025-03-16 18:41:04 [RateCDR] => 1 ) [2025-03-16 18: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-03-16 15:41:04' and `end` < '2025-03-16 18: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-03-16 18:41:17] Production.INFO: count ==1530 [2025-03-16 18:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:41:04 - End Time 2025-03-16 18:41:04 [2025-03-16 18:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695379', 'tblTempUsageDetail_20' ) start [2025-03-16 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695379', 'tblTempUsageDetail_20' ) end [2025-03-16 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695379', 'tblTempVendorCDR_20' ) start [2025-03-16 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695379', 'tblTempVendorCDR_20' ) end [2025-03-16 18:41:17] Production.INFO: ProcessCDR(1,14695379,1,1,2) [2025-03-16 18:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695379', 'tblTempUsageDetail_20' ) start [2025-03-16 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695379', 'tblTempUsageDetail_20' ) end [2025-03-16 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:41:22] Production.INFO: ==7943== Releasing lock... [2025-03-16 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:41:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:42:05 [end_date_ymd] => 2025-03-16 18:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:42:05' and `end` < '2025-03-16 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-03-16 18:42:17] Production.INFO: count ==1533 [2025-03-16 18:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:42:05 - End Time 2025-03-16 18:42:05 [2025-03-16 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695384', 'tblTempUsageDetail_20' ) start [2025-03-16 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695384', 'tblTempUsageDetail_20' ) end [2025-03-16 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695384', 'tblTempVendorCDR_20' ) start [2025-03-16 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695384', 'tblTempVendorCDR_20' ) end [2025-03-16 18:42:18] Production.INFO: ProcessCDR(1,14695384,1,1,2) [2025-03-16 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695384', 'tblTempUsageDetail_20' ) start [2025-03-16 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695384', 'tblTempUsageDetail_20' ) end [2025-03-16 18:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:42:21] Production.INFO: ==8046== Releasing lock... [2025-03-16 18:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:42:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:43:05 [end_date_ymd] => 2025-03-16 18:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:43:05' and `end` < '2025-03-16 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-03-16 18:43:18] Production.INFO: count ==1535 [2025-03-16 18:43:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:43:05 - End Time 2025-03-16 18:43:05 [2025-03-16 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695389', 'tblTempUsageDetail_20' ) start [2025-03-16 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695389', 'tblTempUsageDetail_20' ) end [2025-03-16 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695389', 'tblTempVendorCDR_20' ) start [2025-03-16 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695389', 'tblTempVendorCDR_20' ) end [2025-03-16 18:43:18] Production.INFO: ProcessCDR(1,14695389,1,1,2) [2025-03-16 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695389', 'tblTempUsageDetail_20' ) start [2025-03-16 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695389', 'tblTempUsageDetail_20' ) end [2025-03-16 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:43:23] Production.INFO: ==8131== Releasing lock... [2025-03-16 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:43:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:44:05 [end_date_ymd] => 2025-03-16 18:44:05 [RateCDR] => 1 ) [2025-03-16 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:44:05' and `end` < '2025-03-16 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:44:17] Production.INFO: count ==1536 [2025-03-16 18:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:44:05 - End Time 2025-03-16 18:44:05 [2025-03-16 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695394', 'tblTempUsageDetail_20' ) start [2025-03-16 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695394', 'tblTempUsageDetail_20' ) end [2025-03-16 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695394', 'tblTempVendorCDR_20' ) start [2025-03-16 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695394', 'tblTempVendorCDR_20' ) end [2025-03-16 18:44:18] Production.INFO: ProcessCDR(1,14695394,1,1,2) [2025-03-16 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695394', 'tblTempUsageDetail_20' ) start [2025-03-16 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695394', 'tblTempUsageDetail_20' ) end [2025-03-16 18:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:44:21] Production.INFO: ==8205== Releasing lock... [2025-03-16 18:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:44:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:45:06 [end_date_ymd] => 2025-03-16 18:45:06 [RateCDR] => 1 ) [2025-03-16 18: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-03-16 15:45:06' and `end` < '2025-03-16 18: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-03-16 18:45:18] Production.INFO: count ==1529 [2025-03-16 18:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:45:06 - End Time 2025-03-16 18:45:06 [2025-03-16 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695399', 'tblTempUsageDetail_20' ) start [2025-03-16 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695399', 'tblTempUsageDetail_20' ) end [2025-03-16 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695399', 'tblTempVendorCDR_20' ) start [2025-03-16 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695399', 'tblTempVendorCDR_20' ) end [2025-03-16 18:45:18] Production.INFO: ProcessCDR(1,14695399,1,1,2) [2025-03-16 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695399', 'tblTempUsageDetail_20' ) start [2025-03-16 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695399', 'tblTempUsageDetail_20' ) end [2025-03-16 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:45:24] Production.INFO: ==8283== Releasing lock... [2025-03-16 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:45:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:46:05 [end_date_ymd] => 2025-03-16 18:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:46:05' and `end` < '2025-03-16 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-03-16 18:46:17] Production.INFO: count ==1525 [2025-03-16 18:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:46:05 - End Time 2025-03-16 18:46:05 [2025-03-16 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695404', 'tblTempUsageDetail_20' ) start [2025-03-16 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695404', 'tblTempUsageDetail_20' ) end [2025-03-16 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695404', 'tblTempVendorCDR_20' ) start [2025-03-16 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695404', 'tblTempVendorCDR_20' ) end [2025-03-16 18:46:18] Production.INFO: ProcessCDR(1,14695404,1,1,2) [2025-03-16 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695404', 'tblTempUsageDetail_20' ) start [2025-03-16 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695404', 'tblTempUsageDetail_20' ) end [2025-03-16 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:46:23] Production.INFO: ==8363== Releasing lock... [2025-03-16 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:46:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:47:05 [end_date_ymd] => 2025-03-16 18:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:47:05' and `end` < '2025-03-16 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-03-16 18:47:17] Production.INFO: count ==1526 [2025-03-16 18:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:47:05 - End Time 2025-03-16 18:47:05 [2025-03-16 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695409', 'tblTempUsageDetail_20' ) start [2025-03-16 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695409', 'tblTempUsageDetail_20' ) end [2025-03-16 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695409', 'tblTempVendorCDR_20' ) start [2025-03-16 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695409', 'tblTempVendorCDR_20' ) end [2025-03-16 18:47:18] Production.INFO: ProcessCDR(1,14695409,1,1,2) [2025-03-16 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695409', 'tblTempUsageDetail_20' ) start [2025-03-16 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695409', 'tblTempUsageDetail_20' ) end [2025-03-16 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:47:22] Production.INFO: ==8443== Releasing lock... [2025-03-16 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:47:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:48:05 [end_date_ymd] => 2025-03-16 18:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:48:05' and `end` < '2025-03-16 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-03-16 18:48:17] Production.INFO: count ==1525 [2025-03-16 18:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:48:05 - End Time 2025-03-16 18:48:05 [2025-03-16 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695414', 'tblTempUsageDetail_20' ) start [2025-03-16 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695414', 'tblTempUsageDetail_20' ) end [2025-03-16 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695414', 'tblTempVendorCDR_20' ) start [2025-03-16 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695414', 'tblTempVendorCDR_20' ) end [2025-03-16 18:48:18] Production.INFO: ProcessCDR(1,14695414,1,1,2) [2025-03-16 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695414', 'tblTempUsageDetail_20' ) start [2025-03-16 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695414', 'tblTempUsageDetail_20' ) end [2025-03-16 18:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:48:21] Production.INFO: ==8518== Releasing lock... [2025-03-16 18:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:48:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:49:05 [end_date_ymd] => 2025-03-16 18:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:49:05' and `end` < '2025-03-16 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-03-16 18:49:17] Production.INFO: count ==1529 [2025-03-16 18:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:49:05 - End Time 2025-03-16 18:49:05 [2025-03-16 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695419', 'tblTempUsageDetail_20' ) start [2025-03-16 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695419', 'tblTempUsageDetail_20' ) end [2025-03-16 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695419', 'tblTempVendorCDR_20' ) start [2025-03-16 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695419', 'tblTempVendorCDR_20' ) end [2025-03-16 18:49:18] Production.INFO: ProcessCDR(1,14695419,1,1,2) [2025-03-16 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695419', 'tblTempUsageDetail_20' ) start [2025-03-16 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695419', 'tblTempUsageDetail_20' ) end [2025-03-16 18:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:49:21] Production.INFO: ==8599== Releasing lock... [2025-03-16 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:49:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:50:05 [end_date_ymd] => 2025-03-16 18:50:05 [RateCDR] => 1 ) [2025-03-16 18: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-03-16 15:50:05' and `end` < '2025-03-16 18: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-03-16 18:50:18] Production.INFO: count ==1529 [2025-03-16 18:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:50:05 - End Time 2025-03-16 18:50:05 [2025-03-16 18:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695425', 'tblTempUsageDetail_20' ) start [2025-03-16 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695425', 'tblTempUsageDetail_20' ) end [2025-03-16 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695425', 'tblTempVendorCDR_20' ) start [2025-03-16 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695425', 'tblTempVendorCDR_20' ) end [2025-03-16 18:50:18] Production.INFO: ProcessCDR(1,14695425,1,1,2) [2025-03-16 18:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695425', 'tblTempUsageDetail_20' ) start [2025-03-16 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695425', 'tblTempUsageDetail_20' ) end [2025-03-16 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:50:22] Production.INFO: ==8680== Releasing lock... [2025-03-16 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:51:05 [end_date_ymd] => 2025-03-16 18:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:51:05' and `end` < '2025-03-16 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-03-16 18:51:18] Production.INFO: count ==1540 [2025-03-16 18:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:51:05 - End Time 2025-03-16 18:51:05 [2025-03-16 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695430', 'tblTempUsageDetail_20' ) start [2025-03-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695430', 'tblTempUsageDetail_20' ) end [2025-03-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695430', 'tblTempVendorCDR_20' ) start [2025-03-16 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695430', 'tblTempVendorCDR_20' ) end [2025-03-16 18:51:18] Production.INFO: ProcessCDR(1,14695430,1,1,2) [2025-03-16 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695430', 'tblTempUsageDetail_20' ) start [2025-03-16 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695430', 'tblTempUsageDetail_20' ) end [2025-03-16 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:51:23] Production.INFO: ==8761== Releasing lock... [2025-03-16 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:51:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:52:06 [end_date_ymd] => 2025-03-16 18:52:06 [RateCDR] => 1 ) [2025-03-16 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:52:06' and `end` < '2025-03-16 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:52:18] Production.INFO: count ==1537 [2025-03-16 18:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:52:06 - End Time 2025-03-16 18:52:06 [2025-03-16 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695435', 'tblTempUsageDetail_20' ) start [2025-03-16 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695435', 'tblTempUsageDetail_20' ) end [2025-03-16 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695435', 'tblTempVendorCDR_20' ) start [2025-03-16 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695435', 'tblTempVendorCDR_20' ) end [2025-03-16 18:52:19] Production.INFO: ProcessCDR(1,14695435,1,1,2) [2025-03-16 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695435', 'tblTempUsageDetail_20' ) start [2025-03-16 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695435', 'tblTempUsageDetail_20' ) end [2025-03-16 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:52:23] Production.INFO: ==8877== Releasing lock... [2025-03-16 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:52:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:53:05 [end_date_ymd] => 2025-03-16 18:53:05 [RateCDR] => 1 ) [2025-03-16 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:53:05' and `end` < '2025-03-16 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:53:17] Production.INFO: count ==1531 [2025-03-16 18:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:53:05 - End Time 2025-03-16 18:53:05 [2025-03-16 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695440', 'tblTempUsageDetail_20' ) start [2025-03-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695440', 'tblTempUsageDetail_20' ) end [2025-03-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695440', 'tblTempVendorCDR_20' ) start [2025-03-16 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695440', 'tblTempVendorCDR_20' ) end [2025-03-16 18:53:18] Production.INFO: ProcessCDR(1,14695440,1,1,2) [2025-03-16 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695440', 'tblTempUsageDetail_20' ) start [2025-03-16 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695440', 'tblTempUsageDetail_20' ) end [2025-03-16 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:53:23] Production.INFO: ==8960== Releasing lock... [2025-03-16 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:53:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:54:05 [end_date_ymd] => 2025-03-16 18:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:54:05' and `end` < '2025-03-16 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-03-16 18:54:18] Production.INFO: count ==1520 [2025-03-16 18:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:54:05 - End Time 2025-03-16 18:54:05 [2025-03-16 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695445', 'tblTempUsageDetail_20' ) start [2025-03-16 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695445', 'tblTempUsageDetail_20' ) end [2025-03-16 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695445', 'tblTempVendorCDR_20' ) start [2025-03-16 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695445', 'tblTempVendorCDR_20' ) end [2025-03-16 18:54:18] Production.INFO: ProcessCDR(1,14695445,1,1,2) [2025-03-16 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695445', 'tblTempUsageDetail_20' ) start [2025-03-16 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695445', 'tblTempUsageDetail_20' ) end [2025-03-16 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:54:23] Production.INFO: ==9035== Releasing lock... [2025-03-16 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:55:05 [end_date_ymd] => 2025-03-16 18:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:55:05' and `end` < '2025-03-16 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-03-16 18:55:17] Production.INFO: count ==1511 [2025-03-16 18:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:55:05 - End Time 2025-03-16 18:55:05 [2025-03-16 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695450', 'tblTempUsageDetail_20' ) start [2025-03-16 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695450', 'tblTempUsageDetail_20' ) end [2025-03-16 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695450', 'tblTempVendorCDR_20' ) start [2025-03-16 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695450', 'tblTempVendorCDR_20' ) end [2025-03-16 18:55:18] Production.INFO: ProcessCDR(1,14695450,1,1,2) [2025-03-16 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695450', 'tblTempUsageDetail_20' ) start [2025-03-16 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695450', 'tblTempUsageDetail_20' ) end [2025-03-16 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:55:23] Production.INFO: ==9117== Releasing lock... [2025-03-16 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:55:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:56:06 [end_date_ymd] => 2025-03-16 18:56:06 [RateCDR] => 1 ) [2025-03-16 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 15:56:06' and `end` < '2025-03-16 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 18:56:18] Production.INFO: count ==1509 [2025-03-16 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-16 15:56:06 - End Time 2025-03-16 18:56:06 [2025-03-16 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695455', 'tblTempUsageDetail_20' ) start [2025-03-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695455', 'tblTempUsageDetail_20' ) end [2025-03-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695455', 'tblTempVendorCDR_20' ) start [2025-03-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695455', 'tblTempVendorCDR_20' ) end [2025-03-16 18:56:19] Production.INFO: ProcessCDR(1,14695455,1,1,2) [2025-03-16 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695455', 'tblTempUsageDetail_20' ) start [2025-03-16 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695455', 'tblTempUsageDetail_20' ) end [2025-03-16 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:56:24] Production.INFO: ==9196== Releasing lock... [2025-03-16 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:56:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:57:05 [end_date_ymd] => 2025-03-16 18:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:57:05' and `end` < '2025-03-16 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-03-16 18:57:17] Production.INFO: count ==1517 [2025-03-16 18:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:57:05 - End Time 2025-03-16 18:57:05 [2025-03-16 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695460', 'tblTempUsageDetail_20' ) start [2025-03-16 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695460', 'tblTempUsageDetail_20' ) end [2025-03-16 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695460', 'tblTempVendorCDR_20' ) start [2025-03-16 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695460', 'tblTempVendorCDR_20' ) end [2025-03-16 18:57:18] Production.INFO: ProcessCDR(1,14695460,1,1,2) [2025-03-16 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695460', 'tblTempUsageDetail_20' ) start [2025-03-16 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695460', 'tblTempUsageDetail_20' ) end [2025-03-16 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:57:23] Production.INFO: ==9279== Releasing lock... [2025-03-16 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:57:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:58:05 [end_date_ymd] => 2025-03-16 18:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:58:05' and `end` < '2025-03-16 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-03-16 18:58:17] Production.INFO: count ==1522 [2025-03-16 18:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 15:58:05 - End Time 2025-03-16 18:58:05 [2025-03-16 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695465', 'tblTempUsageDetail_20' ) start [2025-03-16 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695465', 'tblTempUsageDetail_20' ) end [2025-03-16 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695465', 'tblTempVendorCDR_20' ) start [2025-03-16 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695465', 'tblTempVendorCDR_20' ) end [2025-03-16 18:58:18] Production.INFO: ProcessCDR(1,14695465,1,1,2) [2025-03-16 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695465', 'tblTempUsageDetail_20' ) start [2025-03-16 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695465', 'tblTempUsageDetail_20' ) end [2025-03-16 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:58:23] Production.INFO: ==9355== Releasing lock... [2025-03-16 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 15:59:05 [end_date_ymd] => 2025-03-16 18:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 15:59:05' and `end` < '2025-03-16 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-03-16 18:59:17] Production.INFO: count ==1523 [2025-03-16 18:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 15:59:05 - End Time 2025-03-16 18:59:05 [2025-03-16 18:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695470', 'tblTempUsageDetail_20' ) start [2025-03-16 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695470', 'tblTempUsageDetail_20' ) end [2025-03-16 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695470', 'tblTempVendorCDR_20' ) start [2025-03-16 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695470', 'tblTempVendorCDR_20' ) end [2025-03-16 18:59:18] Production.INFO: ProcessCDR(1,14695470,1,1,2) [2025-03-16 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695470', 'tblTempUsageDetail_20' ) start [2025-03-16 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695470', 'tblTempUsageDetail_20' ) end [2025-03-16 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 18:59:22] Production.INFO: ==9432== Releasing lock... [2025-03-16 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 18:59:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:00:05 [end_date_ymd] => 2025-03-16 19:00:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:00:05' and `end` < '2025-03-16 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-03-16 19:00:18] Production.INFO: count ==1530 [2025-03-16 19:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:00:05 - End Time 2025-03-16 19:00:05 [2025-03-16 19:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695475', 'tblTempUsageDetail_20' ) start [2025-03-16 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695475', 'tblTempUsageDetail_20' ) end [2025-03-16 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695475', 'tblTempVendorCDR_20' ) start [2025-03-16 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695475', 'tblTempVendorCDR_20' ) end [2025-03-16 19:00:18] Production.INFO: ProcessCDR(1,14695475,1,1,2) [2025-03-16 19:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695475', 'tblTempUsageDetail_20' ) start [2025-03-16 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695475', 'tblTempUsageDetail_20' ) end [2025-03-16 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:00:23] Production.INFO: ==9514== Releasing lock... [2025-03-16 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:00:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:01:06 [end_date_ymd] => 2025-03-16 19:01:06 [RateCDR] => 1 ) [2025-03-16 19: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-03-16 16:01:06' and `end` < '2025-03-16 19: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-03-16 19:01:18] Production.INFO: count ==1569 [2025-03-16 19:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:01:06 - End Time 2025-03-16 19:01:06 [2025-03-16 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695481', 'tblTempUsageDetail_20' ) start [2025-03-16 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695481', 'tblTempUsageDetail_20' ) end [2025-03-16 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695481', 'tblTempVendorCDR_20' ) start [2025-03-16 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695481', 'tblTempVendorCDR_20' ) end [2025-03-16 19:01:18] Production.INFO: ProcessCDR(1,14695481,1,1,2) [2025-03-16 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695481', 'tblTempUsageDetail_20' ) start [2025-03-16 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695481', 'tblTempUsageDetail_20' ) end [2025-03-16 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:01:23] Production.INFO: ==9648== Releasing lock... [2025-03-16 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:01:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:02:05 [end_date_ymd] => 2025-03-16 19:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:02:05' and `end` < '2025-03-16 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-03-16 19:02:17] Production.INFO: count ==1573 [2025-03-16 19:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:02:05 - End Time 2025-03-16 19:02:05 [2025-03-16 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695486', 'tblTempUsageDetail_20' ) start [2025-03-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695486', 'tblTempUsageDetail_20' ) end [2025-03-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695486', 'tblTempVendorCDR_20' ) start [2025-03-16 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695486', 'tblTempVendorCDR_20' ) end [2025-03-16 19:02:18] Production.INFO: ProcessCDR(1,14695486,1,1,2) [2025-03-16 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695486', 'tblTempUsageDetail_20' ) start [2025-03-16 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695486', 'tblTempUsageDetail_20' ) end [2025-03-16 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:02:23] Production.INFO: ==9763== Releasing lock... [2025-03-16 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:02:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:03:05 [end_date_ymd] => 2025-03-16 19:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:03:05' and `end` < '2025-03-16 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-03-16 19:03:18] Production.INFO: count ==1574 [2025-03-16 19:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:03:05 - End Time 2025-03-16 19:03:05 [2025-03-16 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695491', 'tblTempUsageDetail_20' ) start [2025-03-16 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695491', 'tblTempUsageDetail_20' ) end [2025-03-16 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695491', 'tblTempVendorCDR_20' ) start [2025-03-16 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695491', 'tblTempVendorCDR_20' ) end [2025-03-16 19:03:18] Production.INFO: ProcessCDR(1,14695491,1,1,2) [2025-03-16 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695491', 'tblTempUsageDetail_20' ) start [2025-03-16 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695491', 'tblTempUsageDetail_20' ) end [2025-03-16 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:03:23] Production.INFO: ==9847== Releasing lock... [2025-03-16 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:03:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:04:05 [end_date_ymd] => 2025-03-16 19:04:05 [RateCDR] => 1 ) [2025-03-16 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:04:05' and `end` < '2025-03-16 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:04:17] Production.INFO: count ==1575 [2025-03-16 19:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:04:05 - End Time 2025-03-16 19:04:05 [2025-03-16 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695496', 'tblTempUsageDetail_20' ) start [2025-03-16 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695496', 'tblTempUsageDetail_20' ) end [2025-03-16 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695496', 'tblTempVendorCDR_20' ) start [2025-03-16 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695496', 'tblTempVendorCDR_20' ) end [2025-03-16 19:04:18] Production.INFO: ProcessCDR(1,14695496,1,1,2) [2025-03-16 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695496', 'tblTempUsageDetail_20' ) start [2025-03-16 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695496', 'tblTempUsageDetail_20' ) end [2025-03-16 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:04:23] Production.INFO: ==9926== Releasing lock... [2025-03-16 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:04:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:05:05 [end_date_ymd] => 2025-03-16 19:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:05:05' and `end` < '2025-03-16 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-03-16 19:05:17] Production.INFO: count ==1580 [2025-03-16 19:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:05:05 - End Time 2025-03-16 19:05:05 [2025-03-16 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695501', 'tblTempUsageDetail_20' ) start [2025-03-16 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695501', 'tblTempUsageDetail_20' ) end [2025-03-16 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695501', 'tblTempVendorCDR_20' ) start [2025-03-16 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695501', 'tblTempVendorCDR_20' ) end [2025-03-16 19:05:18] Production.INFO: ProcessCDR(1,14695501,1,1,2) [2025-03-16 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695501', 'tblTempUsageDetail_20' ) start [2025-03-16 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695501', 'tblTempUsageDetail_20' ) end [2025-03-16 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:05:23] Production.INFO: ==10085== Releasing lock... [2025-03-16 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:05:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-16 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:06:05 [end_date_ymd] => 2025-03-16 19:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:06:05' and `end` < '2025-03-16 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-03-16 19:06:17] Production.INFO: count ==1579 [2025-03-16 19:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:06:05 - End Time 2025-03-16 19:06:05 [2025-03-16 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695506', 'tblTempUsageDetail_20' ) start [2025-03-16 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695506', 'tblTempUsageDetail_20' ) end [2025-03-16 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695506', 'tblTempVendorCDR_20' ) start [2025-03-16 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695506', 'tblTempVendorCDR_20' ) end [2025-03-16 19:06:18] Production.INFO: ProcessCDR(1,14695506,1,1,2) [2025-03-16 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695506', 'tblTempUsageDetail_20' ) start [2025-03-16 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695506', 'tblTempUsageDetail_20' ) end [2025-03-16 19:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:06:21] Production.INFO: ==10172== Releasing lock... [2025-03-16 19:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:06:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:07:05 [end_date_ymd] => 2025-03-16 19:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:07:05' and `end` < '2025-03-16 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-03-16 19:07:18] Production.INFO: count ==1584 [2025-03-16 19:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:07:05 - End Time 2025-03-16 19:07:05 [2025-03-16 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695511', 'tblTempUsageDetail_20' ) start [2025-03-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695511', 'tblTempUsageDetail_20' ) end [2025-03-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695511', 'tblTempVendorCDR_20' ) start [2025-03-16 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695511', 'tblTempVendorCDR_20' ) end [2025-03-16 19:07:18] Production.INFO: ProcessCDR(1,14695511,1,1,2) [2025-03-16 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695511', 'tblTempUsageDetail_20' ) start [2025-03-16 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695511', 'tblTempUsageDetail_20' ) end [2025-03-16 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:07:21] Production.INFO: ==10255== Releasing lock... [2025-03-16 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:07:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:08:05 [end_date_ymd] => 2025-03-16 19:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:08:05' and `end` < '2025-03-16 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-03-16 19:08:18] Production.INFO: count ==1587 [2025-03-16 19:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:08:05 - End Time 2025-03-16 19:08:05 [2025-03-16 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695516', 'tblTempUsageDetail_20' ) start [2025-03-16 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695516', 'tblTempUsageDetail_20' ) end [2025-03-16 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695516', 'tblTempVendorCDR_20' ) start [2025-03-16 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695516', 'tblTempVendorCDR_20' ) end [2025-03-16 19:08:18] Production.INFO: ProcessCDR(1,14695516,1,1,2) [2025-03-16 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695516', 'tblTempUsageDetail_20' ) start [2025-03-16 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695516', 'tblTempUsageDetail_20' ) end [2025-03-16 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:08:21] Production.INFO: ==10452== Releasing lock... [2025-03-16 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:08:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:09:05 [end_date_ymd] => 2025-03-16 19:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:09:05' and `end` < '2025-03-16 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-03-16 19:09:17] Production.INFO: count ==1587 [2025-03-16 19:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:09:05 - End Time 2025-03-16 19:09:05 [2025-03-16 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695521', 'tblTempUsageDetail_20' ) start [2025-03-16 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695521', 'tblTempUsageDetail_20' ) end [2025-03-16 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695521', 'tblTempVendorCDR_20' ) start [2025-03-16 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695521', 'tblTempVendorCDR_20' ) end [2025-03-16 19:09:18] Production.INFO: ProcessCDR(1,14695521,1,1,2) [2025-03-16 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695521', 'tblTempUsageDetail_20' ) start [2025-03-16 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695521', 'tblTempUsageDetail_20' ) end [2025-03-16 19:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:09:21] Production.INFO: ==10533== Releasing lock... [2025-03-16 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:09:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:10:06 [end_date_ymd] => 2025-03-16 19:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:10:06' and `end` < '2025-03-16 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-03-16 19:10:18] Production.INFO: count ==1586 [2025-03-16 19:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:10:06 - End Time 2025-03-16 19:10:06 [2025-03-16 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695527', 'tblTempUsageDetail_20' ) start [2025-03-16 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695527', 'tblTempUsageDetail_20' ) end [2025-03-16 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695527', 'tblTempVendorCDR_20' ) start [2025-03-16 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695527', 'tblTempVendorCDR_20' ) end [2025-03-16 19:10:18] Production.INFO: ProcessCDR(1,14695527,1,1,2) [2025-03-16 19:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695527', 'tblTempUsageDetail_20' ) start [2025-03-16 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695527', 'tblTempUsageDetail_20' ) end [2025-03-16 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:10:23] Production.INFO: ==10618== Releasing lock... [2025-03-16 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:10:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:11:05 [end_date_ymd] => 2025-03-16 19:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:11:05' and `end` < '2025-03-16 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-03-16 19:11:17] Production.INFO: count ==1586 [2025-03-16 19:11:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:11:05 - End Time 2025-03-16 19:11:05 [2025-03-16 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695532', 'tblTempUsageDetail_20' ) start [2025-03-16 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695532', 'tblTempUsageDetail_20' ) end [2025-03-16 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695532', 'tblTempVendorCDR_20' ) start [2025-03-16 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695532', 'tblTempVendorCDR_20' ) end [2025-03-16 19:11:18] Production.INFO: ProcessCDR(1,14695532,1,1,2) [2025-03-16 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695532', 'tblTempUsageDetail_20' ) start [2025-03-16 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695532', 'tblTempUsageDetail_20' ) end [2025-03-16 19:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:11:21] Production.INFO: ==10705== Releasing lock... [2025-03-16 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:11:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:12:05 [end_date_ymd] => 2025-03-16 19:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:12:05' and `end` < '2025-03-16 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-03-16 19:12:18] Production.INFO: count ==1591 [2025-03-16 19:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:12:05 - End Time 2025-03-16 19:12:05 [2025-03-16 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695537', 'tblTempUsageDetail_20' ) start [2025-03-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695537', 'tblTempUsageDetail_20' ) end [2025-03-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695537', 'tblTempVendorCDR_20' ) start [2025-03-16 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695537', 'tblTempVendorCDR_20' ) end [2025-03-16 19:12:18] Production.INFO: ProcessCDR(1,14695537,1,1,2) [2025-03-16 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695537', 'tblTempUsageDetail_20' ) start [2025-03-16 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695537', 'tblTempUsageDetail_20' ) end [2025-03-16 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:12:21] Production.INFO: ==10862== Releasing lock... [2025-03-16 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:12:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:13:05 [end_date_ymd] => 2025-03-16 19:13:05 [RateCDR] => 1 ) [2025-03-16 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:13:05' and `end` < '2025-03-16 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:13:17] Production.INFO: count ==1591 [2025-03-16 19:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:13:05 - End Time 2025-03-16 19:13:05 [2025-03-16 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695542', 'tblTempUsageDetail_20' ) start [2025-03-16 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695542', 'tblTempUsageDetail_20' ) end [2025-03-16 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695542', 'tblTempVendorCDR_20' ) start [2025-03-16 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695542', 'tblTempVendorCDR_20' ) end [2025-03-16 19:13:18] Production.INFO: ProcessCDR(1,14695542,1,1,2) [2025-03-16 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695542', 'tblTempUsageDetail_20' ) start [2025-03-16 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695542', 'tblTempUsageDetail_20' ) end [2025-03-16 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:13:21] Production.INFO: ==10942== Releasing lock... [2025-03-16 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:13:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:14:05 [end_date_ymd] => 2025-03-16 19:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:14:05' and `end` < '2025-03-16 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-03-16 19:14:17] Production.INFO: count ==1590 [2025-03-16 19:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:14:05 - End Time 2025-03-16 19:14:05 [2025-03-16 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695547', 'tblTempUsageDetail_20' ) start [2025-03-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695547', 'tblTempUsageDetail_20' ) end [2025-03-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695547', 'tblTempVendorCDR_20' ) start [2025-03-16 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695547', 'tblTempVendorCDR_20' ) end [2025-03-16 19:14:18] Production.INFO: ProcessCDR(1,14695547,1,1,2) [2025-03-16 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695547', 'tblTempUsageDetail_20' ) start [2025-03-16 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695547', 'tblTempUsageDetail_20' ) end [2025-03-16 19:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:14:21] Production.INFO: ==11045== Releasing lock... [2025-03-16 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:14:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:15:06 [end_date_ymd] => 2025-03-16 19:15:06 [RateCDR] => 1 ) [2025-03-16 19: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-03-16 16:15:06' and `end` < '2025-03-16 19: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-03-16 19:15:18] Production.INFO: count ==1589 [2025-03-16 19:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:15:06 - End Time 2025-03-16 19:15:06 [2025-03-16 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695552', 'tblTempUsageDetail_20' ) start [2025-03-16 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695552', 'tblTempUsageDetail_20' ) end [2025-03-16 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695552', 'tblTempVendorCDR_20' ) start [2025-03-16 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695552', 'tblTempVendorCDR_20' ) end [2025-03-16 19:15:18] Production.INFO: ProcessCDR(1,14695552,1,1,2) [2025-03-16 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695552', 'tblTempUsageDetail_20' ) start [2025-03-16 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695552', 'tblTempUsageDetail_20' ) end [2025-03-16 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:15:22] Production.INFO: ==11233== Releasing lock... [2025-03-16 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:15:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:16:05 [end_date_ymd] => 2025-03-16 19:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:16:05' and `end` < '2025-03-16 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-03-16 19:16:17] Production.INFO: count ==1586 [2025-03-16 19:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:16:05 - End Time 2025-03-16 19:16:05 [2025-03-16 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695557', 'tblTempUsageDetail_20' ) start [2025-03-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695557', 'tblTempUsageDetail_20' ) end [2025-03-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695557', 'tblTempVendorCDR_20' ) start [2025-03-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695557', 'tblTempVendorCDR_20' ) end [2025-03-16 19:16:18] Production.INFO: ProcessCDR(1,14695557,1,1,2) [2025-03-16 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695557', 'tblTempUsageDetail_20' ) start [2025-03-16 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695557', 'tblTempUsageDetail_20' ) end [2025-03-16 19:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:16:21] Production.INFO: ==11338== Releasing lock... [2025-03-16 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:16:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:17:05 [end_date_ymd] => 2025-03-16 19:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:17:05' and `end` < '2025-03-16 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-03-16 19:17:18] Production.INFO: count ==1585 [2025-03-16 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:17:05 - End Time 2025-03-16 19:17:05 [2025-03-16 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695562', 'tblTempUsageDetail_20' ) start [2025-03-16 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695562', 'tblTempUsageDetail_20' ) end [2025-03-16 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695562', 'tblTempVendorCDR_20' ) start [2025-03-16 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695562', 'tblTempVendorCDR_20' ) end [2025-03-16 19:17:18] Production.INFO: ProcessCDR(1,14695562,1,1,2) [2025-03-16 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695562', 'tblTempUsageDetail_20' ) start [2025-03-16 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695562', 'tblTempUsageDetail_20' ) end [2025-03-16 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:17:23] Production.INFO: ==11449== Releasing lock... [2025-03-16 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:17:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:18:05 [end_date_ymd] => 2025-03-16 19:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:18:05' and `end` < '2025-03-16 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-03-16 19:18:17] Production.INFO: count ==1587 [2025-03-16 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:18:05 - End Time 2025-03-16 19:18:05 [2025-03-16 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695567', 'tblTempUsageDetail_20' ) start [2025-03-16 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695567', 'tblTempUsageDetail_20' ) end [2025-03-16 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695567', 'tblTempVendorCDR_20' ) start [2025-03-16 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695567', 'tblTempVendorCDR_20' ) end [2025-03-16 19:18:18] Production.INFO: ProcessCDR(1,14695567,1,1,2) [2025-03-16 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695567', 'tblTempUsageDetail_20' ) start [2025-03-16 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695567', 'tblTempUsageDetail_20' ) end [2025-03-16 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:18:23] Production.INFO: ==11556== Releasing lock... [2025-03-16 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:18:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-16 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:19:05 [end_date_ymd] => 2025-03-16 19:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:19:05' and `end` < '2025-03-16 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-03-16 19:19:18] Production.INFO: count ==1589 [2025-03-16 19:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:19:05 - End Time 2025-03-16 19:19:05 [2025-03-16 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695572', 'tblTempUsageDetail_20' ) start [2025-03-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695572', 'tblTempUsageDetail_20' ) end [2025-03-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695572', 'tblTempVendorCDR_20' ) start [2025-03-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695572', 'tblTempVendorCDR_20' ) end [2025-03-16 19:19:19] Production.INFO: ProcessCDR(1,14695572,1,1,2) [2025-03-16 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695572', 'tblTempUsageDetail_20' ) start [2025-03-16 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695572', 'tblTempUsageDetail_20' ) end [2025-03-16 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:19:22] Production.INFO: ==11665== Releasing lock... [2025-03-16 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:19:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:20:06 [end_date_ymd] => 2025-03-16 19:20:06 [RateCDR] => 1 ) [2025-03-16 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:20:06' and `end` < '2025-03-16 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:20:19] Production.INFO: count ==1589 [2025-03-16 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-16 16:20:06 - End Time 2025-03-16 19:20:06 [2025-03-16 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695578', 'tblTempUsageDetail_20' ) start [2025-03-16 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695578', 'tblTempUsageDetail_20' ) end [2025-03-16 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695578', 'tblTempVendorCDR_20' ) start [2025-03-16 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695578', 'tblTempVendorCDR_20' ) end [2025-03-16 19:20:19] Production.INFO: ProcessCDR(1,14695578,1,1,2) [2025-03-16 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695578', 'tblTempUsageDetail_20' ) start [2025-03-16 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695578', 'tblTempUsageDetail_20' ) end [2025-03-16 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:20:22] Production.INFO: ==11769== Releasing lock... [2025-03-16 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:20:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-16 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:21:05 [end_date_ymd] => 2025-03-16 19:21:05 [RateCDR] => 1 ) [2025-03-16 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:21:05' and `end` < '2025-03-16 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:21:18] Production.INFO: count ==1602 [2025-03-16 19:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:21:05 - End Time 2025-03-16 19:21:05 [2025-03-16 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695583', 'tblTempUsageDetail_20' ) start [2025-03-16 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695583', 'tblTempUsageDetail_20' ) end [2025-03-16 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695583', 'tblTempVendorCDR_20' ) start [2025-03-16 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695583', 'tblTempVendorCDR_20' ) end [2025-03-16 19:21:18] Production.INFO: ProcessCDR(1,14695583,1,1,2) [2025-03-16 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695583', 'tblTempUsageDetail_20' ) start [2025-03-16 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695583', 'tblTempUsageDetail_20' ) end [2025-03-16 19:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:21:21] Production.INFO: ==11869== Releasing lock... [2025-03-16 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:21:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:22:05 [end_date_ymd] => 2025-03-16 19:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:22:05' and `end` < '2025-03-16 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-03-16 19:22:17] Production.INFO: count ==1602 [2025-03-16 19:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:22:05 - End Time 2025-03-16 19:22:05 [2025-03-16 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695588', 'tblTempUsageDetail_20' ) start [2025-03-16 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695588', 'tblTempUsageDetail_20' ) end [2025-03-16 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695588', 'tblTempVendorCDR_20' ) start [2025-03-16 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695588', 'tblTempVendorCDR_20' ) end [2025-03-16 19:22:18] Production.INFO: ProcessCDR(1,14695588,1,1,2) [2025-03-16 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695588', 'tblTempUsageDetail_20' ) start [2025-03-16 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695588', 'tblTempUsageDetail_20' ) end [2025-03-16 19:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:22:21] Production.INFO: ==11944== Releasing lock... [2025-03-16 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:22:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:23:05 [end_date_ymd] => 2025-03-16 19:23:05 [RateCDR] => 1 ) [2025-03-16 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:23:05' and `end` < '2025-03-16 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:23:17] Production.INFO: count ==1601 [2025-03-16 19:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:23:05 - End Time 2025-03-16 19:23:05 [2025-03-16 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695593', 'tblTempUsageDetail_20' ) start [2025-03-16 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695593', 'tblTempUsageDetail_20' ) end [2025-03-16 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695593', 'tblTempVendorCDR_20' ) start [2025-03-16 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695593', 'tblTempVendorCDR_20' ) end [2025-03-16 19:23:18] Production.INFO: ProcessCDR(1,14695593,1,1,2) [2025-03-16 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695593', 'tblTempUsageDetail_20' ) start [2025-03-16 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695593', 'tblTempUsageDetail_20' ) end [2025-03-16 19:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:23:21] Production.INFO: ==12062== Releasing lock... [2025-03-16 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:23:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:24:06 [end_date_ymd] => 2025-03-16 19:24:06 [RateCDR] => 1 ) [2025-03-16 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:24:06' and `end` < '2025-03-16 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:24:18] Production.INFO: count ==1595 [2025-03-16 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-16 16:24:06 - End Time 2025-03-16 19:24:06 [2025-03-16 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695598', 'tblTempUsageDetail_20' ) start [2025-03-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695598', 'tblTempUsageDetail_20' ) end [2025-03-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695598', 'tblTempVendorCDR_20' ) start [2025-03-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695598', 'tblTempVendorCDR_20' ) end [2025-03-16 19:24:19] Production.INFO: ProcessCDR(1,14695598,1,1,2) [2025-03-16 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695598', 'tblTempUsageDetail_20' ) start [2025-03-16 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695598', 'tblTempUsageDetail_20' ) end [2025-03-16 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:24:22] Production.INFO: ==12138== Releasing lock... [2025-03-16 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:24:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-16 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:25:05 [end_date_ymd] => 2025-03-16 19:25:05 [RateCDR] => 1 ) [2025-03-16 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:25:05' and `end` < '2025-03-16 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:25:17] Production.INFO: count ==1590 [2025-03-16 19:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:25:05 - End Time 2025-03-16 19:25:05 [2025-03-16 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695603', 'tblTempUsageDetail_20' ) start [2025-03-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695603', 'tblTempUsageDetail_20' ) end [2025-03-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695603', 'tblTempVendorCDR_20' ) start [2025-03-16 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695603', 'tblTempVendorCDR_20' ) end [2025-03-16 19:25:18] Production.INFO: ProcessCDR(1,14695603,1,1,2) [2025-03-16 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695603', 'tblTempUsageDetail_20' ) start [2025-03-16 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695603', 'tblTempUsageDetail_20' ) end [2025-03-16 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:25:21] Production.INFO: ==12218== Releasing lock... [2025-03-16 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:25:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:26:05 [end_date_ymd] => 2025-03-16 19:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:26:05' and `end` < '2025-03-16 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-03-16 19:26:18] Production.INFO: count ==1587 [2025-03-16 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:26:05 - End Time 2025-03-16 19:26:05 [2025-03-16 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695608', 'tblTempUsageDetail_20' ) start [2025-03-16 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695608', 'tblTempUsageDetail_20' ) end [2025-03-16 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695608', 'tblTempVendorCDR_20' ) start [2025-03-16 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695608', 'tblTempVendorCDR_20' ) end [2025-03-16 19:26:18] Production.INFO: ProcessCDR(1,14695608,1,1,2) [2025-03-16 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695608', 'tblTempUsageDetail_20' ) start [2025-03-16 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695608', 'tblTempUsageDetail_20' ) end [2025-03-16 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:26:21] Production.INFO: ==12299== Releasing lock... [2025-03-16 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:26:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:27:05 [end_date_ymd] => 2025-03-16 19:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:27:05' and `end` < '2025-03-16 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-03-16 19:27:17] Production.INFO: count ==1590 [2025-03-16 19:27:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:27:05 - End Time 2025-03-16 19:27:05 [2025-03-16 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695613', 'tblTempUsageDetail_20' ) start [2025-03-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695613', 'tblTempUsageDetail_20' ) end [2025-03-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695613', 'tblTempVendorCDR_20' ) start [2025-03-16 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695613', 'tblTempVendorCDR_20' ) end [2025-03-16 19:27:18] Production.INFO: ProcessCDR(1,14695613,1,1,2) [2025-03-16 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695613', 'tblTempUsageDetail_20' ) start [2025-03-16 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695613', 'tblTempUsageDetail_20' ) end [2025-03-16 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:27:22] Production.INFO: ==12379== Releasing lock... [2025-03-16 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:27:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:28:05 [end_date_ymd] => 2025-03-16 19:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:28:05' and `end` < '2025-03-16 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-03-16 19:28:18] Production.INFO: count ==1588 [2025-03-16 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:28:05 - End Time 2025-03-16 19:28:05 [2025-03-16 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695618', 'tblTempUsageDetail_20' ) start [2025-03-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695618', 'tblTempUsageDetail_20' ) end [2025-03-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695618', 'tblTempVendorCDR_20' ) start [2025-03-16 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695618', 'tblTempVendorCDR_20' ) end [2025-03-16 19:28:18] Production.INFO: ProcessCDR(1,14695618,1,1,2) [2025-03-16 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695618', 'tblTempUsageDetail_20' ) start [2025-03-16 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695618', 'tblTempUsageDetail_20' ) end [2025-03-16 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:28:23] Production.INFO: ==12453== Releasing lock... [2025-03-16 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:28:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:29:05 [end_date_ymd] => 2025-03-16 19:29:05 [RateCDR] => 1 ) [2025-03-16 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:29:05' and `end` < '2025-03-16 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:29:18] Production.INFO: count ==1585 [2025-03-16 19:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:29:05 - End Time 2025-03-16 19:29:05 [2025-03-16 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695623', 'tblTempUsageDetail_20' ) start [2025-03-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695623', 'tblTempUsageDetail_20' ) end [2025-03-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695623', 'tblTempVendorCDR_20' ) start [2025-03-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695623', 'tblTempVendorCDR_20' ) end [2025-03-16 19:29:18] Production.INFO: ProcessCDR(1,14695623,1,1,2) [2025-03-16 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695623', 'tblTempUsageDetail_20' ) start [2025-03-16 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695623', 'tblTempUsageDetail_20' ) end [2025-03-16 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:29:21] Production.INFO: ==12531== Releasing lock... [2025-03-16 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:29:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-16 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:30:06 [end_date_ymd] => 2025-03-16 19:30:06 [RateCDR] => 1 ) [2025-03-16 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:30:06' and `end` < '2025-03-16 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:30:18] Production.INFO: count ==1583 [2025-03-16 19:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:30:06 - End Time 2025-03-16 19:30:06 [2025-03-16 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695628', 'tblTempUsageDetail_20' ) start [2025-03-16 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695628', 'tblTempUsageDetail_20' ) end [2025-03-16 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695628', 'tblTempVendorCDR_20' ) start [2025-03-16 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695628', 'tblTempVendorCDR_20' ) end [2025-03-16 19:30:19] Production.INFO: ProcessCDR(1,14695628,1,1,2) [2025-03-16 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695628', 'tblTempUsageDetail_20' ) start [2025-03-16 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695628', 'tblTempUsageDetail_20' ) end [2025-03-16 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:30:22] Production.INFO: ==12610== Releasing lock... [2025-03-16 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:30:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:31:05 [end_date_ymd] => 2025-03-16 19:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:31:05' and `end` < '2025-03-16 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-03-16 19:31:17] Production.INFO: count ==1569 [2025-03-16 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:31:05 - End Time 2025-03-16 19:31:05 [2025-03-16 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695634', 'tblTempUsageDetail_20' ) start [2025-03-16 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695634', 'tblTempUsageDetail_20' ) end [2025-03-16 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695634', 'tblTempVendorCDR_20' ) start [2025-03-16 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695634', 'tblTempVendorCDR_20' ) end [2025-03-16 19:31:18] Production.INFO: ProcessCDR(1,14695634,1,1,2) [2025-03-16 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695634', 'tblTempUsageDetail_20' ) start [2025-03-16 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695634', 'tblTempUsageDetail_20' ) end [2025-03-16 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:31:21] Production.INFO: ==12687== Releasing lock... [2025-03-16 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:31:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:32:05 [end_date_ymd] => 2025-03-16 19:32:05 [RateCDR] => 1 ) [2025-03-16 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:32:05' and `end` < '2025-03-16 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:32:17] Production.INFO: count ==1566 [2025-03-16 19:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 16:32:05 - End Time 2025-03-16 19:32:05 [2025-03-16 19:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695639', 'tblTempUsageDetail_20' ) start [2025-03-16 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695639', 'tblTempUsageDetail_20' ) end [2025-03-16 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695639', 'tblTempVendorCDR_20' ) start [2025-03-16 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695639', 'tblTempVendorCDR_20' ) end [2025-03-16 19:32:18] Production.INFO: ProcessCDR(1,14695639,1,1,2) [2025-03-16 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695639', 'tblTempUsageDetail_20' ) start [2025-03-16 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695639', 'tblTempUsageDetail_20' ) end [2025-03-16 19:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:32:21] Production.INFO: ==12767== Releasing lock... [2025-03-16 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:32:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:33:06 [end_date_ymd] => 2025-03-16 19:33:06 [RateCDR] => 1 ) [2025-03-16 19: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-03-16 16:33:06' and `end` < '2025-03-16 19: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-03-16 19:33:18] Production.INFO: count ==1561 [2025-03-16 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:33:06 - End Time 2025-03-16 19:33:06 [2025-03-16 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695644', 'tblTempUsageDetail_20' ) start [2025-03-16 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695644', 'tblTempUsageDetail_20' ) end [2025-03-16 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695644', 'tblTempVendorCDR_20' ) start [2025-03-16 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695644', 'tblTempVendorCDR_20' ) end [2025-03-16 19:33:18] Production.INFO: ProcessCDR(1,14695644,1,1,2) [2025-03-16 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695644', 'tblTempUsageDetail_20' ) start [2025-03-16 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695644', 'tblTempUsageDetail_20' ) end [2025-03-16 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:33:22] Production.INFO: ==12848== Releasing lock... [2025-03-16 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:34:04 [end_date_ymd] => 2025-03-16 19:34:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:34:04' and `end` < '2025-03-16 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-03-16 19:34:17] Production.INFO: count ==1556 [2025-03-16 19:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 16:34:04 - End Time 2025-03-16 19:34:04 [2025-03-16 19:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695649', 'tblTempUsageDetail_20' ) start [2025-03-16 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695649', 'tblTempUsageDetail_20' ) end [2025-03-16 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695649', 'tblTempVendorCDR_20' ) start [2025-03-16 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695649', 'tblTempVendorCDR_20' ) end [2025-03-16 19:34:17] Production.INFO: ProcessCDR(1,14695649,1,1,2) [2025-03-16 19:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695649', 'tblTempUsageDetail_20' ) start [2025-03-16 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695649', 'tblTempUsageDetail_20' ) end [2025-03-16 19:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:34:20] Production.INFO: ==12922== Releasing lock... [2025-03-16 19:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:34:20] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:35:05 [end_date_ymd] => 2025-03-16 19:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:35:05' and `end` < '2025-03-16 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-03-16 19:35:17] Production.INFO: count ==1556 [2025-03-16 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:35:05 - End Time 2025-03-16 19:35:05 [2025-03-16 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695654', 'tblTempUsageDetail_20' ) start [2025-03-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695654', 'tblTempUsageDetail_20' ) end [2025-03-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695654', 'tblTempVendorCDR_20' ) start [2025-03-16 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695654', 'tblTempVendorCDR_20' ) end [2025-03-16 19:35:18] Production.INFO: ProcessCDR(1,14695654,1,1,2) [2025-03-16 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695654', 'tblTempUsageDetail_20' ) start [2025-03-16 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695654', 'tblTempUsageDetail_20' ) end [2025-03-16 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:35:21] Production.INFO: ==12997== Releasing lock... [2025-03-16 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:35:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:36:06 [end_date_ymd] => 2025-03-16 19:36:06 [RateCDR] => 1 ) [2025-03-16 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:36:06' and `end` < '2025-03-16 19: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-03-16 19:36:18] Production.INFO: count ==1549 [2025-03-16 19:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:36:06 - End Time 2025-03-16 19:36:06 [2025-03-16 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695659', 'tblTempUsageDetail_20' ) start [2025-03-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695659', 'tblTempUsageDetail_20' ) end [2025-03-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695659', 'tblTempVendorCDR_20' ) start [2025-03-16 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695659', 'tblTempVendorCDR_20' ) end [2025-03-16 19:36:18] Production.INFO: ProcessCDR(1,14695659,1,1,2) [2025-03-16 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695659', 'tblTempUsageDetail_20' ) start [2025-03-16 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695659', 'tblTempUsageDetail_20' ) end [2025-03-16 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:36:22] Production.INFO: ==13074== Releasing lock... [2025-03-16 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:37:05 [end_date_ymd] => 2025-03-16 19:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:37:05' and `end` < '2025-03-16 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-03-16 19:37:17] Production.INFO: count ==1549 [2025-03-16 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:37:05 - End Time 2025-03-16 19:37:05 [2025-03-16 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695664', 'tblTempUsageDetail_20' ) start [2025-03-16 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695664', 'tblTempUsageDetail_20' ) end [2025-03-16 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695664', 'tblTempVendorCDR_20' ) start [2025-03-16 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695664', 'tblTempVendorCDR_20' ) end [2025-03-16 19:37:18] Production.INFO: ProcessCDR(1,14695664,1,1,2) [2025-03-16 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695664', 'tblTempUsageDetail_20' ) start [2025-03-16 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695664', 'tblTempUsageDetail_20' ) end [2025-03-16 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:37:23] Production.INFO: ==13149== Releasing lock... [2025-03-16 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:37:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:38:05 [end_date_ymd] => 2025-03-16 19:38:05 [RateCDR] => 1 ) [2025-03-16 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:38:05' and `end` < '2025-03-16 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-03-16 19:38:17] Production.INFO: count ==1554 [2025-03-16 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:38:05 - End Time 2025-03-16 19:38:05 [2025-03-16 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695669', 'tblTempUsageDetail_20' ) start [2025-03-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695669', 'tblTempUsageDetail_20' ) end [2025-03-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695669', 'tblTempVendorCDR_20' ) start [2025-03-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695669', 'tblTempVendorCDR_20' ) end [2025-03-16 19:38:18] Production.INFO: ProcessCDR(1,14695669,1,1,2) [2025-03-16 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695669', 'tblTempUsageDetail_20' ) start [2025-03-16 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695669', 'tblTempUsageDetail_20' ) end [2025-03-16 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:38:22] Production.INFO: ==13228== Releasing lock... [2025-03-16 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:39:05 [end_date_ymd] => 2025-03-16 19:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:39:05' and `end` < '2025-03-16 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-03-16 19:39:18] Production.INFO: count ==1556 [2025-03-16 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:39:05 - End Time 2025-03-16 19:39:05 [2025-03-16 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695674', 'tblTempUsageDetail_20' ) start [2025-03-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695674', 'tblTempUsageDetail_20' ) end [2025-03-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695674', 'tblTempVendorCDR_20' ) start [2025-03-16 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695674', 'tblTempVendorCDR_20' ) end [2025-03-16 19:39:18] Production.INFO: ProcessCDR(1,14695674,1,1,2) [2025-03-16 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695674', 'tblTempUsageDetail_20' ) start [2025-03-16 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695674', 'tblTempUsageDetail_20' ) end [2025-03-16 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:39:21] Production.INFO: ==13365== Releasing lock... [2025-03-16 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:39:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:40:06 [end_date_ymd] => 2025-03-16 19:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:40:06' and `end` < '2025-03-16 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-03-16 19:40:18] Production.INFO: count ==1554 [2025-03-16 19:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:40:06 - End Time 2025-03-16 19:40:06 [2025-03-16 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695679', 'tblTempUsageDetail_20' ) start [2025-03-16 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695679', 'tblTempUsageDetail_20' ) end [2025-03-16 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695679', 'tblTempVendorCDR_20' ) start [2025-03-16 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695679', 'tblTempVendorCDR_20' ) end [2025-03-16 19:40:19] Production.INFO: ProcessCDR(1,14695679,1,1,2) [2025-03-16 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695679', 'tblTempUsageDetail_20' ) start [2025-03-16 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695679', 'tblTempUsageDetail_20' ) end [2025-03-16 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:40:22] Production.INFO: ==13437== Releasing lock... [2025-03-16 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:40:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:41:05 [end_date_ymd] => 2025-03-16 19:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:41:05' and `end` < '2025-03-16 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-03-16 19:41:17] Production.INFO: count ==1574 [2025-03-16 19:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 16:41:05 - End Time 2025-03-16 19:41:05 [2025-03-16 19:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695685', 'tblTempUsageDetail_20' ) start [2025-03-16 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695685', 'tblTempUsageDetail_20' ) end [2025-03-16 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695685', 'tblTempVendorCDR_20' ) start [2025-03-16 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695685', 'tblTempVendorCDR_20' ) end [2025-03-16 19:41:18] Production.INFO: ProcessCDR(1,14695685,1,1,2) [2025-03-16 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695685', 'tblTempUsageDetail_20' ) start [2025-03-16 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695685', 'tblTempUsageDetail_20' ) end [2025-03-16 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:41:21] Production.INFO: ==13521== Releasing lock... [2025-03-16 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:41:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:42:05 [end_date_ymd] => 2025-03-16 19:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:42:05' and `end` < '2025-03-16 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-03-16 19:42:17] Production.INFO: count ==1573 [2025-03-16 19:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:42:05 - End Time 2025-03-16 19:42:05 [2025-03-16 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695690', 'tblTempUsageDetail_20' ) start [2025-03-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695690', 'tblTempUsageDetail_20' ) end [2025-03-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695690', 'tblTempVendorCDR_20' ) start [2025-03-16 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695690', 'tblTempVendorCDR_20' ) end [2025-03-16 19:42:18] Production.INFO: ProcessCDR(1,14695690,1,1,2) [2025-03-16 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695690', 'tblTempUsageDetail_20' ) start [2025-03-16 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695690', 'tblTempUsageDetail_20' ) end [2025-03-16 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:42:21] Production.INFO: ==13596== Releasing lock... [2025-03-16 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:42:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:43:04 [end_date_ymd] => 2025-03-16 19:43:04 [RateCDR] => 1 ) [2025-03-16 19: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-03-16 16:43:04' and `end` < '2025-03-16 19: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-03-16 19:43:17] Production.INFO: count ==1572 [2025-03-16 19:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 16:43:04 - End Time 2025-03-16 19:43:04 [2025-03-16 19:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695695', 'tblTempUsageDetail_20' ) start [2025-03-16 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695695', 'tblTempUsageDetail_20' ) end [2025-03-16 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695695', 'tblTempVendorCDR_20' ) start [2025-03-16 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695695', 'tblTempVendorCDR_20' ) end [2025-03-16 19:43:17] Production.INFO: ProcessCDR(1,14695695,1,1,2) [2025-03-16 19:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695695', 'tblTempUsageDetail_20' ) start [2025-03-16 19:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695695', 'tblTempUsageDetail_20' ) end [2025-03-16 19:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:43:20] Production.INFO: ==13670== Releasing lock... [2025-03-16 19:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:43:20] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:44:05 [end_date_ymd] => 2025-03-16 19:44:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:44:05' and `end` < '2025-03-16 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-03-16 19:44:18] Production.INFO: count ==1571 [2025-03-16 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:44:05 - End Time 2025-03-16 19:44:05 [2025-03-16 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695700', 'tblTempUsageDetail_20' ) start [2025-03-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695700', 'tblTempUsageDetail_20' ) end [2025-03-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695700', 'tblTempVendorCDR_20' ) start [2025-03-16 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695700', 'tblTempVendorCDR_20' ) end [2025-03-16 19:44:18] Production.INFO: ProcessCDR(1,14695700,1,1,2) [2025-03-16 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695700', 'tblTempUsageDetail_20' ) start [2025-03-16 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695700', 'tblTempUsageDetail_20' ) end [2025-03-16 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:44:23] Production.INFO: ==13744== Releasing lock... [2025-03-16 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:44:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:45:06 [end_date_ymd] => 2025-03-16 19:45:06 [RateCDR] => 1 ) [2025-03-16 19:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:45:06' and `end` < '2025-03-16 19:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:45:18] Production.INFO: count ==1570 [2025-03-16 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:45:06 - End Time 2025-03-16 19:45:06 [2025-03-16 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695705', 'tblTempUsageDetail_20' ) start [2025-03-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695705', 'tblTempUsageDetail_20' ) end [2025-03-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695705', 'tblTempVendorCDR_20' ) start [2025-03-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695705', 'tblTempVendorCDR_20' ) end [2025-03-16 19:45:18] Production.INFO: ProcessCDR(1,14695705,1,1,2) [2025-03-16 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695705', 'tblTempUsageDetail_20' ) start [2025-03-16 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695705', 'tblTempUsageDetail_20' ) end [2025-03-16 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:45:23] Production.INFO: ==13823== Releasing lock... [2025-03-16 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:45:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:46:05 [end_date_ymd] => 2025-03-16 19:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:46:05' and `end` < '2025-03-16 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-03-16 19:46:17] Production.INFO: count ==1569 [2025-03-16 19:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 16:46:05 - End Time 2025-03-16 19:46:05 [2025-03-16 19:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695710', 'tblTempUsageDetail_20' ) start [2025-03-16 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695710', 'tblTempUsageDetail_20' ) end [2025-03-16 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695710', 'tblTempVendorCDR_20' ) start [2025-03-16 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695710', 'tblTempVendorCDR_20' ) end [2025-03-16 19:46:17] Production.INFO: ProcessCDR(1,14695710,1,1,2) [2025-03-16 19:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695710', 'tblTempUsageDetail_20' ) start [2025-03-16 19:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695710', 'tblTempUsageDetail_20' ) end [2025-03-16 19:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:46:20] Production.INFO: ==13896== Releasing lock... [2025-03-16 19:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:46:20] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:47:06 [end_date_ymd] => 2025-03-16 19:47:06 [RateCDR] => 1 ) [2025-03-16 19: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-03-16 16:47:06' and `end` < '2025-03-16 19: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-03-16 19:47:18] Production.INFO: count ==1571 [2025-03-16 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:47:06 - End Time 2025-03-16 19:47:06 [2025-03-16 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695715', 'tblTempUsageDetail_20' ) start [2025-03-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695715', 'tblTempUsageDetail_20' ) end [2025-03-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695715', 'tblTempVendorCDR_20' ) start [2025-03-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695715', 'tblTempVendorCDR_20' ) end [2025-03-16 19:47:18] Production.INFO: ProcessCDR(1,14695715,1,1,2) [2025-03-16 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695715', 'tblTempUsageDetail_20' ) start [2025-03-16 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695715', 'tblTempUsageDetail_20' ) end [2025-03-16 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:47:23] Production.INFO: ==13971== Releasing lock... [2025-03-16 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:47:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:48:05 [end_date_ymd] => 2025-03-16 19:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:48:05' and `end` < '2025-03-16 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-03-16 19:48:17] Production.INFO: count ==1571 [2025-03-16 19:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:48:05 - End Time 2025-03-16 19:48:05 [2025-03-16 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695720', 'tblTempUsageDetail_20' ) start [2025-03-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695720', 'tblTempUsageDetail_20' ) end [2025-03-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695720', 'tblTempVendorCDR_20' ) start [2025-03-16 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695720', 'tblTempVendorCDR_20' ) end [2025-03-16 19:48:18] Production.INFO: ProcessCDR(1,14695720,1,1,2) [2025-03-16 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695720', 'tblTempUsageDetail_20' ) start [2025-03-16 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695720', 'tblTempUsageDetail_20' ) end [2025-03-16 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:48:21] Production.INFO: ==14046== Releasing lock... [2025-03-16 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:48:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:49:05 [end_date_ymd] => 2025-03-16 19:49:05 [RateCDR] => 1 ) [2025-03-16 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:49:05' and `end` < '2025-03-16 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:49:17] Production.INFO: count ==1570 [2025-03-16 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:49:05 - End Time 2025-03-16 19:49:05 [2025-03-16 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695725', 'tblTempUsageDetail_20' ) start [2025-03-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695725', 'tblTempUsageDetail_20' ) end [2025-03-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695725', 'tblTempVendorCDR_20' ) start [2025-03-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695725', 'tblTempVendorCDR_20' ) end [2025-03-16 19:49:18] Production.INFO: ProcessCDR(1,14695725,1,1,2) [2025-03-16 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695725', 'tblTempUsageDetail_20' ) start [2025-03-16 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695725', 'tblTempUsageDetail_20' ) end [2025-03-16 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:49:21] Production.INFO: ==14120== Releasing lock... [2025-03-16 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:50:05 [end_date_ymd] => 2025-03-16 19:50:05 [RateCDR] => 1 ) [2025-03-16 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:50:05' and `end` < '2025-03-16 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:50:18] Production.INFO: count ==1570 [2025-03-16 19:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:50:05 - End Time 2025-03-16 19:50:05 [2025-03-16 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695730', 'tblTempUsageDetail_20' ) start [2025-03-16 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695730', 'tblTempUsageDetail_20' ) end [2025-03-16 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695730', 'tblTempVendorCDR_20' ) start [2025-03-16 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695730', 'tblTempVendorCDR_20' ) end [2025-03-16 19:50:18] Production.INFO: ProcessCDR(1,14695730,1,1,2) [2025-03-16 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695730', 'tblTempUsageDetail_20' ) start [2025-03-16 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695730', 'tblTempUsageDetail_20' ) end [2025-03-16 19:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:50:21] Production.INFO: ==14193== Releasing lock... [2025-03-16 19:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:50:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:51:05 [end_date_ymd] => 2025-03-16 19:51:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:51:05' and `end` < '2025-03-16 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-03-16 19:51:18] Production.INFO: count ==1586 [2025-03-16 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:51:05 - End Time 2025-03-16 19:51:05 [2025-03-16 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695736', 'tblTempUsageDetail_20' ) start [2025-03-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695736', 'tblTempUsageDetail_20' ) end [2025-03-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695736', 'tblTempVendorCDR_20' ) start [2025-03-16 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695736', 'tblTempVendorCDR_20' ) end [2025-03-16 19:51:18] Production.INFO: ProcessCDR(1,14695736,1,1,2) [2025-03-16 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695736', 'tblTempUsageDetail_20' ) start [2025-03-16 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695736', 'tblTempUsageDetail_20' ) end [2025-03-16 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:51:22] Production.INFO: ==14271== Releasing lock... [2025-03-16 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:51:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:52:05 [end_date_ymd] => 2025-03-16 19:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:52:05' and `end` < '2025-03-16 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-03-16 19:52:18] Production.INFO: count ==1584 [2025-03-16 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:52:05 - End Time 2025-03-16 19:52:05 [2025-03-16 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695741', 'tblTempUsageDetail_20' ) start [2025-03-16 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695741', 'tblTempUsageDetail_20' ) end [2025-03-16 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695741', 'tblTempVendorCDR_20' ) start [2025-03-16 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695741', 'tblTempVendorCDR_20' ) end [2025-03-16 19:52:18] Production.INFO: ProcessCDR(1,14695741,1,1,2) [2025-03-16 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695741', 'tblTempUsageDetail_20' ) start [2025-03-16 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695741', 'tblTempUsageDetail_20' ) end [2025-03-16 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:52:21] Production.INFO: ==14344== Releasing lock... [2025-03-16 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:52:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:53:05 [end_date_ymd] => 2025-03-16 19:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:53:05' and `end` < '2025-03-16 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-03-16 19:53:17] Production.INFO: count ==1591 [2025-03-16 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:53:05 - End Time 2025-03-16 19:53:05 [2025-03-16 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695746', 'tblTempUsageDetail_20' ) start [2025-03-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695746', 'tblTempUsageDetail_20' ) end [2025-03-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695746', 'tblTempVendorCDR_20' ) start [2025-03-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695746', 'tblTempVendorCDR_20' ) end [2025-03-16 19:53:18] Production.INFO: ProcessCDR(1,14695746,1,1,2) [2025-03-16 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695746', 'tblTempUsageDetail_20' ) start [2025-03-16 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695746', 'tblTempUsageDetail_20' ) end [2025-03-16 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:53:21] Production.INFO: ==14418== Releasing lock... [2025-03-16 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:53:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:54:05 [end_date_ymd] => 2025-03-16 19:54:05 [RateCDR] => 1 ) [2025-03-16 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:54:05' and `end` < '2025-03-16 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:54:17] Production.INFO: count ==1592 [2025-03-16 19:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 16:54:05 - End Time 2025-03-16 19:54:05 [2025-03-16 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695751', 'tblTempUsageDetail_20' ) start [2025-03-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695751', 'tblTempUsageDetail_20' ) end [2025-03-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695751', 'tblTempVendorCDR_20' ) start [2025-03-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695751', 'tblTempVendorCDR_20' ) end [2025-03-16 19:54:18] Production.INFO: ProcessCDR(1,14695751,1,1,2) [2025-03-16 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695751', 'tblTempUsageDetail_20' ) start [2025-03-16 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695751', 'tblTempUsageDetail_20' ) end [2025-03-16 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:54:21] Production.INFO: ==14527== Releasing lock... [2025-03-16 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:54:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:55:05 [end_date_ymd] => 2025-03-16 19:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:55:05' and `end` < '2025-03-16 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-03-16 19:55:17] Production.INFO: count ==1592 [2025-03-16 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:55:05 - End Time 2025-03-16 19:55:05 [2025-03-16 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695756', 'tblTempUsageDetail_20' ) start [2025-03-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695756', 'tblTempUsageDetail_20' ) end [2025-03-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695756', 'tblTempVendorCDR_20' ) start [2025-03-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695756', 'tblTempVendorCDR_20' ) end [2025-03-16 19:55:18] Production.INFO: ProcessCDR(1,14695756,1,1,2) [2025-03-16 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695756', 'tblTempUsageDetail_20' ) start [2025-03-16 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695756', 'tblTempUsageDetail_20' ) end [2025-03-16 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:55:21] Production.INFO: ==14605== Releasing lock... [2025-03-16 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:55:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:56:05 [end_date_ymd] => 2025-03-16 19:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:56:05' and `end` < '2025-03-16 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-03-16 19:56:18] Production.INFO: count ==1597 [2025-03-16 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:56:05 - End Time 2025-03-16 19:56:05 [2025-03-16 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695761', 'tblTempUsageDetail_20' ) start [2025-03-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695761', 'tblTempUsageDetail_20' ) end [2025-03-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695761', 'tblTempVendorCDR_20' ) start [2025-03-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695761', 'tblTempVendorCDR_20' ) end [2025-03-16 19:56:18] Production.INFO: ProcessCDR(1,14695761,1,1,2) [2025-03-16 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695761', 'tblTempUsageDetail_20' ) start [2025-03-16 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695761', 'tblTempUsageDetail_20' ) end [2025-03-16 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:56:21] Production.INFO: ==14680== Releasing lock... [2025-03-16 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:56:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:57:05 [end_date_ymd] => 2025-03-16 19:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:57:05' and `end` < '2025-03-16 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-03-16 19:57:17] Production.INFO: count ==1602 [2025-03-16 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:57:05 - End Time 2025-03-16 19:57:05 [2025-03-16 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695766', 'tblTempUsageDetail_20' ) start [2025-03-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695766', 'tblTempUsageDetail_20' ) end [2025-03-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695766', 'tblTempVendorCDR_20' ) start [2025-03-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695766', 'tblTempVendorCDR_20' ) end [2025-03-16 19:57:18] Production.INFO: ProcessCDR(1,14695766,1,1,2) [2025-03-16 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695766', 'tblTempUsageDetail_20' ) start [2025-03-16 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695766', 'tblTempUsageDetail_20' ) end [2025-03-16 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:57:21] Production.INFO: ==14752== Releasing lock... [2025-03-16 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:57:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:58:05 [end_date_ymd] => 2025-03-16 19:58:05 [RateCDR] => 1 ) [2025-03-16 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 16:58:05' and `end` < '2025-03-16 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 19:58:18] Production.INFO: count ==1603 [2025-03-16 19:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:58:05 - End Time 2025-03-16 19:58:05 [2025-03-16 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695771', 'tblTempUsageDetail_20' ) start [2025-03-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695771', 'tblTempUsageDetail_20' ) end [2025-03-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695771', 'tblTempVendorCDR_20' ) start [2025-03-16 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695771', 'tblTempVendorCDR_20' ) end [2025-03-16 19:58:18] Production.INFO: ProcessCDR(1,14695771,1,1,2) [2025-03-16 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695771', 'tblTempUsageDetail_20' ) start [2025-03-16 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695771', 'tblTempUsageDetail_20' ) end [2025-03-16 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:58:23] Production.INFO: ==14826== Releasing lock... [2025-03-16 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:58:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 16:59:05 [end_date_ymd] => 2025-03-16 19:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 16:59:05' and `end` < '2025-03-16 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-03-16 19:59:17] Production.INFO: count ==1601 [2025-03-16 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 16:59:05 - End Time 2025-03-16 19:59:05 [2025-03-16 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695776', 'tblTempUsageDetail_20' ) start [2025-03-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695776', 'tblTempUsageDetail_20' ) end [2025-03-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695776', 'tblTempVendorCDR_20' ) start [2025-03-16 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695776', 'tblTempVendorCDR_20' ) end [2025-03-16 19:59:18] Production.INFO: ProcessCDR(1,14695776,1,1,2) [2025-03-16 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695776', 'tblTempUsageDetail_20' ) start [2025-03-16 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695776', 'tblTempUsageDetail_20' ) end [2025-03-16 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 19:59:21] Production.INFO: ==14904== Releasing lock... [2025-03-16 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 19:59:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:00:06 [end_date_ymd] => 2025-03-16 20:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:00:06' and `end` < '2025-03-16 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-03-16 20:00:19] Production.INFO: count ==1598 [2025-03-16 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-16 17:00:06 - End Time 2025-03-16 20:00:06 [2025-03-16 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695782', 'tblTempUsageDetail_20' ) start [2025-03-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695782', 'tblTempUsageDetail_20' ) end [2025-03-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695782', 'tblTempVendorCDR_20' ) start [2025-03-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695782', 'tblTempVendorCDR_20' ) end [2025-03-16 20:00:19] Production.INFO: ProcessCDR(1,14695782,1,1,2) [2025-03-16 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695782', 'tblTempUsageDetail_20' ) start [2025-03-16 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695782', 'tblTempUsageDetail_20' ) end [2025-03-16 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:00:22] Production.INFO: ==14980== Releasing lock... [2025-03-16 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:01:05 [end_date_ymd] => 2025-03-16 20:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:01:05' and `end` < '2025-03-16 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-03-16 20:01:17] Production.INFO: count ==1590 [2025-03-16 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:01:05 - End Time 2025-03-16 20:01:05 [2025-03-16 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695787', 'tblTempUsageDetail_20' ) start [2025-03-16 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695787', 'tblTempUsageDetail_20' ) end [2025-03-16 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695787', 'tblTempVendorCDR_20' ) start [2025-03-16 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695787', 'tblTempVendorCDR_20' ) end [2025-03-16 20:01:18] Production.INFO: ProcessCDR(1,14695787,1,1,2) [2025-03-16 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695787', 'tblTempUsageDetail_20' ) start [2025-03-16 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695787', 'tblTempUsageDetail_20' ) end [2025-03-16 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:01:21] Production.INFO: ==15109== Releasing lock... [2025-03-16 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:01:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:02:05 [end_date_ymd] => 2025-03-16 20:02:05 [RateCDR] => 1 ) [2025-03-16 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:02:05' and `end` < '2025-03-16 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:02:18] Production.INFO: count ==1589 [2025-03-16 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:02:05 - End Time 2025-03-16 20:02:05 [2025-03-16 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695792', 'tblTempUsageDetail_20' ) start [2025-03-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695792', 'tblTempUsageDetail_20' ) end [2025-03-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695792', 'tblTempVendorCDR_20' ) start [2025-03-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695792', 'tblTempVendorCDR_20' ) end [2025-03-16 20:02:18] Production.INFO: ProcessCDR(1,14695792,1,1,2) [2025-03-16 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695792', 'tblTempUsageDetail_20' ) start [2025-03-16 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695792', 'tblTempUsageDetail_20' ) end [2025-03-16 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:02:21] Production.INFO: ==15186== Releasing lock... [2025-03-16 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:02:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:03:04 [end_date_ymd] => 2025-03-16 20:03:04 [RateCDR] => 1 ) [2025-03-16 20:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:03:04' and `end` < '2025-03-16 20:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:03:17] Production.INFO: count ==1590 [2025-03-16 20:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:03:04 - End Time 2025-03-16 20:03:04 [2025-03-16 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695797', 'tblTempUsageDetail_20' ) start [2025-03-16 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695797', 'tblTempUsageDetail_20' ) end [2025-03-16 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695797', 'tblTempVendorCDR_20' ) start [2025-03-16 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695797', 'tblTempVendorCDR_20' ) end [2025-03-16 20:03:17] Production.INFO: ProcessCDR(1,14695797,1,1,2) [2025-03-16 20:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695797', 'tblTempUsageDetail_20' ) start [2025-03-16 20:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695797', 'tblTempUsageDetail_20' ) end [2025-03-16 20:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:03:20] Production.INFO: ==15261== Releasing lock... [2025-03-16 20:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:03:20] Production.INFO: 40 MB #Memory Used# [2025-03-16 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:04:05 [end_date_ymd] => 2025-03-16 20:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:04:05' and `end` < '2025-03-16 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-03-16 20:04:17] Production.INFO: count ==1590 [2025-03-16 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:04:05 - End Time 2025-03-16 20:04:05 [2025-03-16 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695802', 'tblTempUsageDetail_20' ) start [2025-03-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695802', 'tblTempUsageDetail_20' ) end [2025-03-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695802', 'tblTempVendorCDR_20' ) start [2025-03-16 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695802', 'tblTempVendorCDR_20' ) end [2025-03-16 20:04:18] Production.INFO: ProcessCDR(1,14695802,1,1,2) [2025-03-16 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695802', 'tblTempUsageDetail_20' ) start [2025-03-16 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695802', 'tblTempUsageDetail_20' ) end [2025-03-16 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:04:21] Production.INFO: ==15340== Releasing lock... [2025-03-16 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:04:21] Production.INFO: 40 MB #Memory Used# [2025-03-16 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:05:05 [end_date_ymd] => 2025-03-16 20:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:05:05' and `end` < '2025-03-16 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-03-16 20:05:18] Production.INFO: count ==1591 [2025-03-16 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:05:05 - End Time 2025-03-16 20:05:05 [2025-03-16 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695807', 'tblTempUsageDetail_20' ) start [2025-03-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695807', 'tblTempUsageDetail_20' ) end [2025-03-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695807', 'tblTempVendorCDR_20' ) start [2025-03-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695807', 'tblTempVendorCDR_20' ) end [2025-03-16 20:05:18] Production.INFO: ProcessCDR(1,14695807,1,1,2) [2025-03-16 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695807', 'tblTempUsageDetail_20' ) start [2025-03-16 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695807', 'tblTempUsageDetail_20' ) end [2025-03-16 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:05:23] Production.INFO: ==15418== Releasing lock... [2025-03-16 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:05:23] Production.INFO: 40 MB #Memory Used# [2025-03-16 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:06:05 [end_date_ymd] => 2025-03-16 20:06:05 [RateCDR] => 1 ) [2025-03-16 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:06:05' and `end` < '2025-03-16 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:06:18] Production.INFO: count ==1578 [2025-03-16 20:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:06:05 - End Time 2025-03-16 20:06:05 [2025-03-16 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695812', 'tblTempUsageDetail_20' ) start [2025-03-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695812', 'tblTempUsageDetail_20' ) end [2025-03-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695812', 'tblTempVendorCDR_20' ) start [2025-03-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695812', 'tblTempVendorCDR_20' ) end [2025-03-16 20:06:18] Production.INFO: ProcessCDR(1,14695812,1,1,2) [2025-03-16 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695812', 'tblTempUsageDetail_20' ) start [2025-03-16 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695812', 'tblTempUsageDetail_20' ) end [2025-03-16 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:06:23] Production.INFO: ==15499== Releasing lock... [2025-03-16 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:06:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-16 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:07:05 [end_date_ymd] => 2025-03-16 20:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:07:05' and `end` < '2025-03-16 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-03-16 20:07:17] Production.INFO: count ==1579 [2025-03-16 20:07:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:07:05 - End Time 2025-03-16 20:07:05 [2025-03-16 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695817', 'tblTempUsageDetail_20' ) start [2025-03-16 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695817', 'tblTempUsageDetail_20' ) end [2025-03-16 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695817', 'tblTempVendorCDR_20' ) start [2025-03-16 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695817', 'tblTempVendorCDR_20' ) end [2025-03-16 20:07:18] Production.INFO: ProcessCDR(1,14695817,1,1,2) [2025-03-16 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695817', 'tblTempUsageDetail_20' ) start [2025-03-16 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695817', 'tblTempUsageDetail_20' ) end [2025-03-16 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:07:22] Production.INFO: ==15578== Releasing lock... [2025-03-16 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:07:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:08:04 [end_date_ymd] => 2025-03-16 20:08:04 [RateCDR] => 1 ) [2025-03-16 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:08:04' and `end` < '2025-03-16 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:08:16] Production.INFO: count ==1577 [2025-03-16 20:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:08:04 - End Time 2025-03-16 20:08:04 [2025-03-16 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695822', 'tblTempUsageDetail_20' ) start [2025-03-16 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695822', 'tblTempUsageDetail_20' ) end [2025-03-16 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695822', 'tblTempVendorCDR_20' ) start [2025-03-16 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695822', 'tblTempVendorCDR_20' ) end [2025-03-16 20:08:17] Production.INFO: ProcessCDR(1,14695822,1,1,2) [2025-03-16 20:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695822', 'tblTempUsageDetail_20' ) start [2025-03-16 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695822', 'tblTempUsageDetail_20' ) end [2025-03-16 20:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:08:20] Production.INFO: ==15659== Releasing lock... [2025-03-16 20:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:08:20] Production.INFO: 40.25 MB #Memory Used# [2025-03-16 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:09:05 [end_date_ymd] => 2025-03-16 20:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:09:05' and `end` < '2025-03-16 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-03-16 20:09:17] Production.INFO: count ==1568 [2025-03-16 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:09:05 - End Time 2025-03-16 20:09:05 [2025-03-16 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695827', 'tblTempUsageDetail_20' ) start [2025-03-16 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695827', 'tblTempUsageDetail_20' ) end [2025-03-16 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695827', 'tblTempVendorCDR_20' ) start [2025-03-16 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695827', 'tblTempVendorCDR_20' ) end [2025-03-16 20:09:18] Production.INFO: ProcessCDR(1,14695827,1,1,2) [2025-03-16 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695827', 'tblTempUsageDetail_20' ) start [2025-03-16 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695827', 'tblTempUsageDetail_20' ) end [2025-03-16 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:09:22] Production.INFO: ==15742== Releasing lock... [2025-03-16 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:09:22] Production.INFO: 40 MB #Memory Used# [2025-03-16 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:10:06 [end_date_ymd] => 2025-03-16 20:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:10:06' and `end` < '2025-03-16 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-03-16 20:10:18] Production.INFO: count ==1564 [2025-03-16 20:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:10:06 - End Time 2025-03-16 20:10:06 [2025-03-16 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695832', 'tblTempUsageDetail_20' ) start [2025-03-16 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695832', 'tblTempUsageDetail_20' ) end [2025-03-16 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695832', 'tblTempVendorCDR_20' ) start [2025-03-16 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695832', 'tblTempVendorCDR_20' ) end [2025-03-16 20:10:19] Production.INFO: ProcessCDR(1,14695832,1,1,2) [2025-03-16 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695832', 'tblTempUsageDetail_20' ) start [2025-03-16 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695832', 'tblTempUsageDetail_20' ) end [2025-03-16 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:10:22] Production.INFO: ==15866== Releasing lock... [2025-03-16 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:10:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-16 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:11:05 [end_date_ymd] => 2025-03-16 20:11:05 [RateCDR] => 1 ) [2025-03-16 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:11:05' and `end` < '2025-03-16 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:11:17] Production.INFO: count ==1517 [2025-03-16 20:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:11:05 - End Time 2025-03-16 20:11:05 [2025-03-16 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695838', 'tblTempUsageDetail_20' ) start [2025-03-16 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695838', 'tblTempUsageDetail_20' ) end [2025-03-16 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695838', 'tblTempVendorCDR_20' ) start [2025-03-16 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695838', 'tblTempVendorCDR_20' ) end [2025-03-16 20:11:17] Production.INFO: ProcessCDR(1,14695838,1,1,2) [2025-03-16 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695838', 'tblTempUsageDetail_20' ) start [2025-03-16 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695838', 'tblTempUsageDetail_20' ) end [2025-03-16 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:11:22] Production.INFO: ==15962== Releasing lock... [2025-03-16 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:12:06 [end_date_ymd] => 2025-03-16 20:12:06 [RateCDR] => 1 ) [2025-03-16 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:12:06' and `end` < '2025-03-16 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:12:18] Production.INFO: count ==1521 [2025-03-16 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:12:06 - End Time 2025-03-16 20:12:06 [2025-03-16 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695843', 'tblTempUsageDetail_20' ) start [2025-03-16 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695843', 'tblTempUsageDetail_20' ) end [2025-03-16 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695843', 'tblTempVendorCDR_20' ) start [2025-03-16 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695843', 'tblTempVendorCDR_20' ) end [2025-03-16 20:12:18] Production.INFO: ProcessCDR(1,14695843,1,1,2) [2025-03-16 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695843', 'tblTempUsageDetail_20' ) start [2025-03-16 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695843', 'tblTempUsageDetail_20' ) end [2025-03-16 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:12:22] Production.INFO: ==16048== Releasing lock... [2025-03-16 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:12:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:13:04 [end_date_ymd] => 2025-03-16 20:13:04 [RateCDR] => 1 ) [2025-03-16 20: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-03-16 17:13:04' and `end` < '2025-03-16 20: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-03-16 20:13:17] Production.INFO: count ==1515 [2025-03-16 20:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:13:04 - End Time 2025-03-16 20:13:04 [2025-03-16 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695848', 'tblTempUsageDetail_20' ) start [2025-03-16 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695848', 'tblTempUsageDetail_20' ) end [2025-03-16 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695848', 'tblTempVendorCDR_20' ) start [2025-03-16 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695848', 'tblTempVendorCDR_20' ) end [2025-03-16 20:13:17] Production.INFO: ProcessCDR(1,14695848,1,1,2) [2025-03-16 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695848', 'tblTempUsageDetail_20' ) start [2025-03-16 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695848', 'tblTempUsageDetail_20' ) end [2025-03-16 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:13:21] Production.INFO: ==16131== Releasing lock... [2025-03-16 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:13:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:14:05 [end_date_ymd] => 2025-03-16 20:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:14:05' and `end` < '2025-03-16 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-03-16 20:14:17] Production.INFO: count ==1512 [2025-03-16 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:14:05 - End Time 2025-03-16 20:14:05 [2025-03-16 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695853', 'tblTempUsageDetail_20' ) start [2025-03-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695853', 'tblTempUsageDetail_20' ) end [2025-03-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695853', 'tblTempVendorCDR_20' ) start [2025-03-16 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695853', 'tblTempVendorCDR_20' ) end [2025-03-16 20:14:18] Production.INFO: ProcessCDR(1,14695853,1,1,2) [2025-03-16 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695853', 'tblTempUsageDetail_20' ) start [2025-03-16 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695853', 'tblTempUsageDetail_20' ) end [2025-03-16 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:14:21] Production.INFO: ==16213== Releasing lock... [2025-03-16 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:14:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:15:05 [end_date_ymd] => 2025-03-16 20:15:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:15:05' and `end` < '2025-03-16 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-03-16 20:15:17] Production.INFO: count ==1511 [2025-03-16 20:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:15:05 - End Time 2025-03-16 20:15:05 [2025-03-16 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695858', 'tblTempUsageDetail_20' ) start [2025-03-16 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695858', 'tblTempUsageDetail_20' ) end [2025-03-16 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695858', 'tblTempVendorCDR_20' ) start [2025-03-16 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695858', 'tblTempVendorCDR_20' ) end [2025-03-16 20:15:17] Production.INFO: ProcessCDR(1,14695858,1,1,2) [2025-03-16 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695858', 'tblTempUsageDetail_20' ) start [2025-03-16 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695858', 'tblTempUsageDetail_20' ) end [2025-03-16 20:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:15:20] Production.INFO: ==16302== Releasing lock... [2025-03-16 20:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:15:20] Production.INFO: 39.5 MB #Memory Used# [2025-03-16 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:16:05 [end_date_ymd] => 2025-03-16 20:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:16:05' and `end` < '2025-03-16 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-03-16 20:16:17] Production.INFO: count ==1505 [2025-03-16 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:16:05 - End Time 2025-03-16 20:16:05 [2025-03-16 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695863', 'tblTempUsageDetail_20' ) start [2025-03-16 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695863', 'tblTempUsageDetail_20' ) end [2025-03-16 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695863', 'tblTempVendorCDR_20' ) start [2025-03-16 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695863', 'tblTempVendorCDR_20' ) end [2025-03-16 20:16:18] Production.INFO: ProcessCDR(1,14695863,1,1,2) [2025-03-16 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695863', 'tblTempUsageDetail_20' ) start [2025-03-16 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695863', 'tblTempUsageDetail_20' ) end [2025-03-16 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:16:21] Production.INFO: ==16383== Releasing lock... [2025-03-16 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:16:21] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:17:05 [end_date_ymd] => 2025-03-16 20:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:17:05' and `end` < '2025-03-16 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-03-16 20:17:17] Production.INFO: count ==1503 [2025-03-16 20:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:17:05 - End Time 2025-03-16 20:17:05 [2025-03-16 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695868', 'tblTempUsageDetail_20' ) start [2025-03-16 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695868', 'tblTempUsageDetail_20' ) end [2025-03-16 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695868', 'tblTempVendorCDR_20' ) start [2025-03-16 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695868', 'tblTempVendorCDR_20' ) end [2025-03-16 20:17:17] Production.INFO: ProcessCDR(1,14695868,1,1,2) [2025-03-16 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695868', 'tblTempUsageDetail_20' ) start [2025-03-16 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695868', 'tblTempUsageDetail_20' ) end [2025-03-16 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:17:21] Production.INFO: ==16462== Releasing lock... [2025-03-16 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:17:21] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:18:05 [end_date_ymd] => 2025-03-16 20:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:18:05' and `end` < '2025-03-16 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-03-16 20:18:17] Production.INFO: count ==1503 [2025-03-16 20:18:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:18:05 - End Time 2025-03-16 20:18:05 [2025-03-16 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695873', 'tblTempUsageDetail_20' ) start [2025-03-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695873', 'tblTempUsageDetail_20' ) end [2025-03-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695873', 'tblTempVendorCDR_20' ) start [2025-03-16 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695873', 'tblTempVendorCDR_20' ) end [2025-03-16 20:18:18] Production.INFO: ProcessCDR(1,14695873,1,1,2) [2025-03-16 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695873', 'tblTempUsageDetail_20' ) start [2025-03-16 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695873', 'tblTempUsageDetail_20' ) end [2025-03-16 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:18:21] Production.INFO: ==16546== Releasing lock... [2025-03-16 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:18:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:19:04 [end_date_ymd] => 2025-03-16 20:19:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:19:04' and `end` < '2025-03-16 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-03-16 20:19:17] Production.INFO: count ==1506 [2025-03-16 20:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:19:04 - End Time 2025-03-16 20:19:04 [2025-03-16 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695878', 'tblTempUsageDetail_20' ) start [2025-03-16 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695878', 'tblTempUsageDetail_20' ) end [2025-03-16 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695878', 'tblTempVendorCDR_20' ) start [2025-03-16 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695878', 'tblTempVendorCDR_20' ) end [2025-03-16 20:19:17] Production.INFO: ProcessCDR(1,14695878,1,1,2) [2025-03-16 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695878', 'tblTempUsageDetail_20' ) start [2025-03-16 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695878', 'tblTempUsageDetail_20' ) end [2025-03-16 20:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:19:20] Production.INFO: ==16629== Releasing lock... [2025-03-16 20:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:19:20] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:20:06 [end_date_ymd] => 2025-03-16 20:20:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:20:06' and `end` < '2025-03-16 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-03-16 20:20:18] Production.INFO: count ==1504 [2025-03-16 20:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:20:06 - End Time 2025-03-16 20:20:06 [2025-03-16 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695884', 'tblTempUsageDetail_20' ) start [2025-03-16 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695884', 'tblTempUsageDetail_20' ) end [2025-03-16 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695884', 'tblTempVendorCDR_20' ) start [2025-03-16 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695884', 'tblTempVendorCDR_20' ) end [2025-03-16 20:20:18] Production.INFO: ProcessCDR(1,14695884,1,1,2) [2025-03-16 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695884', 'tblTempUsageDetail_20' ) start [2025-03-16 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695884', 'tblTempUsageDetail_20' ) end [2025-03-16 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:20:22] Production.INFO: ==16715== Releasing lock... [2025-03-16 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:21:05 [end_date_ymd] => 2025-03-16 20:21:05 [RateCDR] => 1 ) [2025-03-16 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:21:05' and `end` < '2025-03-16 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:21:18] Production.INFO: count ==1487 [2025-03-16 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:21:05 - End Time 2025-03-16 20:21:05 [2025-03-16 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695889', 'tblTempUsageDetail_20' ) start [2025-03-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695889', 'tblTempUsageDetail_20' ) end [2025-03-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695889', 'tblTempVendorCDR_20' ) start [2025-03-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695889', 'tblTempVendorCDR_20' ) end [2025-03-16 20:21:18] Production.INFO: ProcessCDR(1,14695889,1,1,2) [2025-03-16 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695889', 'tblTempUsageDetail_20' ) start [2025-03-16 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695889', 'tblTempUsageDetail_20' ) end [2025-03-16 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:21:23] Production.INFO: ==16797== Releasing lock... [2025-03-16 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:21:23] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:22:04 [end_date_ymd] => 2025-03-16 20:22:04 [RateCDR] => 1 ) [2025-03-16 20:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:22:04' and `end` < '2025-03-16 20:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:22:17] Production.INFO: count ==1484 [2025-03-16 20:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:22:04 - End Time 2025-03-16 20:22:04 [2025-03-16 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695894', 'tblTempUsageDetail_20' ) start [2025-03-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695894', 'tblTempUsageDetail_20' ) end [2025-03-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695894', 'tblTempVendorCDR_20' ) start [2025-03-16 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695894', 'tblTempVendorCDR_20' ) end [2025-03-16 20:22:17] Production.INFO: ProcessCDR(1,14695894,1,1,2) [2025-03-16 20:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695894', 'tblTempUsageDetail_20' ) start [2025-03-16 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695894', 'tblTempUsageDetail_20' ) end [2025-03-16 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:22:22] Production.INFO: ==16878== Releasing lock... [2025-03-16 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:22:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:23:06 [end_date_ymd] => 2025-03-16 20:23:06 [RateCDR] => 1 ) [2025-03-16 20:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:23:06' and `end` < '2025-03-16 20:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:23:18] Production.INFO: count ==1485 [2025-03-16 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:23:06 - End Time 2025-03-16 20:23:06 [2025-03-16 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695899', 'tblTempUsageDetail_20' ) start [2025-03-16 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695899', 'tblTempUsageDetail_20' ) end [2025-03-16 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695899', 'tblTempVendorCDR_20' ) start [2025-03-16 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695899', 'tblTempVendorCDR_20' ) end [2025-03-16 20:23:19] Production.INFO: ProcessCDR(1,14695899,1,1,2) [2025-03-16 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695899', 'tblTempUsageDetail_20' ) start [2025-03-16 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695899', 'tblTempUsageDetail_20' ) end [2025-03-16 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:23:23] Production.INFO: ==16965== Releasing lock... [2025-03-16 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:23:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 20:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:24:04 [end_date_ymd] => 2025-03-16 20:24:04 [RateCDR] => 1 ) [2025-03-16 20: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-03-16 17:24:04' and `end` < '2025-03-16 20: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-03-16 20:24:17] Production.INFO: count ==1476 [2025-03-16 20:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:24:04 - End Time 2025-03-16 20:24:04 [2025-03-16 20:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695904', 'tblTempUsageDetail_20' ) start [2025-03-16 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695904', 'tblTempUsageDetail_20' ) end [2025-03-16 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695904', 'tblTempVendorCDR_20' ) start [2025-03-16 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695904', 'tblTempVendorCDR_20' ) end [2025-03-16 20:24:17] Production.INFO: ProcessCDR(1,14695904,1,1,2) [2025-03-16 20:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695904', 'tblTempUsageDetail_20' ) start [2025-03-16 20:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695904', 'tblTempUsageDetail_20' ) end [2025-03-16 20:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:24:20] Production.INFO: ==17052== Releasing lock... [2025-03-16 20:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:24:20] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:25:05 [end_date_ymd] => 2025-03-16 20:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:25:05' and `end` < '2025-03-16 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-03-16 20:25:17] Production.INFO: count ==1463 [2025-03-16 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:25:05 - End Time 2025-03-16 20:25:05 [2025-03-16 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695909', 'tblTempUsageDetail_20' ) start [2025-03-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695909', 'tblTempUsageDetail_20' ) end [2025-03-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695909', 'tblTempVendorCDR_20' ) start [2025-03-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695909', 'tblTempVendorCDR_20' ) end [2025-03-16 20:25:18] Production.INFO: ProcessCDR(1,14695909,1,1,2) [2025-03-16 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695909', 'tblTempUsageDetail_20' ) start [2025-03-16 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695909', 'tblTempUsageDetail_20' ) end [2025-03-16 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:25:21] Production.INFO: ==17176== Releasing lock... [2025-03-16 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:25:21] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:26:05 [end_date_ymd] => 2025-03-16 20:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:26:05' and `end` < '2025-03-16 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-03-16 20:26:18] Production.INFO: count ==1458 [2025-03-16 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:26:05 - End Time 2025-03-16 20:26:05 [2025-03-16 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695914', 'tblTempUsageDetail_20' ) start [2025-03-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695914', 'tblTempUsageDetail_20' ) end [2025-03-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695914', 'tblTempVendorCDR_20' ) start [2025-03-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695914', 'tblTempVendorCDR_20' ) end [2025-03-16 20:26:18] Production.INFO: ProcessCDR(1,14695914,1,1,2) [2025-03-16 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695914', 'tblTempUsageDetail_20' ) start [2025-03-16 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695914', 'tblTempUsageDetail_20' ) end [2025-03-16 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:26:23] Production.INFO: ==17261== Releasing lock... [2025-03-16 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:26:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-16 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:27:05 [end_date_ymd] => 2025-03-16 20:27:05 [RateCDR] => 1 ) [2025-03-16 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:27:05' and `end` < '2025-03-16 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:27:17] Production.INFO: count ==1451 [2025-03-16 20:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:27:05 - End Time 2025-03-16 20:27:05 [2025-03-16 20:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695919', 'tblTempUsageDetail_20' ) start [2025-03-16 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695919', 'tblTempUsageDetail_20' ) end [2025-03-16 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695919', 'tblTempVendorCDR_20' ) start [2025-03-16 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695919', 'tblTempVendorCDR_20' ) end [2025-03-16 20:27:17] Production.INFO: ProcessCDR(1,14695919,1,1,2) [2025-03-16 20:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695919', 'tblTempUsageDetail_20' ) start [2025-03-16 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695919', 'tblTempUsageDetail_20' ) end [2025-03-16 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:27:21] Production.INFO: ==17344== Releasing lock... [2025-03-16 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:27:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:28:05 [end_date_ymd] => 2025-03-16 20:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:28:05' and `end` < '2025-03-16 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-03-16 20:28:17] Production.INFO: count ==1434 [2025-03-16 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:28:05 - End Time 2025-03-16 20:28:05 [2025-03-16 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695924', 'tblTempUsageDetail_20' ) start [2025-03-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695924', 'tblTempUsageDetail_20' ) end [2025-03-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695924', 'tblTempVendorCDR_20' ) start [2025-03-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695924', 'tblTempVendorCDR_20' ) end [2025-03-16 20:28:18] Production.INFO: ProcessCDR(1,14695924,1,1,2) [2025-03-16 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695924', 'tblTempUsageDetail_20' ) start [2025-03-16 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695924', 'tblTempUsageDetail_20' ) end [2025-03-16 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:28:21] Production.INFO: ==17425== Releasing lock... [2025-03-16 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:28:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:29:05 [end_date_ymd] => 2025-03-16 20:29:05 [RateCDR] => 1 ) [2025-03-16 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:29:05' and `end` < '2025-03-16 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:29:17] Production.INFO: count ==1432 [2025-03-16 20:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:29:05 - End Time 2025-03-16 20:29:05 [2025-03-16 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695929', 'tblTempUsageDetail_20' ) start [2025-03-16 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695929', 'tblTempUsageDetail_20' ) end [2025-03-16 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695929', 'tblTempVendorCDR_20' ) start [2025-03-16 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695929', 'tblTempVendorCDR_20' ) end [2025-03-16 20:29:17] Production.INFO: ProcessCDR(1,14695929,1,1,2) [2025-03-16 20:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695929', 'tblTempUsageDetail_20' ) start [2025-03-16 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695929', 'tblTempUsageDetail_20' ) end [2025-03-16 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:29:23] Production.INFO: ==17511== Releasing lock... [2025-03-16 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:29:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:30:06 [end_date_ymd] => 2025-03-16 20:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:30:06' and `end` < '2025-03-16 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-03-16 20:30:18] Production.INFO: count ==1430 [2025-03-16 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 17:30:06 - End Time 2025-03-16 20:30:06 [2025-03-16 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695935', 'tblTempUsageDetail_20' ) start [2025-03-16 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695935', 'tblTempUsageDetail_20' ) end [2025-03-16 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695935', 'tblTempVendorCDR_20' ) start [2025-03-16 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695935', 'tblTempVendorCDR_20' ) end [2025-03-16 20:30:19] Production.INFO: ProcessCDR(1,14695935,1,1,2) [2025-03-16 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695935', 'tblTempUsageDetail_20' ) start [2025-03-16 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695935', 'tblTempUsageDetail_20' ) end [2025-03-16 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:30:22] Production.INFO: ==17592== Releasing lock... [2025-03-16 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:30:22] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:31:05 [end_date_ymd] => 2025-03-16 20:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:31:05' and `end` < '2025-03-16 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-03-16 20:31:17] Production.INFO: count ==1426 [2025-03-16 20:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:31:05 - End Time 2025-03-16 20:31:05 [2025-03-16 20:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695940', 'tblTempUsageDetail_20' ) start [2025-03-16 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695940', 'tblTempUsageDetail_20' ) end [2025-03-16 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695940', 'tblTempVendorCDR_20' ) start [2025-03-16 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695940', 'tblTempVendorCDR_20' ) end [2025-03-16 20:31:17] Production.INFO: ProcessCDR(1,14695940,1,1,2) [2025-03-16 20:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695940', 'tblTempUsageDetail_20' ) start [2025-03-16 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695940', 'tblTempUsageDetail_20' ) end [2025-03-16 20:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:31:20] Production.INFO: ==17677== Releasing lock... [2025-03-16 20:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:31:20] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:32:05 [end_date_ymd] => 2025-03-16 20:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:32:05' and `end` < '2025-03-16 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-03-16 20:32:17] Production.INFO: count ==1426 [2025-03-16 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:32:05 - End Time 2025-03-16 20:32:05 [2025-03-16 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695945', 'tblTempUsageDetail_20' ) start [2025-03-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695945', 'tblTempUsageDetail_20' ) end [2025-03-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695945', 'tblTempVendorCDR_20' ) start [2025-03-16 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695945', 'tblTempVendorCDR_20' ) end [2025-03-16 20:32:18] Production.INFO: ProcessCDR(1,14695945,1,1,2) [2025-03-16 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695945', 'tblTempUsageDetail_20' ) start [2025-03-16 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695945', 'tblTempUsageDetail_20' ) end [2025-03-16 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:32:23] Production.INFO: ==17757== Releasing lock... [2025-03-16 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:32:23] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:33:05 [end_date_ymd] => 2025-03-16 20:33:05 [RateCDR] => 1 ) [2025-03-16 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:33:05' and `end` < '2025-03-16 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:33:18] Production.INFO: count ==1425 [2025-03-16 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:33:05 - End Time 2025-03-16 20:33:05 [2025-03-16 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695950', 'tblTempUsageDetail_20' ) start [2025-03-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695950', 'tblTempUsageDetail_20' ) end [2025-03-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695950', 'tblTempVendorCDR_20' ) start [2025-03-16 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695950', 'tblTempVendorCDR_20' ) end [2025-03-16 20:33:18] Production.INFO: ProcessCDR(1,14695950,1,1,2) [2025-03-16 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695950', 'tblTempUsageDetail_20' ) start [2025-03-16 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695950', 'tblTempUsageDetail_20' ) end [2025-03-16 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:33:21] Production.INFO: ==17840== Releasing lock... [2025-03-16 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:33:21] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:34:05 [end_date_ymd] => 2025-03-16 20:34:05 [RateCDR] => 1 ) [2025-03-16 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:34:05' and `end` < '2025-03-16 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:34:17] Production.INFO: count ==1426 [2025-03-16 20:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:34:05 - End Time 2025-03-16 20:34:05 [2025-03-16 20:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695955', 'tblTempUsageDetail_20' ) start [2025-03-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695955', 'tblTempUsageDetail_20' ) end [2025-03-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695955', 'tblTempVendorCDR_20' ) start [2025-03-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695955', 'tblTempVendorCDR_20' ) end [2025-03-16 20:34:18] Production.INFO: ProcessCDR(1,14695955,1,1,2) [2025-03-16 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695955', 'tblTempUsageDetail_20' ) start [2025-03-16 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695955', 'tblTempUsageDetail_20' ) end [2025-03-16 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:34:23] Production.INFO: ==17927== Releasing lock... [2025-03-16 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:35:05 [end_date_ymd] => 2025-03-16 20:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:35:05' and `end` < '2025-03-16 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-03-16 20:35:18] Production.INFO: count ==1419 [2025-03-16 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:35:05 - End Time 2025-03-16 20:35:05 [2025-03-16 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695959', 'tblTempUsageDetail_20' ) start [2025-03-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695959', 'tblTempUsageDetail_20' ) end [2025-03-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695959', 'tblTempVendorCDR_20' ) start [2025-03-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695959', 'tblTempVendorCDR_20' ) end [2025-03-16 20:35:18] Production.INFO: ProcessCDR(1,14695959,1,1,2) [2025-03-16 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695959', 'tblTempUsageDetail_20' ) start [2025-03-16 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695959', 'tblTempUsageDetail_20' ) end [2025-03-16 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:35:21] Production.INFO: ==18010== Releasing lock... [2025-03-16 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:35:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:36:05 [end_date_ymd] => 2025-03-16 20:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:36:05' and `end` < '2025-03-16 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-03-16 20:36:17] Production.INFO: count ==1421 [2025-03-16 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:36:05 - End Time 2025-03-16 20:36:05 [2025-03-16 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695965', 'tblTempUsageDetail_20' ) start [2025-03-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695965', 'tblTempUsageDetail_20' ) end [2025-03-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695965', 'tblTempVendorCDR_20' ) start [2025-03-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695965', 'tblTempVendorCDR_20' ) end [2025-03-16 20:36:18] Production.INFO: ProcessCDR(1,14695965,1,1,2) [2025-03-16 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695965', 'tblTempUsageDetail_20' ) start [2025-03-16 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695965', 'tblTempUsageDetail_20' ) end [2025-03-16 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:36:21] Production.INFO: ==18086== Releasing lock... [2025-03-16 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:36:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:37:06 [end_date_ymd] => 2025-03-16 20:37:06 [RateCDR] => 1 ) [2025-03-16 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:37:06' and `end` < '2025-03-16 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:37:18] Production.INFO: count ==1418 [2025-03-16 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-16 17:37:06 - End Time 2025-03-16 20:37:06 [2025-03-16 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695970', 'tblTempUsageDetail_20' ) start [2025-03-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695970', 'tblTempUsageDetail_20' ) end [2025-03-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695970', 'tblTempVendorCDR_20' ) start [2025-03-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695970', 'tblTempVendorCDR_20' ) end [2025-03-16 20:37:19] Production.INFO: ProcessCDR(1,14695970,1,1,2) [2025-03-16 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695970', 'tblTempUsageDetail_20' ) start [2025-03-16 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695970', 'tblTempUsageDetail_20' ) end [2025-03-16 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:37:22] Production.INFO: ==18167== Releasing lock... [2025-03-16 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:37:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:38:05 [end_date_ymd] => 2025-03-16 20:38:05 [RateCDR] => 1 ) [2025-03-16 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:38:05' and `end` < '2025-03-16 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:38:17] Production.INFO: count ==1418 [2025-03-16 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:38:05 - End Time 2025-03-16 20:38:05 [2025-03-16 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695975', 'tblTempUsageDetail_20' ) start [2025-03-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695975', 'tblTempUsageDetail_20' ) end [2025-03-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695975', 'tblTempVendorCDR_20' ) start [2025-03-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695975', 'tblTempVendorCDR_20' ) end [2025-03-16 20:38:18] Production.INFO: ProcessCDR(1,14695975,1,1,2) [2025-03-16 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695975', 'tblTempUsageDetail_20' ) start [2025-03-16 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695975', 'tblTempUsageDetail_20' ) end [2025-03-16 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:38:21] Production.INFO: ==18254== Releasing lock... [2025-03-16 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:38:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:39:06 [end_date_ymd] => 2025-03-16 20:39:06 [RateCDR] => 1 ) [2025-03-16 20: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-03-16 17:39:06' and `end` < '2025-03-16 20: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-03-16 20:39:18] Production.INFO: count ==1418 [2025-03-16 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:39:06 - End Time 2025-03-16 20:39:06 [2025-03-16 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695980', 'tblTempUsageDetail_20' ) start [2025-03-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695980', 'tblTempUsageDetail_20' ) end [2025-03-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695980', 'tblTempVendorCDR_20' ) start [2025-03-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695980', 'tblTempVendorCDR_20' ) end [2025-03-16 20:39:18] Production.INFO: ProcessCDR(1,14695980,1,1,2) [2025-03-16 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695980', 'tblTempUsageDetail_20' ) start [2025-03-16 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695980', 'tblTempUsageDetail_20' ) end [2025-03-16 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:39:23] Production.INFO: ==18331== Releasing lock... [2025-03-16 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:40:06 [end_date_ymd] => 2025-03-16 20:40:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:40:06' and `end` < '2025-03-16 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-03-16 20:40:18] Production.INFO: count ==1415 [2025-03-16 20:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:40:06 - End Time 2025-03-16 20:40:06 [2025-03-16 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695985', 'tblTempUsageDetail_20' ) start [2025-03-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695985', 'tblTempUsageDetail_20' ) end [2025-03-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695985', 'tblTempVendorCDR_20' ) start [2025-03-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695985', 'tblTempVendorCDR_20' ) end [2025-03-16 20:40:18] Production.INFO: ProcessCDR(1,14695985,1,1,2) [2025-03-16 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695985', 'tblTempUsageDetail_20' ) start [2025-03-16 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695985', 'tblTempUsageDetail_20' ) end [2025-03-16 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:40:22] Production.INFO: ==18406== Releasing lock... [2025-03-16 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:40:22] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:41:06 [end_date_ymd] => 2025-03-16 20:41:06 [RateCDR] => 1 ) [2025-03-16 20:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:41:06' and `end` < '2025-03-16 20:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:41:18] Production.INFO: count ==1430 [2025-03-16 20:41:19] Production.ERROR: pbx CDR StartTime 2025-03-16 17:41:06 - End Time 2025-03-16 20:41:06 [2025-03-16 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695991', 'tblTempUsageDetail_20' ) start [2025-03-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695991', 'tblTempUsageDetail_20' ) end [2025-03-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695991', 'tblTempVendorCDR_20' ) start [2025-03-16 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695991', 'tblTempVendorCDR_20' ) end [2025-03-16 20:41:19] Production.INFO: ProcessCDR(1,14695991,1,1,2) [2025-03-16 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695991', 'tblTempUsageDetail_20' ) start [2025-03-16 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695991', 'tblTempUsageDetail_20' ) end [2025-03-16 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:41:22] Production.INFO: ==18530== Releasing lock... [2025-03-16 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:42:05 [end_date_ymd] => 2025-03-16 20:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:42:05' and `end` < '2025-03-16 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-03-16 20:42:17] Production.INFO: count ==1428 [2025-03-16 20:42:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:42:05 - End Time 2025-03-16 20:42:05 [2025-03-16 20:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695996', 'tblTempUsageDetail_20' ) start [2025-03-16 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14695996', 'tblTempUsageDetail_20' ) end [2025-03-16 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695996', 'tblTempVendorCDR_20' ) start [2025-03-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14695996', 'tblTempVendorCDR_20' ) end [2025-03-16 20:42:18] Production.INFO: ProcessCDR(1,14695996,1,1,2) [2025-03-16 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14695996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14695996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14695996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14695996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695996', 'tblTempUsageDetail_20' ) start [2025-03-16 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14695996', 'tblTempUsageDetail_20' ) end [2025-03-16 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:42:21] Production.INFO: ==18619== Releasing lock... [2025-03-16 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:42:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:43:06 [end_date_ymd] => 2025-03-16 20:43:06 [RateCDR] => 1 ) [2025-03-16 20:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:43:06' and `end` < '2025-03-16 20:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:43:18] Production.INFO: count ==1424 [2025-03-16 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:43:06 - End Time 2025-03-16 20:43:06 [2025-03-16 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696001', 'tblTempUsageDetail_20' ) start [2025-03-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696001', 'tblTempUsageDetail_20' ) end [2025-03-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696001', 'tblTempVendorCDR_20' ) start [2025-03-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696001', 'tblTempVendorCDR_20' ) end [2025-03-16 20:43:18] Production.INFO: ProcessCDR(1,14696001,1,1,2) [2025-03-16 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696001', 'tblTempUsageDetail_20' ) start [2025-03-16 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696001', 'tblTempUsageDetail_20' ) end [2025-03-16 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:43:21] Production.INFO: ==18697== Releasing lock... [2025-03-16 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:43:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:44:04 [end_date_ymd] => 2025-03-16 20:44:04 [RateCDR] => 1 ) [2025-03-16 20: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-03-16 17:44:04' and `end` < '2025-03-16 20: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-03-16 20:44:17] Production.INFO: count ==1419 [2025-03-16 20:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:44:04 - End Time 2025-03-16 20:44:04 [2025-03-16 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696006', 'tblTempUsageDetail_20' ) start [2025-03-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696006', 'tblTempUsageDetail_20' ) end [2025-03-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696006', 'tblTempVendorCDR_20' ) start [2025-03-16 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696006', 'tblTempVendorCDR_20' ) end [2025-03-16 20:44:17] Production.INFO: ProcessCDR(1,14696006,1,1,2) [2025-03-16 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696006', 'tblTempUsageDetail_20' ) start [2025-03-16 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696006', 'tblTempUsageDetail_20' ) end [2025-03-16 20:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:44:20] Production.INFO: ==18772== Releasing lock... [2025-03-16 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:44:20] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:45:05 [end_date_ymd] => 2025-03-16 20:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:45:05' and `end` < '2025-03-16 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-03-16 20:45:18] Production.INFO: count ==1409 [2025-03-16 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:45:05 - End Time 2025-03-16 20:45:05 [2025-03-16 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696011', 'tblTempUsageDetail_20' ) start [2025-03-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696011', 'tblTempUsageDetail_20' ) end [2025-03-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696011', 'tblTempVendorCDR_20' ) start [2025-03-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696011', 'tblTempVendorCDR_20' ) end [2025-03-16 20:45:18] Production.INFO: ProcessCDR(1,14696011,1,1,2) [2025-03-16 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696011', 'tblTempUsageDetail_20' ) start [2025-03-16 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696011', 'tblTempUsageDetail_20' ) end [2025-03-16 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:45:21] Production.INFO: ==18856== Releasing lock... [2025-03-16 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:45:21] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:46:05 [end_date_ymd] => 2025-03-16 20:46:05 [RateCDR] => 1 ) [2025-03-16 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:46:05' and `end` < '2025-03-16 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:46:17] Production.INFO: count ==1405 [2025-03-16 20:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:46:05 - End Time 2025-03-16 20:46:05 [2025-03-16 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696016', 'tblTempUsageDetail_20' ) start [2025-03-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696016', 'tblTempUsageDetail_20' ) end [2025-03-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696016', 'tblTempVendorCDR_20' ) start [2025-03-16 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696016', 'tblTempVendorCDR_20' ) end [2025-03-16 20:46:17] Production.INFO: ProcessCDR(1,14696016,1,1,2) [2025-03-16 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696016', 'tblTempUsageDetail_20' ) start [2025-03-16 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696016', 'tblTempUsageDetail_20' ) end [2025-03-16 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:46:21] Production.INFO: ==18935== Releasing lock... [2025-03-16 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:46:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:47:05 [end_date_ymd] => 2025-03-16 20:47:05 [RateCDR] => 1 ) [2025-03-16 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:47:05' and `end` < '2025-03-16 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:47:17] Production.INFO: count ==1406 [2025-03-16 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:47:05 - End Time 2025-03-16 20:47:05 [2025-03-16 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696021', 'tblTempUsageDetail_20' ) start [2025-03-16 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696021', 'tblTempUsageDetail_20' ) end [2025-03-16 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696021', 'tblTempVendorCDR_20' ) start [2025-03-16 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696021', 'tblTempVendorCDR_20' ) end [2025-03-16 20:47:18] Production.INFO: ProcessCDR(1,14696021,1,1,2) [2025-03-16 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696021', 'tblTempUsageDetail_20' ) start [2025-03-16 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696021', 'tblTempUsageDetail_20' ) end [2025-03-16 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:47:21] Production.INFO: ==19016== Releasing lock... [2025-03-16 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:48:05 [end_date_ymd] => 2025-03-16 20:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:48:05' and `end` < '2025-03-16 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-03-16 20:48:17] Production.INFO: count ==1404 [2025-03-16 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:48:05 - End Time 2025-03-16 20:48:05 [2025-03-16 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696026', 'tblTempUsageDetail_20' ) start [2025-03-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696026', 'tblTempUsageDetail_20' ) end [2025-03-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696026', 'tblTempVendorCDR_20' ) start [2025-03-16 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696026', 'tblTempVendorCDR_20' ) end [2025-03-16 20:48:18] Production.INFO: ProcessCDR(1,14696026,1,1,2) [2025-03-16 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696026', 'tblTempUsageDetail_20' ) start [2025-03-16 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696026', 'tblTempUsageDetail_20' ) end [2025-03-16 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:48:21] Production.INFO: ==19106== Releasing lock... [2025-03-16 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:48:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-16 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:49:05 [end_date_ymd] => 2025-03-16 20:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:49:05' and `end` < '2025-03-16 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-03-16 20:49:17] Production.INFO: count ==1403 [2025-03-16 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:49:05 - End Time 2025-03-16 20:49:05 [2025-03-16 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696031', 'tblTempUsageDetail_20' ) start [2025-03-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696031', 'tblTempUsageDetail_20' ) end [2025-03-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696031', 'tblTempVendorCDR_20' ) start [2025-03-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696031', 'tblTempVendorCDR_20' ) end [2025-03-16 20:49:18] Production.INFO: ProcessCDR(1,14696031,1,1,2) [2025-03-16 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696031', 'tblTempUsageDetail_20' ) start [2025-03-16 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696031', 'tblTempUsageDetail_20' ) end [2025-03-16 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:49:22] Production.INFO: ==19192== Releasing lock... [2025-03-16 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:49:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:50:06 [end_date_ymd] => 2025-03-16 20:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:50:06' and `end` < '2025-03-16 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-03-16 20:50:18] Production.INFO: count ==1400 [2025-03-16 20:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:50:06 - End Time 2025-03-16 20:50:06 [2025-03-16 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696034', 'tblTempUsageDetail_20' ) start [2025-03-16 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696034', 'tblTempUsageDetail_20' ) end [2025-03-16 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696034', 'tblTempVendorCDR_20' ) start [2025-03-16 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696034', 'tblTempVendorCDR_20' ) end [2025-03-16 20:50:18] Production.INFO: ProcessCDR(1,14696034,1,1,2) [2025-03-16 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696034', 'tblTempUsageDetail_20' ) start [2025-03-16 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696034', 'tblTempUsageDetail_20' ) end [2025-03-16 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:50:22] Production.INFO: ==19277== Releasing lock... [2025-03-16 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:50:22] Production.INFO: 39 MB #Memory Used# [2025-03-16 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:51:05 [end_date_ymd] => 2025-03-16 20:51:05 [RateCDR] => 1 ) [2025-03-16 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:51:05' and `end` < '2025-03-16 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:51:18] Production.INFO: count ==1354 [2025-03-16 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:51:05 - End Time 2025-03-16 20:51:05 [2025-03-16 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696042', 'tblTempUsageDetail_20' ) start [2025-03-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696042', 'tblTempUsageDetail_20' ) end [2025-03-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696042', 'tblTempVendorCDR_20' ) start [2025-03-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696042', 'tblTempVendorCDR_20' ) end [2025-03-16 20:51:18] Production.INFO: ProcessCDR(1,14696042,1,1,2) [2025-03-16 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696042', 'tblTempUsageDetail_20' ) start [2025-03-16 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696042', 'tblTempUsageDetail_20' ) end [2025-03-16 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:51:21] Production.INFO: ==19360== Releasing lock... [2025-03-16 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:51:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:52:05 [end_date_ymd] => 2025-03-16 20:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:52:05' and `end` < '2025-03-16 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-03-16 20:52:17] Production.INFO: count ==1355 [2025-03-16 20:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:52:05 - End Time 2025-03-16 20:52:05 [2025-03-16 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696047', 'tblTempUsageDetail_20' ) start [2025-03-16 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696047', 'tblTempUsageDetail_20' ) end [2025-03-16 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696047', 'tblTempVendorCDR_20' ) start [2025-03-16 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696047', 'tblTempVendorCDR_20' ) end [2025-03-16 20:52:17] Production.INFO: ProcessCDR(1,14696047,1,1,2) [2025-03-16 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696047', 'tblTempUsageDetail_20' ) start [2025-03-16 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696047', 'tblTempUsageDetail_20' ) end [2025-03-16 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:52:21] Production.INFO: ==19445== Releasing lock... [2025-03-16 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:52:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:53:05 [end_date_ymd] => 2025-03-16 20:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:53:05' and `end` < '2025-03-16 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-03-16 20:53:17] Production.INFO: count ==1348 [2025-03-16 20:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:53:05 - End Time 2025-03-16 20:53:05 [2025-03-16 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696052', 'tblTempUsageDetail_20' ) start [2025-03-16 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696052', 'tblTempUsageDetail_20' ) end [2025-03-16 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696052', 'tblTempVendorCDR_20' ) start [2025-03-16 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696052', 'tblTempVendorCDR_20' ) end [2025-03-16 20:53:17] Production.INFO: ProcessCDR(1,14696052,1,1,2) [2025-03-16 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696052', 'tblTempUsageDetail_20' ) start [2025-03-16 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696052', 'tblTempUsageDetail_20' ) end [2025-03-16 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:53:21] Production.INFO: ==19521== Releasing lock... [2025-03-16 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:53:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:54:06 [end_date_ymd] => 2025-03-16 20:54:06 [RateCDR] => 1 ) [2025-03-16 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:54:06' and `end` < '2025-03-16 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:54:18] Production.INFO: count ==1346 [2025-03-16 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:54:06 - End Time 2025-03-16 20:54:06 [2025-03-16 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696057', 'tblTempUsageDetail_20' ) start [2025-03-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696057', 'tblTempUsageDetail_20' ) end [2025-03-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696057', 'tblTempVendorCDR_20' ) start [2025-03-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696057', 'tblTempVendorCDR_20' ) end [2025-03-16 20:54:18] Production.INFO: ProcessCDR(1,14696057,1,1,2) [2025-03-16 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696057', 'tblTempUsageDetail_20' ) start [2025-03-16 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696057', 'tblTempUsageDetail_20' ) end [2025-03-16 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:54:23] Production.INFO: ==19610== Releasing lock... [2025-03-16 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:54:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:55:05 [end_date_ymd] => 2025-03-16 20:55:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:55:05' and `end` < '2025-03-16 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-03-16 20:55:17] Production.INFO: count ==1341 [2025-03-16 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:55:05 - End Time 2025-03-16 20:55:05 [2025-03-16 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696062', 'tblTempUsageDetail_20' ) start [2025-03-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696062', 'tblTempUsageDetail_20' ) end [2025-03-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696062', 'tblTempVendorCDR_20' ) start [2025-03-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696062', 'tblTempVendorCDR_20' ) end [2025-03-16 20:55:18] Production.INFO: ProcessCDR(1,14696062,1,1,2) [2025-03-16 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696062', 'tblTempUsageDetail_20' ) start [2025-03-16 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696062', 'tblTempUsageDetail_20' ) end [2025-03-16 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:55:21] Production.INFO: ==19686== Releasing lock... [2025-03-16 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:55:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:56:06 [end_date_ymd] => 2025-03-16 20:56:06 [RateCDR] => 1 ) [2025-03-16 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 17:56:06' and `end` < '2025-03-16 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 20:56:18] Production.INFO: count ==1339 [2025-03-16 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:56:06 - End Time 2025-03-16 20:56:06 [2025-03-16 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696067', 'tblTempUsageDetail_20' ) start [2025-03-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696067', 'tblTempUsageDetail_20' ) end [2025-03-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696067', 'tblTempVendorCDR_20' ) start [2025-03-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696067', 'tblTempVendorCDR_20' ) end [2025-03-16 20:56:18] Production.INFO: ProcessCDR(1,14696067,1,1,2) [2025-03-16 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696067', 'tblTempUsageDetail_20' ) start [2025-03-16 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696067', 'tblTempUsageDetail_20' ) end [2025-03-16 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:56:22] Production.INFO: ==19807== Releasing lock... [2025-03-16 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:56:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:57:05 [end_date_ymd] => 2025-03-16 20:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:57:05' and `end` < '2025-03-16 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-03-16 20:57:17] Production.INFO: count ==1322 [2025-03-16 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:57:05 - End Time 2025-03-16 20:57:05 [2025-03-16 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696072', 'tblTempUsageDetail_20' ) start [2025-03-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696072', 'tblTempUsageDetail_20' ) end [2025-03-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696072', 'tblTempVendorCDR_20' ) start [2025-03-16 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696072', 'tblTempVendorCDR_20' ) end [2025-03-16 20:57:18] Production.INFO: ProcessCDR(1,14696072,1,1,2) [2025-03-16 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696072', 'tblTempUsageDetail_20' ) start [2025-03-16 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696072', 'tblTempUsageDetail_20' ) end [2025-03-16 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:57:21] Production.INFO: ==19890== Releasing lock... [2025-03-16 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:57:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-16 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:58:05 [end_date_ymd] => 2025-03-16 20:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:58:05' and `end` < '2025-03-16 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-03-16 20:58:18] Production.INFO: count ==1316 [2025-03-16 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-16 17:58:05 - End Time 2025-03-16 20:58:05 [2025-03-16 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696077', 'tblTempUsageDetail_20' ) start [2025-03-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696077', 'tblTempUsageDetail_20' ) end [2025-03-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696077', 'tblTempVendorCDR_20' ) start [2025-03-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696077', 'tblTempVendorCDR_20' ) end [2025-03-16 20:58:18] Production.INFO: ProcessCDR(1,14696077,1,1,2) [2025-03-16 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696077', 'tblTempUsageDetail_20' ) start [2025-03-16 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696077', 'tblTempUsageDetail_20' ) end [2025-03-16 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:58:21] Production.INFO: ==19973== Releasing lock... [2025-03-16 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:58:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 17:59:05 [end_date_ymd] => 2025-03-16 20:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 17:59:05' and `end` < '2025-03-16 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-03-16 20:59:17] Production.INFO: count ==1310 [2025-03-16 20:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 17:59:05 - End Time 2025-03-16 20:59:05 [2025-03-16 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696082', 'tblTempUsageDetail_20' ) start [2025-03-16 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696082', 'tblTempUsageDetail_20' ) end [2025-03-16 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696082', 'tblTempVendorCDR_20' ) start [2025-03-16 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696082', 'tblTempVendorCDR_20' ) end [2025-03-16 20:59:17] Production.INFO: ProcessCDR(1,14696082,1,1,2) [2025-03-16 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696082', 'tblTempUsageDetail_20' ) start [2025-03-16 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696082', 'tblTempUsageDetail_20' ) end [2025-03-16 20:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 20:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 20:59:20] Production.INFO: ==20048== Releasing lock... [2025-03-16 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 20:59:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:00:06 [end_date_ymd] => 2025-03-16 21:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:00:06' and `end` < '2025-03-16 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-03-16 21:00:19] Production.INFO: count ==1305 [2025-03-16 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-16 18:00:06 - End Time 2025-03-16 21:00:06 [2025-03-16 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696088', 'tblTempUsageDetail_20' ) start [2025-03-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696088', 'tblTempUsageDetail_20' ) end [2025-03-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696088', 'tblTempVendorCDR_20' ) start [2025-03-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696088', 'tblTempVendorCDR_20' ) end [2025-03-16 21:00:19] Production.INFO: ProcessCDR(1,14696088,1,1,2) [2025-03-16 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696088', 'tblTempUsageDetail_20' ) start [2025-03-16 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696088', 'tblTempUsageDetail_20' ) end [2025-03-16 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:00:24] Production.INFO: ==20140== Releasing lock... [2025-03-16 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:00:24] Production.INFO: 38 MB #Memory Used# [2025-03-16 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:01:05 [end_date_ymd] => 2025-03-16 21:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:01:05' and `end` < '2025-03-16 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-03-16 21:01:17] Production.INFO: count ==1260 [2025-03-16 21:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:01:05 - End Time 2025-03-16 21:01:05 [2025-03-16 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696093', 'tblTempUsageDetail_20' ) start [2025-03-16 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696093', 'tblTempUsageDetail_20' ) end [2025-03-16 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696093', 'tblTempVendorCDR_20' ) start [2025-03-16 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696093', 'tblTempVendorCDR_20' ) end [2025-03-16 21:01:17] Production.INFO: ProcessCDR(1,14696093,1,1,2) [2025-03-16 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696093', 'tblTempUsageDetail_20' ) start [2025-03-16 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696093', 'tblTempUsageDetail_20' ) end [2025-03-16 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:01:21] Production.INFO: ==20235== Releasing lock... [2025-03-16 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:01:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:02:06 [end_date_ymd] => 2025-03-16 21:02:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:02:06' and `end` < '2025-03-16 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-03-16 21:02:18] Production.INFO: count ==1266 [2025-03-16 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:02:06 - End Time 2025-03-16 21:02:06 [2025-03-16 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696098', 'tblTempUsageDetail_20' ) start [2025-03-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696098', 'tblTempUsageDetail_20' ) end [2025-03-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696098', 'tblTempVendorCDR_20' ) start [2025-03-16 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696098', 'tblTempVendorCDR_20' ) end [2025-03-16 21:02:18] Production.INFO: ProcessCDR(1,14696098,1,1,2) [2025-03-16 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696098', 'tblTempUsageDetail_20' ) start [2025-03-16 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696098', 'tblTempUsageDetail_20' ) end [2025-03-16 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:02:22] Production.INFO: ==20314== Releasing lock... [2025-03-16 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:02:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-16 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:03:05 [end_date_ymd] => 2025-03-16 21:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:03:05' and `end` < '2025-03-16 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-03-16 21:03:17] Production.INFO: count ==1269 [2025-03-16 21:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:03:05 - End Time 2025-03-16 21:03:05 [2025-03-16 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696103', 'tblTempUsageDetail_20' ) start [2025-03-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696103', 'tblTempUsageDetail_20' ) end [2025-03-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696103', 'tblTempVendorCDR_20' ) start [2025-03-16 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696103', 'tblTempVendorCDR_20' ) end [2025-03-16 21:03:17] Production.INFO: ProcessCDR(1,14696103,1,1,2) [2025-03-16 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696103', 'tblTempUsageDetail_20' ) start [2025-03-16 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696103', 'tblTempUsageDetail_20' ) end [2025-03-16 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:03:21] Production.INFO: ==20392== Releasing lock... [2025-03-16 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:03:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:04:05 [end_date_ymd] => 2025-03-16 21:04:05 [RateCDR] => 1 ) [2025-03-16 21: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-03-16 18:04:05' and `end` < '2025-03-16 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:04:18] Production.INFO: count ==1258 [2025-03-16 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:04:05 - End Time 2025-03-16 21:04:05 [2025-03-16 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696108', 'tblTempUsageDetail_20' ) start [2025-03-16 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696108', 'tblTempUsageDetail_20' ) end [2025-03-16 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696108', 'tblTempVendorCDR_20' ) start [2025-03-16 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696108', 'tblTempVendorCDR_20' ) end [2025-03-16 21:04:18] Production.INFO: ProcessCDR(1,14696108,1,1,2) [2025-03-16 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696108', 'tblTempUsageDetail_20' ) start [2025-03-16 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696108', 'tblTempUsageDetail_20' ) end [2025-03-16 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:04:21] Production.INFO: ==20472== Releasing lock... [2025-03-16 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:04:21] Production.INFO: 38 MB #Memory Used# [2025-03-16 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:05:04 [end_date_ymd] => 2025-03-16 21:05:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:05:04' and `end` < '2025-03-16 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-03-16 21:05:17] Production.INFO: count ==1255 [2025-03-16 21:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:05:04 - End Time 2025-03-16 21:05:04 [2025-03-16 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696113', 'tblTempUsageDetail_20' ) start [2025-03-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696113', 'tblTempUsageDetail_20' ) end [2025-03-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696113', 'tblTempVendorCDR_20' ) start [2025-03-16 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696113', 'tblTempVendorCDR_20' ) end [2025-03-16 21:05:17] Production.INFO: ProcessCDR(1,14696113,1,1,2) [2025-03-16 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696113', 'tblTempUsageDetail_20' ) start [2025-03-16 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696113', 'tblTempUsageDetail_20' ) end [2025-03-16 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:05:22] Production.INFO: ==20556== Releasing lock... [2025-03-16 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:06:05 [end_date_ymd] => 2025-03-16 21:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:06:05' and `end` < '2025-03-16 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-03-16 21:06:18] Production.INFO: count ==1254 [2025-03-16 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:06:05 - End Time 2025-03-16 21:06:05 [2025-03-16 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696118', 'tblTempUsageDetail_20' ) start [2025-03-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696118', 'tblTempUsageDetail_20' ) end [2025-03-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696118', 'tblTempVendorCDR_20' ) start [2025-03-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696118', 'tblTempVendorCDR_20' ) end [2025-03-16 21:06:18] Production.INFO: ProcessCDR(1,14696118,1,1,2) [2025-03-16 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696118', 'tblTempUsageDetail_20' ) start [2025-03-16 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696118', 'tblTempUsageDetail_20' ) end [2025-03-16 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:06:21] Production.INFO: ==20632== Releasing lock... [2025-03-16 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:06:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:07:05 [end_date_ymd] => 2025-03-16 21:07:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:07:05' and `end` < '2025-03-16 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-03-16 21:07:17] Production.INFO: count ==1246 [2025-03-16 21:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:07:05 - End Time 2025-03-16 21:07:05 [2025-03-16 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696123', 'tblTempUsageDetail_20' ) start [2025-03-16 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696123', 'tblTempUsageDetail_20' ) end [2025-03-16 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696123', 'tblTempVendorCDR_20' ) start [2025-03-16 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696123', 'tblTempVendorCDR_20' ) end [2025-03-16 21:07:17] Production.INFO: ProcessCDR(1,14696123,1,1,2) [2025-03-16 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696123', 'tblTempUsageDetail_20' ) start [2025-03-16 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696123', 'tblTempUsageDetail_20' ) end [2025-03-16 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:07:22] Production.INFO: ==20704== Releasing lock... [2025-03-16 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-16 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:08:05 [end_date_ymd] => 2025-03-16 21:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:08:05' and `end` < '2025-03-16 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-03-16 21:08:18] Production.INFO: count ==1239 [2025-03-16 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:08:05 - End Time 2025-03-16 21:08:05 [2025-03-16 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696128', 'tblTempUsageDetail_20' ) start [2025-03-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696128', 'tblTempUsageDetail_20' ) end [2025-03-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696128', 'tblTempVendorCDR_20' ) start [2025-03-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696128', 'tblTempVendorCDR_20' ) end [2025-03-16 21:08:18] Production.INFO: ProcessCDR(1,14696128,1,1,2) [2025-03-16 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696128', 'tblTempUsageDetail_20' ) start [2025-03-16 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696128', 'tblTempUsageDetail_20' ) end [2025-03-16 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:08:21] Production.INFO: ==20788== Releasing lock... [2025-03-16 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:08:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:09:06 [end_date_ymd] => 2025-03-16 21:09:06 [RateCDR] => 1 ) [2025-03-16 21: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-03-16 18:09:06' and `end` < '2025-03-16 21: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-03-16 21:09:18] Production.INFO: count ==1228 [2025-03-16 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:09:06 - End Time 2025-03-16 21:09:06 [2025-03-16 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696133', 'tblTempUsageDetail_20' ) start [2025-03-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696133', 'tblTempUsageDetail_20' ) end [2025-03-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696133', 'tblTempVendorCDR_20' ) start [2025-03-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696133', 'tblTempVendorCDR_20' ) end [2025-03-16 21:09:18] Production.INFO: ProcessCDR(1,14696133,1,1,2) [2025-03-16 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696133', 'tblTempUsageDetail_20' ) start [2025-03-16 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696133', 'tblTempUsageDetail_20' ) end [2025-03-16 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:09:23] Production.INFO: ==20865== Releasing lock... [2025-03-16 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:09:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-16 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:10:06 [end_date_ymd] => 2025-03-16 21:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:10:06' and `end` < '2025-03-16 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-03-16 21:10:18] Production.INFO: count ==1225 [2025-03-16 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-16 18:10:06 - End Time 2025-03-16 21:10:06 [2025-03-16 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696139', 'tblTempUsageDetail_20' ) start [2025-03-16 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696139', 'tblTempUsageDetail_20' ) end [2025-03-16 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696139', 'tblTempVendorCDR_20' ) start [2025-03-16 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696139', 'tblTempVendorCDR_20' ) end [2025-03-16 21:10:19] Production.INFO: ProcessCDR(1,14696139,1,1,2) [2025-03-16 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696139', 'tblTempUsageDetail_20' ) start [2025-03-16 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696139', 'tblTempUsageDetail_20' ) end [2025-03-16 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:10:23] Production.INFO: ==20947== Releasing lock... [2025-03-16 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:10:23] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:11:05 [end_date_ymd] => 2025-03-16 21:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:11:05' and `end` < '2025-03-16 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-03-16 21:11:17] Production.INFO: count ==1177 [2025-03-16 21:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:11:05 - End Time 2025-03-16 21:11:05 [2025-03-16 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696144', 'tblTempUsageDetail_20' ) start [2025-03-16 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696144', 'tblTempUsageDetail_20' ) end [2025-03-16 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696144', 'tblTempVendorCDR_20' ) start [2025-03-16 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696144', 'tblTempVendorCDR_20' ) end [2025-03-16 21:11:18] Production.INFO: ProcessCDR(1,14696144,1,1,2) [2025-03-16 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696144', 'tblTempUsageDetail_20' ) start [2025-03-16 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696144', 'tblTempUsageDetail_20' ) end [2025-03-16 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:11:21] Production.INFO: ==21080== Releasing lock... [2025-03-16 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:11:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:12:05 [end_date_ymd] => 2025-03-16 21:12:05 [RateCDR] => 1 ) [2025-03-16 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:12:05' and `end` < '2025-03-16 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:12:17] Production.INFO: count ==1180 [2025-03-16 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:12:05 - End Time 2025-03-16 21:12:05 [2025-03-16 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696149', 'tblTempUsageDetail_20' ) start [2025-03-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696149', 'tblTempUsageDetail_20' ) end [2025-03-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696149', 'tblTempVendorCDR_20' ) start [2025-03-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696149', 'tblTempVendorCDR_20' ) end [2025-03-16 21:12:18] Production.INFO: ProcessCDR(1,14696149,1,1,2) [2025-03-16 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696149', 'tblTempUsageDetail_20' ) start [2025-03-16 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696149', 'tblTempUsageDetail_20' ) end [2025-03-16 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:12:21] Production.INFO: ==21153== Releasing lock... [2025-03-16 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:12:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:13:05 [end_date_ymd] => 2025-03-16 21:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:13:05' and `end` < '2025-03-16 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-03-16 21:13:17] Production.INFO: count ==1178 [2025-03-16 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:13:05 - End Time 2025-03-16 21:13:05 [2025-03-16 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696154', 'tblTempUsageDetail_20' ) start [2025-03-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696154', 'tblTempUsageDetail_20' ) end [2025-03-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696154', 'tblTempVendorCDR_20' ) start [2025-03-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696154', 'tblTempVendorCDR_20' ) end [2025-03-16 21:13:18] Production.INFO: ProcessCDR(1,14696154,1,1,2) [2025-03-16 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696154', 'tblTempUsageDetail_20' ) start [2025-03-16 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696154', 'tblTempUsageDetail_20' ) end [2025-03-16 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:13:21] Production.INFO: ==21241== Releasing lock... [2025-03-16 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:13:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:14:05 [end_date_ymd] => 2025-03-16 21:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:14:05' and `end` < '2025-03-16 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-03-16 21:14:17] Production.INFO: count ==1181 [2025-03-16 21:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:14:05 - End Time 2025-03-16 21:14:05 [2025-03-16 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696159', 'tblTempUsageDetail_20' ) start [2025-03-16 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696159', 'tblTempUsageDetail_20' ) end [2025-03-16 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696159', 'tblTempVendorCDR_20' ) start [2025-03-16 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696159', 'tblTempVendorCDR_20' ) end [2025-03-16 21:14:17] Production.INFO: ProcessCDR(1,14696159,1,1,2) [2025-03-16 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696159', 'tblTempUsageDetail_20' ) start [2025-03-16 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696159', 'tblTempUsageDetail_20' ) end [2025-03-16 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:14:22] Production.INFO: ==21319== Releasing lock... [2025-03-16 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:14:22] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:15:05 [end_date_ymd] => 2025-03-16 21:15:05 [RateCDR] => 1 ) [2025-03-16 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:15:05' and `end` < '2025-03-16 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:15:18] Production.INFO: count ==1178 [2025-03-16 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:15:05 - End Time 2025-03-16 21:15:05 [2025-03-16 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696164', 'tblTempUsageDetail_20' ) start [2025-03-16 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696164', 'tblTempUsageDetail_20' ) end [2025-03-16 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696164', 'tblTempVendorCDR_20' ) start [2025-03-16 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696164', 'tblTempVendorCDR_20' ) end [2025-03-16 21:15:18] Production.INFO: ProcessCDR(1,14696164,1,1,2) [2025-03-16 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696164', 'tblTempUsageDetail_20' ) start [2025-03-16 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696164', 'tblTempUsageDetail_20' ) end [2025-03-16 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:15:21] Production.INFO: ==21401== Releasing lock... [2025-03-16 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:15:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:16:05 [end_date_ymd] => 2025-03-16 21:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:16:05' and `end` < '2025-03-16 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-03-16 21:16:17] Production.INFO: count ==1178 [2025-03-16 21:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:16:05 - End Time 2025-03-16 21:16:05 [2025-03-16 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696169', 'tblTempUsageDetail_20' ) start [2025-03-16 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696169', 'tblTempUsageDetail_20' ) end [2025-03-16 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696169', 'tblTempVendorCDR_20' ) start [2025-03-16 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696169', 'tblTempVendorCDR_20' ) end [2025-03-16 21:16:17] Production.INFO: ProcessCDR(1,14696169,1,1,2) [2025-03-16 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696169', 'tblTempUsageDetail_20' ) start [2025-03-16 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696169', 'tblTempUsageDetail_20' ) end [2025-03-16 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:16:21] Production.INFO: ==21482== Releasing lock... [2025-03-16 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:16:21] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:17:05 [end_date_ymd] => 2025-03-16 21:17:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:17:05' and `end` < '2025-03-16 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-03-16 21:17:18] Production.INFO: count ==1180 [2025-03-16 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:17:05 - End Time 2025-03-16 21:17:05 [2025-03-16 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696174', 'tblTempUsageDetail_20' ) start [2025-03-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696174', 'tblTempUsageDetail_20' ) end [2025-03-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696174', 'tblTempVendorCDR_20' ) start [2025-03-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696174', 'tblTempVendorCDR_20' ) end [2025-03-16 21:17:18] Production.INFO: ProcessCDR(1,14696174,1,1,2) [2025-03-16 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696174', 'tblTempUsageDetail_20' ) start [2025-03-16 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696174', 'tblTempUsageDetail_20' ) end [2025-03-16 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:17:23] Production.INFO: ==21561== Releasing lock... [2025-03-16 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:17:23] Production.INFO: 37 MB #Memory Used# [2025-03-16 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:18:05 [end_date_ymd] => 2025-03-16 21:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:18:05' and `end` < '2025-03-16 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-03-16 21:18:17] Production.INFO: count ==1176 [2025-03-16 21:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:18:05 - End Time 2025-03-16 21:18:05 [2025-03-16 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696179', 'tblTempUsageDetail_20' ) start [2025-03-16 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696179', 'tblTempUsageDetail_20' ) end [2025-03-16 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696179', 'tblTempVendorCDR_20' ) start [2025-03-16 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696179', 'tblTempVendorCDR_20' ) end [2025-03-16 21:18:17] Production.INFO: ProcessCDR(1,14696179,1,1,2) [2025-03-16 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696179', 'tblTempUsageDetail_20' ) start [2025-03-16 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696179', 'tblTempUsageDetail_20' ) end [2025-03-16 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:18:21] Production.INFO: ==21658== Releasing lock... [2025-03-16 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:18:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:19:05 [end_date_ymd] => 2025-03-16 21:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:19:05' and `end` < '2025-03-16 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-03-16 21:19:18] Production.INFO: count ==1176 [2025-03-16 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:19:05 - End Time 2025-03-16 21:19:05 [2025-03-16 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696184', 'tblTempUsageDetail_20' ) start [2025-03-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696184', 'tblTempUsageDetail_20' ) end [2025-03-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696184', 'tblTempVendorCDR_20' ) start [2025-03-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696184', 'tblTempVendorCDR_20' ) end [2025-03-16 21:19:18] Production.INFO: ProcessCDR(1,14696184,1,1,2) [2025-03-16 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696184', 'tblTempUsageDetail_20' ) start [2025-03-16 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696184', 'tblTempUsageDetail_20' ) end [2025-03-16 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:19:21] Production.INFO: ==21743== Releasing lock... [2025-03-16 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:19:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:20:06 [end_date_ymd] => 2025-03-16 21:20:06 [RateCDR] => 1 ) [2025-03-16 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:20:06' and `end` < '2025-03-16 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:20:18] Production.INFO: count ==1172 [2025-03-16 21:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:20:06 - End Time 2025-03-16 21:20:06 [2025-03-16 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696190', 'tblTempUsageDetail_20' ) start [2025-03-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696190', 'tblTempUsageDetail_20' ) end [2025-03-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696190', 'tblTempVendorCDR_20' ) start [2025-03-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696190', 'tblTempVendorCDR_20' ) end [2025-03-16 21:20:18] Production.INFO: ProcessCDR(1,14696190,1,1,2) [2025-03-16 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696190', 'tblTempUsageDetail_20' ) start [2025-03-16 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696190', 'tblTempUsageDetail_20' ) end [2025-03-16 21:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:20:21] Production.INFO: ==21825== Releasing lock... [2025-03-16 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:20:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:21:05 [end_date_ymd] => 2025-03-16 21:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:21:05' and `end` < '2025-03-16 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-03-16 21:21:17] Production.INFO: count ==1134 [2025-03-16 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:21:05 - End Time 2025-03-16 21:21:05 [2025-03-16 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696195', 'tblTempUsageDetail_20' ) start [2025-03-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696195', 'tblTempUsageDetail_20' ) end [2025-03-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696195', 'tblTempVendorCDR_20' ) start [2025-03-16 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696195', 'tblTempVendorCDR_20' ) end [2025-03-16 21:21:18] Production.INFO: ProcessCDR(1,14696195,1,1,2) [2025-03-16 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696195', 'tblTempUsageDetail_20' ) start [2025-03-16 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696195', 'tblTempUsageDetail_20' ) end [2025-03-16 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:21:21] Production.INFO: ==21903== Releasing lock... [2025-03-16 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:22:05 [end_date_ymd] => 2025-03-16 21:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:22:05' and `end` < '2025-03-16 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-03-16 21:22:17] Production.INFO: count ==1131 [2025-03-16 21:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:22:05 - End Time 2025-03-16 21:22:05 [2025-03-16 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696200', 'tblTempUsageDetail_20' ) start [2025-03-16 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696200', 'tblTempUsageDetail_20' ) end [2025-03-16 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696200', 'tblTempVendorCDR_20' ) start [2025-03-16 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696200', 'tblTempVendorCDR_20' ) end [2025-03-16 21:22:17] Production.INFO: ProcessCDR(1,14696200,1,1,2) [2025-03-16 21:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696200', 'tblTempUsageDetail_20' ) start [2025-03-16 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696200', 'tblTempUsageDetail_20' ) end [2025-03-16 21:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:22:20] Production.INFO: ==21984== Releasing lock... [2025-03-16 21:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:22:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:23:05 [end_date_ymd] => 2025-03-16 21:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:23:05' and `end` < '2025-03-16 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-03-16 21:23:17] Production.INFO: count ==1129 [2025-03-16 21:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:23:05 - End Time 2025-03-16 21:23:05 [2025-03-16 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696204', 'tblTempUsageDetail_20' ) start [2025-03-16 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696204', 'tblTempUsageDetail_20' ) end [2025-03-16 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696204', 'tblTempVendorCDR_20' ) start [2025-03-16 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696204', 'tblTempVendorCDR_20' ) end [2025-03-16 21:23:17] Production.INFO: ProcessCDR(1,14696204,1,1,2) [2025-03-16 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696204', 'tblTempUsageDetail_20' ) start [2025-03-16 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696204', 'tblTempUsageDetail_20' ) end [2025-03-16 21:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:23:20] Production.INFO: ==22060== Releasing lock... [2025-03-16 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:23:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:24:05 [end_date_ymd] => 2025-03-16 21:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:24:05' and `end` < '2025-03-16 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-03-16 21:24:18] Production.INFO: count ==1121 [2025-03-16 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:24:05 - End Time 2025-03-16 21:24:05 [2025-03-16 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696210', 'tblTempUsageDetail_20' ) start [2025-03-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696210', 'tblTempUsageDetail_20' ) end [2025-03-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696210', 'tblTempVendorCDR_20' ) start [2025-03-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696210', 'tblTempVendorCDR_20' ) end [2025-03-16 21:24:18] Production.INFO: ProcessCDR(1,14696210,1,1,2) [2025-03-16 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696210', 'tblTempUsageDetail_20' ) start [2025-03-16 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696210', 'tblTempUsageDetail_20' ) end [2025-03-16 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:24:21] Production.INFO: ==22137== Releasing lock... [2025-03-16 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:24:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-16 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:25:05 [end_date_ymd] => 2025-03-16 21:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:25:05' and `end` < '2025-03-16 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-03-16 21:25:17] Production.INFO: count ==1105 [2025-03-16 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:25:05 - End Time 2025-03-16 21:25:05 [2025-03-16 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696215', 'tblTempUsageDetail_20' ) start [2025-03-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696215', 'tblTempUsageDetail_20' ) end [2025-03-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696215', 'tblTempVendorCDR_20' ) start [2025-03-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696215', 'tblTempVendorCDR_20' ) end [2025-03-16 21:25:18] Production.INFO: ProcessCDR(1,14696215,1,1,2) [2025-03-16 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696215', 'tblTempUsageDetail_20' ) start [2025-03-16 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696215', 'tblTempUsageDetail_20' ) end [2025-03-16 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:25:22] Production.INFO: ==22208== Releasing lock... [2025-03-16 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:25:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-16 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:26:05 [end_date_ymd] => 2025-03-16 21:26:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:26:05' and `end` < '2025-03-16 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-03-16 21:26:18] Production.INFO: count ==1096 [2025-03-16 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:26:05 - End Time 2025-03-16 21:26:05 [2025-03-16 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696220', 'tblTempUsageDetail_20' ) start [2025-03-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696220', 'tblTempUsageDetail_20' ) end [2025-03-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696220', 'tblTempVendorCDR_20' ) start [2025-03-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696220', 'tblTempVendorCDR_20' ) end [2025-03-16 21:26:18] Production.INFO: ProcessCDR(1,14696220,1,1,2) [2025-03-16 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696220', 'tblTempUsageDetail_20' ) start [2025-03-16 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696220', 'tblTempUsageDetail_20' ) end [2025-03-16 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:26:21] Production.INFO: ==22288== Releasing lock... [2025-03-16 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:26:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:27:05 [end_date_ymd] => 2025-03-16 21:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:27:05' and `end` < '2025-03-16 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-03-16 21:27:17] Production.INFO: count ==1092 [2025-03-16 21:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:27:05 - End Time 2025-03-16 21:27:05 [2025-03-16 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696225', 'tblTempUsageDetail_20' ) start [2025-03-16 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696225', 'tblTempUsageDetail_20' ) end [2025-03-16 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696225', 'tblTempVendorCDR_20' ) start [2025-03-16 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696225', 'tblTempVendorCDR_20' ) end [2025-03-16 21:27:17] Production.INFO: ProcessCDR(1,14696225,1,1,2) [2025-03-16 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696225', 'tblTempUsageDetail_20' ) start [2025-03-16 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696225', 'tblTempUsageDetail_20' ) end [2025-03-16 21:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:27:21] Production.INFO: ==22400== Releasing lock... [2025-03-16 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:27:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:28:05 [end_date_ymd] => 2025-03-16 21:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:28:05' and `end` < '2025-03-16 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-03-16 21:28:17] Production.INFO: count ==1095 [2025-03-16 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:28:05 - End Time 2025-03-16 21:28:05 [2025-03-16 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696230', 'tblTempUsageDetail_20' ) start [2025-03-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696230', 'tblTempUsageDetail_20' ) end [2025-03-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696230', 'tblTempVendorCDR_20' ) start [2025-03-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696230', 'tblTempVendorCDR_20' ) end [2025-03-16 21:28:18] Production.INFO: ProcessCDR(1,14696230,1,1,2) [2025-03-16 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696230', 'tblTempUsageDetail_20' ) start [2025-03-16 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696230', 'tblTempUsageDetail_20' ) end [2025-03-16 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:28:21] Production.INFO: ==22476== Releasing lock... [2025-03-16 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:28:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:29:05 [end_date_ymd] => 2025-03-16 21:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:29:05' and `end` < '2025-03-16 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-03-16 21:29:17] Production.INFO: count ==1094 [2025-03-16 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:29:05 - End Time 2025-03-16 21:29:05 [2025-03-16 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696235', 'tblTempUsageDetail_20' ) start [2025-03-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696235', 'tblTempUsageDetail_20' ) end [2025-03-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696235', 'tblTempVendorCDR_20' ) start [2025-03-16 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696235', 'tblTempVendorCDR_20' ) end [2025-03-16 21:29:18] Production.INFO: ProcessCDR(1,14696235,1,1,2) [2025-03-16 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696235', 'tblTempUsageDetail_20' ) start [2025-03-16 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696235', 'tblTempUsageDetail_20' ) end [2025-03-16 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:29:22] Production.INFO: ==22552== Releasing lock... [2025-03-16 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:29:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:30:06 [end_date_ymd] => 2025-03-16 21:30:06 [RateCDR] => 1 ) [2025-03-16 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:30:06' and `end` < '2025-03-16 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:30:19] Production.INFO: count ==1084 [2025-03-16 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 18:30:06 - End Time 2025-03-16 21:30:06 [2025-03-16 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696241', 'tblTempUsageDetail_20' ) start [2025-03-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696241', 'tblTempUsageDetail_20' ) end [2025-03-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696241', 'tblTempVendorCDR_20' ) start [2025-03-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696241', 'tblTempVendorCDR_20' ) end [2025-03-16 21:30:19] Production.INFO: ProcessCDR(1,14696241,1,1,2) [2025-03-16 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696241', 'tblTempUsageDetail_20' ) start [2025-03-16 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696241', 'tblTempUsageDetail_20' ) end [2025-03-16 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:30:24] Production.INFO: ==22633== Releasing lock... [2025-03-16 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:30:24] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:31:05 [end_date_ymd] => 2025-03-16 21:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:31:05' and `end` < '2025-03-16 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-03-16 21:31:17] Production.INFO: count ==1068 [2025-03-16 21:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:31:05 - End Time 2025-03-16 21:31:05 [2025-03-16 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696246', 'tblTempUsageDetail_20' ) start [2025-03-16 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696246', 'tblTempUsageDetail_20' ) end [2025-03-16 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696246', 'tblTempVendorCDR_20' ) start [2025-03-16 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696246', 'tblTempVendorCDR_20' ) end [2025-03-16 21:31:17] Production.INFO: ProcessCDR(1,14696246,1,1,2) [2025-03-16 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696246', 'tblTempUsageDetail_20' ) start [2025-03-16 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696246', 'tblTempUsageDetail_20' ) end [2025-03-16 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:31:21] Production.INFO: ==22716== Releasing lock... [2025-03-16 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:31:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:32:05 [end_date_ymd] => 2025-03-16 21:32:05 [RateCDR] => 1 ) [2025-03-16 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:32:05' and `end` < '2025-03-16 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:32:17] Production.INFO: count ==1061 [2025-03-16 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:32:05 - End Time 2025-03-16 21:32:05 [2025-03-16 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696251', 'tblTempUsageDetail_20' ) start [2025-03-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696251', 'tblTempUsageDetail_20' ) end [2025-03-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696251', 'tblTempVendorCDR_20' ) start [2025-03-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696251', 'tblTempVendorCDR_20' ) end [2025-03-16 21:32:18] Production.INFO: ProcessCDR(1,14696251,1,1,2) [2025-03-16 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696251', 'tblTempUsageDetail_20' ) start [2025-03-16 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696251', 'tblTempUsageDetail_20' ) end [2025-03-16 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:32:21] Production.INFO: ==22796== Releasing lock... [2025-03-16 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:32:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:33:05 [end_date_ymd] => 2025-03-16 21:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:33:05' and `end` < '2025-03-16 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-03-16 21:33:18] Production.INFO: count ==1070 [2025-03-16 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:33:05 - End Time 2025-03-16 21:33:05 [2025-03-16 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696256', 'tblTempUsageDetail_20' ) start [2025-03-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696256', 'tblTempUsageDetail_20' ) end [2025-03-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696256', 'tblTempVendorCDR_20' ) start [2025-03-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696256', 'tblTempVendorCDR_20' ) end [2025-03-16 21:33:18] Production.INFO: ProcessCDR(1,14696256,1,1,2) [2025-03-16 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696256', 'tblTempUsageDetail_20' ) start [2025-03-16 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696256', 'tblTempUsageDetail_20' ) end [2025-03-16 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:33:23] Production.INFO: ==22874== Releasing lock... [2025-03-16 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:33:23] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:34:05 [end_date_ymd] => 2025-03-16 21:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:34:05' and `end` < '2025-03-16 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-03-16 21:34:18] Production.INFO: count ==1068 [2025-03-16 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:34:05 - End Time 2025-03-16 21:34:05 [2025-03-16 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696261', 'tblTempUsageDetail_20' ) start [2025-03-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696261', 'tblTempUsageDetail_20' ) end [2025-03-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696261', 'tblTempVendorCDR_20' ) start [2025-03-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696261', 'tblTempVendorCDR_20' ) end [2025-03-16 21:34:18] Production.INFO: ProcessCDR(1,14696261,1,1,2) [2025-03-16 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696261', 'tblTempUsageDetail_20' ) start [2025-03-16 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696261', 'tblTempUsageDetail_20' ) end [2025-03-16 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:34:21] Production.INFO: ==22948== Releasing lock... [2025-03-16 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:34:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:35:05 [end_date_ymd] => 2025-03-16 21:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:35:05' and `end` < '2025-03-16 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-03-16 21:35:18] Production.INFO: count ==1062 [2025-03-16 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:35:05 - End Time 2025-03-16 21:35:05 [2025-03-16 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696266', 'tblTempUsageDetail_20' ) start [2025-03-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696266', 'tblTempUsageDetail_20' ) end [2025-03-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696266', 'tblTempVendorCDR_20' ) start [2025-03-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696266', 'tblTempVendorCDR_20' ) end [2025-03-16 21:35:18] Production.INFO: ProcessCDR(1,14696266,1,1,2) [2025-03-16 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696266', 'tblTempUsageDetail_20' ) start [2025-03-16 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696266', 'tblTempUsageDetail_20' ) end [2025-03-16 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:35:21] Production.INFO: ==23020== Releasing lock... [2025-03-16 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:35:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:36:05 [end_date_ymd] => 2025-03-16 21:36:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:36:05' and `end` < '2025-03-16 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-03-16 21:36:17] Production.INFO: count ==1061 [2025-03-16 21:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:36:05 - End Time 2025-03-16 21:36:05 [2025-03-16 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696271', 'tblTempUsageDetail_20' ) start [2025-03-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696271', 'tblTempUsageDetail_20' ) end [2025-03-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696271', 'tblTempVendorCDR_20' ) start [2025-03-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696271', 'tblTempVendorCDR_20' ) end [2025-03-16 21:36:17] Production.INFO: ProcessCDR(1,14696271,1,1,2) [2025-03-16 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696271', 'tblTempUsageDetail_20' ) start [2025-03-16 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696271', 'tblTempUsageDetail_20' ) end [2025-03-16 21:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:36:20] Production.INFO: ==23094== Releasing lock... [2025-03-16 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:36:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:37:05 [end_date_ymd] => 2025-03-16 21:37:05 [RateCDR] => 1 ) [2025-03-16 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:37:05' and `end` < '2025-03-16 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:37:17] Production.INFO: count ==1061 [2025-03-16 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:37:05 - End Time 2025-03-16 21:37:05 [2025-03-16 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696276', 'tblTempUsageDetail_20' ) start [2025-03-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696276', 'tblTempUsageDetail_20' ) end [2025-03-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696276', 'tblTempVendorCDR_20' ) start [2025-03-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696276', 'tblTempVendorCDR_20' ) end [2025-03-16 21:37:18] Production.INFO: ProcessCDR(1,14696276,1,1,2) [2025-03-16 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696276', 'tblTempUsageDetail_20' ) start [2025-03-16 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696276', 'tblTempUsageDetail_20' ) end [2025-03-16 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:37:21] Production.INFO: ==23170== Releasing lock... [2025-03-16 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:37:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:38:04 [end_date_ymd] => 2025-03-16 21:38:04 [RateCDR] => 1 ) [2025-03-16 21:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:38:04' and `end` < '2025-03-16 21:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:38:17] Production.INFO: count ==1060 [2025-03-16 21:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:38:04 - End Time 2025-03-16 21:38:04 [2025-03-16 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696281', 'tblTempUsageDetail_20' ) start [2025-03-16 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696281', 'tblTempUsageDetail_20' ) end [2025-03-16 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696281', 'tblTempVendorCDR_20' ) start [2025-03-16 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696281', 'tblTempVendorCDR_20' ) end [2025-03-16 21:38:17] Production.INFO: ProcessCDR(1,14696281,1,1,2) [2025-03-16 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696281', 'tblTempUsageDetail_20' ) start [2025-03-16 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696281', 'tblTempUsageDetail_20' ) end [2025-03-16 21:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:38:20] Production.INFO: ==23243== Releasing lock... [2025-03-16 21:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:38:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:39:05 [end_date_ymd] => 2025-03-16 21:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:39:05' and `end` < '2025-03-16 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-03-16 21:39:17] Production.INFO: count ==1057 [2025-03-16 21:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:39:05 - End Time 2025-03-16 21:39:05 [2025-03-16 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696286', 'tblTempUsageDetail_20' ) start [2025-03-16 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696286', 'tblTempUsageDetail_20' ) end [2025-03-16 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696286', 'tblTempVendorCDR_20' ) start [2025-03-16 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696286', 'tblTempVendorCDR_20' ) end [2025-03-16 21:39:18] Production.INFO: ProcessCDR(1,14696286,1,1,2) [2025-03-16 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696286', 'tblTempUsageDetail_20' ) start [2025-03-16 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696286', 'tblTempUsageDetail_20' ) end [2025-03-16 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:39:21] Production.INFO: ==23315== Releasing lock... [2025-03-16 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:39:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:40:05 [end_date_ymd] => 2025-03-16 21:40:05 [RateCDR] => 1 ) [2025-03-16 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:40:05' and `end` < '2025-03-16 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:40:18] Production.INFO: count ==1055 [2025-03-16 21:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:40:05 - End Time 2025-03-16 21:40:05 [2025-03-16 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696292', 'tblTempUsageDetail_20' ) start [2025-03-16 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696292', 'tblTempUsageDetail_20' ) end [2025-03-16 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696292', 'tblTempVendorCDR_20' ) start [2025-03-16 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696292', 'tblTempVendorCDR_20' ) end [2025-03-16 21:40:18] Production.INFO: ProcessCDR(1,14696292,1,1,2) [2025-03-16 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696292', 'tblTempUsageDetail_20' ) start [2025-03-16 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696292', 'tblTempUsageDetail_20' ) end [2025-03-16 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:40:21] Production.INFO: ==23393== Releasing lock... [2025-03-16 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:40:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-16 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:41:05 [end_date_ymd] => 2025-03-16 21:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:41:05' and `end` < '2025-03-16 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-03-16 21:41:17] Production.INFO: count ==1058 [2025-03-16 21:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:41:05 - End Time 2025-03-16 21:41:05 [2025-03-16 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696297', 'tblTempUsageDetail_20' ) start [2025-03-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696297', 'tblTempUsageDetail_20' ) end [2025-03-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696297', 'tblTempVendorCDR_20' ) start [2025-03-16 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696297', 'tblTempVendorCDR_20' ) end [2025-03-16 21:41:17] Production.INFO: ProcessCDR(1,14696297,1,1,2) [2025-03-16 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696297', 'tblTempUsageDetail_20' ) start [2025-03-16 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696297', 'tblTempUsageDetail_20' ) end [2025-03-16 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:41:22] Production.INFO: ==23475== Releasing lock... [2025-03-16 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:41:22] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:42:05 [end_date_ymd] => 2025-03-16 21:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:42:05' and `end` < '2025-03-16 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-03-16 21:42:18] Production.INFO: count ==1060 [2025-03-16 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:42:05 - End Time 2025-03-16 21:42:05 [2025-03-16 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696302', 'tblTempUsageDetail_20' ) start [2025-03-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696302', 'tblTempUsageDetail_20' ) end [2025-03-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696302', 'tblTempVendorCDR_20' ) start [2025-03-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696302', 'tblTempVendorCDR_20' ) end [2025-03-16 21:42:18] Production.INFO: ProcessCDR(1,14696302,1,1,2) [2025-03-16 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696302', 'tblTempUsageDetail_20' ) start [2025-03-16 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696302', 'tblTempUsageDetail_20' ) end [2025-03-16 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:42:21] Production.INFO: ==23589== Releasing lock... [2025-03-16 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:42:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:43:05 [end_date_ymd] => 2025-03-16 21:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:43:05' and `end` < '2025-03-16 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-03-16 21:43:17] Production.INFO: count ==1052 [2025-03-16 21:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:43:05 - End Time 2025-03-16 21:43:05 [2025-03-16 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696307', 'tblTempUsageDetail_20' ) start [2025-03-16 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696307', 'tblTempUsageDetail_20' ) end [2025-03-16 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696307', 'tblTempVendorCDR_20' ) start [2025-03-16 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696307', 'tblTempVendorCDR_20' ) end [2025-03-16 21:43:17] Production.INFO: ProcessCDR(1,14696307,1,1,2) [2025-03-16 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696307', 'tblTempUsageDetail_20' ) start [2025-03-16 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696307', 'tblTempUsageDetail_20' ) end [2025-03-16 21:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:43:20] Production.INFO: ==23663== Releasing lock... [2025-03-16 21:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:43:20] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:44:06 [end_date_ymd] => 2025-03-16 21:44:06 [RateCDR] => 1 ) [2025-03-16 21:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:44:06' and `end` < '2025-03-16 21:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:44:18] Production.INFO: count ==1052 [2025-03-16 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:44:06 - End Time 2025-03-16 21:44:06 [2025-03-16 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696312', 'tblTempUsageDetail_20' ) start [2025-03-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696312', 'tblTempUsageDetail_20' ) end [2025-03-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696312', 'tblTempVendorCDR_20' ) start [2025-03-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696312', 'tblTempVendorCDR_20' ) end [2025-03-16 21:44:18] Production.INFO: ProcessCDR(1,14696312,1,1,2) [2025-03-16 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696312', 'tblTempUsageDetail_20' ) start [2025-03-16 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696312', 'tblTempUsageDetail_20' ) end [2025-03-16 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:44:21] Production.INFO: ==23736== Releasing lock... [2025-03-16 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:44:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:45:05 [end_date_ymd] => 2025-03-16 21:45:05 [RateCDR] => 1 ) [2025-03-16 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:45:05' and `end` < '2025-03-16 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:45:17] Production.INFO: count ==1051 [2025-03-16 21:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:45:05 - End Time 2025-03-16 21:45:05 [2025-03-16 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696317', 'tblTempUsageDetail_20' ) start [2025-03-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696317', 'tblTempUsageDetail_20' ) end [2025-03-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696317', 'tblTempVendorCDR_20' ) start [2025-03-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696317', 'tblTempVendorCDR_20' ) end [2025-03-16 21:45:18] Production.INFO: ProcessCDR(1,14696317,1,1,2) [2025-03-16 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696317', 'tblTempUsageDetail_20' ) start [2025-03-16 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696317', 'tblTempUsageDetail_20' ) end [2025-03-16 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:45:21] Production.INFO: ==23809== Releasing lock... [2025-03-16 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:45:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:46:05 [end_date_ymd] => 2025-03-16 21:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:46:05' and `end` < '2025-03-16 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-03-16 21:46:18] Production.INFO: count ==1054 [2025-03-16 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:46:05 - End Time 2025-03-16 21:46:05 [2025-03-16 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696322', 'tblTempUsageDetail_20' ) start [2025-03-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696322', 'tblTempUsageDetail_20' ) end [2025-03-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696322', 'tblTempVendorCDR_20' ) start [2025-03-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696322', 'tblTempVendorCDR_20' ) end [2025-03-16 21:46:18] Production.INFO: ProcessCDR(1,14696322,1,1,2) [2025-03-16 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696322', 'tblTempUsageDetail_20' ) start [2025-03-16 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696322', 'tblTempUsageDetail_20' ) end [2025-03-16 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:46:21] Production.INFO: ==23886== Releasing lock... [2025-03-16 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:46:21] Production.INFO: 36 MB #Memory Used# [2025-03-16 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:47:05 [end_date_ymd] => 2025-03-16 21:47:05 [RateCDR] => 1 ) [2025-03-16 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:47:05' and `end` < '2025-03-16 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:47:17] Production.INFO: count ==1050 [2025-03-16 21:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:47:05 - End Time 2025-03-16 21:47:05 [2025-03-16 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696327', 'tblTempUsageDetail_20' ) start [2025-03-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696327', 'tblTempUsageDetail_20' ) end [2025-03-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696327', 'tblTempVendorCDR_20' ) start [2025-03-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696327', 'tblTempVendorCDR_20' ) end [2025-03-16 21:47:18] Production.INFO: ProcessCDR(1,14696327,1,1,2) [2025-03-16 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696327', 'tblTempUsageDetail_20' ) start [2025-03-16 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696327', 'tblTempUsageDetail_20' ) end [2025-03-16 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:47:21] Production.INFO: ==23957== Releasing lock... [2025-03-16 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:47:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:48:05 [end_date_ymd] => 2025-03-16 21:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:48:05' and `end` < '2025-03-16 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-03-16 21:48:18] Production.INFO: count ==1048 [2025-03-16 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:48:05 - End Time 2025-03-16 21:48:05 [2025-03-16 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696332', 'tblTempUsageDetail_20' ) start [2025-03-16 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696332', 'tblTempUsageDetail_20' ) end [2025-03-16 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696332', 'tblTempVendorCDR_20' ) start [2025-03-16 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696332', 'tblTempVendorCDR_20' ) end [2025-03-16 21:48:18] Production.INFO: ProcessCDR(1,14696332,1,1,2) [2025-03-16 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696332', 'tblTempUsageDetail_20' ) start [2025-03-16 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696332', 'tblTempUsageDetail_20' ) end [2025-03-16 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:48:23] Production.INFO: ==24031== Releasing lock... [2025-03-16 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:48:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:49:04 [end_date_ymd] => 2025-03-16 21:49:04 [RateCDR] => 1 ) [2025-03-16 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 18:49:04' and `end` < '2025-03-16 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 21:49:17] Production.INFO: count ==1051 [2025-03-16 21:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:49:04 - End Time 2025-03-16 21:49:04 [2025-03-16 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696337', 'tblTempUsageDetail_20' ) start [2025-03-16 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696337', 'tblTempUsageDetail_20' ) end [2025-03-16 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696337', 'tblTempVendorCDR_20' ) start [2025-03-16 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696337', 'tblTempVendorCDR_20' ) end [2025-03-16 21:49:17] Production.INFO: ProcessCDR(1,14696337,1,1,2) [2025-03-16 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696337', 'tblTempUsageDetail_20' ) start [2025-03-16 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696337', 'tblTempUsageDetail_20' ) end [2025-03-16 21:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:49:20] Production.INFO: ==24102== Releasing lock... [2025-03-16 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:49:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:50:06 [end_date_ymd] => 2025-03-16 21:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:50:06' and `end` < '2025-03-16 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-03-16 21:50:18] Production.INFO: count ==1049 [2025-03-16 21:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:50:06 - End Time 2025-03-16 21:50:06 [2025-03-16 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696343', 'tblTempUsageDetail_20' ) start [2025-03-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696343', 'tblTempUsageDetail_20' ) end [2025-03-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696343', 'tblTempVendorCDR_20' ) start [2025-03-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696343', 'tblTempVendorCDR_20' ) end [2025-03-16 21:50:18] Production.INFO: ProcessCDR(1,14696343,1,1,2) [2025-03-16 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696343', 'tblTempUsageDetail_20' ) start [2025-03-16 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696343', 'tblTempUsageDetail_20' ) end [2025-03-16 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:50:23] Production.INFO: ==24178== Releasing lock... [2025-03-16 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:50:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:51:06 [end_date_ymd] => 2025-03-16 21:51:06 [RateCDR] => 1 ) [2025-03-16 21: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-03-16 18:51:06' and `end` < '2025-03-16 21: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-03-16 21:51:18] Production.INFO: count ==1038 [2025-03-16 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:51:06 - End Time 2025-03-16 21:51:06 [2025-03-16 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696348', 'tblTempUsageDetail_20' ) start [2025-03-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696348', 'tblTempUsageDetail_20' ) end [2025-03-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696348', 'tblTempVendorCDR_20' ) start [2025-03-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696348', 'tblTempVendorCDR_20' ) end [2025-03-16 21:51:18] Production.INFO: ProcessCDR(1,14696348,1,1,2) [2025-03-16 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696348', 'tblTempUsageDetail_20' ) start [2025-03-16 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696348', 'tblTempUsageDetail_20' ) end [2025-03-16 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:51:21] Production.INFO: ==24255== Releasing lock... [2025-03-16 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:51:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:52:05 [end_date_ymd] => 2025-03-16 21:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:52:05' and `end` < '2025-03-16 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-03-16 21:52:18] Production.INFO: count ==1038 [2025-03-16 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:52:05 - End Time 2025-03-16 21:52:05 [2025-03-16 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696353', 'tblTempUsageDetail_20' ) start [2025-03-16 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696353', 'tblTempUsageDetail_20' ) end [2025-03-16 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696353', 'tblTempVendorCDR_20' ) start [2025-03-16 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696353', 'tblTempVendorCDR_20' ) end [2025-03-16 21:52:18] Production.INFO: ProcessCDR(1,14696353,1,1,2) [2025-03-16 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696353', 'tblTempUsageDetail_20' ) start [2025-03-16 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696353', 'tblTempUsageDetail_20' ) end [2025-03-16 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:52:22] Production.INFO: ==24334== Releasing lock... [2025-03-16 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:52:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:53:05 [end_date_ymd] => 2025-03-16 21:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:53:05' and `end` < '2025-03-16 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-03-16 21:53:18] Production.INFO: count ==1036 [2025-03-16 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:53:05 - End Time 2025-03-16 21:53:05 [2025-03-16 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696358', 'tblTempUsageDetail_20' ) start [2025-03-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696358', 'tblTempUsageDetail_20' ) end [2025-03-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696358', 'tblTempVendorCDR_20' ) start [2025-03-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696358', 'tblTempVendorCDR_20' ) end [2025-03-16 21:53:18] Production.INFO: ProcessCDR(1,14696358,1,1,2) [2025-03-16 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696358', 'tblTempUsageDetail_20' ) start [2025-03-16 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696358', 'tblTempUsageDetail_20' ) end [2025-03-16 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:53:21] Production.INFO: ==24407== Releasing lock... [2025-03-16 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:53:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:54:05 [end_date_ymd] => 2025-03-16 21:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:54:05' and `end` < '2025-03-16 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-03-16 21:54:18] Production.INFO: count ==1038 [2025-03-16 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:54:05 - End Time 2025-03-16 21:54:05 [2025-03-16 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696363', 'tblTempUsageDetail_20' ) start [2025-03-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696363', 'tblTempUsageDetail_20' ) end [2025-03-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696363', 'tblTempVendorCDR_20' ) start [2025-03-16 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696363', 'tblTempVendorCDR_20' ) end [2025-03-16 21:54:18] Production.INFO: ProcessCDR(1,14696363,1,1,2) [2025-03-16 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696363', 'tblTempUsageDetail_20' ) start [2025-03-16 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696363', 'tblTempUsageDetail_20' ) end [2025-03-16 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:54:21] Production.INFO: ==24481== Releasing lock... [2025-03-16 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:54:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:55:06 [end_date_ymd] => 2025-03-16 21:55:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:55:06' and `end` < '2025-03-16 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-03-16 21:55:18] Production.INFO: count ==1034 [2025-03-16 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:55:06 - End Time 2025-03-16 21:55:06 [2025-03-16 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696368', 'tblTempUsageDetail_20' ) start [2025-03-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696368', 'tblTempUsageDetail_20' ) end [2025-03-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696368', 'tblTempVendorCDR_20' ) start [2025-03-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696368', 'tblTempVendorCDR_20' ) end [2025-03-16 21:55:18] Production.INFO: ProcessCDR(1,14696368,1,1,2) [2025-03-16 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696368', 'tblTempUsageDetail_20' ) start [2025-03-16 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696368', 'tblTempUsageDetail_20' ) end [2025-03-16 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:55:21] Production.INFO: ==24552== Releasing lock... [2025-03-16 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:55:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:56:05 [end_date_ymd] => 2025-03-16 21:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:56:05' and `end` < '2025-03-16 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-03-16 21:56:17] Production.INFO: count ==1033 [2025-03-16 21:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:56:05 - End Time 2025-03-16 21:56:05 [2025-03-16 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696373', 'tblTempUsageDetail_20' ) start [2025-03-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696373', 'tblTempUsageDetail_20' ) end [2025-03-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696373', 'tblTempVendorCDR_20' ) start [2025-03-16 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696373', 'tblTempVendorCDR_20' ) end [2025-03-16 21:56:17] Production.INFO: ProcessCDR(1,14696373,1,1,2) [2025-03-16 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696373', 'tblTempUsageDetail_20' ) start [2025-03-16 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696373', 'tblTempUsageDetail_20' ) end [2025-03-16 21:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:56:20] Production.INFO: ==24630== Releasing lock... [2025-03-16 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:56:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:57:05 [end_date_ymd] => 2025-03-16 21:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:57:05' and `end` < '2025-03-16 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-03-16 21:57:18] Production.INFO: count ==1024 [2025-03-16 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 18:57:05 - End Time 2025-03-16 21:57:05 [2025-03-16 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696378', 'tblTempUsageDetail_20' ) start [2025-03-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696378', 'tblTempUsageDetail_20' ) end [2025-03-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696378', 'tblTempVendorCDR_20' ) start [2025-03-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696378', 'tblTempVendorCDR_20' ) end [2025-03-16 21:57:18] Production.INFO: ProcessCDR(1,14696378,1,1,2) [2025-03-16 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696378', 'tblTempUsageDetail_20' ) start [2025-03-16 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696378', 'tblTempUsageDetail_20' ) end [2025-03-16 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:57:21] Production.INFO: ==24707== Releasing lock... [2025-03-16 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:57:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-16 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:58:05 [end_date_ymd] => 2025-03-16 21:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:58:05' and `end` < '2025-03-16 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-03-16 21:58:17] Production.INFO: count ==1022 [2025-03-16 21:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:58:05 - End Time 2025-03-16 21:58:05 [2025-03-16 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696383', 'tblTempUsageDetail_20' ) start [2025-03-16 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696383', 'tblTempUsageDetail_20' ) end [2025-03-16 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696383', 'tblTempVendorCDR_20' ) start [2025-03-16 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696383', 'tblTempVendorCDR_20' ) end [2025-03-16 21:58:17] Production.INFO: ProcessCDR(1,14696383,1,1,2) [2025-03-16 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696383', 'tblTempUsageDetail_20' ) start [2025-03-16 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696383', 'tblTempUsageDetail_20' ) end [2025-03-16 21:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:58:20] Production.INFO: ==24820== Releasing lock... [2025-03-16 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:58:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 18:59:05 [end_date_ymd] => 2025-03-16 21:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 18:59:05' and `end` < '2025-03-16 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-03-16 21:59:17] Production.INFO: count ==1030 [2025-03-16 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-16 18:59:05 - End Time 2025-03-16 21:59:05 [2025-03-16 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696388', 'tblTempUsageDetail_20' ) start [2025-03-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696388', 'tblTempUsageDetail_20' ) end [2025-03-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696388', 'tblTempVendorCDR_20' ) start [2025-03-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696388', 'tblTempVendorCDR_20' ) end [2025-03-16 21:59:17] Production.INFO: ProcessCDR(1,14696388,1,1,2) [2025-03-16 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696388', 'tblTempUsageDetail_20' ) start [2025-03-16 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696388', 'tblTempUsageDetail_20' ) end [2025-03-16 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 21:59:22] Production.INFO: ==24892== Releasing lock... [2025-03-16 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 21:59:22] Production.INFO: 36 MB #Memory Used# [2025-03-16 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:00:06 [end_date_ymd] => 2025-03-16 22:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:00:06' and `end` < '2025-03-16 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-03-16 22:00:18] Production.INFO: count ==1031 [2025-03-16 22:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:00:06 - End Time 2025-03-16 22:00:06 [2025-03-16 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696394', 'tblTempUsageDetail_20' ) start [2025-03-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696394', 'tblTempUsageDetail_20' ) end [2025-03-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696394', 'tblTempVendorCDR_20' ) start [2025-03-16 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696394', 'tblTempVendorCDR_20' ) end [2025-03-16 22:00:18] Production.INFO: ProcessCDR(1,14696394,1,1,2) [2025-03-16 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696394', 'tblTempUsageDetail_20' ) start [2025-03-16 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696394', 'tblTempUsageDetail_20' ) end [2025-03-16 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:00:23] Production.INFO: ==24972== Releasing lock... [2025-03-16 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:00:23] Production.INFO: 36 MB #Memory Used# [2025-03-16 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:01:05 [end_date_ymd] => 2025-03-16 22:01:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:01:05' and `end` < '2025-03-16 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-03-16 22:01:17] Production.INFO: count ==1010 [2025-03-16 22:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:01:05 - End Time 2025-03-16 22:01:05 [2025-03-16 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696399', 'tblTempUsageDetail_20' ) start [2025-03-16 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696399', 'tblTempUsageDetail_20' ) end [2025-03-16 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696399', 'tblTempVendorCDR_20' ) start [2025-03-16 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696399', 'tblTempVendorCDR_20' ) end [2025-03-16 22:01:17] Production.INFO: ProcessCDR(1,14696399,1,1,2) [2025-03-16 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696399', 'tblTempUsageDetail_20' ) start [2025-03-16 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696399', 'tblTempUsageDetail_20' ) end [2025-03-16 22:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:01:20] Production.INFO: ==25089== Releasing lock... [2025-03-16 22:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:01:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:02:05 [end_date_ymd] => 2025-03-16 22:02:05 [RateCDR] => 1 ) [2025-03-16 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:02:05' and `end` < '2025-03-16 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:02:17] Production.INFO: count ==1010 [2025-03-16 22:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:02:05 - End Time 2025-03-16 22:02:05 [2025-03-16 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696404', 'tblTempUsageDetail_20' ) start [2025-03-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696404', 'tblTempUsageDetail_20' ) end [2025-03-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696404', 'tblTempVendorCDR_20' ) start [2025-03-16 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696404', 'tblTempVendorCDR_20' ) end [2025-03-16 22:02:17] Production.INFO: ProcessCDR(1,14696404,1,1,2) [2025-03-16 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696404', 'tblTempUsageDetail_20' ) start [2025-03-16 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696404', 'tblTempUsageDetail_20' ) end [2025-03-16 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:02:21] Production.INFO: ==25186== Releasing lock... [2025-03-16 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:02:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:03:05 [end_date_ymd] => 2025-03-16 22:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:03:05' and `end` < '2025-03-16 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-03-16 22:03:17] Production.INFO: count ==1009 [2025-03-16 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:03:05 - End Time 2025-03-16 22:03:05 [2025-03-16 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696409', 'tblTempUsageDetail_20' ) start [2025-03-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696409', 'tblTempUsageDetail_20' ) end [2025-03-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696409', 'tblTempVendorCDR_20' ) start [2025-03-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696409', 'tblTempVendorCDR_20' ) end [2025-03-16 22:03:18] Production.INFO: ProcessCDR(1,14696409,1,1,2) [2025-03-16 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696409', 'tblTempUsageDetail_20' ) start [2025-03-16 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696409', 'tblTempUsageDetail_20' ) end [2025-03-16 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:03:21] Production.INFO: ==25280== Releasing lock... [2025-03-16 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:03:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:04:05 [end_date_ymd] => 2025-03-16 22:04:05 [RateCDR] => 1 ) [2025-03-16 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:04:05' and `end` < '2025-03-16 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:04:18] Production.INFO: count ==1003 [2025-03-16 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:04:05 - End Time 2025-03-16 22:04:05 [2025-03-16 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696414', 'tblTempUsageDetail_20' ) start [2025-03-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696414', 'tblTempUsageDetail_20' ) end [2025-03-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696414', 'tblTempVendorCDR_20' ) start [2025-03-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696414', 'tblTempVendorCDR_20' ) end [2025-03-16 22:04:18] Production.INFO: ProcessCDR(1,14696414,1,1,2) [2025-03-16 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696414', 'tblTempUsageDetail_20' ) start [2025-03-16 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696414', 'tblTempUsageDetail_20' ) end [2025-03-16 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:04:21] Production.INFO: ==25358== Releasing lock... [2025-03-16 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:04:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:05:05 [end_date_ymd] => 2025-03-16 22:05:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:05:05' and `end` < '2025-03-16 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-03-16 22:05:17] Production.INFO: count ==1006 [2025-03-16 22:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:05:05 - End Time 2025-03-16 22:05:05 [2025-03-16 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696419', 'tblTempUsageDetail_20' ) start [2025-03-16 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696419', 'tblTempUsageDetail_20' ) end [2025-03-16 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696419', 'tblTempVendorCDR_20' ) start [2025-03-16 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696419', 'tblTempVendorCDR_20' ) end [2025-03-16 22:05:18] Production.INFO: ProcessCDR(1,14696419,1,1,2) [2025-03-16 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696419', 'tblTempUsageDetail_20' ) start [2025-03-16 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696419', 'tblTempUsageDetail_20' ) end [2025-03-16 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:05:21] Production.INFO: ==25446== Releasing lock... [2025-03-16 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:05:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:06:06 [end_date_ymd] => 2025-03-16 22:06:06 [RateCDR] => 1 ) [2025-03-16 22: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-03-16 19:06:06' and `end` < '2025-03-16 22: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-03-16 22:06:18] Production.INFO: count ==1012 [2025-03-16 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:06:06 - End Time 2025-03-16 22:06:06 [2025-03-16 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696424', 'tblTempUsageDetail_20' ) start [2025-03-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696424', 'tblTempUsageDetail_20' ) end [2025-03-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696424', 'tblTempVendorCDR_20' ) start [2025-03-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696424', 'tblTempVendorCDR_20' ) end [2025-03-16 22:06:18] Production.INFO: ProcessCDR(1,14696424,1,1,2) [2025-03-16 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696424', 'tblTempUsageDetail_20' ) start [2025-03-16 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696424', 'tblTempUsageDetail_20' ) end [2025-03-16 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:06:21] Production.INFO: ==25532== Releasing lock... [2025-03-16 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:06:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:07:04 [end_date_ymd] => 2025-03-16 22:07:04 [RateCDR] => 1 ) [2025-03-16 22: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-03-16 19:07:04' and `end` < '2025-03-16 22: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-03-16 22:07:17] Production.INFO: count ==1012 [2025-03-16 22:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:07:04 - End Time 2025-03-16 22:07:04 [2025-03-16 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696429', 'tblTempUsageDetail_20' ) start [2025-03-16 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696429', 'tblTempUsageDetail_20' ) end [2025-03-16 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696429', 'tblTempVendorCDR_20' ) start [2025-03-16 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696429', 'tblTempVendorCDR_20' ) end [2025-03-16 22:07:17] Production.INFO: ProcessCDR(1,14696429,1,1,2) [2025-03-16 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696429', 'tblTempUsageDetail_20' ) start [2025-03-16 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696429', 'tblTempUsageDetail_20' ) end [2025-03-16 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:07:22] Production.INFO: ==25617== Releasing lock... [2025-03-16 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:07:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:08:05 [end_date_ymd] => 2025-03-16 22:08:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:08:05' and `end` < '2025-03-16 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-03-16 22:08:17] Production.INFO: count ==1010 [2025-03-16 22:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:08:05 - End Time 2025-03-16 22:08:05 [2025-03-16 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696434', 'tblTempUsageDetail_20' ) start [2025-03-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696434', 'tblTempUsageDetail_20' ) end [2025-03-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696434', 'tblTempVendorCDR_20' ) start [2025-03-16 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696434', 'tblTempVendorCDR_20' ) end [2025-03-16 22:08:18] Production.INFO: ProcessCDR(1,14696434,1,1,2) [2025-03-16 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696434', 'tblTempUsageDetail_20' ) start [2025-03-16 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696434', 'tblTempUsageDetail_20' ) end [2025-03-16 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:08:22] Production.INFO: ==25706== Releasing lock... [2025-03-16 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:08:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:09:05 [end_date_ymd] => 2025-03-16 22:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:09:05' and `end` < '2025-03-16 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-03-16 22:09:17] Production.INFO: count ==1010 [2025-03-16 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:09:05 - End Time 2025-03-16 22:09:05 [2025-03-16 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696439', 'tblTempUsageDetail_20' ) start [2025-03-16 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696439', 'tblTempUsageDetail_20' ) end [2025-03-16 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696439', 'tblTempVendorCDR_20' ) start [2025-03-16 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696439', 'tblTempVendorCDR_20' ) end [2025-03-16 22:09:17] Production.INFO: ProcessCDR(1,14696439,1,1,2) [2025-03-16 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696439', 'tblTempUsageDetail_20' ) start [2025-03-16 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696439', 'tblTempUsageDetail_20' ) end [2025-03-16 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:09:20] Production.INFO: ==25793== Releasing lock... [2025-03-16 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:09:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:10:06 [end_date_ymd] => 2025-03-16 22:10:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:10:06' and `end` < '2025-03-16 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-03-16 22:10:18] Production.INFO: count ==1014 [2025-03-16 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:10:06 - End Time 2025-03-16 22:10:06 [2025-03-16 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696445', 'tblTempUsageDetail_20' ) start [2025-03-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696445', 'tblTempUsageDetail_20' ) end [2025-03-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696445', 'tblTempVendorCDR_20' ) start [2025-03-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696445', 'tblTempVendorCDR_20' ) end [2025-03-16 22:10:18] Production.INFO: ProcessCDR(1,14696445,1,1,2) [2025-03-16 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696445', 'tblTempUsageDetail_20' ) start [2025-03-16 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696445', 'tblTempUsageDetail_20' ) end [2025-03-16 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:10:23] Production.INFO: ==25886== Releasing lock... [2025-03-16 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:10:23] Production.INFO: 36 MB #Memory Used# [2025-03-16 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:11:04 [end_date_ymd] => 2025-03-16 22:11:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:11:04' and `end` < '2025-03-16 22: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-03-16 22:11:17] Production.INFO: count ==1005 [2025-03-16 22:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:11:04 - End Time 2025-03-16 22:11:04 [2025-03-16 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696450', 'tblTempUsageDetail_20' ) start [2025-03-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696450', 'tblTempUsageDetail_20' ) end [2025-03-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696450', 'tblTempVendorCDR_20' ) start [2025-03-16 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696450', 'tblTempVendorCDR_20' ) end [2025-03-16 22:11:17] Production.INFO: ProcessCDR(1,14696450,1,1,2) [2025-03-16 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696450', 'tblTempUsageDetail_20' ) start [2025-03-16 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696450', 'tblTempUsageDetail_20' ) end [2025-03-16 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:11:22] Production.INFO: ==25979== Releasing lock... [2025-03-16 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:11:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:12:05 [end_date_ymd] => 2025-03-16 22:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:12:05' and `end` < '2025-03-16 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-03-16 22:12:18] Production.INFO: count ==1003 [2025-03-16 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:12:05 - End Time 2025-03-16 22:12:05 [2025-03-16 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696455', 'tblTempUsageDetail_20' ) start [2025-03-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696455', 'tblTempUsageDetail_20' ) end [2025-03-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696455', 'tblTempVendorCDR_20' ) start [2025-03-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696455', 'tblTempVendorCDR_20' ) end [2025-03-16 22:12:18] Production.INFO: ProcessCDR(1,14696455,1,1,2) [2025-03-16 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696455', 'tblTempUsageDetail_20' ) start [2025-03-16 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696455', 'tblTempUsageDetail_20' ) end [2025-03-16 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:12:21] Production.INFO: ==26069== Releasing lock... [2025-03-16 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:13:05 [end_date_ymd] => 2025-03-16 22:13:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:13:05' and `end` < '2025-03-16 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-03-16 22:13:17] Production.INFO: count ==1003 [2025-03-16 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:13:05 - End Time 2025-03-16 22:13:05 [2025-03-16 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696460', 'tblTempUsageDetail_20' ) start [2025-03-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696460', 'tblTempUsageDetail_20' ) end [2025-03-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696460', 'tblTempVendorCDR_20' ) start [2025-03-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696460', 'tblTempVendorCDR_20' ) end [2025-03-16 22:13:18] Production.INFO: ProcessCDR(1,14696460,1,1,2) [2025-03-16 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696460', 'tblTempUsageDetail_20' ) start [2025-03-16 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696460', 'tblTempUsageDetail_20' ) end [2025-03-16 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:13:21] Production.INFO: ==26196== Releasing lock... [2025-03-16 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:13:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:14:05 [end_date_ymd] => 2025-03-16 22:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:14:05' and `end` < '2025-03-16 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-03-16 22:14:17] Production.INFO: count ==1003 [2025-03-16 22:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:14:05 - End Time 2025-03-16 22:14:05 [2025-03-16 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696465', 'tblTempUsageDetail_20' ) start [2025-03-16 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696465', 'tblTempUsageDetail_20' ) end [2025-03-16 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696465', 'tblTempVendorCDR_20' ) start [2025-03-16 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696465', 'tblTempVendorCDR_20' ) end [2025-03-16 22:14:17] Production.INFO: ProcessCDR(1,14696465,1,1,2) [2025-03-16 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696465', 'tblTempUsageDetail_20' ) start [2025-03-16 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696465', 'tblTempUsageDetail_20' ) end [2025-03-16 22:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:14:20] Production.INFO: ==26283== Releasing lock... [2025-03-16 22:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:14:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:15:06 [end_date_ymd] => 2025-03-16 22:15:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:15:06' and `end` < '2025-03-16 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-03-16 22:15:18] Production.INFO: count ==1003 [2025-03-16 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:15:06 - End Time 2025-03-16 22:15:06 [2025-03-16 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696470', 'tblTempUsageDetail_20' ) start [2025-03-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696470', 'tblTempUsageDetail_20' ) end [2025-03-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696470', 'tblTempVendorCDR_20' ) start [2025-03-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696470', 'tblTempVendorCDR_20' ) end [2025-03-16 22:15:18] Production.INFO: ProcessCDR(1,14696470,1,1,2) [2025-03-16 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696470', 'tblTempUsageDetail_20' ) start [2025-03-16 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696470', 'tblTempUsageDetail_20' ) end [2025-03-16 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:15:22] Production.INFO: ==26370== Releasing lock... [2025-03-16 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:15:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:16:05 [end_date_ymd] => 2025-03-16 22:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:16:05' and `end` < '2025-03-16 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-03-16 22:16:17] Production.INFO: count ==1001 [2025-03-16 22:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:16:05 - End Time 2025-03-16 22:16:05 [2025-03-16 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696475', 'tblTempUsageDetail_20' ) start [2025-03-16 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696475', 'tblTempUsageDetail_20' ) end [2025-03-16 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696475', 'tblTempVendorCDR_20' ) start [2025-03-16 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696475', 'tblTempVendorCDR_20' ) end [2025-03-16 22:16:17] Production.INFO: ProcessCDR(1,14696475,1,1,2) [2025-03-16 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696475', 'tblTempUsageDetail_20' ) start [2025-03-16 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696475', 'tblTempUsageDetail_20' ) end [2025-03-16 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:16:21] Production.INFO: ==26456== Releasing lock... [2025-03-16 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:16:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:17:06 [end_date_ymd] => 2025-03-16 22:17:06 [RateCDR] => 1 ) [2025-03-16 22: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-03-16 19:17:06' and `end` < '2025-03-16 22: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-03-16 22:17:18] Production.INFO: count ==1001 [2025-03-16 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:17:06 - End Time 2025-03-16 22:17:06 [2025-03-16 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696480', 'tblTempUsageDetail_20' ) start [2025-03-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696480', 'tblTempUsageDetail_20' ) end [2025-03-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696480', 'tblTempVendorCDR_20' ) start [2025-03-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696480', 'tblTempVendorCDR_20' ) end [2025-03-16 22:17:18] Production.INFO: ProcessCDR(1,14696480,1,1,2) [2025-03-16 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696480', 'tblTempUsageDetail_20' ) start [2025-03-16 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696480', 'tblTempUsageDetail_20' ) end [2025-03-16 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:17:23] Production.INFO: ==26545== Releasing lock... [2025-03-16 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:17:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:18:05 [end_date_ymd] => 2025-03-16 22:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:18:05' and `end` < '2025-03-16 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-03-16 22:18:17] Production.INFO: count ==997 [2025-03-16 22:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:18:05 - End Time 2025-03-16 22:18:05 [2025-03-16 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696485', 'tblTempUsageDetail_20' ) start [2025-03-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696485', 'tblTempUsageDetail_20' ) end [2025-03-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696485', 'tblTempVendorCDR_20' ) start [2025-03-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696485', 'tblTempVendorCDR_20' ) end [2025-03-16 22:18:17] Production.INFO: ProcessCDR(1,14696485,1,1,2) [2025-03-16 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696485', 'tblTempUsageDetail_20' ) start [2025-03-16 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696485', 'tblTempUsageDetail_20' ) end [2025-03-16 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:18:20] Production.INFO: ==26637== Releasing lock... [2025-03-16 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:18:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:19:05 [end_date_ymd] => 2025-03-16 22:19:05 [RateCDR] => 1 ) [2025-03-16 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:19:05' and `end` < '2025-03-16 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:19:18] Production.INFO: count ==992 [2025-03-16 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:19:05 - End Time 2025-03-16 22:19:05 [2025-03-16 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696490', 'tblTempUsageDetail_20' ) start [2025-03-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696490', 'tblTempUsageDetail_20' ) end [2025-03-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696490', 'tblTempVendorCDR_20' ) start [2025-03-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696490', 'tblTempVendorCDR_20' ) end [2025-03-16 22:19:18] Production.INFO: ProcessCDR(1,14696490,1,1,2) [2025-03-16 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696490', 'tblTempUsageDetail_20' ) start [2025-03-16 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696490', 'tblTempUsageDetail_20' ) end [2025-03-16 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:19:21] Production.INFO: ==26726== Releasing lock... [2025-03-16 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:19:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:20:05 [end_date_ymd] => 2025-03-16 22:20:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:20:05' and `end` < '2025-03-16 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-03-16 22:20:17] Production.INFO: count ==985 [2025-03-16 22:20:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:20:05 - End Time 2025-03-16 22:20:05 [2025-03-16 22:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696496', 'tblTempUsageDetail_20' ) start [2025-03-16 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696496', 'tblTempUsageDetail_20' ) end [2025-03-16 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696496', 'tblTempVendorCDR_20' ) start [2025-03-16 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696496', 'tblTempVendorCDR_20' ) end [2025-03-16 22:20:18] Production.INFO: ProcessCDR(1,14696496,1,1,2) [2025-03-16 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696496', 'tblTempUsageDetail_20' ) start [2025-03-16 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696496', 'tblTempUsageDetail_20' ) end [2025-03-16 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:20:21] Production.INFO: ==26814== Releasing lock... [2025-03-16 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:20:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-16 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:21:05 [end_date_ymd] => 2025-03-16 22:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:21:05' and `end` < '2025-03-16 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-03-16 22:21:17] Production.INFO: count ==944 [2025-03-16 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:21:05 - End Time 2025-03-16 22:21:05 [2025-03-16 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696501', 'tblTempUsageDetail_20' ) start [2025-03-16 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696501', 'tblTempUsageDetail_20' ) end [2025-03-16 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696501', 'tblTempVendorCDR_20' ) start [2025-03-16 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696501', 'tblTempVendorCDR_20' ) end [2025-03-16 22:21:17] Production.INFO: ProcessCDR(1,14696501,1,1,2) [2025-03-16 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696501', 'tblTempUsageDetail_20' ) start [2025-03-16 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696501', 'tblTempUsageDetail_20' ) end [2025-03-16 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:21:21] Production.INFO: ==26907== Releasing lock... [2025-03-16 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:21:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:22:06 [end_date_ymd] => 2025-03-16 22:22:06 [RateCDR] => 1 ) [2025-03-16 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:22:06' and `end` < '2025-03-16 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:22:18] Production.INFO: count ==944 [2025-03-16 22:22:19] Production.ERROR: pbx CDR StartTime 2025-03-16 19:22:06 - End Time 2025-03-16 22:22:06 [2025-03-16 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696506', 'tblTempUsageDetail_20' ) start [2025-03-16 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696506', 'tblTempUsageDetail_20' ) end [2025-03-16 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696506', 'tblTempVendorCDR_20' ) start [2025-03-16 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696506', 'tblTempVendorCDR_20' ) end [2025-03-16 22:22:19] Production.INFO: ProcessCDR(1,14696506,1,1,2) [2025-03-16 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696506', 'tblTempUsageDetail_20' ) start [2025-03-16 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696506', 'tblTempUsageDetail_20' ) end [2025-03-16 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:22:22] Production.INFO: ==26999== Releasing lock... [2025-03-16 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:22:22] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:23:05 [end_date_ymd] => 2025-03-16 22:23:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:23:05' and `end` < '2025-03-16 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-03-16 22:23:17] Production.INFO: count ==942 [2025-03-16 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:23:05 - End Time 2025-03-16 22:23:05 [2025-03-16 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696511', 'tblTempUsageDetail_20' ) start [2025-03-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696511', 'tblTempUsageDetail_20' ) end [2025-03-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696511', 'tblTempVendorCDR_20' ) start [2025-03-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696511', 'tblTempVendorCDR_20' ) end [2025-03-16 22:23:18] Production.INFO: ProcessCDR(1,14696511,1,1,2) [2025-03-16 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696511', 'tblTempUsageDetail_20' ) start [2025-03-16 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696511', 'tblTempUsageDetail_20' ) end [2025-03-16 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:23:21] Production.INFO: ==27087== Releasing lock... [2025-03-16 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:23:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:24:06 [end_date_ymd] => 2025-03-16 22:24:06 [RateCDR] => 1 ) [2025-03-16 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:24:06' and `end` < '2025-03-16 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:24:18] Production.INFO: count ==942 [2025-03-16 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:24:06 - End Time 2025-03-16 22:24:06 [2025-03-16 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696516', 'tblTempUsageDetail_20' ) start [2025-03-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696516', 'tblTempUsageDetail_20' ) end [2025-03-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696516', 'tblTempVendorCDR_20' ) start [2025-03-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696516', 'tblTempVendorCDR_20' ) end [2025-03-16 22:24:18] Production.INFO: ProcessCDR(1,14696516,1,1,2) [2025-03-16 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696516', 'tblTempUsageDetail_20' ) start [2025-03-16 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696516', 'tblTempUsageDetail_20' ) end [2025-03-16 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:24:22] Production.INFO: ==27178== Releasing lock... [2025-03-16 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:25:05 [end_date_ymd] => 2025-03-16 22:25:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:25:05' and `end` < '2025-03-16 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-03-16 22:25:17] Production.INFO: count ==942 [2025-03-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:25:05 - End Time 2025-03-16 22:25:05 [2025-03-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696521', 'tblTempUsageDetail_20' ) start [2025-03-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696521', 'tblTempUsageDetail_20' ) end [2025-03-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696521', 'tblTempVendorCDR_20' ) start [2025-03-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696521', 'tblTempVendorCDR_20' ) end [2025-03-16 22:25:18] Production.INFO: ProcessCDR(1,14696521,1,1,2) [2025-03-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696521', 'tblTempUsageDetail_20' ) start [2025-03-16 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696521', 'tblTempUsageDetail_20' ) end [2025-03-16 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:25:21] Production.INFO: ==27267== Releasing lock... [2025-03-16 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:25:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:26:06 [end_date_ymd] => 2025-03-16 22:26:06 [RateCDR] => 1 ) [2025-03-16 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:26:06' and `end` < '2025-03-16 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:26:18] Production.INFO: count ==945 [2025-03-16 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:26:06 - End Time 2025-03-16 22:26:06 [2025-03-16 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696526', 'tblTempUsageDetail_20' ) start [2025-03-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696526', 'tblTempUsageDetail_20' ) end [2025-03-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696526', 'tblTempVendorCDR_20' ) start [2025-03-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696526', 'tblTempVendorCDR_20' ) end [2025-03-16 22:26:18] Production.INFO: ProcessCDR(1,14696526,1,1,2) [2025-03-16 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696526', 'tblTempUsageDetail_20' ) start [2025-03-16 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696526', 'tblTempUsageDetail_20' ) end [2025-03-16 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:26:21] Production.INFO: ==27360== Releasing lock... [2025-03-16 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:26:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:27:05 [end_date_ymd] => 2025-03-16 22:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:27:05' and `end` < '2025-03-16 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-03-16 22:27:17] Production.INFO: count ==943 [2025-03-16 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:27:05 - End Time 2025-03-16 22:27:05 [2025-03-16 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696531', 'tblTempUsageDetail_20' ) start [2025-03-16 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696531', 'tblTempUsageDetail_20' ) end [2025-03-16 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696531', 'tblTempVendorCDR_20' ) start [2025-03-16 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696531', 'tblTempVendorCDR_20' ) end [2025-03-16 22:27:18] Production.INFO: ProcessCDR(1,14696531,1,1,2) [2025-03-16 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696531', 'tblTempUsageDetail_20' ) start [2025-03-16 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696531', 'tblTempUsageDetail_20' ) end [2025-03-16 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:27:21] Production.INFO: ==27450== Releasing lock... [2025-03-16 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:27:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:28:06 [end_date_ymd] => 2025-03-16 22:28:06 [RateCDR] => 1 ) [2025-03-16 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:28:06' and `end` < '2025-03-16 22: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-03-16 22:28:18] Production.INFO: count ==946 [2025-03-16 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:28:06 - End Time 2025-03-16 22:28:06 [2025-03-16 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696536', 'tblTempUsageDetail_20' ) start [2025-03-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696536', 'tblTempUsageDetail_20' ) end [2025-03-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696536', 'tblTempVendorCDR_20' ) start [2025-03-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696536', 'tblTempVendorCDR_20' ) end [2025-03-16 22:28:18] Production.INFO: ProcessCDR(1,14696536,1,1,2) [2025-03-16 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696536', 'tblTempUsageDetail_20' ) start [2025-03-16 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696536', 'tblTempUsageDetail_20' ) end [2025-03-16 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:28:22] Production.INFO: ==27535== Releasing lock... [2025-03-16 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:28:22] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:29:05 [end_date_ymd] => 2025-03-16 22:29:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:29:05' and `end` < '2025-03-16 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-03-16 22:29:17] Production.INFO: count ==950 [2025-03-16 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:29:05 - End Time 2025-03-16 22:29:05 [2025-03-16 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696541', 'tblTempUsageDetail_20' ) start [2025-03-16 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696541', 'tblTempUsageDetail_20' ) end [2025-03-16 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696541', 'tblTempVendorCDR_20' ) start [2025-03-16 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696541', 'tblTempVendorCDR_20' ) end [2025-03-16 22:29:17] Production.INFO: ProcessCDR(1,14696541,1,1,2) [2025-03-16 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696541', 'tblTempUsageDetail_20' ) start [2025-03-16 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696541', 'tblTempUsageDetail_20' ) end [2025-03-16 22:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:29:20] Production.INFO: ==27663== Releasing lock... [2025-03-16 22:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:29:20] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:30:06 [end_date_ymd] => 2025-03-16 22:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:30:06' and `end` < '2025-03-16 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-03-16 22:30:18] Production.INFO: count ==954 [2025-03-16 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-16 19:30:06 - End Time 2025-03-16 22:30:06 [2025-03-16 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696547', 'tblTempUsageDetail_20' ) start [2025-03-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696547', 'tblTempUsageDetail_20' ) end [2025-03-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696547', 'tblTempVendorCDR_20' ) start [2025-03-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696547', 'tblTempVendorCDR_20' ) end [2025-03-16 22:30:19] Production.INFO: ProcessCDR(1,14696547,1,1,2) [2025-03-16 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696547', 'tblTempUsageDetail_20' ) start [2025-03-16 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696547', 'tblTempUsageDetail_20' ) end [2025-03-16 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:30:22] Production.INFO: ==27762== Releasing lock... [2025-03-16 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:31:05 [end_date_ymd] => 2025-03-16 22:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:31:05' and `end` < '2025-03-16 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-03-16 22:31:17] Production.INFO: count ==920 [2025-03-16 22:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:31:05 - End Time 2025-03-16 22:31:05 [2025-03-16 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696552', 'tblTempUsageDetail_20' ) start [2025-03-16 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696552', 'tblTempUsageDetail_20' ) end [2025-03-16 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696552', 'tblTempVendorCDR_20' ) start [2025-03-16 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696552', 'tblTempVendorCDR_20' ) end [2025-03-16 22:31:17] Production.INFO: ProcessCDR(1,14696552,1,1,2) [2025-03-16 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696552', 'tblTempUsageDetail_20' ) start [2025-03-16 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696552', 'tblTempUsageDetail_20' ) end [2025-03-16 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:31:20] Production.INFO: ==27852== Releasing lock... [2025-03-16 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:31:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:32:05 [end_date_ymd] => 2025-03-16 22:32:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:32:05' and `end` < '2025-03-16 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-03-16 22:32:18] Production.INFO: count ==918 [2025-03-16 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:32:05 - End Time 2025-03-16 22:32:05 [2025-03-16 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696557', 'tblTempUsageDetail_20' ) start [2025-03-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696557', 'tblTempUsageDetail_20' ) end [2025-03-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696557', 'tblTempVendorCDR_20' ) start [2025-03-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696557', 'tblTempVendorCDR_20' ) end [2025-03-16 22:32:18] Production.INFO: ProcessCDR(1,14696557,1,1,2) [2025-03-16 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696557', 'tblTempUsageDetail_20' ) start [2025-03-16 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696557', 'tblTempUsageDetail_20' ) end [2025-03-16 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:32:22] Production.INFO: ==27942== Releasing lock... [2025-03-16 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:32:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:33:04 [end_date_ymd] => 2025-03-16 22:33:04 [RateCDR] => 1 ) [2025-03-16 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:33:04' and `end` < '2025-03-16 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:33:16] Production.INFO: count ==918 [2025-03-16 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:33:04 - End Time 2025-03-16 22:33:04 [2025-03-16 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696562', 'tblTempUsageDetail_20' ) start [2025-03-16 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696562', 'tblTempUsageDetail_20' ) end [2025-03-16 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696562', 'tblTempVendorCDR_20' ) start [2025-03-16 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696562', 'tblTempVendorCDR_20' ) end [2025-03-16 22:33:17] Production.INFO: ProcessCDR(1,14696562,1,1,2) [2025-03-16 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696562', 'tblTempUsageDetail_20' ) start [2025-03-16 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696562', 'tblTempUsageDetail_20' ) end [2025-03-16 22:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:33:20] Production.INFO: ==28031== Releasing lock... [2025-03-16 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:33:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:34:05 [end_date_ymd] => 2025-03-16 22:34:05 [RateCDR] => 1 ) [2025-03-16 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:34:05' and `end` < '2025-03-16 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-03-16 22:34:17] Production.INFO: count ==918 [2025-03-16 22:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:34:05 - End Time 2025-03-16 22:34:05 [2025-03-16 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696567', 'tblTempUsageDetail_20' ) start [2025-03-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696567', 'tblTempUsageDetail_20' ) end [2025-03-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696567', 'tblTempVendorCDR_20' ) start [2025-03-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696567', 'tblTempVendorCDR_20' ) end [2025-03-16 22:34:17] Production.INFO: ProcessCDR(1,14696567,1,1,2) [2025-03-16 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696567', 'tblTempUsageDetail_20' ) start [2025-03-16 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696567', 'tblTempUsageDetail_20' ) end [2025-03-16 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:34:21] Production.INFO: ==28118== Releasing lock... [2025-03-16 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:34:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:35:06 [end_date_ymd] => 2025-03-16 22:35:06 [RateCDR] => 1 ) [2025-03-16 22: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-03-16 19:35:06' and `end` < '2025-03-16 22: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-03-16 22:35:18] Production.INFO: count ==915 [2025-03-16 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:35:06 - End Time 2025-03-16 22:35:06 [2025-03-16 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696572', 'tblTempUsageDetail_20' ) start [2025-03-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696572', 'tblTempUsageDetail_20' ) end [2025-03-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696572', 'tblTempVendorCDR_20' ) start [2025-03-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696572', 'tblTempVendorCDR_20' ) end [2025-03-16 22:35:18] Production.INFO: ProcessCDR(1,14696572,1,1,2) [2025-03-16 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696572', 'tblTempUsageDetail_20' ) start [2025-03-16 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696572', 'tblTempUsageDetail_20' ) end [2025-03-16 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:35:22] Production.INFO: ==28215== Releasing lock... [2025-03-16 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:36:05 [end_date_ymd] => 2025-03-16 22:36:05 [RateCDR] => 1 ) [2025-03-16 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:36:05' and `end` < '2025-03-16 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:36:17] Production.INFO: count ==916 [2025-03-16 22:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:36:05 - End Time 2025-03-16 22:36:05 [2025-03-16 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696577', 'tblTempUsageDetail_20' ) start [2025-03-16 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696577', 'tblTempUsageDetail_20' ) end [2025-03-16 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696577', 'tblTempVendorCDR_20' ) start [2025-03-16 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696577', 'tblTempVendorCDR_20' ) end [2025-03-16 22:36:17] Production.INFO: ProcessCDR(1,14696577,1,1,2) [2025-03-16 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696577', 'tblTempUsageDetail_20' ) start [2025-03-16 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696577', 'tblTempUsageDetail_20' ) end [2025-03-16 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:36:21] Production.INFO: ==28295== Releasing lock... [2025-03-16 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:36:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:37:05 [end_date_ymd] => 2025-03-16 22:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:37:05' and `end` < '2025-03-16 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-03-16 22:37:18] Production.INFO: count ==913 [2025-03-16 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:37:05 - End Time 2025-03-16 22:37:05 [2025-03-16 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696582', 'tblTempUsageDetail_20' ) start [2025-03-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696582', 'tblTempUsageDetail_20' ) end [2025-03-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696582', 'tblTempVendorCDR_20' ) start [2025-03-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696582', 'tblTempVendorCDR_20' ) end [2025-03-16 22:37:18] Production.INFO: ProcessCDR(1,14696582,1,1,2) [2025-03-16 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696582', 'tblTempUsageDetail_20' ) start [2025-03-16 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696582', 'tblTempUsageDetail_20' ) end [2025-03-16 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:37:21] Production.INFO: ==28368== Releasing lock... [2025-03-16 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:37:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:38:05 [end_date_ymd] => 2025-03-16 22:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:38:05' and `end` < '2025-03-16 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-03-16 22:38:17] Production.INFO: count ==914 [2025-03-16 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:38:05 - End Time 2025-03-16 22:38:05 [2025-03-16 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696587', 'tblTempUsageDetail_20' ) start [2025-03-16 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696587', 'tblTempUsageDetail_20' ) end [2025-03-16 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696587', 'tblTempVendorCDR_20' ) start [2025-03-16 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696587', 'tblTempVendorCDR_20' ) end [2025-03-16 22:38:17] Production.INFO: ProcessCDR(1,14696587,1,1,2) [2025-03-16 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696587', 'tblTempUsageDetail_20' ) start [2025-03-16 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696587', 'tblTempUsageDetail_20' ) end [2025-03-16 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:38:22] Production.INFO: ==28443== Releasing lock... [2025-03-16 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:39:05 [end_date_ymd] => 2025-03-16 22:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:39:05' and `end` < '2025-03-16 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-03-16 22:39:18] Production.INFO: count ==915 [2025-03-16 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:39:05 - End Time 2025-03-16 22:39:05 [2025-03-16 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696592', 'tblTempUsageDetail_20' ) start [2025-03-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696592', 'tblTempUsageDetail_20' ) end [2025-03-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696592', 'tblTempVendorCDR_20' ) start [2025-03-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696592', 'tblTempVendorCDR_20' ) end [2025-03-16 22:39:18] Production.INFO: ProcessCDR(1,14696592,1,1,2) [2025-03-16 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696592', 'tblTempUsageDetail_20' ) start [2025-03-16 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696592', 'tblTempUsageDetail_20' ) end [2025-03-16 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:39:21] Production.INFO: ==28515== Releasing lock... [2025-03-16 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:39:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:40:06 [end_date_ymd] => 2025-03-16 22:40:06 [RateCDR] => 1 ) [2025-03-16 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:40:06' and `end` < '2025-03-16 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:40:18] Production.INFO: count ==921 [2025-03-16 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-16 19:40:06 - End Time 2025-03-16 22:40:06 [2025-03-16 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696598', 'tblTempUsageDetail_20' ) start [2025-03-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696598', 'tblTempUsageDetail_20' ) end [2025-03-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696598', 'tblTempVendorCDR_20' ) start [2025-03-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696598', 'tblTempVendorCDR_20' ) end [2025-03-16 22:40:19] Production.INFO: ProcessCDR(1,14696598,1,1,2) [2025-03-16 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696598', 'tblTempUsageDetail_20' ) start [2025-03-16 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696598', 'tblTempUsageDetail_20' ) end [2025-03-16 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:40:22] Production.INFO: ==28610== Releasing lock... [2025-03-16 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:41:05 [end_date_ymd] => 2025-03-16 22:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:41:05' and `end` < '2025-03-16 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-03-16 22:41:17] Production.INFO: count ==911 [2025-03-16 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:41:05 - End Time 2025-03-16 22:41:05 [2025-03-16 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696603', 'tblTempUsageDetail_20' ) start [2025-03-16 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696603', 'tblTempUsageDetail_20' ) end [2025-03-16 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696603', 'tblTempVendorCDR_20' ) start [2025-03-16 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696603', 'tblTempVendorCDR_20' ) end [2025-03-16 22:41:17] Production.INFO: ProcessCDR(1,14696603,1,1,2) [2025-03-16 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696603', 'tblTempUsageDetail_20' ) start [2025-03-16 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696603', 'tblTempUsageDetail_20' ) end [2025-03-16 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:41:21] Production.INFO: ==28706== Releasing lock... [2025-03-16 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:41:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:42:05 [end_date_ymd] => 2025-03-16 22:42:05 [RateCDR] => 1 ) [2025-03-16 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:42:05' and `end` < '2025-03-16 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:42:17] Production.INFO: count ==910 [2025-03-16 22:42:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:42:05 - End Time 2025-03-16 22:42:05 [2025-03-16 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696608', 'tblTempUsageDetail_20' ) start [2025-03-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696608', 'tblTempUsageDetail_20' ) end [2025-03-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696608', 'tblTempVendorCDR_20' ) start [2025-03-16 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696608', 'tblTempVendorCDR_20' ) end [2025-03-16 22:42:17] Production.INFO: ProcessCDR(1,14696608,1,1,2) [2025-03-16 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696608', 'tblTempUsageDetail_20' ) start [2025-03-16 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696608', 'tblTempUsageDetail_20' ) end [2025-03-16 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:42:21] Production.INFO: ==28802== Releasing lock... [2025-03-16 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:42:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:43:05 [end_date_ymd] => 2025-03-16 22:43:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:43:05' and `end` < '2025-03-16 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-03-16 22:43:17] Production.INFO: count ==919 [2025-03-16 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:43:05 - End Time 2025-03-16 22:43:05 [2025-03-16 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696613', 'tblTempUsageDetail_20' ) start [2025-03-16 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696613', 'tblTempUsageDetail_20' ) end [2025-03-16 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696613', 'tblTempVendorCDR_20' ) start [2025-03-16 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696613', 'tblTempVendorCDR_20' ) end [2025-03-16 22:43:17] Production.INFO: ProcessCDR(1,14696613,1,1,2) [2025-03-16 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696613', 'tblTempUsageDetail_20' ) start [2025-03-16 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696613', 'tblTempUsageDetail_20' ) end [2025-03-16 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:43:21] Production.INFO: ==28898== Releasing lock... [2025-03-16 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:43:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:44:06 [end_date_ymd] => 2025-03-16 22:44:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:44:06' and `end` < '2025-03-16 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-03-16 22:44:18] Production.INFO: count ==917 [2025-03-16 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:44:06 - End Time 2025-03-16 22:44:06 [2025-03-16 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696618', 'tblTempUsageDetail_20' ) start [2025-03-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696618', 'tblTempUsageDetail_20' ) end [2025-03-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696618', 'tblTempVendorCDR_20' ) start [2025-03-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696618', 'tblTempVendorCDR_20' ) end [2025-03-16 22:44:18] Production.INFO: ProcessCDR(1,14696618,1,1,2) [2025-03-16 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696618', 'tblTempUsageDetail_20' ) start [2025-03-16 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696618', 'tblTempUsageDetail_20' ) end [2025-03-16 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:44:21] Production.INFO: ==29023== Releasing lock... [2025-03-16 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:44:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:45:05 [end_date_ymd] => 2025-03-16 22:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:45:05' and `end` < '2025-03-16 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-03-16 22:45:18] Production.INFO: count ==916 [2025-03-16 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:45:05 - End Time 2025-03-16 22:45:05 [2025-03-16 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696623', 'tblTempUsageDetail_20' ) start [2025-03-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696623', 'tblTempUsageDetail_20' ) end [2025-03-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696623', 'tblTempVendorCDR_20' ) start [2025-03-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696623', 'tblTempVendorCDR_20' ) end [2025-03-16 22:45:18] Production.INFO: ProcessCDR(1,14696623,1,1,2) [2025-03-16 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696623', 'tblTempUsageDetail_20' ) start [2025-03-16 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696623', 'tblTempUsageDetail_20' ) end [2025-03-16 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:45:21] Production.INFO: ==29122== Releasing lock... [2025-03-16 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:45:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:46:06 [end_date_ymd] => 2025-03-16 22:46:06 [RateCDR] => 1 ) [2025-03-16 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:46:06' and `end` < '2025-03-16 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:46:18] Production.INFO: count ==915 [2025-03-16 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:46:06 - End Time 2025-03-16 22:46:06 [2025-03-16 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696628', 'tblTempUsageDetail_20' ) start [2025-03-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696628', 'tblTempUsageDetail_20' ) end [2025-03-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696628', 'tblTempVendorCDR_20' ) start [2025-03-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696628', 'tblTempVendorCDR_20' ) end [2025-03-16 22:46:18] Production.INFO: ProcessCDR(1,14696628,1,1,2) [2025-03-16 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696628', 'tblTempUsageDetail_20' ) start [2025-03-16 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696628', 'tblTempUsageDetail_20' ) end [2025-03-16 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:46:21] Production.INFO: ==29211== Releasing lock... [2025-03-16 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:46:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:47:05 [end_date_ymd] => 2025-03-16 22:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:47:05' and `end` < '2025-03-16 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-03-16 22:47:18] Production.INFO: count ==918 [2025-03-16 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:47:05 - End Time 2025-03-16 22:47:05 [2025-03-16 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696633', 'tblTempUsageDetail_20' ) start [2025-03-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696633', 'tblTempUsageDetail_20' ) end [2025-03-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696633', 'tblTempVendorCDR_20' ) start [2025-03-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696633', 'tblTempVendorCDR_20' ) end [2025-03-16 22:47:18] Production.INFO: ProcessCDR(1,14696633,1,1,2) [2025-03-16 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696633', 'tblTempUsageDetail_20' ) start [2025-03-16 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696633', 'tblTempUsageDetail_20' ) end [2025-03-16 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:47:21] Production.INFO: ==29296== Releasing lock... [2025-03-16 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:47:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:48:05 [end_date_ymd] => 2025-03-16 22:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:48:05' and `end` < '2025-03-16 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-03-16 22:48:18] Production.INFO: count ==915 [2025-03-16 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:48:05 - End Time 2025-03-16 22:48:05 [2025-03-16 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696638', 'tblTempUsageDetail_20' ) start [2025-03-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696638', 'tblTempUsageDetail_20' ) end [2025-03-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696638', 'tblTempVendorCDR_20' ) start [2025-03-16 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696638', 'tblTempVendorCDR_20' ) end [2025-03-16 22:48:18] Production.INFO: ProcessCDR(1,14696638,1,1,2) [2025-03-16 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696638', 'tblTempUsageDetail_20' ) start [2025-03-16 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696638', 'tblTempUsageDetail_20' ) end [2025-03-16 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:48:21] Production.INFO: ==29386== Releasing lock... [2025-03-16 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:48:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:49:05 [end_date_ymd] => 2025-03-16 22:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:49:05' and `end` < '2025-03-16 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-03-16 22:49:17] Production.INFO: count ==915 [2025-03-16 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:49:05 - End Time 2025-03-16 22:49:05 [2025-03-16 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696643', 'tblTempUsageDetail_20' ) start [2025-03-16 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696643', 'tblTempUsageDetail_20' ) end [2025-03-16 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696643', 'tblTempVendorCDR_20' ) start [2025-03-16 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696643', 'tblTempVendorCDR_20' ) end [2025-03-16 22:49:17] Production.INFO: ProcessCDR(1,14696643,1,1,2) [2025-03-16 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696643', 'tblTempUsageDetail_20' ) start [2025-03-16 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696643', 'tblTempUsageDetail_20' ) end [2025-03-16 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:49:21] Production.INFO: ==29481== Releasing lock... [2025-03-16 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:49:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:50:06 [end_date_ymd] => 2025-03-16 22:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:50:06' and `end` < '2025-03-16 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-03-16 22:50:18] Production.INFO: count ==916 [2025-03-16 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:50:06 - End Time 2025-03-16 22:50:06 [2025-03-16 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696649', 'tblTempUsageDetail_20' ) start [2025-03-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696649', 'tblTempUsageDetail_20' ) end [2025-03-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696649', 'tblTempVendorCDR_20' ) start [2025-03-16 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696649', 'tblTempVendorCDR_20' ) end [2025-03-16 22:50:18] Production.INFO: ProcessCDR(1,14696649,1,1,2) [2025-03-16 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696649', 'tblTempUsageDetail_20' ) start [2025-03-16 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696649', 'tblTempUsageDetail_20' ) end [2025-03-16 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:50:22] Production.INFO: ==29582== Releasing lock... [2025-03-16 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:50:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:51:05 [end_date_ymd] => 2025-03-16 22:51:05 [RateCDR] => 1 ) [2025-03-16 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:51:05' and `end` < '2025-03-16 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:51:17] Production.INFO: count ==900 [2025-03-16 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:51:05 - End Time 2025-03-16 22:51:05 [2025-03-16 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696654', 'tblTempUsageDetail_20' ) start [2025-03-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696654', 'tblTempUsageDetail_20' ) end [2025-03-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696654', 'tblTempVendorCDR_20' ) start [2025-03-16 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696654', 'tblTempVendorCDR_20' ) end [2025-03-16 22:51:17] Production.INFO: ProcessCDR(1,14696654,1,1,2) [2025-03-16 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696654', 'tblTempUsageDetail_20' ) start [2025-03-16 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696654', 'tblTempUsageDetail_20' ) end [2025-03-16 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:51:21] Production.INFO: ==29673== Releasing lock... [2025-03-16 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:51:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:52:05 [end_date_ymd] => 2025-03-16 22:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:52:05' and `end` < '2025-03-16 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-03-16 22:52:18] Production.INFO: count ==892 [2025-03-16 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:52:05 - End Time 2025-03-16 22:52:05 [2025-03-16 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696659', 'tblTempUsageDetail_20' ) start [2025-03-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696659', 'tblTempUsageDetail_20' ) end [2025-03-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696659', 'tblTempVendorCDR_20' ) start [2025-03-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696659', 'tblTempVendorCDR_20' ) end [2025-03-16 22:52:18] Production.INFO: ProcessCDR(1,14696659,1,1,2) [2025-03-16 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696659', 'tblTempUsageDetail_20' ) start [2025-03-16 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696659', 'tblTempUsageDetail_20' ) end [2025-03-16 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:52:23] Production.INFO: ==29766== Releasing lock... [2025-03-16 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:52:23] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:53:05 [end_date_ymd] => 2025-03-16 22:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:53:05' and `end` < '2025-03-16 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-03-16 22:53:17] Production.INFO: count ==892 [2025-03-16 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:53:05 - End Time 2025-03-16 22:53:05 [2025-03-16 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696664', 'tblTempUsageDetail_20' ) start [2025-03-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696664', 'tblTempUsageDetail_20' ) end [2025-03-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696664', 'tblTempVendorCDR_20' ) start [2025-03-16 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696664', 'tblTempVendorCDR_20' ) end [2025-03-16 22:53:17] Production.INFO: ProcessCDR(1,14696664,1,1,2) [2025-03-16 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696664', 'tblTempUsageDetail_20' ) start [2025-03-16 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696664', 'tblTempUsageDetail_20' ) end [2025-03-16 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:53:22] Production.INFO: ==29860== Releasing lock... [2025-03-16 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:54:05 [end_date_ymd] => 2025-03-16 22:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:54:05' and `end` < '2025-03-16 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-03-16 22:54:17] Production.INFO: count ==883 [2025-03-16 22:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:54:05 - End Time 2025-03-16 22:54:05 [2025-03-16 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696669', 'tblTempUsageDetail_20' ) start [2025-03-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696669', 'tblTempUsageDetail_20' ) end [2025-03-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696669', 'tblTempVendorCDR_20' ) start [2025-03-16 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696669', 'tblTempVendorCDR_20' ) end [2025-03-16 22:54:17] Production.INFO: ProcessCDR(1,14696669,1,1,2) [2025-03-16 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696669', 'tblTempUsageDetail_20' ) start [2025-03-16 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696669', 'tblTempUsageDetail_20' ) end [2025-03-16 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:54:21] Production.INFO: ==29949== Releasing lock... [2025-03-16 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:54:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:55:06 [end_date_ymd] => 2025-03-16 22:55:06 [RateCDR] => 1 ) [2025-03-16 22: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-03-16 19:55:06' and `end` < '2025-03-16 22: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-03-16 22:55:18] Production.INFO: count ==876 [2025-03-16 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:55:06 - End Time 2025-03-16 22:55:06 [2025-03-16 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696674', 'tblTempUsageDetail_20' ) start [2025-03-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696674', 'tblTempUsageDetail_20' ) end [2025-03-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696674', 'tblTempVendorCDR_20' ) start [2025-03-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696674', 'tblTempVendorCDR_20' ) end [2025-03-16 22:55:18] Production.INFO: ProcessCDR(1,14696674,1,1,2) [2025-03-16 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696674', 'tblTempUsageDetail_20' ) start [2025-03-16 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696674', 'tblTempUsageDetail_20' ) end [2025-03-16 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:55:21] Production.INFO: ==30027== Releasing lock... [2025-03-16 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:55:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:56:05 [end_date_ymd] => 2025-03-16 22:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:56:05' and `end` < '2025-03-16 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-03-16 22:56:17] Production.INFO: count ==876 [2025-03-16 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:56:05 - End Time 2025-03-16 22:56:05 [2025-03-16 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696679', 'tblTempUsageDetail_20' ) start [2025-03-16 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696679', 'tblTempUsageDetail_20' ) end [2025-03-16 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696679', 'tblTempVendorCDR_20' ) start [2025-03-16 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696679', 'tblTempVendorCDR_20' ) end [2025-03-16 22:56:18] Production.INFO: ProcessCDR(1,14696679,1,1,2) [2025-03-16 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696679', 'tblTempUsageDetail_20' ) start [2025-03-16 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696679', 'tblTempUsageDetail_20' ) end [2025-03-16 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:56:21] Production.INFO: ==30102== Releasing lock... [2025-03-16 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:56:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:57:05 [end_date_ymd] => 2025-03-16 22:57:05 [RateCDR] => 1 ) [2025-03-16 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 19:57:05' and `end` < '2025-03-16 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 22:57:17] Production.INFO: count ==876 [2025-03-16 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:57:05 - End Time 2025-03-16 22:57:05 [2025-03-16 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696684', 'tblTempUsageDetail_20' ) start [2025-03-16 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696684', 'tblTempUsageDetail_20' ) end [2025-03-16 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696684', 'tblTempVendorCDR_20' ) start [2025-03-16 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696684', 'tblTempVendorCDR_20' ) end [2025-03-16 22:57:17] Production.INFO: ProcessCDR(1,14696684,1,1,2) [2025-03-16 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696684', 'tblTempUsageDetail_20' ) start [2025-03-16 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696684', 'tblTempUsageDetail_20' ) end [2025-03-16 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:57:22] Production.INFO: ==30175== Releasing lock... [2025-03-16 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:58:05 [end_date_ymd] => 2025-03-16 22:58:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 19:58:05' and `end` < '2025-03-16 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-03-16 22:58:17] Production.INFO: count ==875 [2025-03-16 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 19:58:05 - End Time 2025-03-16 22:58:05 [2025-03-16 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696689', 'tblTempUsageDetail_20' ) start [2025-03-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696689', 'tblTempUsageDetail_20' ) end [2025-03-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696689', 'tblTempVendorCDR_20' ) start [2025-03-16 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696689', 'tblTempVendorCDR_20' ) end [2025-03-16 22:58:17] Production.INFO: ProcessCDR(1,14696689,1,1,2) [2025-03-16 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696689', 'tblTempUsageDetail_20' ) start [2025-03-16 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696689', 'tblTempUsageDetail_20' ) end [2025-03-16 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:58:21] Production.INFO: ==30251== Releasing lock... [2025-03-16 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:58:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 19:59:06 [end_date_ymd] => 2025-03-16 22:59:06 [RateCDR] => 1 ) [2025-03-16 22: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-03-16 19:59:06' and `end` < '2025-03-16 22: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-03-16 22:59:18] Production.INFO: count ==874 [2025-03-16 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 19:59:06 - End Time 2025-03-16 22:59:06 [2025-03-16 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696694', 'tblTempUsageDetail_20' ) start [2025-03-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696694', 'tblTempUsageDetail_20' ) end [2025-03-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696694', 'tblTempVendorCDR_20' ) start [2025-03-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696694', 'tblTempVendorCDR_20' ) end [2025-03-16 22:59:18] Production.INFO: ProcessCDR(1,14696694,1,1,2) [2025-03-16 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696694', 'tblTempUsageDetail_20' ) start [2025-03-16 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696694', 'tblTempUsageDetail_20' ) end [2025-03-16 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 22:59:22] Production.INFO: ==30364== Releasing lock... [2025-03-16 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 22:59:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:00:06 [end_date_ymd] => 2025-03-16 23:00:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:00:06' and `end` < '2025-03-16 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-03-16 23:00:19] Production.INFO: count ==877 [2025-03-16 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-16 20:00:06 - End Time 2025-03-16 23:00:06 [2025-03-16 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696700', 'tblTempUsageDetail_20' ) start [2025-03-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696700', 'tblTempUsageDetail_20' ) end [2025-03-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696700', 'tblTempVendorCDR_20' ) start [2025-03-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696700', 'tblTempVendorCDR_20' ) end [2025-03-16 23:00:19] Production.INFO: ProcessCDR(1,14696700,1,1,2) [2025-03-16 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696700', 'tblTempUsageDetail_20' ) start [2025-03-16 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696700', 'tblTempUsageDetail_20' ) end [2025-03-16 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:00:22] Production.INFO: ==30443== Releasing lock... [2025-03-16 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:01:06 [end_date_ymd] => 2025-03-16 23:01:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:01:06' and `end` < '2025-03-16 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-03-16 23:01:18] Production.INFO: count ==858 [2025-03-16 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:01:06 - End Time 2025-03-16 23:01:06 [2025-03-16 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696705', 'tblTempUsageDetail_20' ) start [2025-03-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696705', 'tblTempUsageDetail_20' ) end [2025-03-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696705', 'tblTempVendorCDR_20' ) start [2025-03-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696705', 'tblTempVendorCDR_20' ) end [2025-03-16 23:01:18] Production.INFO: ProcessCDR(1,14696705,1,1,2) [2025-03-16 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696705', 'tblTempUsageDetail_20' ) start [2025-03-16 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696705', 'tblTempUsageDetail_20' ) end [2025-03-16 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:01:21] Production.INFO: ==30533== Releasing lock... [2025-03-16 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:01:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:02:05 [end_date_ymd] => 2025-03-16 23:02:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:02:05' and `end` < '2025-03-16 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-03-16 23:02:17] Production.INFO: count ==867 [2025-03-16 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:02:05 - End Time 2025-03-16 23:02:05 [2025-03-16 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696710', 'tblTempUsageDetail_20' ) start [2025-03-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696710', 'tblTempUsageDetail_20' ) end [2025-03-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696710', 'tblTempVendorCDR_20' ) start [2025-03-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696710', 'tblTempVendorCDR_20' ) end [2025-03-16 23:02:18] Production.INFO: ProcessCDR(1,14696710,1,1,2) [2025-03-16 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696710', 'tblTempUsageDetail_20' ) start [2025-03-16 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696710', 'tblTempUsageDetail_20' ) end [2025-03-16 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:02:21] Production.INFO: ==30690== Releasing lock... [2025-03-16 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:02:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:03:05 [end_date_ymd] => 2025-03-16 23:03:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:03:05' and `end` < '2025-03-16 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-03-16 23:03:17] Production.INFO: count ==863 [2025-03-16 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:03:05 - End Time 2025-03-16 23:03:05 [2025-03-16 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696715', 'tblTempUsageDetail_20' ) start [2025-03-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696715', 'tblTempUsageDetail_20' ) end [2025-03-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696715', 'tblTempVendorCDR_20' ) start [2025-03-16 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696715', 'tblTempVendorCDR_20' ) end [2025-03-16 23:03:17] Production.INFO: ProcessCDR(1,14696715,1,1,2) [2025-03-16 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696715', 'tblTempUsageDetail_20' ) start [2025-03-16 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696715', 'tblTempUsageDetail_20' ) end [2025-03-16 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:03:20] Production.INFO: ==30765== Releasing lock... [2025-03-16 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:03:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:04:05 [end_date_ymd] => 2025-03-16 23:04:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:04:05' and `end` < '2025-03-16 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-03-16 23:04:17] Production.INFO: count ==864 [2025-03-16 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:04:05 - End Time 2025-03-16 23:04:05 [2025-03-16 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696720', 'tblTempUsageDetail_20' ) start [2025-03-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696720', 'tblTempUsageDetail_20' ) end [2025-03-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696720', 'tblTempVendorCDR_20' ) start [2025-03-16 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696720', 'tblTempVendorCDR_20' ) end [2025-03-16 23:04:17] Production.INFO: ProcessCDR(1,14696720,1,1,2) [2025-03-16 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696720', 'tblTempUsageDetail_20' ) start [2025-03-16 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696720', 'tblTempUsageDetail_20' ) end [2025-03-16 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:04:22] Production.INFO: ==30839== Releasing lock... [2025-03-16 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:05:06 [end_date_ymd] => 2025-03-16 23:05:06 [RateCDR] => 1 ) [2025-03-16 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:05:06' and `end` < '2025-03-16 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:05:18] Production.INFO: count ==867 [2025-03-16 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:05:06 - End Time 2025-03-16 23:05:06 [2025-03-16 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696725', 'tblTempUsageDetail_20' ) start [2025-03-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696725', 'tblTempUsageDetail_20' ) end [2025-03-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696725', 'tblTempVendorCDR_20' ) start [2025-03-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696725', 'tblTempVendorCDR_20' ) end [2025-03-16 23:05:18] Production.INFO: ProcessCDR(1,14696725,1,1,2) [2025-03-16 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696725', 'tblTempUsageDetail_20' ) start [2025-03-16 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696725', 'tblTempUsageDetail_20' ) end [2025-03-16 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:05:23] Production.INFO: ==30996== Releasing lock... [2025-03-16 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:05:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:06:05 [end_date_ymd] => 2025-03-16 23:06:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:06:05' and `end` < '2025-03-16 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-03-16 23:06:18] Production.INFO: count ==867 [2025-03-16 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:06:05 - End Time 2025-03-16 23:06:05 [2025-03-16 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696730', 'tblTempUsageDetail_20' ) start [2025-03-16 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696730', 'tblTempUsageDetail_20' ) end [2025-03-16 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696730', 'tblTempVendorCDR_20' ) start [2025-03-16 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696730', 'tblTempVendorCDR_20' ) end [2025-03-16 23:06:18] Production.INFO: ProcessCDR(1,14696730,1,1,2) [2025-03-16 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696730', 'tblTempUsageDetail_20' ) start [2025-03-16 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696730', 'tblTempUsageDetail_20' ) end [2025-03-16 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:06:23] Production.INFO: ==31069== Releasing lock... [2025-03-16 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:06:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:07:05 [end_date_ymd] => 2025-03-16 23:07:05 [RateCDR] => 1 ) [2025-03-16 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:07:05' and `end` < '2025-03-16 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-03-16 23:07:17] Production.INFO: count ==863 [2025-03-16 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:07:05 - End Time 2025-03-16 23:07:05 [2025-03-16 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696735', 'tblTempUsageDetail_20' ) start [2025-03-16 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696735', 'tblTempUsageDetail_20' ) end [2025-03-16 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696735', 'tblTempVendorCDR_20' ) start [2025-03-16 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696735', 'tblTempVendorCDR_20' ) end [2025-03-16 23:07:17] Production.INFO: ProcessCDR(1,14696735,1,1,2) [2025-03-16 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696735', 'tblTempUsageDetail_20' ) start [2025-03-16 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696735', 'tblTempUsageDetail_20' ) end [2025-03-16 23:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:07:20] Production.INFO: ==31142== Releasing lock... [2025-03-16 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:07:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:08:04 [end_date_ymd] => 2025-03-16 23:08:04 [RateCDR] => 1 ) [2025-03-16 23:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:08:04' and `end` < '2025-03-16 23:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:08:16] Production.INFO: count ==863 [2025-03-16 23:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:08:04 - End Time 2025-03-16 23:08:04 [2025-03-16 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696740', 'tblTempUsageDetail_20' ) start [2025-03-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696740', 'tblTempUsageDetail_20' ) end [2025-03-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696740', 'tblTempVendorCDR_20' ) start [2025-03-16 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696740', 'tblTempVendorCDR_20' ) end [2025-03-16 23:08:17] Production.INFO: ProcessCDR(1,14696740,1,1,2) [2025-03-16 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696740', 'tblTempUsageDetail_20' ) start [2025-03-16 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696740', 'tblTempUsageDetail_20' ) end [2025-03-16 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:08:20] Production.INFO: ==31222== Releasing lock... [2025-03-16 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:08:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:09:05 [end_date_ymd] => 2025-03-16 23:09:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:09:05' and `end` < '2025-03-16 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-03-16 23:09:17] Production.INFO: count ==862 [2025-03-16 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:09:05 - End Time 2025-03-16 23:09:05 [2025-03-16 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696745', 'tblTempUsageDetail_20' ) start [2025-03-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696745', 'tblTempUsageDetail_20' ) end [2025-03-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696745', 'tblTempVendorCDR_20' ) start [2025-03-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696745', 'tblTempVendorCDR_20' ) end [2025-03-16 23:09:18] Production.INFO: ProcessCDR(1,14696745,1,1,2) [2025-03-16 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696745', 'tblTempUsageDetail_20' ) start [2025-03-16 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696745', 'tblTempUsageDetail_20' ) end [2025-03-16 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:09:21] Production.INFO: ==31379== Releasing lock... [2025-03-16 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:09:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:10:06 [end_date_ymd] => 2025-03-16 23:10:06 [RateCDR] => 1 ) [2025-03-16 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:10:06' and `end` < '2025-03-16 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:10:18] Production.INFO: count ==863 [2025-03-16 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:10:06 - End Time 2025-03-16 23:10:06 [2025-03-16 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696750', 'tblTempUsageDetail_20' ) start [2025-03-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696750', 'tblTempUsageDetail_20' ) end [2025-03-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696750', 'tblTempVendorCDR_20' ) start [2025-03-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696750', 'tblTempVendorCDR_20' ) end [2025-03-16 23:10:18] Production.INFO: ProcessCDR(1,14696750,1,1,2) [2025-03-16 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696750', 'tblTempUsageDetail_20' ) start [2025-03-16 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696750', 'tblTempUsageDetail_20' ) end [2025-03-16 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:10:21] Production.INFO: ==31455== Releasing lock... [2025-03-16 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:10:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:11:05 [end_date_ymd] => 2025-03-16 23:11:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:11:05' and `end` < '2025-03-16 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-03-16 23:11:17] Production.INFO: count ==867 [2025-03-16 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:11:05 - End Time 2025-03-16 23:11:05 [2025-03-16 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696756', 'tblTempUsageDetail_20' ) start [2025-03-16 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696756', 'tblTempUsageDetail_20' ) end [2025-03-16 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696756', 'tblTempVendorCDR_20' ) start [2025-03-16 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696756', 'tblTempVendorCDR_20' ) end [2025-03-16 23:11:17] Production.INFO: ProcessCDR(1,14696756,1,1,2) [2025-03-16 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696756', 'tblTempUsageDetail_20' ) start [2025-03-16 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696756', 'tblTempUsageDetail_20' ) end [2025-03-16 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:11:20] Production.INFO: ==31537== Releasing lock... [2025-03-16 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:11:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:12:05 [end_date_ymd] => 2025-03-16 23:12:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:12:05' and `end` < '2025-03-16 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-03-16 23:12:18] Production.INFO: count ==858 [2025-03-16 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:12:05 - End Time 2025-03-16 23:12:05 [2025-03-16 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696761', 'tblTempUsageDetail_20' ) start [2025-03-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696761', 'tblTempUsageDetail_20' ) end [2025-03-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696761', 'tblTempVendorCDR_20' ) start [2025-03-16 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696761', 'tblTempVendorCDR_20' ) end [2025-03-16 23:12:18] Production.INFO: ProcessCDR(1,14696761,1,1,2) [2025-03-16 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696761', 'tblTempUsageDetail_20' ) start [2025-03-16 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696761', 'tblTempUsageDetail_20' ) end [2025-03-16 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:12:21] Production.INFO: ==31693== Releasing lock... [2025-03-16 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:12:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:13:04 [end_date_ymd] => 2025-03-16 23:13:04 [RateCDR] => 1 ) [2025-03-16 23: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-03-16 20:13:04' and `end` < '2025-03-16 23: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-03-16 23:13:17] Production.INFO: count ==857 [2025-03-16 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:13:04 - End Time 2025-03-16 23:13:04 [2025-03-16 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696766', 'tblTempUsageDetail_20' ) start [2025-03-16 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696766', 'tblTempUsageDetail_20' ) end [2025-03-16 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696766', 'tblTempVendorCDR_20' ) start [2025-03-16 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696766', 'tblTempVendorCDR_20' ) end [2025-03-16 23:13:17] Production.INFO: ProcessCDR(1,14696766,1,1,2) [2025-03-16 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696766', 'tblTempUsageDetail_20' ) start [2025-03-16 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696766', 'tblTempUsageDetail_20' ) end [2025-03-16 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:13:20] Production.INFO: ==31769== Releasing lock... [2025-03-16 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:13:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:14:05 [end_date_ymd] => 2025-03-16 23:14:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:14:05' and `end` < '2025-03-16 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-03-16 23:14:17] Production.INFO: count ==855 [2025-03-16 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:14:05 - End Time 2025-03-16 23:14:05 [2025-03-16 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696771', 'tblTempUsageDetail_20' ) start [2025-03-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696771', 'tblTempUsageDetail_20' ) end [2025-03-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696771', 'tblTempVendorCDR_20' ) start [2025-03-16 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696771', 'tblTempVendorCDR_20' ) end [2025-03-16 23:14:17] Production.INFO: ProcessCDR(1,14696771,1,1,2) [2025-03-16 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696771', 'tblTempUsageDetail_20' ) start [2025-03-16 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696771', 'tblTempUsageDetail_20' ) end [2025-03-16 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:14:21] Production.INFO: ==31849== Releasing lock... [2025-03-16 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:14:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:15:04 [end_date_ymd] => 2025-03-16 23:15:04 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:15:04' and `end` < '2025-03-16 23: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-03-16 23:15:17] Production.INFO: count ==857 [2025-03-16 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:15:04 - End Time 2025-03-16 23:15:04 [2025-03-16 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696776', 'tblTempUsageDetail_20' ) start [2025-03-16 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696776', 'tblTempUsageDetail_20' ) end [2025-03-16 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696776', 'tblTempVendorCDR_20' ) start [2025-03-16 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696776', 'tblTempVendorCDR_20' ) end [2025-03-16 23:15:17] Production.INFO: ProcessCDR(1,14696776,1,1,2) [2025-03-16 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696776', 'tblTempUsageDetail_20' ) start [2025-03-16 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696776', 'tblTempUsageDetail_20' ) end [2025-03-16 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:15:20] Production.INFO: ==32001== Releasing lock... [2025-03-16 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:15:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-16 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:16:05 [end_date_ymd] => 2025-03-16 23:16:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:16:05' and `end` < '2025-03-16 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-03-16 23:16:17] Production.INFO: count ==863 [2025-03-16 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:16:05 - End Time 2025-03-16 23:16:05 [2025-03-16 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696781', 'tblTempUsageDetail_20' ) start [2025-03-16 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696781', 'tblTempUsageDetail_20' ) end [2025-03-16 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696781', 'tblTempVendorCDR_20' ) start [2025-03-16 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696781', 'tblTempVendorCDR_20' ) end [2025-03-16 23:16:17] Production.INFO: ProcessCDR(1,14696781,1,1,2) [2025-03-16 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696781', 'tblTempUsageDetail_20' ) start [2025-03-16 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696781', 'tblTempUsageDetail_20' ) end [2025-03-16 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:16:21] Production.INFO: ==32119== Releasing lock... [2025-03-16 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:16:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:17:06 [end_date_ymd] => 2025-03-16 23:17:06 [RateCDR] => 1 ) [2025-03-16 23: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-03-16 20:17:06' and `end` < '2025-03-16 23: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-03-16 23:17:18] Production.INFO: count ==860 [2025-03-16 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:17:06 - End Time 2025-03-16 23:17:06 [2025-03-16 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696786', 'tblTempUsageDetail_20' ) start [2025-03-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696786', 'tblTempUsageDetail_20' ) end [2025-03-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696786', 'tblTempVendorCDR_20' ) start [2025-03-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696786', 'tblTempVendorCDR_20' ) end [2025-03-16 23:17:18] Production.INFO: ProcessCDR(1,14696786,1,1,2) [2025-03-16 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696786', 'tblTempUsageDetail_20' ) start [2025-03-16 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696786', 'tblTempUsageDetail_20' ) end [2025-03-16 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:17:21] Production.INFO: ==32196== Releasing lock... [2025-03-16 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:17:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:18:05 [end_date_ymd] => 2025-03-16 23:18:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:18:05' and `end` < '2025-03-16 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-03-16 23:18:17] Production.INFO: count ==863 [2025-03-16 23:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:18:05 - End Time 2025-03-16 23:18:05 [2025-03-16 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696791', 'tblTempUsageDetail_20' ) start [2025-03-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696791', 'tblTempUsageDetail_20' ) end [2025-03-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696791', 'tblTempVendorCDR_20' ) start [2025-03-16 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696791', 'tblTempVendorCDR_20' ) end [2025-03-16 23:18:17] Production.INFO: ProcessCDR(1,14696791,1,1,2) [2025-03-16 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696791', 'tblTempUsageDetail_20' ) start [2025-03-16 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696791', 'tblTempUsageDetail_20' ) end [2025-03-16 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:18:21] Production.INFO: ==32273== Releasing lock... [2025-03-16 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:18:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:19:05 [end_date_ymd] => 2025-03-16 23:19:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:19:05' and `end` < '2025-03-16 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-03-16 23:19:18] Production.INFO: count ==869 [2025-03-16 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:19:05 - End Time 2025-03-16 23:19:05 [2025-03-16 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696796', 'tblTempUsageDetail_20' ) start [2025-03-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696796', 'tblTempUsageDetail_20' ) end [2025-03-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696796', 'tblTempVendorCDR_20' ) start [2025-03-16 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696796', 'tblTempVendorCDR_20' ) end [2025-03-16 23:19:18] Production.INFO: ProcessCDR(1,14696796,1,1,2) [2025-03-16 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696796', 'tblTempUsageDetail_20' ) start [2025-03-16 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696796', 'tblTempUsageDetail_20' ) end [2025-03-16 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:19:21] Production.INFO: ==32355== Releasing lock... [2025-03-16 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:19:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:20:05 [end_date_ymd] => 2025-03-16 23:20:05 [RateCDR] => 1 ) [2025-03-16 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:20:05' and `end` < '2025-03-16 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:20:18] Production.INFO: count ==865 [2025-03-16 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:20:05 - End Time 2025-03-16 23:20:05 [2025-03-16 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696802', 'tblTempUsageDetail_20' ) start [2025-03-16 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696802', 'tblTempUsageDetail_20' ) end [2025-03-16 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696802', 'tblTempVendorCDR_20' ) start [2025-03-16 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696802', 'tblTempVendorCDR_20' ) end [2025-03-16 23:20:18] Production.INFO: ProcessCDR(1,14696802,1,1,2) [2025-03-16 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696802', 'tblTempUsageDetail_20' ) start [2025-03-16 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696802', 'tblTempUsageDetail_20' ) end [2025-03-16 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:20:21] Production.INFO: ==32429== Releasing lock... [2025-03-16 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:20:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:21:05 [end_date_ymd] => 2025-03-16 23:21:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:21:05' and `end` < '2025-03-16 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-03-16 23:21:17] Production.INFO: count ==879 [2025-03-16 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:21:05 - End Time 2025-03-16 23:21:05 [2025-03-16 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696807', 'tblTempUsageDetail_20' ) start [2025-03-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696807', 'tblTempUsageDetail_20' ) end [2025-03-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696807', 'tblTempVendorCDR_20' ) start [2025-03-16 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696807', 'tblTempVendorCDR_20' ) end [2025-03-16 23:21:17] Production.INFO: ProcessCDR(1,14696807,1,1,2) [2025-03-16 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696807', 'tblTempUsageDetail_20' ) start [2025-03-16 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696807', 'tblTempUsageDetail_20' ) end [2025-03-16 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:21:22] Production.INFO: ==32516== Releasing lock... [2025-03-16 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:21:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:22:05 [end_date_ymd] => 2025-03-16 23:22:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:22:05' and `end` < '2025-03-16 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-03-16 23:22:17] Production.INFO: count ==882 [2025-03-16 23:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:22:05 - End Time 2025-03-16 23:22:05 [2025-03-16 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696812', 'tblTempUsageDetail_20' ) start [2025-03-16 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696812', 'tblTempUsageDetail_20' ) end [2025-03-16 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696812', 'tblTempVendorCDR_20' ) start [2025-03-16 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696812', 'tblTempVendorCDR_20' ) end [2025-03-16 23:22:17] Production.INFO: ProcessCDR(1,14696812,1,1,2) [2025-03-16 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696812', 'tblTempUsageDetail_20' ) start [2025-03-16 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696812', 'tblTempUsageDetail_20' ) end [2025-03-16 23:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:22:21] Production.INFO: ==32592== Releasing lock... [2025-03-16 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:22:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:23:05 [end_date_ymd] => 2025-03-16 23:23:05 [RateCDR] => 1 ) [2025-03-16 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:23:05' and `end` < '2025-03-16 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:23:18] Production.INFO: count ==877 [2025-03-16 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:23:05 - End Time 2025-03-16 23:23:05 [2025-03-16 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696817', 'tblTempUsageDetail_20' ) start [2025-03-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696817', 'tblTempUsageDetail_20' ) end [2025-03-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696817', 'tblTempVendorCDR_20' ) start [2025-03-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696817', 'tblTempVendorCDR_20' ) end [2025-03-16 23:23:18] Production.INFO: ProcessCDR(1,14696817,1,1,2) [2025-03-16 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696817', 'tblTempUsageDetail_20' ) start [2025-03-16 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696817', 'tblTempUsageDetail_20' ) end [2025-03-16 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:23:21] Production.INFO: ==32670== Releasing lock... [2025-03-16 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:23:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:24:05 [end_date_ymd] => 2025-03-16 23:24:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:24:05' and `end` < '2025-03-16 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-03-16 23:24:17] Production.INFO: count ==883 [2025-03-16 23:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:24:05 - End Time 2025-03-16 23:24:05 [2025-03-16 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696820', 'tblTempUsageDetail_20' ) start [2025-03-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696820', 'tblTempUsageDetail_20' ) end [2025-03-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696820', 'tblTempVendorCDR_20' ) start [2025-03-16 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696820', 'tblTempVendorCDR_20' ) end [2025-03-16 23:24:17] Production.INFO: ProcessCDR(1,14696820,1,1,2) [2025-03-16 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696820', 'tblTempUsageDetail_20' ) start [2025-03-16 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696820', 'tblTempUsageDetail_20' ) end [2025-03-16 23:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:24:20] Production.INFO: ==32746== Releasing lock... [2025-03-16 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:24:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:25:05 [end_date_ymd] => 2025-03-16 23:25:05 [RateCDR] => 1 ) [2025-03-16 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:25:05' and `end` < '2025-03-16 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:25:17] Production.INFO: count ==878 [2025-03-16 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:25:05 - End Time 2025-03-16 23:25:05 [2025-03-16 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696827', 'tblTempUsageDetail_20' ) start [2025-03-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696827', 'tblTempUsageDetail_20' ) end [2025-03-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696827', 'tblTempVendorCDR_20' ) start [2025-03-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696827', 'tblTempVendorCDR_20' ) end [2025-03-16 23:25:18] Production.INFO: ProcessCDR(1,14696827,1,1,2) [2025-03-16 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696827', 'tblTempUsageDetail_20' ) start [2025-03-16 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696827', 'tblTempUsageDetail_20' ) end [2025-03-16 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:25:21] Production.INFO: ==380== Releasing lock... [2025-03-16 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:25:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:26:04 [end_date_ymd] => 2025-03-16 23:26:04 [RateCDR] => 1 ) [2025-03-16 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:26:04' and `end` < '2025-03-16 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:26:17] Production.INFO: count ==869 [2025-03-16 23:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:26:04 - End Time 2025-03-16 23:26:04 [2025-03-16 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696832', 'tblTempUsageDetail_20' ) start [2025-03-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696832', 'tblTempUsageDetail_20' ) end [2025-03-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696832', 'tblTempVendorCDR_20' ) start [2025-03-16 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696832', 'tblTempVendorCDR_20' ) end [2025-03-16 23:26:17] Production.INFO: ProcessCDR(1,14696832,1,1,2) [2025-03-16 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696832', 'tblTempUsageDetail_20' ) start [2025-03-16 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696832', 'tblTempUsageDetail_20' ) end [2025-03-16 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:26:20] Production.INFO: ==460== Releasing lock... [2025-03-16 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:26:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:27:05 [end_date_ymd] => 2025-03-16 23:27:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:27:05' and `end` < '2025-03-16 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-03-16 23:27:17] Production.INFO: count ==863 [2025-03-16 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:27:05 - End Time 2025-03-16 23:27:05 [2025-03-16 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696837', 'tblTempUsageDetail_20' ) start [2025-03-16 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696837', 'tblTempUsageDetail_20' ) end [2025-03-16 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696837', 'tblTempVendorCDR_20' ) start [2025-03-16 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696837', 'tblTempVendorCDR_20' ) end [2025-03-16 23:27:17] Production.INFO: ProcessCDR(1,14696837,1,1,2) [2025-03-16 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696837', 'tblTempUsageDetail_20' ) start [2025-03-16 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696837', 'tblTempUsageDetail_20' ) end [2025-03-16 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:27:21] Production.INFO: ==547== Releasing lock... [2025-03-16 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:27:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:28:05 [end_date_ymd] => 2025-03-16 23:28:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:28:05' and `end` < '2025-03-16 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-03-16 23:28:18] Production.INFO: count ==866 [2025-03-16 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:28:05 - End Time 2025-03-16 23:28:05 [2025-03-16 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696842', 'tblTempUsageDetail_20' ) start [2025-03-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696842', 'tblTempUsageDetail_20' ) end [2025-03-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696842', 'tblTempVendorCDR_20' ) start [2025-03-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696842', 'tblTempVendorCDR_20' ) end [2025-03-16 23:28:18] Production.INFO: ProcessCDR(1,14696842,1,1,2) [2025-03-16 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696842', 'tblTempUsageDetail_20' ) start [2025-03-16 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696842', 'tblTempUsageDetail_20' ) end [2025-03-16 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:28:21] Production.INFO: ==642== Releasing lock... [2025-03-16 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:28:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:29:04 [end_date_ymd] => 2025-03-16 23:29:04 [RateCDR] => 1 ) [2025-03-16 23: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-03-16 20:29:04' and `end` < '2025-03-16 23: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-03-16 23:29:17] Production.INFO: count ==863 [2025-03-16 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:29:04 - End Time 2025-03-16 23:29:04 [2025-03-16 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696847', 'tblTempUsageDetail_20' ) start [2025-03-16 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696847', 'tblTempUsageDetail_20' ) end [2025-03-16 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696847', 'tblTempVendorCDR_20' ) start [2025-03-16 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696847', 'tblTempVendorCDR_20' ) end [2025-03-16 23:29:17] Production.INFO: ProcessCDR(1,14696847,1,1,2) [2025-03-16 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696847', 'tblTempUsageDetail_20' ) start [2025-03-16 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696847', 'tblTempUsageDetail_20' ) end [2025-03-16 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:29:20] Production.INFO: ==741== Releasing lock... [2025-03-16 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:29:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:30:06 [end_date_ymd] => 2025-03-16 23:30:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:30:06' and `end` < '2025-03-16 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-03-16 23:30:18] Production.INFO: count ==861 [2025-03-16 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:30:06 - End Time 2025-03-16 23:30:06 [2025-03-16 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696853', 'tblTempUsageDetail_20' ) start [2025-03-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696853', 'tblTempUsageDetail_20' ) end [2025-03-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696853', 'tblTempVendorCDR_20' ) start [2025-03-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696853', 'tblTempVendorCDR_20' ) end [2025-03-16 23:30:18] Production.INFO: ProcessCDR(1,14696853,1,1,2) [2025-03-16 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696853', 'tblTempUsageDetail_20' ) start [2025-03-16 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696853', 'tblTempUsageDetail_20' ) end [2025-03-16 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:30:22] Production.INFO: ==868== Releasing lock... [2025-03-16 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:30:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:31:05 [end_date_ymd] => 2025-03-16 23:31:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:31:05' and `end` < '2025-03-16 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-03-16 23:31:17] Production.INFO: count ==848 [2025-03-16 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:31:05 - End Time 2025-03-16 23:31:05 [2025-03-16 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696858', 'tblTempUsageDetail_20' ) start [2025-03-16 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696858', 'tblTempUsageDetail_20' ) end [2025-03-16 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696858', 'tblTempVendorCDR_20' ) start [2025-03-16 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696858', 'tblTempVendorCDR_20' ) end [2025-03-16 23:31:18] Production.INFO: ProcessCDR(1,14696858,1,1,2) [2025-03-16 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696858', 'tblTempUsageDetail_20' ) start [2025-03-16 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696858', 'tblTempUsageDetail_20' ) end [2025-03-16 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:31:21] Production.INFO: ==955== Releasing lock... [2025-03-16 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:31:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:32:06 [end_date_ymd] => 2025-03-16 23:32:06 [RateCDR] => 1 ) [2025-03-16 23:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:32:06' and `end` < '2025-03-16 23:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:32:18] Production.INFO: count ==851 [2025-03-16 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:32:06 - End Time 2025-03-16 23:32:06 [2025-03-16 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696863', 'tblTempUsageDetail_20' ) start [2025-03-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696863', 'tblTempUsageDetail_20' ) end [2025-03-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696863', 'tblTempVendorCDR_20' ) start [2025-03-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696863', 'tblTempVendorCDR_20' ) end [2025-03-16 23:32:18] Production.INFO: ProcessCDR(1,14696863,1,1,2) [2025-03-16 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696863', 'tblTempUsageDetail_20' ) start [2025-03-16 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696863', 'tblTempUsageDetail_20' ) end [2025-03-16 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:32:22] Production.INFO: ==1041== Releasing lock... [2025-03-16 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:33:05 [end_date_ymd] => 2025-03-16 23:33:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:33:05' and `end` < '2025-03-16 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-03-16 23:33:17] Production.INFO: count ==858 [2025-03-16 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:33:05 - End Time 2025-03-16 23:33:05 [2025-03-16 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696868', 'tblTempUsageDetail_20' ) start [2025-03-16 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696868', 'tblTempUsageDetail_20' ) end [2025-03-16 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696868', 'tblTempVendorCDR_20' ) start [2025-03-16 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696868', 'tblTempVendorCDR_20' ) end [2025-03-16 23:33:17] Production.INFO: ProcessCDR(1,14696868,1,1,2) [2025-03-16 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696868', 'tblTempUsageDetail_20' ) start [2025-03-16 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696868', 'tblTempUsageDetail_20' ) end [2025-03-16 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:33:20] Production.INFO: ==1126== Releasing lock... [2025-03-16 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:33:20] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:34:05 [end_date_ymd] => 2025-03-16 23:34:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:34:05' and `end` < '2025-03-16 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-03-16 23:34:17] Production.INFO: count ==849 [2025-03-16 23:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:34:05 - End Time 2025-03-16 23:34:05 [2025-03-16 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696873', 'tblTempUsageDetail_20' ) start [2025-03-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696873', 'tblTempUsageDetail_20' ) end [2025-03-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696873', 'tblTempVendorCDR_20' ) start [2025-03-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696873', 'tblTempVendorCDR_20' ) end [2025-03-16 23:34:17] Production.INFO: ProcessCDR(1,14696873,1,1,2) [2025-03-16 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696873', 'tblTempUsageDetail_20' ) start [2025-03-16 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696873', 'tblTempUsageDetail_20' ) end [2025-03-16 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:34:21] Production.INFO: ==1221== Releasing lock... [2025-03-16 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:34:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:35:05 [end_date_ymd] => 2025-03-16 23:35:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:35:05' and `end` < '2025-03-16 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-03-16 23:35:18] Production.INFO: count ==850 [2025-03-16 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:35:05 - End Time 2025-03-16 23:35:05 [2025-03-16 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696878', 'tblTempUsageDetail_20' ) start [2025-03-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696878', 'tblTempUsageDetail_20' ) end [2025-03-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696878', 'tblTempVendorCDR_20' ) start [2025-03-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696878', 'tblTempVendorCDR_20' ) end [2025-03-16 23:35:18] Production.INFO: ProcessCDR(1,14696878,1,1,2) [2025-03-16 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696878', 'tblTempUsageDetail_20' ) start [2025-03-16 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696878', 'tblTempUsageDetail_20' ) end [2025-03-16 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:35:21] Production.INFO: ==1318== Releasing lock... [2025-03-16 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:35:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:36:05 [end_date_ymd] => 2025-03-16 23:36:05 [RateCDR] => 1 ) [2025-03-16 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:36:05' and `end` < '2025-03-16 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:36:17] Production.INFO: count ==851 [2025-03-16 23:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:36:05 - End Time 2025-03-16 23:36:05 [2025-03-16 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696883', 'tblTempUsageDetail_20' ) start [2025-03-16 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696883', 'tblTempUsageDetail_20' ) end [2025-03-16 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696883', 'tblTempVendorCDR_20' ) start [2025-03-16 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696883', 'tblTempVendorCDR_20' ) end [2025-03-16 23:36:17] Production.INFO: ProcessCDR(1,14696883,1,1,2) [2025-03-16 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696883', 'tblTempUsageDetail_20' ) start [2025-03-16 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696883', 'tblTempUsageDetail_20' ) end [2025-03-16 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:36:21] Production.INFO: ==1402== Releasing lock... [2025-03-16 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:36:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:37:05 [end_date_ymd] => 2025-03-16 23:37:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:37:05' and `end` < '2025-03-16 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-03-16 23:37:17] Production.INFO: count ==848 [2025-03-16 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:37:05 - End Time 2025-03-16 23:37:05 [2025-03-16 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696888', 'tblTempUsageDetail_20' ) start [2025-03-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696888', 'tblTempUsageDetail_20' ) end [2025-03-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696888', 'tblTempVendorCDR_20' ) start [2025-03-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696888', 'tblTempVendorCDR_20' ) end [2025-03-16 23:37:18] Production.INFO: ProcessCDR(1,14696888,1,1,2) [2025-03-16 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696888', 'tblTempUsageDetail_20' ) start [2025-03-16 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696888', 'tblTempUsageDetail_20' ) end [2025-03-16 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:37:21] Production.INFO: ==1487== Releasing lock... [2025-03-16 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:38:05 [end_date_ymd] => 2025-03-16 23:38:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:38:05' and `end` < '2025-03-16 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-03-16 23:38:17] Production.INFO: count ==845 [2025-03-16 23:38:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:38:05 - End Time 2025-03-16 23:38:05 [2025-03-16 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696893', 'tblTempUsageDetail_20' ) start [2025-03-16 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696893', 'tblTempUsageDetail_20' ) end [2025-03-16 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696893', 'tblTempVendorCDR_20' ) start [2025-03-16 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696893', 'tblTempVendorCDR_20' ) end [2025-03-16 23:38:17] Production.INFO: ProcessCDR(1,14696893,1,1,2) [2025-03-16 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696893', 'tblTempUsageDetail_20' ) start [2025-03-16 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696893', 'tblTempUsageDetail_20' ) end [2025-03-16 23:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:38:20] Production.INFO: ==1614== Releasing lock... [2025-03-16 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:38:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:39:05 [end_date_ymd] => 2025-03-16 23:39:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:39:05' and `end` < '2025-03-16 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-03-16 23:39:17] Production.INFO: count ==843 [2025-03-16 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:39:05 - End Time 2025-03-16 23:39:05 [2025-03-16 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696898', 'tblTempUsageDetail_20' ) start [2025-03-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696898', 'tblTempUsageDetail_20' ) end [2025-03-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696898', 'tblTempVendorCDR_20' ) start [2025-03-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696898', 'tblTempVendorCDR_20' ) end [2025-03-16 23:39:17] Production.INFO: ProcessCDR(1,14696898,1,1,2) [2025-03-16 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696898', 'tblTempUsageDetail_20' ) start [2025-03-16 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696898', 'tblTempUsageDetail_20' ) end [2025-03-16 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:39:21] Production.INFO: ==1705== Releasing lock... [2025-03-16 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:39:21] Production.INFO: 35 MB #Memory Used# [2025-03-16 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:40:05 [end_date_ymd] => 2025-03-16 23:40:05 [RateCDR] => 1 ) [2025-03-16 23: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-03-16 20:40:05' and `end` < '2025-03-16 23: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-03-16 23:40:18] Production.INFO: count ==841 [2025-03-16 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:40:05 - End Time 2025-03-16 23:40:05 [2025-03-16 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696904', 'tblTempUsageDetail_20' ) start [2025-03-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696904', 'tblTempUsageDetail_20' ) end [2025-03-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696904', 'tblTempVendorCDR_20' ) start [2025-03-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696904', 'tblTempVendorCDR_20' ) end [2025-03-16 23:40:18] Production.INFO: ProcessCDR(1,14696904,1,1,2) [2025-03-16 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696904', 'tblTempUsageDetail_20' ) start [2025-03-16 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696904', 'tblTempUsageDetail_20' ) end [2025-03-16 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:40:21] Production.INFO: ==1803== Releasing lock... [2025-03-16 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:40:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:41:05 [end_date_ymd] => 2025-03-16 23:41:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:41:05' and `end` < '2025-03-16 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-03-16 23:41:17] Production.INFO: count ==823 [2025-03-16 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:41:05 - End Time 2025-03-16 23:41:05 [2025-03-16 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696909', 'tblTempUsageDetail_20' ) start [2025-03-16 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696909', 'tblTempUsageDetail_20' ) end [2025-03-16 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696909', 'tblTempVendorCDR_20' ) start [2025-03-16 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696909', 'tblTempVendorCDR_20' ) end [2025-03-16 23:41:18] Production.INFO: ProcessCDR(1,14696909,1,1,2) [2025-03-16 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696909', 'tblTempUsageDetail_20' ) start [2025-03-16 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696909', 'tblTempUsageDetail_20' ) end [2025-03-16 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:41:21] Production.INFO: ==1903== Releasing lock... [2025-03-16 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:41:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:42:05 [end_date_ymd] => 2025-03-16 23:42:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:42:05' and `end` < '2025-03-16 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-03-16 23:42:18] Production.INFO: count ==826 [2025-03-16 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:42:05 - End Time 2025-03-16 23:42:05 [2025-03-16 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696914', 'tblTempUsageDetail_20' ) start [2025-03-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696914', 'tblTempUsageDetail_20' ) end [2025-03-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696914', 'tblTempVendorCDR_20' ) start [2025-03-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696914', 'tblTempVendorCDR_20' ) end [2025-03-16 23:42:18] Production.INFO: ProcessCDR(1,14696914,1,1,2) [2025-03-16 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696914', 'tblTempUsageDetail_20' ) start [2025-03-16 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696914', 'tblTempUsageDetail_20' ) end [2025-03-16 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:42:21] Production.INFO: ==1991== Releasing lock... [2025-03-16 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:43:05 [end_date_ymd] => 2025-03-16 23:43:05 [RateCDR] => 1 ) [2025-03-16 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:43:05' and `end` < '2025-03-16 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:43:17] Production.INFO: count ==827 [2025-03-16 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:43:05 - End Time 2025-03-16 23:43:05 [2025-03-16 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696919', 'tblTempUsageDetail_20' ) start [2025-03-16 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696919', 'tblTempUsageDetail_20' ) end [2025-03-16 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696919', 'tblTempVendorCDR_20' ) start [2025-03-16 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696919', 'tblTempVendorCDR_20' ) end [2025-03-16 23:43:18] Production.INFO: ProcessCDR(1,14696919,1,1,2) [2025-03-16 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696919', 'tblTempUsageDetail_20' ) start [2025-03-16 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696919', 'tblTempUsageDetail_20' ) end [2025-03-16 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:43:23] Production.INFO: ==2080== Releasing lock... [2025-03-16 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:43:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:44:05 [end_date_ymd] => 2025-03-16 23:44:05 [RateCDR] => 1 ) [2025-03-16 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:44:05' and `end` < '2025-03-16 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:44:18] Production.INFO: count ==828 [2025-03-16 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:44:05 - End Time 2025-03-16 23:44:05 [2025-03-16 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696924', 'tblTempUsageDetail_20' ) start [2025-03-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696924', 'tblTempUsageDetail_20' ) end [2025-03-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696924', 'tblTempVendorCDR_20' ) start [2025-03-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696924', 'tblTempVendorCDR_20' ) end [2025-03-16 23:44:18] Production.INFO: ProcessCDR(1,14696924,1,1,2) [2025-03-16 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696924', 'tblTempUsageDetail_20' ) start [2025-03-16 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696924', 'tblTempUsageDetail_20' ) end [2025-03-16 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:44:23] Production.INFO: ==2171== Releasing lock... [2025-03-16 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:44:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:45:05 [end_date_ymd] => 2025-03-16 23:45:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:45:05' and `end` < '2025-03-16 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-03-16 23:45:17] Production.INFO: count ==828 [2025-03-16 23:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:45:05 - End Time 2025-03-16 23:45:05 [2025-03-16 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696929', 'tblTempUsageDetail_20' ) start [2025-03-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696929', 'tblTempUsageDetail_20' ) end [2025-03-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696929', 'tblTempVendorCDR_20' ) start [2025-03-16 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696929', 'tblTempVendorCDR_20' ) end [2025-03-16 23:45:17] Production.INFO: ProcessCDR(1,14696929,1,1,2) [2025-03-16 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696929', 'tblTempUsageDetail_20' ) start [2025-03-16 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696929', 'tblTempUsageDetail_20' ) end [2025-03-16 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:45:20] Production.INFO: ==2262== Releasing lock... [2025-03-16 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:45:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:46:05 [end_date_ymd] => 2025-03-16 23:46:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:46:05' and `end` < '2025-03-16 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-03-16 23:46:17] Production.INFO: count ==825 [2025-03-16 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:46:05 - End Time 2025-03-16 23:46:05 [2025-03-16 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696934', 'tblTempUsageDetail_20' ) start [2025-03-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696934', 'tblTempUsageDetail_20' ) end [2025-03-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696934', 'tblTempVendorCDR_20' ) start [2025-03-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696934', 'tblTempVendorCDR_20' ) end [2025-03-16 23:46:18] Production.INFO: ProcessCDR(1,14696934,1,1,2) [2025-03-16 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696934', 'tblTempUsageDetail_20' ) start [2025-03-16 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696934', 'tblTempUsageDetail_20' ) end [2025-03-16 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:46:21] Production.INFO: ==2392== Releasing lock... [2025-03-16 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:46:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:47:05 [end_date_ymd] => 2025-03-16 23:47:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:47:05' and `end` < '2025-03-16 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-03-16 23:47:17] Production.INFO: count ==824 [2025-03-16 23:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:47:05 - End Time 2025-03-16 23:47:05 [2025-03-16 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696939', 'tblTempUsageDetail_20' ) start [2025-03-16 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696939', 'tblTempUsageDetail_20' ) end [2025-03-16 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696939', 'tblTempVendorCDR_20' ) start [2025-03-16 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696939', 'tblTempVendorCDR_20' ) end [2025-03-16 23:47:17] Production.INFO: ProcessCDR(1,14696939,1,1,2) [2025-03-16 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696939', 'tblTempUsageDetail_20' ) start [2025-03-16 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696939', 'tblTempUsageDetail_20' ) end [2025-03-16 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:47:21] Production.INFO: ==2477== Releasing lock... [2025-03-16 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:48:05 [end_date_ymd] => 2025-03-16 23:48:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:48:05' and `end` < '2025-03-16 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-03-16 23:48:18] Production.INFO: count ==813 [2025-03-16 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:48:05 - End Time 2025-03-16 23:48:05 [2025-03-16 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696944', 'tblTempUsageDetail_20' ) start [2025-03-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696944', 'tblTempUsageDetail_20' ) end [2025-03-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696944', 'tblTempVendorCDR_20' ) start [2025-03-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696944', 'tblTempVendorCDR_20' ) end [2025-03-16 23:48:18] Production.INFO: ProcessCDR(1,14696944,1,1,2) [2025-03-16 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696944', 'tblTempUsageDetail_20' ) start [2025-03-16 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696944', 'tblTempUsageDetail_20' ) end [2025-03-16 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:48:23] Production.INFO: ==2581== Releasing lock... [2025-03-16 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:48:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:49:05 [end_date_ymd] => 2025-03-16 23:49:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:49:05' and `end` < '2025-03-16 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-03-16 23:49:17] Production.INFO: count ==812 [2025-03-16 23:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:49:05 - End Time 2025-03-16 23:49:05 [2025-03-16 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696949', 'tblTempUsageDetail_20' ) start [2025-03-16 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696949', 'tblTempUsageDetail_20' ) end [2025-03-16 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696949', 'tblTempVendorCDR_20' ) start [2025-03-16 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696949', 'tblTempVendorCDR_20' ) end [2025-03-16 23:49:17] Production.INFO: ProcessCDR(1,14696949,1,1,2) [2025-03-16 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696949', 'tblTempUsageDetail_20' ) start [2025-03-16 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696949', 'tblTempUsageDetail_20' ) end [2025-03-16 23:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:49:20] Production.INFO: ==2671== Releasing lock... [2025-03-16 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:49:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:50:06 [end_date_ymd] => 2025-03-16 23:50:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:50:06' and `end` < '2025-03-16 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-03-16 23:50:18] Production.INFO: count ==814 [2025-03-16 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:50:06 - End Time 2025-03-16 23:50:06 [2025-03-16 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696954', 'tblTempUsageDetail_20' ) start [2025-03-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696954', 'tblTempUsageDetail_20' ) end [2025-03-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696954', 'tblTempVendorCDR_20' ) start [2025-03-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696954', 'tblTempVendorCDR_20' ) end [2025-03-16 23:50:18] Production.INFO: ProcessCDR(1,14696954,1,1,2) [2025-03-16 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696954', 'tblTempUsageDetail_20' ) start [2025-03-16 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696954', 'tblTempUsageDetail_20' ) end [2025-03-16 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:50:22] Production.INFO: ==2762== Releasing lock... [2025-03-16 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:51:04 [end_date_ymd] => 2025-03-16 23:51:04 [RateCDR] => 1 ) [2025-03-16 23: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-03-16 20:51:04' and `end` < '2025-03-16 23: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-03-16 23:51:17] Production.INFO: count ==820 [2025-03-16 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:51:04 - End Time 2025-03-16 23:51:04 [2025-03-16 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696960', 'tblTempUsageDetail_20' ) start [2025-03-16 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696960', 'tblTempUsageDetail_20' ) end [2025-03-16 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696960', 'tblTempVendorCDR_20' ) start [2025-03-16 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696960', 'tblTempVendorCDR_20' ) end [2025-03-16 23:51:17] Production.INFO: ProcessCDR(1,14696960,1,1,2) [2025-03-16 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696960', 'tblTempUsageDetail_20' ) start [2025-03-16 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696960', 'tblTempUsageDetail_20' ) end [2025-03-16 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:51:20] Production.INFO: ==2848== Releasing lock... [2025-03-16 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:51:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:52:05 [end_date_ymd] => 2025-03-16 23:52:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:52:05' and `end` < '2025-03-16 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-03-16 23:52:17] Production.INFO: count ==815 [2025-03-16 23:52:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:52:05 - End Time 2025-03-16 23:52:05 [2025-03-16 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696965', 'tblTempUsageDetail_20' ) start [2025-03-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696965', 'tblTempUsageDetail_20' ) end [2025-03-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696965', 'tblTempVendorCDR_20' ) start [2025-03-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696965', 'tblTempVendorCDR_20' ) end [2025-03-16 23:52:17] Production.INFO: ProcessCDR(1,14696965,1,1,2) [2025-03-16 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696965', 'tblTempUsageDetail_20' ) start [2025-03-16 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696965', 'tblTempUsageDetail_20' ) end [2025-03-16 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:52:21] Production.INFO: ==2941== Releasing lock... [2025-03-16 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:52:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:53:05 [end_date_ymd] => 2025-03-16 23:53:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:53:05' and `end` < '2025-03-16 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-03-16 23:53:17] Production.INFO: count ==818 [2025-03-16 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:53:05 - End Time 2025-03-16 23:53:05 [2025-03-16 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696970', 'tblTempUsageDetail_20' ) start [2025-03-16 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696970', 'tblTempUsageDetail_20' ) end [2025-03-16 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696970', 'tblTempVendorCDR_20' ) start [2025-03-16 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696970', 'tblTempVendorCDR_20' ) end [2025-03-16 23:53:17] Production.INFO: ProcessCDR(1,14696970,1,1,2) [2025-03-16 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696970', 'tblTempUsageDetail_20' ) start [2025-03-16 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696970', 'tblTempUsageDetail_20' ) end [2025-03-16 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:53:20] Production.INFO: ==3032== Releasing lock... [2025-03-16 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:53:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-16 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:54:05 [end_date_ymd] => 2025-03-16 23:54:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:54:05' and `end` < '2025-03-16 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-03-16 23:54:17] Production.INFO: count ==816 [2025-03-16 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:54:05 - End Time 2025-03-16 23:54:05 [2025-03-16 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696975', 'tblTempUsageDetail_20' ) start [2025-03-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696975', 'tblTempUsageDetail_20' ) end [2025-03-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696975', 'tblTempVendorCDR_20' ) start [2025-03-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696975', 'tblTempVendorCDR_20' ) end [2025-03-16 23:54:17] Production.INFO: ProcessCDR(1,14696975,1,1,2) [2025-03-16 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696975', 'tblTempUsageDetail_20' ) start [2025-03-16 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696975', 'tblTempUsageDetail_20' ) end [2025-03-16 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:54:20] Production.INFO: ==3127== Releasing lock... [2025-03-16 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:54:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:55:06 [end_date_ymd] => 2025-03-16 23:55:06 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:55:06' and `end` < '2025-03-16 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-03-16 23:55:18] Production.INFO: count ==816 [2025-03-16 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:55:06 - End Time 2025-03-16 23:55:06 [2025-03-16 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696980', 'tblTempUsageDetail_20' ) start [2025-03-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696980', 'tblTempUsageDetail_20' ) end [2025-03-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696980', 'tblTempVendorCDR_20' ) start [2025-03-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696980', 'tblTempVendorCDR_20' ) end [2025-03-16 23:55:18] Production.INFO: ProcessCDR(1,14696980,1,1,2) [2025-03-16 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696980', 'tblTempUsageDetail_20' ) start [2025-03-16 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696980', 'tblTempUsageDetail_20' ) end [2025-03-16 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:55:21] Production.INFO: ==3213== Releasing lock... [2025-03-16 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:55:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:56:05 [end_date_ymd] => 2025-03-16 23:56:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:56:05' and `end` < '2025-03-16 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-03-16 23:56:17] Production.INFO: count ==816 [2025-03-16 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:56:05 - End Time 2025-03-16 23:56:05 [2025-03-16 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696985', 'tblTempUsageDetail_20' ) start [2025-03-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696985', 'tblTempUsageDetail_20' ) end [2025-03-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696985', 'tblTempVendorCDR_20' ) start [2025-03-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696985', 'tblTempVendorCDR_20' ) end [2025-03-16 23:56:18] Production.INFO: ProcessCDR(1,14696985,1,1,2) [2025-03-16 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696985', 'tblTempUsageDetail_20' ) start [2025-03-16 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696985', 'tblTempUsageDetail_20' ) end [2025-03-16 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:56:21] Production.INFO: ==3298== Releasing lock... [2025-03-16 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-16 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:57:05 [end_date_ymd] => 2025-03-16 23:57:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:57:05' and `end` < '2025-03-16 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-03-16 23:57:17] Production.INFO: count ==813 [2025-03-16 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:57:05 - End Time 2025-03-16 23:57:05 [2025-03-16 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696990', 'tblTempUsageDetail_20' ) start [2025-03-16 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696990', 'tblTempUsageDetail_20' ) end [2025-03-16 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696990', 'tblTempVendorCDR_20' ) start [2025-03-16 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696990', 'tblTempVendorCDR_20' ) end [2025-03-16 23:57:17] Production.INFO: ProcessCDR(1,14696990,1,1,2) [2025-03-16 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696990', 'tblTempUsageDetail_20' ) start [2025-03-16 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696990', 'tblTempUsageDetail_20' ) end [2025-03-16 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:57:21] Production.INFO: ==3391== Releasing lock... [2025-03-16 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-16 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:58:05 [end_date_ymd] => 2025-03-16 23:58:05 [RateCDR] => 1 ) [2025-03-16 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-16 20:58:05' and `end` < '2025-03-16 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-16 23:58:17] Production.INFO: count ==812 [2025-03-16 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 20:58:05 - End Time 2025-03-16 23:58:05 [2025-03-16 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696995', 'tblTempUsageDetail_20' ) start [2025-03-16 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14696995', 'tblTempUsageDetail_20' ) end [2025-03-16 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696995', 'tblTempVendorCDR_20' ) start [2025-03-16 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14696995', 'tblTempVendorCDR_20' ) end [2025-03-16 23:58:17] Production.INFO: ProcessCDR(1,14696995,1,1,2) [2025-03-16 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14696995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14696995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14696995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14696995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696995', 'tblTempUsageDetail_20' ) start [2025-03-16 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14696995', 'tblTempUsageDetail_20' ) end [2025-03-16 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:58:21] Production.INFO: ==3484== Releasing lock... [2025-03-16 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:58:21] Production.INFO: 34 MB #Memory Used# [2025-03-16 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 20:59:05 [end_date_ymd] => 2025-03-16 23:59:05 [RateCDR] => 1 ) [2025-03-16 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-03-16 20:59:05' and `end` < '2025-03-16 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-03-16 23:59:17] Production.INFO: count ==816 [2025-03-16 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 20:59:05 - End Time 2025-03-16 23:59:05 [2025-03-16 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-16 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697000', 'tblTempUsageDetail_20' ) start [2025-03-16 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697000', 'tblTempUsageDetail_20' ) end [2025-03-16 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697000', 'tblTempVendorCDR_20' ) start [2025-03-16 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697000', 'tblTempVendorCDR_20' ) end [2025-03-16 23:59:18] Production.INFO: ProcessCDR(1,14697000,1,1,2) [2025-03-16 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-16 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-16 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697000', 'tblTempUsageDetail_20' ) start [2025-03-16 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697000', 'tblTempUsageDetail_20' ) end [2025-03-16 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-16 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-16 23:59:21] Production.INFO: ==3564== Releasing lock... [2025-03-16 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-16 23:59:21] Production.INFO: 34.75 MB #Memory Used#