[2025-04-14 00:00:05] Production.INFO: next invoice date [2025-04-14 00:00:05] Production.INFO: 2025-05-14 [2025-04-14 00:00:05] Production.INFO: getdaysdiff [2025-04-14 00:00:05] Production.INFO: +30 [2025-04-14 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,30,30,'RMScheduler',2025-04-14 00:00:05,1,0,,,0) [2025-04-14 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:00:07 [end_date_ymd] => 2025-04-14 00:00:07 [RateCDR] => 1 ) [2025-04-14 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:00:07' and `end` < '2025-04-14 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:00:20] Production.INFO: count ==550 [2025-04-14 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-13 21:00:07 - End Time 2025-04-14 00:00:07 [2025-04-14 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902423', 'tblTempUsageDetail_20' ) start [2025-04-14 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902423', 'tblTempUsageDetail_20' ) end [2025-04-14 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902423', 'tblTempVendorCDR_20' ) start [2025-04-14 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902423', 'tblTempVendorCDR_20' ) end [2025-04-14 00:00:20] Production.INFO: ProcessCDR(1,14902423,1,1,2) [2025-04-14 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902423', 'tblTempUsageDetail_20' ) start [2025-04-14 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902423', 'tblTempUsageDetail_20' ) end [2025-04-14 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:00:24] Production.INFO: ==13251== Releasing lock... [2025-04-14 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:00:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:01:06 [end_date_ymd] => 2025-04-14 00:01:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:01:06' and `end` < '2025-04-14 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-04-14 00:01:19] Production.INFO: count ==128 [2025-04-14 00:01:19] Production.ERROR: pbx CDR StartTime 2025-04-13 21:01:06 - End Time 2025-04-14 00:01:06 [2025-04-14 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902428', 'tblTempUsageDetail_20' ) start [2025-04-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902428', 'tblTempUsageDetail_20' ) end [2025-04-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902428', 'tblTempVendorCDR_20' ) start [2025-04-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902428', 'tblTempVendorCDR_20' ) end [2025-04-14 00:01:19] Production.INFO: ProcessCDR(1,14902428,1,1,2) [2025-04-14 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902428', 'tblTempUsageDetail_20' ) start [2025-04-14 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902428', 'tblTempUsageDetail_20' ) end [2025-04-14 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:01:24] Production.INFO: ==13387== Releasing lock... [2025-04-14 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:01:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:02:05 [end_date_ymd] => 2025-04-14 00:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:02:05' and `end` < '2025-04-14 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-04-14 00:02:18] Production.INFO: count ==127 [2025-04-14 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:02:05 - End Time 2025-04-14 00:02:05 [2025-04-14 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902433', 'tblTempUsageDetail_20' ) start [2025-04-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902433', 'tblTempUsageDetail_20' ) end [2025-04-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902433', 'tblTempVendorCDR_20' ) start [2025-04-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902433', 'tblTempVendorCDR_20' ) end [2025-04-14 00:02:18] Production.INFO: ProcessCDR(1,14902433,1,1,2) [2025-04-14 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902433', 'tblTempUsageDetail_20' ) start [2025-04-14 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902433', 'tblTempUsageDetail_20' ) end [2025-04-14 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:02:22] Production.INFO: ==13503== Releasing lock... [2025-04-14 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:03:05 [end_date_ymd] => 2025-04-14 00:03:05 [RateCDR] => 1 ) [2025-04-14 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:03:05' and `end` < '2025-04-14 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:03:26] Production.INFO: count ==125 [2025-04-14 00:03:26] Production.ERROR: pbx CDR StartTime 2025-04-13 21:03:05 - End Time 2025-04-14 00:03:05 [2025-04-14 00:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902438', 'tblTempUsageDetail_20' ) start [2025-04-14 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902438', 'tblTempUsageDetail_20' ) end [2025-04-14 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902438', 'tblTempVendorCDR_20' ) start [2025-04-14 00:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902438', 'tblTempVendorCDR_20' ) end [2025-04-14 00:03:26] Production.INFO: ProcessCDR(1,14902438,1,1,2) [2025-04-14 00:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902438', 'tblTempUsageDetail_20' ) start [2025-04-14 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902438', 'tblTempUsageDetail_20' ) end [2025-04-14 00:03:30] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:03:30] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:03:30] Production.INFO: ==13654== Releasing lock... [2025-04-14 00:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:03:30] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:04:05 [end_date_ymd] => 2025-04-14 00:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:04:05' and `end` < '2025-04-14 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-04-14 00:04:27] Production.INFO: count ==123 [2025-04-14 00:04:27] Production.ERROR: pbx CDR StartTime 2025-04-13 21:04:05 - End Time 2025-04-14 00:04:05 [2025-04-14 00:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902443', 'tblTempUsageDetail_20' ) start [2025-04-14 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902443', 'tblTempUsageDetail_20' ) end [2025-04-14 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902443', 'tblTempVendorCDR_20' ) start [2025-04-14 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902443', 'tblTempVendorCDR_20' ) end [2025-04-14 00:04:27] Production.INFO: ProcessCDR(1,14902443,1,1,2) [2025-04-14 00:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902443', 'tblTempUsageDetail_20' ) start [2025-04-14 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902443', 'tblTempUsageDetail_20' ) end [2025-04-14 00:04:31] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:04:31] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:04:31] Production.INFO: ==13766== Releasing lock... [2025-04-14 00:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:04:31] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:05:05 [end_date_ymd] => 2025-04-14 00:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:05:05' and `end` < '2025-04-14 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-04-14 00:05:24] Production.INFO: count ==123 [2025-04-14 00:05:24] Production.ERROR: pbx CDR StartTime 2025-04-13 21:05:05 - End Time 2025-04-14 00:05:05 [2025-04-14 00:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902448', 'tblTempUsageDetail_20' ) start [2025-04-14 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902448', 'tblTempUsageDetail_20' ) end [2025-04-14 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902448', 'tblTempVendorCDR_20' ) start [2025-04-14 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902448', 'tblTempVendorCDR_20' ) end [2025-04-14 00:05:24] Production.INFO: ProcessCDR(1,14902448,1,1,2) [2025-04-14 00:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902448', 'tblTempUsageDetail_20' ) start [2025-04-14 00:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902448', 'tblTempUsageDetail_20' ) end [2025-04-14 00:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:05:28] Production.INFO: ==13883== Releasing lock... [2025-04-14 00:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:05:28] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:06:05 [end_date_ymd] => 2025-04-14 00:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:06:05' and `end` < '2025-04-14 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-04-14 00:06:21] Production.INFO: count ==123 [2025-04-14 00:06:21] Production.ERROR: pbx CDR StartTime 2025-04-13 21:06:05 - End Time 2025-04-14 00:06:05 [2025-04-14 00:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902453', 'tblTempUsageDetail_20' ) start [2025-04-14 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902453', 'tblTempUsageDetail_20' ) end [2025-04-14 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902453', 'tblTempVendorCDR_20' ) start [2025-04-14 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902453', 'tblTempVendorCDR_20' ) end [2025-04-14 00:06:21] Production.INFO: ProcessCDR(1,14902453,1,1,2) [2025-04-14 00:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902453', 'tblTempUsageDetail_20' ) start [2025-04-14 00:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902453', 'tblTempUsageDetail_20' ) end [2025-04-14 00:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:06:25] Production.INFO: ==14008== Releasing lock... [2025-04-14 00:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:06:25] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:07:05 [end_date_ymd] => 2025-04-14 00:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:07:05' and `end` < '2025-04-14 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-04-14 00:07:18] Production.INFO: count ==125 [2025-04-14 00:07:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:07:05 - End Time 2025-04-14 00:07:05 [2025-04-14 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902458', 'tblTempUsageDetail_20' ) start [2025-04-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902458', 'tblTempUsageDetail_20' ) end [2025-04-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902458', 'tblTempVendorCDR_20' ) start [2025-04-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902458', 'tblTempVendorCDR_20' ) end [2025-04-14 00:07:18] Production.INFO: ProcessCDR(1,14902458,1,1,2) [2025-04-14 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902458', 'tblTempUsageDetail_20' ) start [2025-04-14 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902458', 'tblTempUsageDetail_20' ) end [2025-04-14 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:07:21] Production.INFO: ==14123== Releasing lock... [2025-04-14 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:08:05 [end_date_ymd] => 2025-04-14 00:08:05 [RateCDR] => 1 ) [2025-04-14 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:08:05' and `end` < '2025-04-14 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:08:18] Production.INFO: count ==124 [2025-04-14 00:08:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:08:05 - End Time 2025-04-14 00:08:05 [2025-04-14 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902463', 'tblTempUsageDetail_20' ) start [2025-04-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902463', 'tblTempUsageDetail_20' ) end [2025-04-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902463', 'tblTempVendorCDR_20' ) start [2025-04-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902463', 'tblTempVendorCDR_20' ) end [2025-04-14 00:08:18] Production.INFO: ProcessCDR(1,14902463,1,1,2) [2025-04-14 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902463', 'tblTempUsageDetail_20' ) start [2025-04-14 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902463', 'tblTempUsageDetail_20' ) end [2025-04-14 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:08:22] Production.INFO: ==14240== Releasing lock... [2025-04-14 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:09:05 [end_date_ymd] => 2025-04-14 00:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:09:05' and `end` < '2025-04-14 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-04-14 00:09:17] Production.INFO: count ==122 [2025-04-14 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:09:05 - End Time 2025-04-14 00:09:05 [2025-04-14 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902468', 'tblTempUsageDetail_20' ) start [2025-04-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902468', 'tblTempUsageDetail_20' ) end [2025-04-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902468', 'tblTempVendorCDR_20' ) start [2025-04-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902468', 'tblTempVendorCDR_20' ) end [2025-04-14 00:09:18] Production.INFO: ProcessCDR(1,14902468,1,1,2) [2025-04-14 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902468', 'tblTempUsageDetail_20' ) start [2025-04-14 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902468', 'tblTempUsageDetail_20' ) end [2025-04-14 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:09:21] Production.INFO: ==14357== Releasing lock... [2025-04-14 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:09:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:10:06 [end_date_ymd] => 2025-04-14 00:10:06 [RateCDR] => 1 ) [2025-04-14 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:10:06' and `end` < '2025-04-14 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:10:18] Production.INFO: count ==130 [2025-04-14 00:10:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:10:06 - End Time 2025-04-14 00:10:06 [2025-04-14 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902474', 'tblTempUsageDetail_20' ) start [2025-04-14 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902474', 'tblTempUsageDetail_20' ) end [2025-04-14 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902474', 'tblTempVendorCDR_20' ) start [2025-04-14 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902474', 'tblTempVendorCDR_20' ) end [2025-04-14 00:10:18] Production.INFO: ProcessCDR(1,14902474,1,1,2) [2025-04-14 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902474', 'tblTempUsageDetail_20' ) start [2025-04-14 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902474', 'tblTempUsageDetail_20' ) end [2025-04-14 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:10:22] Production.INFO: ==14470== Releasing lock... [2025-04-14 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:11:06 [end_date_ymd] => 2025-04-14 00:11:06 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:11:06' and `end` < '2025-04-14 00: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-04-14 00:11:18] Production.INFO: count ==129 [2025-04-14 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:11:06 - End Time 2025-04-14 00:11:06 [2025-04-14 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902479', 'tblTempUsageDetail_20' ) start [2025-04-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902479', 'tblTempUsageDetail_20' ) end [2025-04-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902479', 'tblTempVendorCDR_20' ) start [2025-04-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902479', 'tblTempVendorCDR_20' ) end [2025-04-14 00:11:18] Production.INFO: ProcessCDR(1,14902479,1,1,2) [2025-04-14 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902479', 'tblTempUsageDetail_20' ) start [2025-04-14 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902479', 'tblTempUsageDetail_20' ) end [2025-04-14 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:11:22] Production.INFO: ==14594== Releasing lock... [2025-04-14 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:12:05 [end_date_ymd] => 2025-04-14 00:12:05 [RateCDR] => 1 ) [2025-04-14 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:12:05' and `end` < '2025-04-14 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:12:18] Production.INFO: count ==129 [2025-04-14 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:12:05 - End Time 2025-04-14 00:12:05 [2025-04-14 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902484', 'tblTempUsageDetail_20' ) start [2025-04-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902484', 'tblTempUsageDetail_20' ) end [2025-04-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902484', 'tblTempVendorCDR_20' ) start [2025-04-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902484', 'tblTempVendorCDR_20' ) end [2025-04-14 00:12:18] Production.INFO: ProcessCDR(1,14902484,1,1,2) [2025-04-14 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902484', 'tblTempUsageDetail_20' ) start [2025-04-14 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902484', 'tblTempUsageDetail_20' ) end [2025-04-14 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:12:22] Production.INFO: ==14710== Releasing lock... [2025-04-14 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:13:06 [end_date_ymd] => 2025-04-14 00:13:06 [RateCDR] => 1 ) [2025-04-14 00:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:13:06' and `end` < '2025-04-14 00:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:13:18] Production.INFO: count ==129 [2025-04-14 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:13:06 - End Time 2025-04-14 00:13:06 [2025-04-14 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902489', 'tblTempUsageDetail_20' ) start [2025-04-14 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902489', 'tblTempUsageDetail_20' ) end [2025-04-14 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902489', 'tblTempVendorCDR_20' ) start [2025-04-14 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902489', 'tblTempVendorCDR_20' ) end [2025-04-14 00:13:19] Production.INFO: ProcessCDR(1,14902489,1,1,2) [2025-04-14 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902489', 'tblTempUsageDetail_20' ) start [2025-04-14 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902489', 'tblTempUsageDetail_20' ) end [2025-04-14 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:13:22] Production.INFO: ==14834== Releasing lock... [2025-04-14 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:14:05 [end_date_ymd] => 2025-04-14 00:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:14:05' and `end` < '2025-04-14 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-04-14 00:14:18] Production.INFO: count ==129 [2025-04-14 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:14:05 - End Time 2025-04-14 00:14:05 [2025-04-14 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902494', 'tblTempUsageDetail_20' ) start [2025-04-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902494', 'tblTempUsageDetail_20' ) end [2025-04-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902494', 'tblTempVendorCDR_20' ) start [2025-04-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902494', 'tblTempVendorCDR_20' ) end [2025-04-14 00:14:18] Production.INFO: ProcessCDR(1,14902494,1,1,2) [2025-04-14 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902494', 'tblTempUsageDetail_20' ) start [2025-04-14 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902494', 'tblTempUsageDetail_20' ) end [2025-04-14 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:14:22] Production.INFO: ==14958== Releasing lock... [2025-04-14 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:15:06 [end_date_ymd] => 2025-04-14 00:15:06 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:15:06' and `end` < '2025-04-14 00: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-04-14 00:15:19] Production.INFO: count ==131 [2025-04-14 00:15:19] Production.ERROR: pbx CDR StartTime 2025-04-13 21:15:06 - End Time 2025-04-14 00:15:06 [2025-04-14 00:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902499', 'tblTempUsageDetail_20' ) start [2025-04-14 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902499', 'tblTempUsageDetail_20' ) end [2025-04-14 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902499', 'tblTempVendorCDR_20' ) start [2025-04-14 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902499', 'tblTempVendorCDR_20' ) end [2025-04-14 00:15:19] Production.INFO: ProcessCDR(1,14902499,1,1,2) [2025-04-14 00:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902499', 'tblTempUsageDetail_20' ) start [2025-04-14 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902499', 'tblTempUsageDetail_20' ) end [2025-04-14 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:15:22] Production.INFO: ==15072== Releasing lock... [2025-04-14 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:16:05 [end_date_ymd] => 2025-04-14 00:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:16:05' and `end` < '2025-04-14 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-04-14 00:16:18] Production.INFO: count ==131 [2025-04-14 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:16:05 - End Time 2025-04-14 00:16:05 [2025-04-14 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902504', 'tblTempUsageDetail_20' ) start [2025-04-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902504', 'tblTempUsageDetail_20' ) end [2025-04-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902504', 'tblTempVendorCDR_20' ) start [2025-04-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902504', 'tblTempVendorCDR_20' ) end [2025-04-14 00:16:18] Production.INFO: ProcessCDR(1,14902504,1,1,2) [2025-04-14 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902504', 'tblTempUsageDetail_20' ) start [2025-04-14 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902504', 'tblTempUsageDetail_20' ) end [2025-04-14 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:16:21] Production.INFO: ==15190== Releasing lock... [2025-04-14 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:17:05 [end_date_ymd] => 2025-04-14 00:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:17:05' and `end` < '2025-04-14 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-04-14 00:17:18] Production.INFO: count ==130 [2025-04-14 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:17:05 - End Time 2025-04-14 00:17:05 [2025-04-14 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902509', 'tblTempUsageDetail_20' ) start [2025-04-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902509', 'tblTempUsageDetail_20' ) end [2025-04-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902509', 'tblTempVendorCDR_20' ) start [2025-04-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902509', 'tblTempVendorCDR_20' ) end [2025-04-14 00:17:18] Production.INFO: ProcessCDR(1,14902509,1,1,2) [2025-04-14 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902509', 'tblTempUsageDetail_20' ) start [2025-04-14 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902509', 'tblTempUsageDetail_20' ) end [2025-04-14 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:17:21] Production.INFO: ==15310== Releasing lock... [2025-04-14 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:18:05 [end_date_ymd] => 2025-04-14 00:18:05 [RateCDR] => 1 ) [2025-04-14 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:18:05' and `end` < '2025-04-14 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:18:18] Production.INFO: count ==129 [2025-04-14 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:18:05 - End Time 2025-04-14 00:18:05 [2025-04-14 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902514', 'tblTempUsageDetail_20' ) start [2025-04-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902514', 'tblTempUsageDetail_20' ) end [2025-04-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902514', 'tblTempVendorCDR_20' ) start [2025-04-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902514', 'tblTempVendorCDR_20' ) end [2025-04-14 00:18:18] Production.INFO: ProcessCDR(1,14902514,1,1,2) [2025-04-14 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902514', 'tblTempUsageDetail_20' ) start [2025-04-14 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902514', 'tblTempUsageDetail_20' ) end [2025-04-14 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:18:21] Production.INFO: ==15466== Releasing lock... [2025-04-14 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:18:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:19:05 [end_date_ymd] => 2025-04-14 00:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:19:05' and `end` < '2025-04-14 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-04-14 00:19:18] Production.INFO: count ==126 [2025-04-14 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:19:05 - End Time 2025-04-14 00:19:05 [2025-04-14 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902519', 'tblTempUsageDetail_20' ) start [2025-04-14 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902519', 'tblTempUsageDetail_20' ) end [2025-04-14 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902519', 'tblTempVendorCDR_20' ) start [2025-04-14 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902519', 'tblTempVendorCDR_20' ) end [2025-04-14 00:19:18] Production.INFO: ProcessCDR(1,14902519,1,1,2) [2025-04-14 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902519', 'tblTempUsageDetail_20' ) start [2025-04-14 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902519', 'tblTempUsageDetail_20' ) end [2025-04-14 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:19:21] Production.INFO: ==15585== Releasing lock... [2025-04-14 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:19:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:20:06 [end_date_ymd] => 2025-04-14 00:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:20:06' and `end` < '2025-04-14 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-04-14 00:20:19] Production.INFO: count ==135 [2025-04-14 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-13 21:20:06 - End Time 2025-04-14 00:20:06 [2025-04-14 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902525', 'tblTempUsageDetail_20' ) start [2025-04-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902525', 'tblTempUsageDetail_20' ) end [2025-04-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902525', 'tblTempVendorCDR_20' ) start [2025-04-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902525', 'tblTempVendorCDR_20' ) end [2025-04-14 00:20:19] Production.INFO: ProcessCDR(1,14902525,1,1,2) [2025-04-14 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902525', 'tblTempUsageDetail_20' ) start [2025-04-14 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902525', 'tblTempUsageDetail_20' ) end [2025-04-14 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:20:22] Production.INFO: ==15701== Releasing lock... [2025-04-14 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:20:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:21:04 [end_date_ymd] => 2025-04-14 00:21:04 [RateCDR] => 1 ) [2025-04-14 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:21:04' and `end` < '2025-04-14 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:21:17] Production.INFO: count ==139 [2025-04-14 00:21:17] Production.ERROR: pbx CDR StartTime 2025-04-13 21:21:04 - End Time 2025-04-14 00:21:04 [2025-04-14 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902530', 'tblTempUsageDetail_20' ) start [2025-04-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902530', 'tblTempUsageDetail_20' ) end [2025-04-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902530', 'tblTempVendorCDR_20' ) start [2025-04-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902530', 'tblTempVendorCDR_20' ) end [2025-04-14 00:21:17] Production.INFO: ProcessCDR(1,14902530,1,1,2) [2025-04-14 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902530', 'tblTempUsageDetail_20' ) start [2025-04-14 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902530', 'tblTempUsageDetail_20' ) end [2025-04-14 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:21:21] Production.INFO: ==15816== Releasing lock... [2025-04-14 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:22:05 [end_date_ymd] => 2025-04-14 00:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:22:05' and `end` < '2025-04-14 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-04-14 00:22:18] Production.INFO: count ==140 [2025-04-14 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:22:05 - End Time 2025-04-14 00:22:05 [2025-04-14 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902535', 'tblTempUsageDetail_20' ) start [2025-04-14 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902535', 'tblTempUsageDetail_20' ) end [2025-04-14 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902535', 'tblTempVendorCDR_20' ) start [2025-04-14 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902535', 'tblTempVendorCDR_20' ) end [2025-04-14 00:22:18] Production.INFO: ProcessCDR(1,14902535,1,1,2) [2025-04-14 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902535', 'tblTempUsageDetail_20' ) start [2025-04-14 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902535', 'tblTempUsageDetail_20' ) end [2025-04-14 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:22:23] Production.INFO: ==15933== Releasing lock... [2025-04-14 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:22:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:23:05 [end_date_ymd] => 2025-04-14 00:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:23:05' and `end` < '2025-04-14 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:23:18] Production.INFO: count ==141 [2025-04-14 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:23:05 - End Time 2025-04-14 00:23:05 [2025-04-14 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902540', 'tblTempUsageDetail_20' ) start [2025-04-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902540', 'tblTempUsageDetail_20' ) end [2025-04-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902540', 'tblTempVendorCDR_20' ) start [2025-04-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902540', 'tblTempVendorCDR_20' ) end [2025-04-14 00:23:18] Production.INFO: ProcessCDR(1,14902540,1,1,2) [2025-04-14 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902540', 'tblTempUsageDetail_20' ) start [2025-04-14 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902540', 'tblTempUsageDetail_20' ) end [2025-04-14 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:23:23] Production.INFO: ==16048== Releasing lock... [2025-04-14 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:24:05 [end_date_ymd] => 2025-04-14 00:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:24:05' and `end` < '2025-04-14 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-04-14 00:24:18] Production.INFO: count ==141 [2025-04-14 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:24:05 - End Time 2025-04-14 00:24:05 [2025-04-14 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902545', 'tblTempUsageDetail_20' ) start [2025-04-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902545', 'tblTempUsageDetail_20' ) end [2025-04-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902545', 'tblTempVendorCDR_20' ) start [2025-04-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902545', 'tblTempVendorCDR_20' ) end [2025-04-14 00:24:18] Production.INFO: ProcessCDR(1,14902545,1,1,2) [2025-04-14 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902545', 'tblTempUsageDetail_20' ) start [2025-04-14 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902545', 'tblTempUsageDetail_20' ) end [2025-04-14 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:24:22] Production.INFO: ==16176== Releasing lock... [2025-04-14 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:25:05 [end_date_ymd] => 2025-04-14 00:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:25:05' and `end` < '2025-04-14 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-04-14 00:25:17] Production.INFO: count ==141 [2025-04-14 00:25:17] Production.ERROR: pbx CDR StartTime 2025-04-13 21:25:05 - End Time 2025-04-14 00:25:05 [2025-04-14 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902550', 'tblTempUsageDetail_20' ) start [2025-04-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902550', 'tblTempUsageDetail_20' ) end [2025-04-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902550', 'tblTempVendorCDR_20' ) start [2025-04-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902550', 'tblTempVendorCDR_20' ) end [2025-04-14 00:25:17] Production.INFO: ProcessCDR(1,14902550,1,1,2) [2025-04-14 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902550', 'tblTempUsageDetail_20' ) start [2025-04-14 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902550', 'tblTempUsageDetail_20' ) end [2025-04-14 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:25:21] Production.INFO: ==16299== Releasing lock... [2025-04-14 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:26:06 [end_date_ymd] => 2025-04-14 00:26:06 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:26:06' and `end` < '2025-04-14 00: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-04-14 00:26:18] Production.INFO: count ==139 [2025-04-14 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:26:06 - End Time 2025-04-14 00:26:06 [2025-04-14 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902555', 'tblTempUsageDetail_20' ) start [2025-04-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902555', 'tblTempUsageDetail_20' ) end [2025-04-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902555', 'tblTempVendorCDR_20' ) start [2025-04-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902555', 'tblTempVendorCDR_20' ) end [2025-04-14 00:26:18] Production.INFO: ProcessCDR(1,14902555,1,1,2) [2025-04-14 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902555', 'tblTempUsageDetail_20' ) start [2025-04-14 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902555', 'tblTempUsageDetail_20' ) end [2025-04-14 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:26:22] Production.INFO: ==16423== Releasing lock... [2025-04-14 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:27:05 [end_date_ymd] => 2025-04-14 00:27:05 [RateCDR] => 1 ) [2025-04-14 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:27:05' and `end` < '2025-04-14 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:27:17] Production.INFO: count ==141 [2025-04-14 00:27:17] Production.ERROR: pbx CDR StartTime 2025-04-13 21:27:05 - End Time 2025-04-14 00:27:05 [2025-04-14 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902560', 'tblTempUsageDetail_20' ) start [2025-04-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902560', 'tblTempUsageDetail_20' ) end [2025-04-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902560', 'tblTempVendorCDR_20' ) start [2025-04-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902560', 'tblTempVendorCDR_20' ) end [2025-04-14 00:27:17] Production.INFO: ProcessCDR(1,14902560,1,1,2) [2025-04-14 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902560', 'tblTempUsageDetail_20' ) start [2025-04-14 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902560', 'tblTempUsageDetail_20' ) end [2025-04-14 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:27:21] Production.INFO: ==16543== Releasing lock... [2025-04-14 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:28:05 [end_date_ymd] => 2025-04-14 00:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:28:05' and `end` < '2025-04-14 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-04-14 00:28:18] Production.INFO: count ==141 [2025-04-14 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:28:05 - End Time 2025-04-14 00:28:05 [2025-04-14 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902565', 'tblTempUsageDetail_20' ) start [2025-04-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902565', 'tblTempUsageDetail_20' ) end [2025-04-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902565', 'tblTempVendorCDR_20' ) start [2025-04-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902565', 'tblTempVendorCDR_20' ) end [2025-04-14 00:28:18] Production.INFO: ProcessCDR(1,14902565,1,1,2) [2025-04-14 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902565', 'tblTempUsageDetail_20' ) start [2025-04-14 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902565', 'tblTempUsageDetail_20' ) end [2025-04-14 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:28:21] Production.INFO: ==16672== Releasing lock... [2025-04-14 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:29:05 [end_date_ymd] => 2025-04-14 00:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:29:05' and `end` < '2025-04-14 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-04-14 00:29:18] Production.INFO: count ==141 [2025-04-14 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:29:05 - End Time 2025-04-14 00:29:05 [2025-04-14 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902570', 'tblTempUsageDetail_20' ) start [2025-04-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902570', 'tblTempUsageDetail_20' ) end [2025-04-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902570', 'tblTempVendorCDR_20' ) start [2025-04-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902570', 'tblTempVendorCDR_20' ) end [2025-04-14 00:29:18] Production.INFO: ProcessCDR(1,14902570,1,1,2) [2025-04-14 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902570', 'tblTempUsageDetail_20' ) start [2025-04-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902570', 'tblTempUsageDetail_20' ) end [2025-04-14 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:29:21] Production.INFO: ==16816== Releasing lock... [2025-04-14 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:30:06 [end_date_ymd] => 2025-04-14 00:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:30:06' and `end` < '2025-04-14 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-04-14 00:30:19] Production.INFO: count ==149 [2025-04-14 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-13 21:30:06 - End Time 2025-04-14 00:30:06 [2025-04-14 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902576', 'tblTempUsageDetail_20' ) start [2025-04-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902576', 'tblTempUsageDetail_20' ) end [2025-04-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902576', 'tblTempVendorCDR_20' ) start [2025-04-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902576', 'tblTempVendorCDR_20' ) end [2025-04-14 00:30:19] Production.INFO: ProcessCDR(1,14902576,1,1,2) [2025-04-14 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902576', 'tblTempUsageDetail_20' ) start [2025-04-14 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902576', 'tblTempUsageDetail_20' ) end [2025-04-14 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:30:22] Production.INFO: ==16954== Releasing lock... [2025-04-14 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:31:05 [end_date_ymd] => 2025-04-14 00:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:31:05' and `end` < '2025-04-14 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-04-14 00:31:18] Production.INFO: count ==154 [2025-04-14 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:31:05 - End Time 2025-04-14 00:31:05 [2025-04-14 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902581', 'tblTempUsageDetail_20' ) start [2025-04-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902581', 'tblTempUsageDetail_20' ) end [2025-04-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902581', 'tblTempVendorCDR_20' ) start [2025-04-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902581', 'tblTempVendorCDR_20' ) end [2025-04-14 00:31:18] Production.INFO: ProcessCDR(1,14902581,1,1,2) [2025-04-14 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902581', 'tblTempUsageDetail_20' ) start [2025-04-14 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902581', 'tblTempUsageDetail_20' ) end [2025-04-14 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:31:21] Production.INFO: ==17094== Releasing lock... [2025-04-14 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:32:05 [end_date_ymd] => 2025-04-14 00:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:32:05' and `end` < '2025-04-14 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-04-14 00:32:18] Production.INFO: count ==154 [2025-04-14 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:32:05 - End Time 2025-04-14 00:32:05 [2025-04-14 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902586', 'tblTempUsageDetail_20' ) start [2025-04-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902586', 'tblTempUsageDetail_20' ) end [2025-04-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902586', 'tblTempVendorCDR_20' ) start [2025-04-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902586', 'tblTempVendorCDR_20' ) end [2025-04-14 00:32:18] Production.INFO: ProcessCDR(1,14902586,1,1,2) [2025-04-14 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902586', 'tblTempUsageDetail_20' ) start [2025-04-14 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902586', 'tblTempUsageDetail_20' ) end [2025-04-14 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:32:22] Production.INFO: ==17227== Releasing lock... [2025-04-14 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:33:05 [end_date_ymd] => 2025-04-14 00:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:33:05' and `end` < '2025-04-14 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-04-14 00:33:18] Production.INFO: count ==154 [2025-04-14 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:33:05 - End Time 2025-04-14 00:33:05 [2025-04-14 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902591', 'tblTempUsageDetail_20' ) start [2025-04-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902591', 'tblTempUsageDetail_20' ) end [2025-04-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902591', 'tblTempVendorCDR_20' ) start [2025-04-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902591', 'tblTempVendorCDR_20' ) end [2025-04-14 00:33:18] Production.INFO: ProcessCDR(1,14902591,1,1,2) [2025-04-14 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902591', 'tblTempUsageDetail_20' ) start [2025-04-14 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902591', 'tblTempUsageDetail_20' ) end [2025-04-14 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:33:21] Production.INFO: ==17359== Releasing lock... [2025-04-14 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:34:05 [end_date_ymd] => 2025-04-14 00:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:34:05' and `end` < '2025-04-14 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-04-14 00:34:18] Production.INFO: count ==151 [2025-04-14 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:34:05 - End Time 2025-04-14 00:34:05 [2025-04-14 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902596', 'tblTempUsageDetail_20' ) start [2025-04-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902596', 'tblTempUsageDetail_20' ) end [2025-04-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902596', 'tblTempVendorCDR_20' ) start [2025-04-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902596', 'tblTempVendorCDR_20' ) end [2025-04-14 00:34:18] Production.INFO: ProcessCDR(1,14902596,1,1,2) [2025-04-14 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902596', 'tblTempUsageDetail_20' ) start [2025-04-14 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902596', 'tblTempUsageDetail_20' ) end [2025-04-14 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:34:21] Production.INFO: ==17536== Releasing lock... [2025-04-14 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:35:06 [end_date_ymd] => 2025-04-14 00:35:06 [RateCDR] => 1 ) [2025-04-14 00:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:35:06' and `end` < '2025-04-14 00:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:35:19] Production.INFO: count ==148 [2025-04-14 00:35:19] Production.ERROR: pbx CDR StartTime 2025-04-13 21:35:06 - End Time 2025-04-14 00:35:06 [2025-04-14 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902601', 'tblTempUsageDetail_20' ) start [2025-04-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902601', 'tblTempUsageDetail_20' ) end [2025-04-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902601', 'tblTempVendorCDR_20' ) start [2025-04-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902601', 'tblTempVendorCDR_20' ) end [2025-04-14 00:35:19] Production.INFO: ProcessCDR(1,14902601,1,1,2) [2025-04-14 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902601', 'tblTempUsageDetail_20' ) start [2025-04-14 00:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902601', 'tblTempUsageDetail_20' ) end [2025-04-14 00:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:35:24] Production.INFO: ==17678== Releasing lock... [2025-04-14 00:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:35:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:36:05 [end_date_ymd] => 2025-04-14 00:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:36:05' and `end` < '2025-04-14 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-04-14 00:36:18] Production.INFO: count ==148 [2025-04-14 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:36:05 - End Time 2025-04-14 00:36:05 [2025-04-14 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902606', 'tblTempUsageDetail_20' ) start [2025-04-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902606', 'tblTempUsageDetail_20' ) end [2025-04-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902606', 'tblTempVendorCDR_20' ) start [2025-04-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902606', 'tblTempVendorCDR_20' ) end [2025-04-14 00:36:18] Production.INFO: ProcessCDR(1,14902606,1,1,2) [2025-04-14 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902606', 'tblTempUsageDetail_20' ) start [2025-04-14 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902606', 'tblTempUsageDetail_20' ) end [2025-04-14 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:36:22] Production.INFO: ==17811== Releasing lock... [2025-04-14 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:37:05 [end_date_ymd] => 2025-04-14 00:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:37:05' and `end` < '2025-04-14 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-04-14 00:37:18] Production.INFO: count ==147 [2025-04-14 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:37:05 - End Time 2025-04-14 00:37:05 [2025-04-14 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902611', 'tblTempUsageDetail_20' ) start [2025-04-14 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902611', 'tblTempUsageDetail_20' ) end [2025-04-14 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902611', 'tblTempVendorCDR_20' ) start [2025-04-14 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902611', 'tblTempVendorCDR_20' ) end [2025-04-14 00:37:18] Production.INFO: ProcessCDR(1,14902611,1,1,2) [2025-04-14 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902611', 'tblTempUsageDetail_20' ) start [2025-04-14 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902611', 'tblTempUsageDetail_20' ) end [2025-04-14 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:37:22] Production.INFO: ==17955== Releasing lock... [2025-04-14 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:38:05 [end_date_ymd] => 2025-04-14 00:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:38:05' and `end` < '2025-04-14 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-04-14 00:38:18] Production.INFO: count ==146 [2025-04-14 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:38:05 - End Time 2025-04-14 00:38:05 [2025-04-14 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902616', 'tblTempUsageDetail_20' ) start [2025-04-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902616', 'tblTempUsageDetail_20' ) end [2025-04-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902616', 'tblTempVendorCDR_20' ) start [2025-04-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902616', 'tblTempVendorCDR_20' ) end [2025-04-14 00:38:18] Production.INFO: ProcessCDR(1,14902616,1,1,2) [2025-04-14 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902616', 'tblTempUsageDetail_20' ) start [2025-04-14 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902616', 'tblTempUsageDetail_20' ) end [2025-04-14 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:38:21] Production.INFO: ==18087== Releasing lock... [2025-04-14 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:39:06 [end_date_ymd] => 2025-04-14 00:39:06 [RateCDR] => 1 ) [2025-04-14 00:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:39:06' and `end` < '2025-04-14 00:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:39:18] Production.INFO: count ==144 [2025-04-14 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:39:06 - End Time 2025-04-14 00:39:06 [2025-04-14 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902621', 'tblTempUsageDetail_20' ) start [2025-04-14 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902621', 'tblTempUsageDetail_20' ) end [2025-04-14 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902621', 'tblTempVendorCDR_20' ) start [2025-04-14 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902621', 'tblTempVendorCDR_20' ) end [2025-04-14 00:39:18] Production.INFO: ProcessCDR(1,14902621,1,1,2) [2025-04-14 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902621', 'tblTempUsageDetail_20' ) start [2025-04-14 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902621', 'tblTempUsageDetail_20' ) end [2025-04-14 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:39:22] Production.INFO: ==18219== Releasing lock... [2025-04-14 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:40:05 [end_date_ymd] => 2025-04-14 00:40:05 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:40:05' and `end` < '2025-04-14 00: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-04-14 00:40:18] Production.INFO: count ==151 [2025-04-14 00:40:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:40:05 - End Time 2025-04-14 00:40:05 [2025-04-14 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902627', 'tblTempUsageDetail_20' ) start [2025-04-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902627', 'tblTempUsageDetail_20' ) end [2025-04-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902627', 'tblTempVendorCDR_20' ) start [2025-04-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902627', 'tblTempVendorCDR_20' ) end [2025-04-14 00:40:18] Production.INFO: ProcessCDR(1,14902627,1,1,2) [2025-04-14 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902627', 'tblTempUsageDetail_20' ) start [2025-04-14 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902627', 'tblTempUsageDetail_20' ) end [2025-04-14 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:40:22] Production.INFO: ==18358== Releasing lock... [2025-04-14 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:41:06 [end_date_ymd] => 2025-04-14 00:41:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:41:06' and `end` < '2025-04-14 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-04-14 00:41:18] Production.INFO: count ==153 [2025-04-14 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:41:06 - End Time 2025-04-14 00:41:06 [2025-04-14 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902632', 'tblTempUsageDetail_20' ) start [2025-04-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902632', 'tblTempUsageDetail_20' ) end [2025-04-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902632', 'tblTempVendorCDR_20' ) start [2025-04-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902632', 'tblTempVendorCDR_20' ) end [2025-04-14 00:41:18] Production.INFO: ProcessCDR(1,14902632,1,1,2) [2025-04-14 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902632', 'tblTempUsageDetail_20' ) start [2025-04-14 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902632', 'tblTempUsageDetail_20' ) end [2025-04-14 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:41:22] Production.INFO: ==18508== Releasing lock... [2025-04-14 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:42:05 [end_date_ymd] => 2025-04-14 00:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:42:05' and `end` < '2025-04-14 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-04-14 00:42:18] Production.INFO: count ==153 [2025-04-14 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:42:05 - End Time 2025-04-14 00:42:05 [2025-04-14 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902637', 'tblTempUsageDetail_20' ) start [2025-04-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902637', 'tblTempUsageDetail_20' ) end [2025-04-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902637', 'tblTempVendorCDR_20' ) start [2025-04-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902637', 'tblTempVendorCDR_20' ) end [2025-04-14 00:42:18] Production.INFO: ProcessCDR(1,14902637,1,1,2) [2025-04-14 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902637', 'tblTempUsageDetail_20' ) start [2025-04-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902637', 'tblTempUsageDetail_20' ) end [2025-04-14 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:42:21] Production.INFO: ==18645== Releasing lock... [2025-04-14 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:43:06 [end_date_ymd] => 2025-04-14 00:43:06 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:43:06' and `end` < '2025-04-14 00: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-04-14 00:43:18] Production.INFO: count ==153 [2025-04-14 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:43:06 - End Time 2025-04-14 00:43:06 [2025-04-14 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902642', 'tblTempUsageDetail_20' ) start [2025-04-14 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902642', 'tblTempUsageDetail_20' ) end [2025-04-14 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902642', 'tblTempVendorCDR_20' ) start [2025-04-14 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902642', 'tblTempVendorCDR_20' ) end [2025-04-14 00:43:18] Production.INFO: ProcessCDR(1,14902642,1,1,2) [2025-04-14 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902642', 'tblTempUsageDetail_20' ) start [2025-04-14 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902642', 'tblTempUsageDetail_20' ) end [2025-04-14 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:43:22] Production.INFO: ==18789== Releasing lock... [2025-04-14 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:44:05 [end_date_ymd] => 2025-04-14 00:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:44:05' and `end` < '2025-04-14 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-04-14 00:44:18] Production.INFO: count ==152 [2025-04-14 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:44:05 - End Time 2025-04-14 00:44:05 [2025-04-14 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902647', 'tblTempUsageDetail_20' ) start [2025-04-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902647', 'tblTempUsageDetail_20' ) end [2025-04-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902647', 'tblTempVendorCDR_20' ) start [2025-04-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902647', 'tblTempVendorCDR_20' ) end [2025-04-14 00:44:18] Production.INFO: ProcessCDR(1,14902647,1,1,2) [2025-04-14 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902647', 'tblTempUsageDetail_20' ) start [2025-04-14 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902647', 'tblTempUsageDetail_20' ) end [2025-04-14 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:44:21] Production.INFO: ==18922== Releasing lock... [2025-04-14 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:45:06 [end_date_ymd] => 2025-04-14 00:45:06 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:45:06' and `end` < '2025-04-14 00: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-04-14 00:45:18] Production.INFO: count ==151 [2025-04-14 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:45:06 - End Time 2025-04-14 00:45:06 [2025-04-14 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902652', 'tblTempUsageDetail_20' ) start [2025-04-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902652', 'tblTempUsageDetail_20' ) end [2025-04-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902652', 'tblTempVendorCDR_20' ) start [2025-04-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902652', 'tblTempVendorCDR_20' ) end [2025-04-14 00:45:18] Production.INFO: ProcessCDR(1,14902652,1,1,2) [2025-04-14 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902652', 'tblTempUsageDetail_20' ) start [2025-04-14 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902652', 'tblTempUsageDetail_20' ) end [2025-04-14 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:45:22] Production.INFO: ==19060== Releasing lock... [2025-04-14 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:46:05 [end_date_ymd] => 2025-04-14 00:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:46:05' and `end` < '2025-04-14 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-04-14 00:46:18] Production.INFO: count ==148 [2025-04-14 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:46:05 - End Time 2025-04-14 00:46:05 [2025-04-14 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902657', 'tblTempUsageDetail_20' ) start [2025-04-14 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902657', 'tblTempUsageDetail_20' ) end [2025-04-14 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902657', 'tblTempVendorCDR_20' ) start [2025-04-14 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902657', 'tblTempVendorCDR_20' ) end [2025-04-14 00:46:18] Production.INFO: ProcessCDR(1,14902657,1,1,2) [2025-04-14 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902657', 'tblTempUsageDetail_20' ) start [2025-04-14 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902657', 'tblTempUsageDetail_20' ) end [2025-04-14 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:46:21] Production.INFO: ==19194== Releasing lock... [2025-04-14 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:47:05 [end_date_ymd] => 2025-04-14 00:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:47:05' and `end` < '2025-04-14 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-04-14 00:47:18] Production.INFO: count ==147 [2025-04-14 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:47:05 - End Time 2025-04-14 00:47:05 [2025-04-14 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902662', 'tblTempUsageDetail_20' ) start [2025-04-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902662', 'tblTempUsageDetail_20' ) end [2025-04-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902662', 'tblTempVendorCDR_20' ) start [2025-04-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902662', 'tblTempVendorCDR_20' ) end [2025-04-14 00:47:18] Production.INFO: ProcessCDR(1,14902662,1,1,2) [2025-04-14 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902662', 'tblTempUsageDetail_20' ) start [2025-04-14 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902662', 'tblTempUsageDetail_20' ) end [2025-04-14 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:47:22] Production.INFO: ==19330== Releasing lock... [2025-04-14 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:47:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:48:05 [end_date_ymd] => 2025-04-14 00:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:48:05' and `end` < '2025-04-14 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-04-14 00:48:18] Production.INFO: count ==145 [2025-04-14 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:48:05 - End Time 2025-04-14 00:48:05 [2025-04-14 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902667', 'tblTempUsageDetail_20' ) start [2025-04-14 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902667', 'tblTempUsageDetail_20' ) end [2025-04-14 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902667', 'tblTempVendorCDR_20' ) start [2025-04-14 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902667', 'tblTempVendorCDR_20' ) end [2025-04-14 00:48:18] Production.INFO: ProcessCDR(1,14902667,1,1,2) [2025-04-14 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902667', 'tblTempUsageDetail_20' ) start [2025-04-14 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902667', 'tblTempUsageDetail_20' ) end [2025-04-14 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:48:22] Production.INFO: ==19467== Releasing lock... [2025-04-14 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:49:05 [end_date_ymd] => 2025-04-14 00:49:05 [RateCDR] => 1 ) [2025-04-14 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:49:05' and `end` < '2025-04-14 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:49:18] Production.INFO: count ==147 [2025-04-14 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:49:05 - End Time 2025-04-14 00:49:05 [2025-04-14 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902672', 'tblTempUsageDetail_20' ) start [2025-04-14 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902672', 'tblTempUsageDetail_20' ) end [2025-04-14 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902672', 'tblTempVendorCDR_20' ) start [2025-04-14 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902672', 'tblTempVendorCDR_20' ) end [2025-04-14 00:49:18] Production.INFO: ProcessCDR(1,14902672,1,1,2) [2025-04-14 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902672', 'tblTempUsageDetail_20' ) start [2025-04-14 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902672', 'tblTempUsageDetail_20' ) end [2025-04-14 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:49:21] Production.INFO: ==19644== Releasing lock... [2025-04-14 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:50:05 [end_date_ymd] => 2025-04-14 00:50:05 [RateCDR] => 1 ) [2025-04-14 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:50:05' and `end` < '2025-04-14 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:50:18] Production.INFO: count ==157 [2025-04-14 00:50:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:50:05 - End Time 2025-04-14 00:50:05 [2025-04-14 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902677', 'tblTempUsageDetail_20' ) start [2025-04-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902677', 'tblTempUsageDetail_20' ) end [2025-04-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902677', 'tblTempVendorCDR_20' ) start [2025-04-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902677', 'tblTempVendorCDR_20' ) end [2025-04-14 00:50:18] Production.INFO: ProcessCDR(1,14902677,1,1,2) [2025-04-14 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902677', 'tblTempUsageDetail_20' ) start [2025-04-14 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902677', 'tblTempUsageDetail_20' ) end [2025-04-14 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:50:21] Production.INFO: ==19778== Releasing lock... [2025-04-14 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:51:05 [end_date_ymd] => 2025-04-14 00:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:51:05' and `end` < '2025-04-14 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-04-14 00:51:18] Production.INFO: count ==156 [2025-04-14 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:51:05 - End Time 2025-04-14 00:51:05 [2025-04-14 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902683', 'tblTempUsageDetail_20' ) start [2025-04-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902683', 'tblTempUsageDetail_20' ) end [2025-04-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902683', 'tblTempVendorCDR_20' ) start [2025-04-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902683', 'tblTempVendorCDR_20' ) end [2025-04-14 00:51:18] Production.INFO: ProcessCDR(1,14902683,1,1,2) [2025-04-14 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902683', 'tblTempUsageDetail_20' ) start [2025-04-14 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902683', 'tblTempUsageDetail_20' ) end [2025-04-14 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:51:21] Production.INFO: ==19917== Releasing lock... [2025-04-14 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:52:05 [end_date_ymd] => 2025-04-14 00:52:05 [RateCDR] => 1 ) [2025-04-14 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 21:52:05' and `end` < '2025-04-14 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 00:52:18] Production.INFO: count ==156 [2025-04-14 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:52:05 - End Time 2025-04-14 00:52:05 [2025-04-14 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902688', 'tblTempUsageDetail_20' ) start [2025-04-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902688', 'tblTempUsageDetail_20' ) end [2025-04-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902688', 'tblTempVendorCDR_20' ) start [2025-04-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902688', 'tblTempVendorCDR_20' ) end [2025-04-14 00:52:18] Production.INFO: ProcessCDR(1,14902688,1,1,2) [2025-04-14 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902688', 'tblTempUsageDetail_20' ) start [2025-04-14 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902688', 'tblTempUsageDetail_20' ) end [2025-04-14 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:52:21] Production.INFO: ==20052== Releasing lock... [2025-04-14 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:53:06 [end_date_ymd] => 2025-04-14 00:53:06 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:53:06' and `end` < '2025-04-14 00: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-04-14 00:53:18] Production.INFO: count ==156 [2025-04-14 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:53:06 - End Time 2025-04-14 00:53:06 [2025-04-14 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902693', 'tblTempUsageDetail_20' ) start [2025-04-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902693', 'tblTempUsageDetail_20' ) end [2025-04-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902693', 'tblTempVendorCDR_20' ) start [2025-04-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902693', 'tblTempVendorCDR_20' ) end [2025-04-14 00:53:18] Production.INFO: ProcessCDR(1,14902693,1,1,2) [2025-04-14 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902693', 'tblTempUsageDetail_20' ) start [2025-04-14 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902693', 'tblTempUsageDetail_20' ) end [2025-04-14 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:53:22] Production.INFO: ==20188== Releasing lock... [2025-04-14 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:54:05 [end_date_ymd] => 2025-04-14 00:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:54:05' and `end` < '2025-04-14 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-04-14 00:54:17] Production.INFO: count ==155 [2025-04-14 00:54:17] Production.ERROR: pbx CDR StartTime 2025-04-13 21:54:05 - End Time 2025-04-14 00:54:05 [2025-04-14 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902698', 'tblTempUsageDetail_20' ) start [2025-04-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902698', 'tblTempUsageDetail_20' ) end [2025-04-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902698', 'tblTempVendorCDR_20' ) start [2025-04-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902698', 'tblTempVendorCDR_20' ) end [2025-04-14 00:54:17] Production.INFO: ProcessCDR(1,14902698,1,1,2) [2025-04-14 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902698', 'tblTempUsageDetail_20' ) start [2025-04-14 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902698', 'tblTempUsageDetail_20' ) end [2025-04-14 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:54:21] Production.INFO: ==20320== Releasing lock... [2025-04-14 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:55:05 [end_date_ymd] => 2025-04-14 00:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:55:05' and `end` < '2025-04-14 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-04-14 00:55:18] Production.INFO: count ==158 [2025-04-14 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:55:05 - End Time 2025-04-14 00:55:05 [2025-04-14 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902703', 'tblTempUsageDetail_20' ) start [2025-04-14 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902703', 'tblTempUsageDetail_20' ) end [2025-04-14 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902703', 'tblTempVendorCDR_20' ) start [2025-04-14 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902703', 'tblTempVendorCDR_20' ) end [2025-04-14 00:55:18] Production.INFO: ProcessCDR(1,14902703,1,1,2) [2025-04-14 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902703', 'tblTempUsageDetail_20' ) start [2025-04-14 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902703', 'tblTempUsageDetail_20' ) end [2025-04-14 00:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:55:23] Production.INFO: ==20445== Releasing lock... [2025-04-14 00:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:55:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:56:05 [end_date_ymd] => 2025-04-14 00:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:56:05' and `end` < '2025-04-14 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-04-14 00:56:17] Production.INFO: count ==156 [2025-04-14 00:56:17] Production.ERROR: pbx CDR StartTime 2025-04-13 21:56:05 - End Time 2025-04-14 00:56:05 [2025-04-14 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902708', 'tblTempUsageDetail_20' ) start [2025-04-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902708', 'tblTempUsageDetail_20' ) end [2025-04-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902708', 'tblTempVendorCDR_20' ) start [2025-04-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902708', 'tblTempVendorCDR_20' ) end [2025-04-14 00:56:17] Production.INFO: ProcessCDR(1,14902708,1,1,2) [2025-04-14 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902708', 'tblTempUsageDetail_20' ) start [2025-04-14 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902708', 'tblTempUsageDetail_20' ) end [2025-04-14 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:56:21] Production.INFO: ==20563== Releasing lock... [2025-04-14 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:57:06 [end_date_ymd] => 2025-04-14 00:57:06 [RateCDR] => 1 ) [2025-04-14 00: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-04-13 21:57:06' and `end` < '2025-04-14 00: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-04-14 00:57:18] Production.INFO: count ==155 [2025-04-14 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:57:06 - End Time 2025-04-14 00:57:06 [2025-04-14 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902713', 'tblTempUsageDetail_20' ) start [2025-04-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902713', 'tblTempUsageDetail_20' ) end [2025-04-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902713', 'tblTempVendorCDR_20' ) start [2025-04-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902713', 'tblTempVendorCDR_20' ) end [2025-04-14 00:57:18] Production.INFO: ProcessCDR(1,14902713,1,1,2) [2025-04-14 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902713', 'tblTempUsageDetail_20' ) start [2025-04-14 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902713', 'tblTempUsageDetail_20' ) end [2025-04-14 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:57:22] Production.INFO: ==20683== Releasing lock... [2025-04-14 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:58:05 [end_date_ymd] => 2025-04-14 00:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:58:05' and `end` < '2025-04-14 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-04-14 00:58:18] Production.INFO: count ==155 [2025-04-14 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:58:05 - End Time 2025-04-14 00:58:05 [2025-04-14 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902718', 'tblTempUsageDetail_20' ) start [2025-04-14 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902718', 'tblTempUsageDetail_20' ) end [2025-04-14 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902718', 'tblTempVendorCDR_20' ) start [2025-04-14 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902718', 'tblTempVendorCDR_20' ) end [2025-04-14 00:58:18] Production.INFO: ProcessCDR(1,14902718,1,1,2) [2025-04-14 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902718', 'tblTempUsageDetail_20' ) start [2025-04-14 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902718', 'tblTempUsageDetail_20' ) end [2025-04-14 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:58:21] Production.INFO: ==20795== Releasing lock... [2025-04-14 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 21:59:05 [end_date_ymd] => 2025-04-14 00:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 21:59:05' and `end` < '2025-04-14 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-04-14 00:59:18] Production.INFO: count ==155 [2025-04-14 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-13 21:59:05 - End Time 2025-04-14 00:59:05 [2025-04-14 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902723', 'tblTempUsageDetail_20' ) start [2025-04-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902723', 'tblTempUsageDetail_20' ) end [2025-04-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902723', 'tblTempVendorCDR_20' ) start [2025-04-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902723', 'tblTempVendorCDR_20' ) end [2025-04-14 00:59:18] Production.INFO: ProcessCDR(1,14902723,1,1,2) [2025-04-14 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902723', 'tblTempUsageDetail_20' ) start [2025-04-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902723', 'tblTempUsageDetail_20' ) end [2025-04-14 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 00:59:21] Production.INFO: ==20914== Releasing lock... [2025-04-14 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 00:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:00:05 [end_date_ymd] => 2025-04-14 01:00:05 [RateCDR] => 1 ) [2025-04-14 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:00:05' and `end` < '2025-04-14 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:00:18] Production.INFO: count ==161 [2025-04-14 01:00:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:00:05 - End Time 2025-04-14 01:00:05 [2025-04-14 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902728', 'tblTempUsageDetail_20' ) start [2025-04-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902728', 'tblTempUsageDetail_20' ) end [2025-04-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902728', 'tblTempVendorCDR_20' ) start [2025-04-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902728', 'tblTempVendorCDR_20' ) end [2025-04-14 01:00:18] Production.INFO: ProcessCDR(1,14902728,1,1,2) [2025-04-14 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902728', 'tblTempUsageDetail_20' ) start [2025-04-14 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902728', 'tblTempUsageDetail_20' ) end [2025-04-14 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:00:21] Production.INFO: ==21027== Releasing lock... [2025-04-14 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:00:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:01:05 [end_date_ymd] => 2025-04-14 01:01:05 [RateCDR] => 1 ) [2025-04-14 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:01:05' and `end` < '2025-04-14 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:01:18] Production.INFO: count ==163 [2025-04-14 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:01:05 - End Time 2025-04-14 01:01:05 [2025-04-14 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902734', 'tblTempUsageDetail_20' ) start [2025-04-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902734', 'tblTempUsageDetail_20' ) end [2025-04-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902734', 'tblTempVendorCDR_20' ) start [2025-04-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902734', 'tblTempVendorCDR_20' ) end [2025-04-14 01:01:18] Production.INFO: ProcessCDR(1,14902734,1,1,2) [2025-04-14 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902734', 'tblTempUsageDetail_20' ) start [2025-04-14 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902734', 'tblTempUsageDetail_20' ) end [2025-04-14 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:01:21] Production.INFO: ==21160== Releasing lock... [2025-04-14 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:02:05 [end_date_ymd] => 2025-04-14 01:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:02:05' and `end` < '2025-04-14 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-04-14 01:02:17] Production.INFO: count ==163 [2025-04-14 01:02:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:02:05 - End Time 2025-04-14 01:02:05 [2025-04-14 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902739', 'tblTempUsageDetail_20' ) start [2025-04-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902739', 'tblTempUsageDetail_20' ) end [2025-04-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902739', 'tblTempVendorCDR_20' ) start [2025-04-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902739', 'tblTempVendorCDR_20' ) end [2025-04-14 01:02:17] Production.INFO: ProcessCDR(1,14902739,1,1,2) [2025-04-14 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902739', 'tblTempUsageDetail_20' ) start [2025-04-14 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902739', 'tblTempUsageDetail_20' ) end [2025-04-14 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:02:21] Production.INFO: ==21283== Releasing lock... [2025-04-14 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:03:05 [end_date_ymd] => 2025-04-14 01:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:03:05' and `end` < '2025-04-14 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-04-14 01:03:18] Production.INFO: count ==164 [2025-04-14 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:03:05 - End Time 2025-04-14 01:03:05 [2025-04-14 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902744', 'tblTempUsageDetail_20' ) start [2025-04-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902744', 'tblTempUsageDetail_20' ) end [2025-04-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902744', 'tblTempVendorCDR_20' ) start [2025-04-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902744', 'tblTempVendorCDR_20' ) end [2025-04-14 01:03:18] Production.INFO: ProcessCDR(1,14902744,1,1,2) [2025-04-14 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902744', 'tblTempUsageDetail_20' ) start [2025-04-14 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902744', 'tblTempUsageDetail_20' ) end [2025-04-14 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:03:22] Production.INFO: ==21407== Releasing lock... [2025-04-14 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:04:06 [end_date_ymd] => 2025-04-14 01:04:06 [RateCDR] => 1 ) [2025-04-14 01: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-04-13 22:04:06' and `end` < '2025-04-14 01: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-04-14 01:04:19] Production.INFO: count ==163 [2025-04-14 01:04:19] Production.ERROR: pbx CDR StartTime 2025-04-13 22:04:06 - End Time 2025-04-14 01:04:06 [2025-04-14 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902749', 'tblTempUsageDetail_20' ) start [2025-04-14 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902749', 'tblTempUsageDetail_20' ) end [2025-04-14 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902749', 'tblTempVendorCDR_20' ) start [2025-04-14 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902749', 'tblTempVendorCDR_20' ) end [2025-04-14 01:04:19] Production.INFO: ProcessCDR(1,14902749,1,1,2) [2025-04-14 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902749', 'tblTempUsageDetail_20' ) start [2025-04-14 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902749', 'tblTempUsageDetail_20' ) end [2025-04-14 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:04:22] Production.INFO: ==21526== Releasing lock... [2025-04-14 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:05:05 [end_date_ymd] => 2025-04-14 01:05:05 [RateCDR] => 1 ) [2025-04-14 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:05:05' and `end` < '2025-04-14 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:05:18] Production.INFO: count ==163 [2025-04-14 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:05:05 - End Time 2025-04-14 01:05:05 [2025-04-14 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902754', 'tblTempUsageDetail_20' ) start [2025-04-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902754', 'tblTempUsageDetail_20' ) end [2025-04-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902754', 'tblTempVendorCDR_20' ) start [2025-04-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902754', 'tblTempVendorCDR_20' ) end [2025-04-14 01:05:18] Production.INFO: ProcessCDR(1,14902754,1,1,2) [2025-04-14 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902754', 'tblTempUsageDetail_20' ) start [2025-04-14 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902754', 'tblTempUsageDetail_20' ) end [2025-04-14 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:05:22] Production.INFO: ==21678== Releasing lock... [2025-04-14 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:06:06 [end_date_ymd] => 2025-04-14 01:06:06 [RateCDR] => 1 ) [2025-04-14 01: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-04-13 22:06:06' and `end` < '2025-04-14 01: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-04-14 01:06:19] Production.INFO: count ==164 [2025-04-14 01:06:19] Production.ERROR: pbx CDR StartTime 2025-04-13 22:06:06 - End Time 2025-04-14 01:06:06 [2025-04-14 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902759', 'tblTempUsageDetail_20' ) start [2025-04-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902759', 'tblTempUsageDetail_20' ) end [2025-04-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902759', 'tblTempVendorCDR_20' ) start [2025-04-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902759', 'tblTempVendorCDR_20' ) end [2025-04-14 01:06:19] Production.INFO: ProcessCDR(1,14902759,1,1,2) [2025-04-14 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902759', 'tblTempUsageDetail_20' ) start [2025-04-14 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902759', 'tblTempUsageDetail_20' ) end [2025-04-14 01:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:06:24] Production.INFO: ==21800== Releasing lock... [2025-04-14 01:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:06:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:07:05 [end_date_ymd] => 2025-04-14 01:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:07:05' and `end` < '2025-04-14 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-04-14 01:07:17] Production.INFO: count ==162 [2025-04-14 01:07:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:07:05 - End Time 2025-04-14 01:07:05 [2025-04-14 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902764', 'tblTempUsageDetail_20' ) start [2025-04-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902764', 'tblTempUsageDetail_20' ) end [2025-04-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902764', 'tblTempVendorCDR_20' ) start [2025-04-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902764', 'tblTempVendorCDR_20' ) end [2025-04-14 01:07:17] Production.INFO: ProcessCDR(1,14902764,1,1,2) [2025-04-14 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902764', 'tblTempUsageDetail_20' ) start [2025-04-14 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902764', 'tblTempUsageDetail_20' ) end [2025-04-14 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:07:22] Production.INFO: ==21915== Releasing lock... [2025-04-14 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:08:06 [end_date_ymd] => 2025-04-14 01:08:06 [RateCDR] => 1 ) [2025-04-14 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:08:06' and `end` < '2025-04-14 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:08:18] Production.INFO: count ==161 [2025-04-14 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:08:06 - End Time 2025-04-14 01:08:06 [2025-04-14 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902769', 'tblTempUsageDetail_20' ) start [2025-04-14 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902769', 'tblTempUsageDetail_20' ) end [2025-04-14 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902769', 'tblTempVendorCDR_20' ) start [2025-04-14 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902769', 'tblTempVendorCDR_20' ) end [2025-04-14 01:08:18] Production.INFO: ProcessCDR(1,14902769,1,1,2) [2025-04-14 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902769', 'tblTempUsageDetail_20' ) start [2025-04-14 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902769', 'tblTempUsageDetail_20' ) end [2025-04-14 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:08:22] Production.INFO: ==22048== Releasing lock... [2025-04-14 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:09:05 [end_date_ymd] => 2025-04-14 01:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:09:05' and `end` < '2025-04-14 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-04-14 01:09:18] Production.INFO: count ==159 [2025-04-14 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:09:05 - End Time 2025-04-14 01:09:05 [2025-04-14 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902774', 'tblTempUsageDetail_20' ) start [2025-04-14 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902774', 'tblTempUsageDetail_20' ) end [2025-04-14 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902774', 'tblTempVendorCDR_20' ) start [2025-04-14 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902774', 'tblTempVendorCDR_20' ) end [2025-04-14 01:09:18] Production.INFO: ProcessCDR(1,14902774,1,1,2) [2025-04-14 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902774', 'tblTempUsageDetail_20' ) start [2025-04-14 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902774', 'tblTempUsageDetail_20' ) end [2025-04-14 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:09:21] Production.INFO: ==22160== Releasing lock... [2025-04-14 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:10:06 [end_date_ymd] => 2025-04-14 01:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:10:06' and `end` < '2025-04-14 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-04-14 01:10:19] Production.INFO: count ==167 [2025-04-14 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-13 22:10:06 - End Time 2025-04-14 01:10:06 [2025-04-14 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902780', 'tblTempUsageDetail_20' ) start [2025-04-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902780', 'tblTempUsageDetail_20' ) end [2025-04-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902780', 'tblTempVendorCDR_20' ) start [2025-04-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902780', 'tblTempVendorCDR_20' ) end [2025-04-14 01:10:19] Production.INFO: ProcessCDR(1,14902780,1,1,2) [2025-04-14 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902780', 'tblTempUsageDetail_20' ) start [2025-04-14 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902780', 'tblTempUsageDetail_20' ) end [2025-04-14 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:10:23] Production.INFO: ==22280== Releasing lock... [2025-04-14 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:11:05 [end_date_ymd] => 2025-04-14 01:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:11:05' and `end` < '2025-04-14 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-04-14 01:11:18] Production.INFO: count ==167 [2025-04-14 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:11:05 - End Time 2025-04-14 01:11:05 [2025-04-14 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902785', 'tblTempUsageDetail_20' ) start [2025-04-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902785', 'tblTempUsageDetail_20' ) end [2025-04-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902785', 'tblTempVendorCDR_20' ) start [2025-04-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902785', 'tblTempVendorCDR_20' ) end [2025-04-14 01:11:18] Production.INFO: ProcessCDR(1,14902785,1,1,2) [2025-04-14 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902785', 'tblTempUsageDetail_20' ) start [2025-04-14 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902785', 'tblTempUsageDetail_20' ) end [2025-04-14 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:11:21] Production.INFO: ==22402== Releasing lock... [2025-04-14 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:12:05 [end_date_ymd] => 2025-04-14 01:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:12:05' and `end` < '2025-04-14 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-04-14 01:12:18] Production.INFO: count ==167 [2025-04-14 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:12:05 - End Time 2025-04-14 01:12:05 [2025-04-14 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902790', 'tblTempUsageDetail_20' ) start [2025-04-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902790', 'tblTempUsageDetail_20' ) end [2025-04-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902790', 'tblTempVendorCDR_20' ) start [2025-04-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902790', 'tblTempVendorCDR_20' ) end [2025-04-14 01:12:18] Production.INFO: ProcessCDR(1,14902790,1,1,2) [2025-04-14 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902790', 'tblTempUsageDetail_20' ) start [2025-04-14 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902790', 'tblTempUsageDetail_20' ) end [2025-04-14 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:12:21] Production.INFO: ==22519== Releasing lock... [2025-04-14 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:13:05 [end_date_ymd] => 2025-04-14 01:13:05 [RateCDR] => 1 ) [2025-04-14 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:13:05' and `end` < '2025-04-14 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:13:17] Production.INFO: count ==166 [2025-04-14 01:13:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:13:05 - End Time 2025-04-14 01:13:05 [2025-04-14 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902795', 'tblTempUsageDetail_20' ) start [2025-04-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902795', 'tblTempUsageDetail_20' ) end [2025-04-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902795', 'tblTempVendorCDR_20' ) start [2025-04-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902795', 'tblTempVendorCDR_20' ) end [2025-04-14 01:13:17] Production.INFO: ProcessCDR(1,14902795,1,1,2) [2025-04-14 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902795', 'tblTempUsageDetail_20' ) start [2025-04-14 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902795', 'tblTempUsageDetail_20' ) end [2025-04-14 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:13:21] Production.INFO: ==22633== Releasing lock... [2025-04-14 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:14:05 [end_date_ymd] => 2025-04-14 01:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:14:05' and `end` < '2025-04-14 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-04-14 01:14:18] Production.INFO: count ==164 [2025-04-14 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:14:05 - End Time 2025-04-14 01:14:05 [2025-04-14 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902800', 'tblTempUsageDetail_20' ) start [2025-04-14 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902800', 'tblTempUsageDetail_20' ) end [2025-04-14 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902800', 'tblTempVendorCDR_20' ) start [2025-04-14 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902800', 'tblTempVendorCDR_20' ) end [2025-04-14 01:14:18] Production.INFO: ProcessCDR(1,14902800,1,1,2) [2025-04-14 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902800', 'tblTempUsageDetail_20' ) start [2025-04-14 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902800', 'tblTempUsageDetail_20' ) end [2025-04-14 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:14:21] Production.INFO: ==22739== Releasing lock... [2025-04-14 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:15:05 [end_date_ymd] => 2025-04-14 01:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:15:05' and `end` < '2025-04-14 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-04-14 01:15:18] Production.INFO: count ==163 [2025-04-14 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:15:05 - End Time 2025-04-14 01:15:05 [2025-04-14 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902805', 'tblTempUsageDetail_20' ) start [2025-04-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902805', 'tblTempUsageDetail_20' ) end [2025-04-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902805', 'tblTempVendorCDR_20' ) start [2025-04-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902805', 'tblTempVendorCDR_20' ) end [2025-04-14 01:15:18] Production.INFO: ProcessCDR(1,14902805,1,1,2) [2025-04-14 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902805', 'tblTempUsageDetail_20' ) start [2025-04-14 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902805', 'tblTempUsageDetail_20' ) end [2025-04-14 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:15:21] Production.INFO: ==22845== Releasing lock... [2025-04-14 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:16:06 [end_date_ymd] => 2025-04-14 01:16:06 [RateCDR] => 1 ) [2025-04-14 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:16:06' and `end` < '2025-04-14 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:16:18] Production.INFO: count ==159 [2025-04-14 01:16:19] Production.ERROR: pbx CDR StartTime 2025-04-13 22:16:06 - End Time 2025-04-14 01:16:06 [2025-04-14 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902810', 'tblTempUsageDetail_20' ) start [2025-04-14 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902810', 'tblTempUsageDetail_20' ) end [2025-04-14 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902810', 'tblTempVendorCDR_20' ) start [2025-04-14 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902810', 'tblTempVendorCDR_20' ) end [2025-04-14 01:16:19] Production.INFO: ProcessCDR(1,14902810,1,1,2) [2025-04-14 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902810', 'tblTempUsageDetail_20' ) start [2025-04-14 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902810', 'tblTempUsageDetail_20' ) end [2025-04-14 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:16:22] Production.INFO: ==22949== Releasing lock... [2025-04-14 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:16:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:17:05 [end_date_ymd] => 2025-04-14 01:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:17:05' and `end` < '2025-04-14 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-04-14 01:17:18] Production.INFO: count ==159 [2025-04-14 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:17:05 - End Time 2025-04-14 01:17:05 [2025-04-14 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902815', 'tblTempUsageDetail_20' ) start [2025-04-14 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902815', 'tblTempUsageDetail_20' ) end [2025-04-14 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902815', 'tblTempVendorCDR_20' ) start [2025-04-14 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902815', 'tblTempVendorCDR_20' ) end [2025-04-14 01:17:18] Production.INFO: ProcessCDR(1,14902815,1,1,2) [2025-04-14 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902815', 'tblTempUsageDetail_20' ) start [2025-04-14 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902815', 'tblTempUsageDetail_20' ) end [2025-04-14 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:17:21] Production.INFO: ==23053== Releasing lock... [2025-04-14 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:17:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:18:05 [end_date_ymd] => 2025-04-14 01:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:18:05' and `end` < '2025-04-14 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-04-14 01:18:18] Production.INFO: count ==191 [2025-04-14 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:18:05 - End Time 2025-04-14 01:18:05 [2025-04-14 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902820', 'tblTempUsageDetail_20' ) start [2025-04-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902820', 'tblTempUsageDetail_20' ) end [2025-04-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902820', 'tblTempVendorCDR_20' ) start [2025-04-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902820', 'tblTempVendorCDR_20' ) end [2025-04-14 01:18:18] Production.INFO: ProcessCDR(1,14902820,1,1,2) [2025-04-14 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902820', 'tblTempUsageDetail_20' ) start [2025-04-14 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902820', 'tblTempUsageDetail_20' ) end [2025-04-14 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:18:21] Production.INFO: ==23172== Releasing lock... [2025-04-14 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:19:05 [end_date_ymd] => 2025-04-14 01:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:19:05' and `end` < '2025-04-14 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-04-14 01:19:18] Production.INFO: count ==191 [2025-04-14 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:19:05 - End Time 2025-04-14 01:19:05 [2025-04-14 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902825', 'tblTempUsageDetail_20' ) start [2025-04-14 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902825', 'tblTempUsageDetail_20' ) end [2025-04-14 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902825', 'tblTempVendorCDR_20' ) start [2025-04-14 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902825', 'tblTempVendorCDR_20' ) end [2025-04-14 01:19:18] Production.INFO: ProcessCDR(1,14902825,1,1,2) [2025-04-14 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902825', 'tblTempUsageDetail_20' ) start [2025-04-14 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902825', 'tblTempUsageDetail_20' ) end [2025-04-14 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:19:21] Production.INFO: ==23276== Releasing lock... [2025-04-14 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:20:06 [end_date_ymd] => 2025-04-14 01:20:06 [RateCDR] => 1 ) [2025-04-14 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:20:06' and `end` < '2025-04-14 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:20:19] Production.INFO: count ==192 [2025-04-14 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-13 22:20:06 - End Time 2025-04-14 01:20:06 [2025-04-14 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902830', 'tblTempUsageDetail_20' ) start [2025-04-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902830', 'tblTempUsageDetail_20' ) end [2025-04-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902830', 'tblTempVendorCDR_20' ) start [2025-04-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902830', 'tblTempVendorCDR_20' ) end [2025-04-14 01:20:19] Production.INFO: ProcessCDR(1,14902830,1,1,2) [2025-04-14 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902830', 'tblTempUsageDetail_20' ) start [2025-04-14 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902830', 'tblTempUsageDetail_20' ) end [2025-04-14 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:20:22] Production.INFO: ==23424== Releasing lock... [2025-04-14 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:21:06 [end_date_ymd] => 2025-04-14 01:21:06 [RateCDR] => 1 ) [2025-04-14 01: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-04-13 22:21:06' and `end` < '2025-04-14 01: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-04-14 01:21:18] Production.INFO: count ==192 [2025-04-14 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:21:06 - End Time 2025-04-14 01:21:06 [2025-04-14 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902836', 'tblTempUsageDetail_20' ) start [2025-04-14 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902836', 'tblTempUsageDetail_20' ) end [2025-04-14 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902836', 'tblTempVendorCDR_20' ) start [2025-04-14 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902836', 'tblTempVendorCDR_20' ) end [2025-04-14 01:21:18] Production.INFO: ProcessCDR(1,14902836,1,1,2) [2025-04-14 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902836', 'tblTempUsageDetail_20' ) start [2025-04-14 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902836', 'tblTempUsageDetail_20' ) end [2025-04-14 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:21:22] Production.INFO: ==23532== Releasing lock... [2025-04-14 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:22:05 [end_date_ymd] => 2025-04-14 01:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:22:05' and `end` < '2025-04-14 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-04-14 01:22:18] Production.INFO: count ==191 [2025-04-14 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:22:05 - End Time 2025-04-14 01:22:05 [2025-04-14 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902841', 'tblTempUsageDetail_20' ) start [2025-04-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902841', 'tblTempUsageDetail_20' ) end [2025-04-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902841', 'tblTempVendorCDR_20' ) start [2025-04-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902841', 'tblTempVendorCDR_20' ) end [2025-04-14 01:22:18] Production.INFO: ProcessCDR(1,14902841,1,1,2) [2025-04-14 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902841', 'tblTempUsageDetail_20' ) start [2025-04-14 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902841', 'tblTempUsageDetail_20' ) end [2025-04-14 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:22:21] Production.INFO: ==23641== Releasing lock... [2025-04-14 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:23:05 [end_date_ymd] => 2025-04-14 01:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:23:05' and `end` < '2025-04-14 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-04-14 01:23:18] Production.INFO: count ==191 [2025-04-14 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:23:05 - End Time 2025-04-14 01:23:05 [2025-04-14 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902846', 'tblTempUsageDetail_20' ) start [2025-04-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902846', 'tblTempUsageDetail_20' ) end [2025-04-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902846', 'tblTempVendorCDR_20' ) start [2025-04-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902846', 'tblTempVendorCDR_20' ) end [2025-04-14 01:23:18] Production.INFO: ProcessCDR(1,14902846,1,1,2) [2025-04-14 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902846', 'tblTempUsageDetail_20' ) start [2025-04-14 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902846', 'tblTempUsageDetail_20' ) end [2025-04-14 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:23:21] Production.INFO: ==23749== Releasing lock... [2025-04-14 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:24:05 [end_date_ymd] => 2025-04-14 01:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:24:05' and `end` < '2025-04-14 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-04-14 01:24:18] Production.INFO: count ==186 [2025-04-14 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:24:05 - End Time 2025-04-14 01:24:05 [2025-04-14 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902851', 'tblTempUsageDetail_20' ) start [2025-04-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902851', 'tblTempUsageDetail_20' ) end [2025-04-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902851', 'tblTempVendorCDR_20' ) start [2025-04-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902851', 'tblTempVendorCDR_20' ) end [2025-04-14 01:24:18] Production.INFO: ProcessCDR(1,14902851,1,1,2) [2025-04-14 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902851', 'tblTempUsageDetail_20' ) start [2025-04-14 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902851', 'tblTempUsageDetail_20' ) end [2025-04-14 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:24:21] Production.INFO: ==23858== Releasing lock... [2025-04-14 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:25:05 [end_date_ymd] => 2025-04-14 01:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:25:05' and `end` < '2025-04-14 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-04-14 01:25:18] Production.INFO: count ==185 [2025-04-14 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:25:05 - End Time 2025-04-14 01:25:05 [2025-04-14 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902856', 'tblTempUsageDetail_20' ) start [2025-04-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902856', 'tblTempUsageDetail_20' ) end [2025-04-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902856', 'tblTempVendorCDR_20' ) start [2025-04-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902856', 'tblTempVendorCDR_20' ) end [2025-04-14 01:25:18] Production.INFO: ProcessCDR(1,14902856,1,1,2) [2025-04-14 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902856', 'tblTempUsageDetail_20' ) start [2025-04-14 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902856', 'tblTempUsageDetail_20' ) end [2025-04-14 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:25:22] Production.INFO: ==23960== Releasing lock... [2025-04-14 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:26:05 [end_date_ymd] => 2025-04-14 01:26:05 [RateCDR] => 1 ) [2025-04-14 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:26:05' and `end` < '2025-04-14 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:26:18] Production.INFO: count ==187 [2025-04-14 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:26:05 - End Time 2025-04-14 01:26:05 [2025-04-14 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902861', 'tblTempUsageDetail_20' ) start [2025-04-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902861', 'tblTempUsageDetail_20' ) end [2025-04-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902861', 'tblTempVendorCDR_20' ) start [2025-04-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902861', 'tblTempVendorCDR_20' ) end [2025-04-14 01:26:18] Production.INFO: ProcessCDR(1,14902861,1,1,2) [2025-04-14 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902861', 'tblTempUsageDetail_20' ) start [2025-04-14 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902861', 'tblTempUsageDetail_20' ) end [2025-04-14 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:26:21] Production.INFO: ==24067== Releasing lock... [2025-04-14 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:27:05 [end_date_ymd] => 2025-04-14 01:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:27:05' and `end` < '2025-04-14 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-04-14 01:27:18] Production.INFO: count ==186 [2025-04-14 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:27:05 - End Time 2025-04-14 01:27:05 [2025-04-14 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902866', 'tblTempUsageDetail_20' ) start [2025-04-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902866', 'tblTempUsageDetail_20' ) end [2025-04-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902866', 'tblTempVendorCDR_20' ) start [2025-04-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902866', 'tblTempVendorCDR_20' ) end [2025-04-14 01:27:18] Production.INFO: ProcessCDR(1,14902866,1,1,2) [2025-04-14 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902866', 'tblTempUsageDetail_20' ) start [2025-04-14 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902866', 'tblTempUsageDetail_20' ) end [2025-04-14 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:27:21] Production.INFO: ==24171== Releasing lock... [2025-04-14 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:28:06 [end_date_ymd] => 2025-04-14 01:28:06 [RateCDR] => 1 ) [2025-04-14 01: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-04-13 22:28:06' and `end` < '2025-04-14 01: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-04-14 01:28:18] Production.INFO: count ==185 [2025-04-14 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:28:06 - End Time 2025-04-14 01:28:06 [2025-04-14 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902871', 'tblTempUsageDetail_20' ) start [2025-04-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902871', 'tblTempUsageDetail_20' ) end [2025-04-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902871', 'tblTempVendorCDR_20' ) start [2025-04-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902871', 'tblTempVendorCDR_20' ) end [2025-04-14 01:28:18] Production.INFO: ProcessCDR(1,14902871,1,1,2) [2025-04-14 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902871', 'tblTempUsageDetail_20' ) start [2025-04-14 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902871', 'tblTempUsageDetail_20' ) end [2025-04-14 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:28:22] Production.INFO: ==24278== Releasing lock... [2025-04-14 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:29:05 [end_date_ymd] => 2025-04-14 01:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:29:05' and `end` < '2025-04-14 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-04-14 01:29:17] Production.INFO: count ==184 [2025-04-14 01:29:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:29:05 - End Time 2025-04-14 01:29:05 [2025-04-14 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902876', 'tblTempUsageDetail_20' ) start [2025-04-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902876', 'tblTempUsageDetail_20' ) end [2025-04-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902876', 'tblTempVendorCDR_20' ) start [2025-04-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902876', 'tblTempVendorCDR_20' ) end [2025-04-14 01:29:17] Production.INFO: ProcessCDR(1,14902876,1,1,2) [2025-04-14 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902876', 'tblTempUsageDetail_20' ) start [2025-04-14 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902876', 'tblTempUsageDetail_20' ) end [2025-04-14 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:29:21] Production.INFO: ==24381== Releasing lock... [2025-04-14 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:30:06 [end_date_ymd] => 2025-04-14 01:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:30:06' and `end` < '2025-04-14 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-04-14 01:30:19] Production.INFO: count ==182 [2025-04-14 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-13 22:30:06 - End Time 2025-04-14 01:30:06 [2025-04-14 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902882', 'tblTempUsageDetail_20' ) start [2025-04-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902882', 'tblTempUsageDetail_20' ) end [2025-04-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902882', 'tblTempVendorCDR_20' ) start [2025-04-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902882', 'tblTempVendorCDR_20' ) end [2025-04-14 01:30:19] Production.INFO: ProcessCDR(1,14902882,1,1,2) [2025-04-14 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902882', 'tblTempUsageDetail_20' ) start [2025-04-14 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902882', 'tblTempUsageDetail_20' ) end [2025-04-14 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:30:22] Production.INFO: ==24492== Releasing lock... [2025-04-14 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:31:04 [end_date_ymd] => 2025-04-14 01:31:04 [RateCDR] => 1 ) [2025-04-14 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:31:04' and `end` < '2025-04-14 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:31:17] Production.INFO: count ==181 [2025-04-14 01:31:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:31:04 - End Time 2025-04-14 01:31:04 [2025-04-14 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902884', 'tblTempUsageDetail_20' ) start [2025-04-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902884', 'tblTempUsageDetail_20' ) end [2025-04-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902884', 'tblTempVendorCDR_20' ) start [2025-04-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902884', 'tblTempVendorCDR_20' ) end [2025-04-14 01:31:17] Production.INFO: ProcessCDR(1,14902884,1,1,2) [2025-04-14 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902884', 'tblTempUsageDetail_20' ) start [2025-04-14 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902884', 'tblTempUsageDetail_20' ) end [2025-04-14 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:31:20] Production.INFO: ==24599== Releasing lock... [2025-04-14 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:32:05 [end_date_ymd] => 2025-04-14 01:32:05 [RateCDR] => 1 ) [2025-04-14 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:32:05' and `end` < '2025-04-14 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:32:18] Production.INFO: count ==181 [2025-04-14 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:32:05 - End Time 2025-04-14 01:32:05 [2025-04-14 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902892', 'tblTempUsageDetail_20' ) start [2025-04-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902892', 'tblTempUsageDetail_20' ) end [2025-04-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902892', 'tblTempVendorCDR_20' ) start [2025-04-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902892', 'tblTempVendorCDR_20' ) end [2025-04-14 01:32:18] Production.INFO: ProcessCDR(1,14902892,1,1,2) [2025-04-14 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902892', 'tblTempUsageDetail_20' ) start [2025-04-14 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902892', 'tblTempUsageDetail_20' ) end [2025-04-14 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:32:21] Production.INFO: ==24703== Releasing lock... [2025-04-14 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:33:04 [end_date_ymd] => 2025-04-14 01:33:04 [RateCDR] => 1 ) [2025-04-14 01: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-04-13 22:33:04' and `end` < '2025-04-14 01: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-04-14 01:33:17] Production.INFO: count ==180 [2025-04-14 01:33:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:33:04 - End Time 2025-04-14 01:33:04 [2025-04-14 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902897', 'tblTempUsageDetail_20' ) start [2025-04-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902897', 'tblTempUsageDetail_20' ) end [2025-04-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902897', 'tblTempVendorCDR_20' ) start [2025-04-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902897', 'tblTempVendorCDR_20' ) end [2025-04-14 01:33:17] Production.INFO: ProcessCDR(1,14902897,1,1,2) [2025-04-14 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902897', 'tblTempUsageDetail_20' ) start [2025-04-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902897', 'tblTempUsageDetail_20' ) end [2025-04-14 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:33:21] Production.INFO: ==24809== Releasing lock... [2025-04-14 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:34:05 [end_date_ymd] => 2025-04-14 01:34:05 [RateCDR] => 1 ) [2025-04-14 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:34:05' and `end` < '2025-04-14 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:34:18] Production.INFO: count ==180 [2025-04-14 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:34:05 - End Time 2025-04-14 01:34:05 [2025-04-14 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902902', 'tblTempUsageDetail_20' ) start [2025-04-14 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902902', 'tblTempUsageDetail_20' ) end [2025-04-14 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902902', 'tblTempVendorCDR_20' ) start [2025-04-14 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902902', 'tblTempVendorCDR_20' ) end [2025-04-14 01:34:18] Production.INFO: ProcessCDR(1,14902902,1,1,2) [2025-04-14 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902902', 'tblTempUsageDetail_20' ) start [2025-04-14 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902902', 'tblTempUsageDetail_20' ) end [2025-04-14 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:34:21] Production.INFO: ==24915== Releasing lock... [2025-04-14 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:35:04 [end_date_ymd] => 2025-04-14 01:35:04 [RateCDR] => 1 ) [2025-04-14 01: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-04-13 22:35:04' and `end` < '2025-04-14 01: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-04-14 01:35:17] Production.INFO: count ==180 [2025-04-14 01:35:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:35:04 - End Time 2025-04-14 01:35:04 [2025-04-14 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902907', 'tblTempUsageDetail_20' ) start [2025-04-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902907', 'tblTempUsageDetail_20' ) end [2025-04-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902907', 'tblTempVendorCDR_20' ) start [2025-04-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902907', 'tblTempVendorCDR_20' ) end [2025-04-14 01:35:17] Production.INFO: ProcessCDR(1,14902907,1,1,2) [2025-04-14 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902907', 'tblTempUsageDetail_20' ) start [2025-04-14 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902907', 'tblTempUsageDetail_20' ) end [2025-04-14 01:35:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:35:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:35:20] Production.INFO: ==25066== Releasing lock... [2025-04-14 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:36:06 [end_date_ymd] => 2025-04-14 01:36:06 [RateCDR] => 1 ) [2025-04-14 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:36:06' and `end` < '2025-04-14 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:36:18] Production.INFO: count ==180 [2025-04-14 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:36:06 - End Time 2025-04-14 01:36:06 [2025-04-14 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902912', 'tblTempUsageDetail_20' ) start [2025-04-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902912', 'tblTempUsageDetail_20' ) end [2025-04-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902912', 'tblTempVendorCDR_20' ) start [2025-04-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902912', 'tblTempVendorCDR_20' ) end [2025-04-14 01:36:18] Production.INFO: ProcessCDR(1,14902912,1,1,2) [2025-04-14 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902912', 'tblTempUsageDetail_20' ) start [2025-04-14 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902912', 'tblTempUsageDetail_20' ) end [2025-04-14 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:36:22] Production.INFO: ==25177== Releasing lock... [2025-04-14 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:37:05 [end_date_ymd] => 2025-04-14 01:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:37:05' and `end` < '2025-04-14 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-04-14 01:37:17] Production.INFO: count ==180 [2025-04-14 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:37:05 - End Time 2025-04-14 01:37:05 [2025-04-14 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902917', 'tblTempUsageDetail_20' ) start [2025-04-14 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902917', 'tblTempUsageDetail_20' ) end [2025-04-14 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902917', 'tblTempVendorCDR_20' ) start [2025-04-14 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902917', 'tblTempVendorCDR_20' ) end [2025-04-14 01:37:17] Production.INFO: ProcessCDR(1,14902917,1,1,2) [2025-04-14 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902917', 'tblTempUsageDetail_20' ) start [2025-04-14 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902917', 'tblTempUsageDetail_20' ) end [2025-04-14 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:37:21] Production.INFO: ==25268== Releasing lock... [2025-04-14 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:38:06 [end_date_ymd] => 2025-04-14 01:38:06 [RateCDR] => 1 ) [2025-04-14 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:38:06' and `end` < '2025-04-14 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:38:18] Production.INFO: count ==181 [2025-04-14 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:38:06 - End Time 2025-04-14 01:38:06 [2025-04-14 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902922', 'tblTempUsageDetail_20' ) start [2025-04-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902922', 'tblTempUsageDetail_20' ) end [2025-04-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902922', 'tblTempVendorCDR_20' ) start [2025-04-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902922', 'tblTempVendorCDR_20' ) end [2025-04-14 01:38:18] Production.INFO: ProcessCDR(1,14902922,1,1,2) [2025-04-14 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902922', 'tblTempUsageDetail_20' ) start [2025-04-14 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902922', 'tblTempUsageDetail_20' ) end [2025-04-14 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:38:23] Production.INFO: ==25343== Releasing lock... [2025-04-14 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:38:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:39:05 [end_date_ymd] => 2025-04-14 01:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:39:05' and `end` < '2025-04-14 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-04-14 01:39:18] Production.INFO: count ==179 [2025-04-14 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:39:05 - End Time 2025-04-14 01:39:05 [2025-04-14 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902927', 'tblTempUsageDetail_20' ) start [2025-04-14 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902927', 'tblTempUsageDetail_20' ) end [2025-04-14 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902927', 'tblTempVendorCDR_20' ) start [2025-04-14 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902927', 'tblTempVendorCDR_20' ) end [2025-04-14 01:39:18] Production.INFO: ProcessCDR(1,14902927,1,1,2) [2025-04-14 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902927', 'tblTempUsageDetail_20' ) start [2025-04-14 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902927', 'tblTempUsageDetail_20' ) end [2025-04-14 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:39:21] Production.INFO: ==25422== Releasing lock... [2025-04-14 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:40:06 [end_date_ymd] => 2025-04-14 01:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:40:06' and `end` < '2025-04-14 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-04-14 01:40:18] Production.INFO: count ==187 [2025-04-14 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:40:06 - End Time 2025-04-14 01:40:06 [2025-04-14 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902933', 'tblTempUsageDetail_20' ) start [2025-04-14 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902933', 'tblTempUsageDetail_20' ) end [2025-04-14 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902933', 'tblTempVendorCDR_20' ) start [2025-04-14 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902933', 'tblTempVendorCDR_20' ) end [2025-04-14 01:40:18] Production.INFO: ProcessCDR(1,14902933,1,1,2) [2025-04-14 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902933', 'tblTempUsageDetail_20' ) start [2025-04-14 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902933', 'tblTempUsageDetail_20' ) end [2025-04-14 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:40:22] Production.INFO: ==25501== Releasing lock... [2025-04-14 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:41:05 [end_date_ymd] => 2025-04-14 01:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:41:05' and `end` < '2025-04-14 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-04-14 01:41:18] Production.INFO: count ==186 [2025-04-14 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:41:05 - End Time 2025-04-14 01:41:05 [2025-04-14 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902938', 'tblTempUsageDetail_20' ) start [2025-04-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902938', 'tblTempUsageDetail_20' ) end [2025-04-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902938', 'tblTempVendorCDR_20' ) start [2025-04-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902938', 'tblTempVendorCDR_20' ) end [2025-04-14 01:41:18] Production.INFO: ProcessCDR(1,14902938,1,1,2) [2025-04-14 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902938', 'tblTempUsageDetail_20' ) start [2025-04-14 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902938', 'tblTempUsageDetail_20' ) end [2025-04-14 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:41:21] Production.INFO: ==25584== Releasing lock... [2025-04-14 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:42:05 [end_date_ymd] => 2025-04-14 01:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:42:05' and `end` < '2025-04-14 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-04-14 01:42:18] Production.INFO: count ==186 [2025-04-14 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:42:05 - End Time 2025-04-14 01:42:05 [2025-04-14 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902943', 'tblTempUsageDetail_20' ) start [2025-04-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902943', 'tblTempUsageDetail_20' ) end [2025-04-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902943', 'tblTempVendorCDR_20' ) start [2025-04-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902943', 'tblTempVendorCDR_20' ) end [2025-04-14 01:42:18] Production.INFO: ProcessCDR(1,14902943,1,1,2) [2025-04-14 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902943', 'tblTempUsageDetail_20' ) start [2025-04-14 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902943', 'tblTempUsageDetail_20' ) end [2025-04-14 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:42:22] Production.INFO: ==25664== Releasing lock... [2025-04-14 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:43:05 [end_date_ymd] => 2025-04-14 01:43:05 [RateCDR] => 1 ) [2025-04-14 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:43:05' and `end` < '2025-04-14 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:43:18] Production.INFO: count ==186 [2025-04-14 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:43:05 - End Time 2025-04-14 01:43:05 [2025-04-14 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902948', 'tblTempUsageDetail_20' ) start [2025-04-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902948', 'tblTempUsageDetail_20' ) end [2025-04-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902948', 'tblTempVendorCDR_20' ) start [2025-04-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902948', 'tblTempVendorCDR_20' ) end [2025-04-14 01:43:18] Production.INFO: ProcessCDR(1,14902948,1,1,2) [2025-04-14 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902948', 'tblTempUsageDetail_20' ) start [2025-04-14 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902948', 'tblTempUsageDetail_20' ) end [2025-04-14 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:43:22] Production.INFO: ==25742== Releasing lock... [2025-04-14 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:44:05 [end_date_ymd] => 2025-04-14 01:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:44:05' and `end` < '2025-04-14 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-04-14 01:44:18] Production.INFO: count ==186 [2025-04-14 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:44:05 - End Time 2025-04-14 01:44:05 [2025-04-14 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902953', 'tblTempUsageDetail_20' ) start [2025-04-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902953', 'tblTempUsageDetail_20' ) end [2025-04-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902953', 'tblTempVendorCDR_20' ) start [2025-04-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902953', 'tblTempVendorCDR_20' ) end [2025-04-14 01:44:18] Production.INFO: ProcessCDR(1,14902953,1,1,2) [2025-04-14 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902953', 'tblTempUsageDetail_20' ) start [2025-04-14 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902953', 'tblTempUsageDetail_20' ) end [2025-04-14 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:44:21] Production.INFO: ==25815== Releasing lock... [2025-04-14 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:45:05 [end_date_ymd] => 2025-04-14 01:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:45:05' and `end` < '2025-04-14 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-04-14 01:45:18] Production.INFO: count ==186 [2025-04-14 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:45:05 - End Time 2025-04-14 01:45:05 [2025-04-14 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902958', 'tblTempUsageDetail_20' ) start [2025-04-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902958', 'tblTempUsageDetail_20' ) end [2025-04-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902958', 'tblTempVendorCDR_20' ) start [2025-04-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902958', 'tblTempVendorCDR_20' ) end [2025-04-14 01:45:18] Production.INFO: ProcessCDR(1,14902958,1,1,2) [2025-04-14 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902958', 'tblTempUsageDetail_20' ) start [2025-04-14 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902958', 'tblTempUsageDetail_20' ) end [2025-04-14 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:45:21] Production.INFO: ==25890== Releasing lock... [2025-04-14 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:46:06 [end_date_ymd] => 2025-04-14 01:46:06 [RateCDR] => 1 ) [2025-04-14 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:46:06' and `end` < '2025-04-14 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:46:19] Production.INFO: count ==182 [2025-04-14 01:46:19] Production.ERROR: pbx CDR StartTime 2025-04-13 22:46:06 - End Time 2025-04-14 01:46:06 [2025-04-14 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902963', 'tblTempUsageDetail_20' ) start [2025-04-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902963', 'tblTempUsageDetail_20' ) end [2025-04-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902963', 'tblTempVendorCDR_20' ) start [2025-04-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902963', 'tblTempVendorCDR_20' ) end [2025-04-14 01:46:19] Production.INFO: ProcessCDR(1,14902963,1,1,2) [2025-04-14 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902963', 'tblTempUsageDetail_20' ) start [2025-04-14 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902963', 'tblTempUsageDetail_20' ) end [2025-04-14 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:46:22] Production.INFO: ==25971== Releasing lock... [2025-04-14 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:47:05 [end_date_ymd] => 2025-04-14 01:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:47:05' and `end` < '2025-04-14 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-04-14 01:47:18] Production.INFO: count ==182 [2025-04-14 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:47:05 - End Time 2025-04-14 01:47:05 [2025-04-14 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902968', 'tblTempUsageDetail_20' ) start [2025-04-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902968', 'tblTempUsageDetail_20' ) end [2025-04-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902968', 'tblTempVendorCDR_20' ) start [2025-04-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902968', 'tblTempVendorCDR_20' ) end [2025-04-14 01:47:18] Production.INFO: ProcessCDR(1,14902968,1,1,2) [2025-04-14 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902968', 'tblTempUsageDetail_20' ) start [2025-04-14 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902968', 'tblTempUsageDetail_20' ) end [2025-04-14 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:47:21] Production.INFO: ==26046== Releasing lock... [2025-04-14 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:48:05 [end_date_ymd] => 2025-04-14 01:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:48:05' and `end` < '2025-04-14 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-04-14 01:48:18] Production.INFO: count ==182 [2025-04-14 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:48:05 - End Time 2025-04-14 01:48:05 [2025-04-14 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902973', 'tblTempUsageDetail_20' ) start [2025-04-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902973', 'tblTempUsageDetail_20' ) end [2025-04-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902973', 'tblTempVendorCDR_20' ) start [2025-04-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902973', 'tblTempVendorCDR_20' ) end [2025-04-14 01:48:18] Production.INFO: ProcessCDR(1,14902973,1,1,2) [2025-04-14 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902973', 'tblTempUsageDetail_20' ) start [2025-04-14 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902973', 'tblTempUsageDetail_20' ) end [2025-04-14 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:48:21] Production.INFO: ==26123== Releasing lock... [2025-04-14 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:49:04 [end_date_ymd] => 2025-04-14 01:49:04 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:49:04' and `end` < '2025-04-14 01: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-04-14 01:49:17] Production.INFO: count ==183 [2025-04-14 01:49:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:49:04 - End Time 2025-04-14 01:49:04 [2025-04-14 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902978', 'tblTempUsageDetail_20' ) start [2025-04-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902978', 'tblTempUsageDetail_20' ) end [2025-04-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902978', 'tblTempVendorCDR_20' ) start [2025-04-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902978', 'tblTempVendorCDR_20' ) end [2025-04-14 01:49:17] Production.INFO: ProcessCDR(1,14902978,1,1,2) [2025-04-14 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902978', 'tblTempUsageDetail_20' ) start [2025-04-14 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902978', 'tblTempUsageDetail_20' ) end [2025-04-14 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:49:20] Production.INFO: ==26201== Releasing lock... [2025-04-14 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:50:06 [end_date_ymd] => 2025-04-14 01:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:50:06' and `end` < '2025-04-14 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-04-14 01:50:18] Production.INFO: count ==183 [2025-04-14 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:50:06 - End Time 2025-04-14 01:50:06 [2025-04-14 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902982', 'tblTempUsageDetail_20' ) start [2025-04-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902982', 'tblTempUsageDetail_20' ) end [2025-04-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902982', 'tblTempVendorCDR_20' ) start [2025-04-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902982', 'tblTempVendorCDR_20' ) end [2025-04-14 01:50:18] Production.INFO: ProcessCDR(1,14902982,1,1,2) [2025-04-14 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902982', 'tblTempUsageDetail_20' ) start [2025-04-14 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902982', 'tblTempUsageDetail_20' ) end [2025-04-14 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:50:22] Production.INFO: ==26278== Releasing lock... [2025-04-14 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:51:04 [end_date_ymd] => 2025-04-14 01:51:04 [RateCDR] => 1 ) [2025-04-14 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:51:04' and `end` < '2025-04-14 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:51:17] Production.INFO: count ==183 [2025-04-14 01:51:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:51:04 - End Time 2025-04-14 01:51:04 [2025-04-14 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902989', 'tblTempUsageDetail_20' ) start [2025-04-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902989', 'tblTempUsageDetail_20' ) end [2025-04-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902989', 'tblTempVendorCDR_20' ) start [2025-04-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902989', 'tblTempVendorCDR_20' ) end [2025-04-14 01:51:17] Production.INFO: ProcessCDR(1,14902989,1,1,2) [2025-04-14 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902989', 'tblTempUsageDetail_20' ) start [2025-04-14 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902989', 'tblTempUsageDetail_20' ) end [2025-04-14 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:51:20] Production.INFO: ==26400== Releasing lock... [2025-04-14 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:52:05 [end_date_ymd] => 2025-04-14 01:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:52:05' and `end` < '2025-04-14 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-04-14 01:52:18] Production.INFO: count ==183 [2025-04-14 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:52:05 - End Time 2025-04-14 01:52:05 [2025-04-14 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902994', 'tblTempUsageDetail_20' ) start [2025-04-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902994', 'tblTempUsageDetail_20' ) end [2025-04-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902994', 'tblTempVendorCDR_20' ) start [2025-04-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902994', 'tblTempVendorCDR_20' ) end [2025-04-14 01:52:18] Production.INFO: ProcessCDR(1,14902994,1,1,2) [2025-04-14 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902994', 'tblTempUsageDetail_20' ) start [2025-04-14 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902994', 'tblTempUsageDetail_20' ) end [2025-04-14 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:52:21] Production.INFO: ==26476== Releasing lock... [2025-04-14 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:53:05 [end_date_ymd] => 2025-04-14 01:53:05 [RateCDR] => 1 ) [2025-04-14 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:53:05' and `end` < '2025-04-14 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:53:17] Production.INFO: count ==186 [2025-04-14 01:53:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:53:05 - End Time 2025-04-14 01:53:05 [2025-04-14 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902999', 'tblTempUsageDetail_20' ) start [2025-04-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14902999', 'tblTempUsageDetail_20' ) end [2025-04-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902999', 'tblTempVendorCDR_20' ) start [2025-04-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14902999', 'tblTempVendorCDR_20' ) end [2025-04-14 01:53:17] Production.INFO: ProcessCDR(1,14902999,1,1,2) [2025-04-14 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14902999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14902999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14902999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14902999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902999', 'tblTempUsageDetail_20' ) start [2025-04-14 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14902999', 'tblTempUsageDetail_20' ) end [2025-04-14 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:53:21] Production.INFO: ==26551== Releasing lock... [2025-04-14 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:54:05 [end_date_ymd] => 2025-04-14 01:54:05 [RateCDR] => 1 ) [2025-04-14 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:54:05' and `end` < '2025-04-14 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:54:18] Production.INFO: count ==186 [2025-04-14 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:54:05 - End Time 2025-04-14 01:54:05 [2025-04-14 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903004', 'tblTempUsageDetail_20' ) start [2025-04-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903004', 'tblTempUsageDetail_20' ) end [2025-04-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903004', 'tblTempVendorCDR_20' ) start [2025-04-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903004', 'tblTempVendorCDR_20' ) end [2025-04-14 01:54:18] Production.INFO: ProcessCDR(1,14903004,1,1,2) [2025-04-14 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903004', 'tblTempUsageDetail_20' ) start [2025-04-14 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903004', 'tblTempUsageDetail_20' ) end [2025-04-14 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:54:21] Production.INFO: ==26629== Releasing lock... [2025-04-14 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:55:05 [end_date_ymd] => 2025-04-14 01:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:55:05' and `end` < '2025-04-14 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-04-14 01:55:18] Production.INFO: count ==185 [2025-04-14 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:55:05 - End Time 2025-04-14 01:55:05 [2025-04-14 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903009', 'tblTempUsageDetail_20' ) start [2025-04-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903009', 'tblTempUsageDetail_20' ) end [2025-04-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903009', 'tblTempVendorCDR_20' ) start [2025-04-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903009', 'tblTempVendorCDR_20' ) end [2025-04-14 01:55:18] Production.INFO: ProcessCDR(1,14903009,1,1,2) [2025-04-14 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903009', 'tblTempUsageDetail_20' ) start [2025-04-14 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903009', 'tblTempUsageDetail_20' ) end [2025-04-14 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:55:21] Production.INFO: ==26701== Releasing lock... [2025-04-14 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:56:05 [end_date_ymd] => 2025-04-14 01:56:05 [RateCDR] => 1 ) [2025-04-14 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:56:05' and `end` < '2025-04-14 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:56:18] Production.INFO: count ==185 [2025-04-14 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:56:05 - End Time 2025-04-14 01:56:05 [2025-04-14 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903014', 'tblTempUsageDetail_20' ) start [2025-04-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903014', 'tblTempUsageDetail_20' ) end [2025-04-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903014', 'tblTempVendorCDR_20' ) start [2025-04-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903014', 'tblTempVendorCDR_20' ) end [2025-04-14 01:56:18] Production.INFO: ProcessCDR(1,14903014,1,1,2) [2025-04-14 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903014', 'tblTempUsageDetail_20' ) start [2025-04-14 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903014', 'tblTempUsageDetail_20' ) end [2025-04-14 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:56:22] Production.INFO: ==26776== Releasing lock... [2025-04-14 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:57:05 [end_date_ymd] => 2025-04-14 01:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 22:57:05' and `end` < '2025-04-14 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-04-14 01:57:18] Production.INFO: count ==186 [2025-04-14 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:57:05 - End Time 2025-04-14 01:57:05 [2025-04-14 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903019', 'tblTempUsageDetail_20' ) start [2025-04-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903019', 'tblTempUsageDetail_20' ) end [2025-04-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903019', 'tblTempVendorCDR_20' ) start [2025-04-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903019', 'tblTempVendorCDR_20' ) end [2025-04-14 01:57:18] Production.INFO: ProcessCDR(1,14903019,1,1,2) [2025-04-14 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903019', 'tblTempUsageDetail_20' ) start [2025-04-14 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903019', 'tblTempUsageDetail_20' ) end [2025-04-14 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:57:23] Production.INFO: ==26862== Releasing lock... [2025-04-14 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:58:05 [end_date_ymd] => 2025-04-14 01:58:05 [RateCDR] => 1 ) [2025-04-14 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 22:58:05' and `end` < '2025-04-14 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 01:58:18] Production.INFO: count ==184 [2025-04-14 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-13 22:58:05 - End Time 2025-04-14 01:58:05 [2025-04-14 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903024', 'tblTempUsageDetail_20' ) start [2025-04-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903024', 'tblTempUsageDetail_20' ) end [2025-04-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903024', 'tblTempVendorCDR_20' ) start [2025-04-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903024', 'tblTempVendorCDR_20' ) end [2025-04-14 01:58:18] Production.INFO: ProcessCDR(1,14903024,1,1,2) [2025-04-14 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903024', 'tblTempUsageDetail_20' ) start [2025-04-14 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903024', 'tblTempUsageDetail_20' ) end [2025-04-14 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:58:21] Production.INFO: ==26938== Releasing lock... [2025-04-14 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 22:59:04 [end_date_ymd] => 2025-04-14 01:59:04 [RateCDR] => 1 ) [2025-04-14 01: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-04-13 22:59:04' and `end` < '2025-04-14 01: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-04-14 01:59:17] Production.INFO: count ==186 [2025-04-14 01:59:17] Production.ERROR: pbx CDR StartTime 2025-04-13 22:59:04 - End Time 2025-04-14 01:59:04 [2025-04-14 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903029', 'tblTempUsageDetail_20' ) start [2025-04-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903029', 'tblTempUsageDetail_20' ) end [2025-04-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903029', 'tblTempVendorCDR_20' ) start [2025-04-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903029', 'tblTempVendorCDR_20' ) end [2025-04-14 01:59:17] Production.INFO: ProcessCDR(1,14903029,1,1,2) [2025-04-14 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903029', 'tblTempUsageDetail_20' ) start [2025-04-14 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903029', 'tblTempUsageDetail_20' ) end [2025-04-14 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 01:59:20] Production.INFO: ==27014== Releasing lock... [2025-04-14 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 01:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:00:06 [end_date_ymd] => 2025-04-14 02:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:00:06' and `end` < '2025-04-14 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-04-14 02:00:19] Production.INFO: count ==188 [2025-04-14 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-13 23:00:06 - End Time 2025-04-14 02:00:06 [2025-04-14 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903035', 'tblTempUsageDetail_20' ) start [2025-04-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903035', 'tblTempUsageDetail_20' ) end [2025-04-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903035', 'tblTempVendorCDR_20' ) start [2025-04-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903035', 'tblTempVendorCDR_20' ) end [2025-04-14 02:00:19] Production.INFO: ProcessCDR(1,14903035,1,1,2) [2025-04-14 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903035', 'tblTempUsageDetail_20' ) start [2025-04-14 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903035', 'tblTempUsageDetail_20' ) end [2025-04-14 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:00:22] Production.INFO: ==27098== Releasing lock... [2025-04-14 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:01:06 [end_date_ymd] => 2025-04-14 02:01:06 [RateCDR] => 1 ) [2025-04-14 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:01:06' and `end` < '2025-04-14 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:01:19] Production.INFO: count ==190 [2025-04-14 02:01:19] Production.ERROR: pbx CDR StartTime 2025-04-13 23:01:06 - End Time 2025-04-14 02:01:06 [2025-04-14 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903040', 'tblTempUsageDetail_20' ) start [2025-04-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903040', 'tblTempUsageDetail_20' ) end [2025-04-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903040', 'tblTempVendorCDR_20' ) start [2025-04-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903040', 'tblTempVendorCDR_20' ) end [2025-04-14 02:01:19] Production.INFO: ProcessCDR(1,14903040,1,1,2) [2025-04-14 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903040', 'tblTempUsageDetail_20' ) start [2025-04-14 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903040', 'tblTempUsageDetail_20' ) end [2025-04-14 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:01:22] Production.INFO: ==27191== Releasing lock... [2025-04-14 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:02:05 [end_date_ymd] => 2025-04-14 02:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:02:05' and `end` < '2025-04-14 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-04-14 02:02:18] Production.INFO: count ==190 [2025-04-14 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:02:05 - End Time 2025-04-14 02:02:05 [2025-04-14 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903045', 'tblTempUsageDetail_20' ) start [2025-04-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903045', 'tblTempUsageDetail_20' ) end [2025-04-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903045', 'tblTempVendorCDR_20' ) start [2025-04-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903045', 'tblTempVendorCDR_20' ) end [2025-04-14 02:02:18] Production.INFO: ProcessCDR(1,14903045,1,1,2) [2025-04-14 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903045', 'tblTempUsageDetail_20' ) start [2025-04-14 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903045', 'tblTempUsageDetail_20' ) end [2025-04-14 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:02:21] Production.INFO: ==27374== Releasing lock... [2025-04-14 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:03:06 [end_date_ymd] => 2025-04-14 02:03:06 [RateCDR] => 1 ) [2025-04-14 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:03:06' and `end` < '2025-04-14 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:03:19] Production.INFO: count ==189 [2025-04-14 02:03:19] Production.ERROR: pbx CDR StartTime 2025-04-13 23:03:06 - End Time 2025-04-14 02:03:06 [2025-04-14 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903050', 'tblTempUsageDetail_20' ) start [2025-04-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903050', 'tblTempUsageDetail_20' ) end [2025-04-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903050', 'tblTempVendorCDR_20' ) start [2025-04-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903050', 'tblTempVendorCDR_20' ) end [2025-04-14 02:03:19] Production.INFO: ProcessCDR(1,14903050,1,1,2) [2025-04-14 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903050', 'tblTempUsageDetail_20' ) start [2025-04-14 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903050', 'tblTempUsageDetail_20' ) end [2025-04-14 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:03:22] Production.INFO: ==27480== Releasing lock... [2025-04-14 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:04:05 [end_date_ymd] => 2025-04-14 02:04:05 [RateCDR] => 1 ) [2025-04-14 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:04:05' and `end` < '2025-04-14 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:04:17] Production.INFO: count ==188 [2025-04-14 02:04:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:04:05 - End Time 2025-04-14 02:04:05 [2025-04-14 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903055', 'tblTempUsageDetail_20' ) start [2025-04-14 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903055', 'tblTempUsageDetail_20' ) end [2025-04-14 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903055', 'tblTempVendorCDR_20' ) start [2025-04-14 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903055', 'tblTempVendorCDR_20' ) end [2025-04-14 02:04:17] Production.INFO: ProcessCDR(1,14903055,1,1,2) [2025-04-14 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903055', 'tblTempUsageDetail_20' ) start [2025-04-14 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903055', 'tblTempUsageDetail_20' ) end [2025-04-14 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:04:21] Production.INFO: ==27587== Releasing lock... [2025-04-14 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:05:05 [end_date_ymd] => 2025-04-14 02:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:05:05' and `end` < '2025-04-14 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-04-14 02:05:18] Production.INFO: count ==188 [2025-04-14 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:05:05 - End Time 2025-04-14 02:05:05 [2025-04-14 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903060', 'tblTempUsageDetail_20' ) start [2025-04-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903060', 'tblTempUsageDetail_20' ) end [2025-04-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903060', 'tblTempVendorCDR_20' ) start [2025-04-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903060', 'tblTempVendorCDR_20' ) end [2025-04-14 02:05:18] Production.INFO: ProcessCDR(1,14903060,1,1,2) [2025-04-14 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903060', 'tblTempUsageDetail_20' ) start [2025-04-14 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903060', 'tblTempUsageDetail_20' ) end [2025-04-14 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:05:21] Production.INFO: ==27692== Releasing lock... [2025-04-14 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:06:05 [end_date_ymd] => 2025-04-14 02:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:06:05' and `end` < '2025-04-14 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-04-14 02:06:18] Production.INFO: count ==188 [2025-04-14 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:06:05 - End Time 2025-04-14 02:06:05 [2025-04-14 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903065', 'tblTempUsageDetail_20' ) start [2025-04-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903065', 'tblTempUsageDetail_20' ) end [2025-04-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903065', 'tblTempVendorCDR_20' ) start [2025-04-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903065', 'tblTempVendorCDR_20' ) end [2025-04-14 02:06:18] Production.INFO: ProcessCDR(1,14903065,1,1,2) [2025-04-14 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903065', 'tblTempUsageDetail_20' ) start [2025-04-14 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903065', 'tblTempUsageDetail_20' ) end [2025-04-14 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:06:21] Production.INFO: ==27834== Releasing lock... [2025-04-14 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:07:05 [end_date_ymd] => 2025-04-14 02:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:07:05' and `end` < '2025-04-14 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-04-14 02:07:18] Production.INFO: count ==189 [2025-04-14 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:07:05 - End Time 2025-04-14 02:07:05 [2025-04-14 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903070', 'tblTempUsageDetail_20' ) start [2025-04-14 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903070', 'tblTempUsageDetail_20' ) end [2025-04-14 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903070', 'tblTempVendorCDR_20' ) start [2025-04-14 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903070', 'tblTempVendorCDR_20' ) end [2025-04-14 02:07:18] Production.INFO: ProcessCDR(1,14903070,1,1,2) [2025-04-14 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903070', 'tblTempUsageDetail_20' ) start [2025-04-14 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903070', 'tblTempUsageDetail_20' ) end [2025-04-14 02:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:07:23] Production.INFO: ==27938== Releasing lock... [2025-04-14 02:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:08:05 [end_date_ymd] => 2025-04-14 02:08:05 [RateCDR] => 1 ) [2025-04-14 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:08:05' and `end` < '2025-04-14 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:08:18] Production.INFO: count ==187 [2025-04-14 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:08:05 - End Time 2025-04-14 02:08:05 [2025-04-14 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903075', 'tblTempUsageDetail_20' ) start [2025-04-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903075', 'tblTempUsageDetail_20' ) end [2025-04-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903075', 'tblTempVendorCDR_20' ) start [2025-04-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903075', 'tblTempVendorCDR_20' ) end [2025-04-14 02:08:18] Production.INFO: ProcessCDR(1,14903075,1,1,2) [2025-04-14 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903075', 'tblTempUsageDetail_20' ) start [2025-04-14 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903075', 'tblTempUsageDetail_20' ) end [2025-04-14 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:08:21] Production.INFO: ==28038== Releasing lock... [2025-04-14 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:09:06 [end_date_ymd] => 2025-04-14 02:09:06 [RateCDR] => 1 ) [2025-04-14 02: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-04-13 23:09:06' and `end` < '2025-04-14 02: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-04-14 02:09:18] Production.INFO: count ==182 [2025-04-14 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:09:06 - End Time 2025-04-14 02:09:06 [2025-04-14 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903080', 'tblTempUsageDetail_20' ) start [2025-04-14 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903080', 'tblTempUsageDetail_20' ) end [2025-04-14 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903080', 'tblTempVendorCDR_20' ) start [2025-04-14 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903080', 'tblTempVendorCDR_20' ) end [2025-04-14 02:09:18] Production.INFO: ProcessCDR(1,14903080,1,1,2) [2025-04-14 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903080', 'tblTempUsageDetail_20' ) start [2025-04-14 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903080', 'tblTempUsageDetail_20' ) end [2025-04-14 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:09:22] Production.INFO: ==28136== Releasing lock... [2025-04-14 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:10:06 [end_date_ymd] => 2025-04-14 02:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:10:06' and `end` < '2025-04-14 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-04-14 02:10:18] Production.INFO: count ==181 [2025-04-14 02:10:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:10:06 - End Time 2025-04-14 02:10:06 [2025-04-14 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903086', 'tblTempUsageDetail_20' ) start [2025-04-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903086', 'tblTempUsageDetail_20' ) end [2025-04-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903086', 'tblTempVendorCDR_20' ) start [2025-04-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903086', 'tblTempVendorCDR_20' ) end [2025-04-14 02:10:18] Production.INFO: ProcessCDR(1,14903086,1,1,2) [2025-04-14 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903086', 'tblTempUsageDetail_20' ) start [2025-04-14 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903086', 'tblTempUsageDetail_20' ) end [2025-04-14 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:10:22] Production.INFO: ==28243== Releasing lock... [2025-04-14 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:11:05 [end_date_ymd] => 2025-04-14 02:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:11:05' and `end` < '2025-04-14 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-04-14 02:11:18] Production.INFO: count ==181 [2025-04-14 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:11:05 - End Time 2025-04-14 02:11:05 [2025-04-14 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903091', 'tblTempUsageDetail_20' ) start [2025-04-14 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903091', 'tblTempUsageDetail_20' ) end [2025-04-14 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903091', 'tblTempVendorCDR_20' ) start [2025-04-14 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903091', 'tblTempVendorCDR_20' ) end [2025-04-14 02:11:18] Production.INFO: ProcessCDR(1,14903091,1,1,2) [2025-04-14 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903091', 'tblTempUsageDetail_20' ) start [2025-04-14 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903091', 'tblTempUsageDetail_20' ) end [2025-04-14 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:11:21] Production.INFO: ==28346== Releasing lock... [2025-04-14 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:12:05 [end_date_ymd] => 2025-04-14 02:12:05 [RateCDR] => 1 ) [2025-04-14 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:12:05' and `end` < '2025-04-14 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:12:17] Production.INFO: count ==181 [2025-04-14 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:12:05 - End Time 2025-04-14 02:12:05 [2025-04-14 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903096', 'tblTempUsageDetail_20' ) start [2025-04-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903096', 'tblTempUsageDetail_20' ) end [2025-04-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903096', 'tblTempVendorCDR_20' ) start [2025-04-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903096', 'tblTempVendorCDR_20' ) end [2025-04-14 02:12:18] Production.INFO: ProcessCDR(1,14903096,1,1,2) [2025-04-14 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903096', 'tblTempUsageDetail_20' ) start [2025-04-14 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903096', 'tblTempUsageDetail_20' ) end [2025-04-14 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:12:21] Production.INFO: ==28450== Releasing lock... [2025-04-14 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:13:05 [end_date_ymd] => 2025-04-14 02:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:13:05' and `end` < '2025-04-14 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-04-14 02:13:18] Production.INFO: count ==181 [2025-04-14 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:13:05 - End Time 2025-04-14 02:13:05 [2025-04-14 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903101', 'tblTempUsageDetail_20' ) start [2025-04-14 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903101', 'tblTempUsageDetail_20' ) end [2025-04-14 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903101', 'tblTempVendorCDR_20' ) start [2025-04-14 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903101', 'tblTempVendorCDR_20' ) end [2025-04-14 02:13:18] Production.INFO: ProcessCDR(1,14903101,1,1,2) [2025-04-14 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903101', 'tblTempUsageDetail_20' ) start [2025-04-14 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903101', 'tblTempUsageDetail_20' ) end [2025-04-14 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:13:21] Production.INFO: ==28560== Releasing lock... [2025-04-14 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:14:05 [end_date_ymd] => 2025-04-14 02:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:14:05' and `end` < '2025-04-14 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-04-14 02:14:18] Production.INFO: count ==181 [2025-04-14 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:14:05 - End Time 2025-04-14 02:14:05 [2025-04-14 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903106', 'tblTempUsageDetail_20' ) start [2025-04-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903106', 'tblTempUsageDetail_20' ) end [2025-04-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903106', 'tblTempVendorCDR_20' ) start [2025-04-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903106', 'tblTempVendorCDR_20' ) end [2025-04-14 02:14:18] Production.INFO: ProcessCDR(1,14903106,1,1,2) [2025-04-14 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903106', 'tblTempUsageDetail_20' ) start [2025-04-14 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903106', 'tblTempUsageDetail_20' ) end [2025-04-14 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:14:21] Production.INFO: ==28662== Releasing lock... [2025-04-14 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:15:05 [end_date_ymd] => 2025-04-14 02:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:15:05' and `end` < '2025-04-14 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-04-14 02:15:18] Production.INFO: count ==181 [2025-04-14 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:15:05 - End Time 2025-04-14 02:15:05 [2025-04-14 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903111', 'tblTempUsageDetail_20' ) start [2025-04-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903111', 'tblTempUsageDetail_20' ) end [2025-04-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903111', 'tblTempVendorCDR_20' ) start [2025-04-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903111', 'tblTempVendorCDR_20' ) end [2025-04-14 02:15:18] Production.INFO: ProcessCDR(1,14903111,1,1,2) [2025-04-14 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903111', 'tblTempUsageDetail_20' ) start [2025-04-14 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903111', 'tblTempUsageDetail_20' ) end [2025-04-14 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:15:21] Production.INFO: ==28772== Releasing lock... [2025-04-14 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:16:05 [end_date_ymd] => 2025-04-14 02:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:16:05' and `end` < '2025-04-14 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-04-14 02:16:17] Production.INFO: count ==181 [2025-04-14 02:16:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:16:05 - End Time 2025-04-14 02:16:05 [2025-04-14 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903116', 'tblTempUsageDetail_20' ) start [2025-04-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903116', 'tblTempUsageDetail_20' ) end [2025-04-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903116', 'tblTempVendorCDR_20' ) start [2025-04-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903116', 'tblTempVendorCDR_20' ) end [2025-04-14 02:16:17] Production.INFO: ProcessCDR(1,14903116,1,1,2) [2025-04-14 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903116', 'tblTempUsageDetail_20' ) start [2025-04-14 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903116', 'tblTempUsageDetail_20' ) end [2025-04-14 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:16:21] Production.INFO: ==28877== Releasing lock... [2025-04-14 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:17:05 [end_date_ymd] => 2025-04-14 02:17:05 [RateCDR] => 1 ) [2025-04-14 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:17:05' and `end` < '2025-04-14 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:17:18] Production.INFO: count ==181 [2025-04-14 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:17:05 - End Time 2025-04-14 02:17:05 [2025-04-14 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903121', 'tblTempUsageDetail_20' ) start [2025-04-14 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903121', 'tblTempUsageDetail_20' ) end [2025-04-14 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903121', 'tblTempVendorCDR_20' ) start [2025-04-14 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903121', 'tblTempVendorCDR_20' ) end [2025-04-14 02:17:18] Production.INFO: ProcessCDR(1,14903121,1,1,2) [2025-04-14 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903121', 'tblTempUsageDetail_20' ) start [2025-04-14 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903121', 'tblTempUsageDetail_20' ) end [2025-04-14 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:17:21] Production.INFO: ==28983== Releasing lock... [2025-04-14 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:18:05 [end_date_ymd] => 2025-04-14 02:18:05 [RateCDR] => 1 ) [2025-04-14 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:18:05' and `end` < '2025-04-14 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:18:18] Production.INFO: count ==181 [2025-04-14 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:18:05 - End Time 2025-04-14 02:18:05 [2025-04-14 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903126', 'tblTempUsageDetail_20' ) start [2025-04-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903126', 'tblTempUsageDetail_20' ) end [2025-04-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903126', 'tblTempVendorCDR_20' ) start [2025-04-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903126', 'tblTempVendorCDR_20' ) end [2025-04-14 02:18:18] Production.INFO: ProcessCDR(1,14903126,1,1,2) [2025-04-14 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903126', 'tblTempUsageDetail_20' ) start [2025-04-14 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903126', 'tblTempUsageDetail_20' ) end [2025-04-14 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:18:21] Production.INFO: ==29084== Releasing lock... [2025-04-14 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:19:05 [end_date_ymd] => 2025-04-14 02:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:19:05' and `end` < '2025-04-14 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-04-14 02:19:18] Production.INFO: count ==181 [2025-04-14 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:19:05 - End Time 2025-04-14 02:19:05 [2025-04-14 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903131', 'tblTempUsageDetail_20' ) start [2025-04-14 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903131', 'tblTempUsageDetail_20' ) end [2025-04-14 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903131', 'tblTempVendorCDR_20' ) start [2025-04-14 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903131', 'tblTempVendorCDR_20' ) end [2025-04-14 02:19:18] Production.INFO: ProcessCDR(1,14903131,1,1,2) [2025-04-14 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903131', 'tblTempUsageDetail_20' ) start [2025-04-14 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903131', 'tblTempUsageDetail_20' ) end [2025-04-14 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:19:21] Production.INFO: ==29190== Releasing lock... [2025-04-14 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:20:06 [end_date_ymd] => 2025-04-14 02:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:20:06' and `end` < '2025-04-14 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-04-14 02:20:19] Production.INFO: count ==181 [2025-04-14 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-13 23:20:06 - End Time 2025-04-14 02:20:06 [2025-04-14 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903137', 'tblTempUsageDetail_20' ) start [2025-04-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903137', 'tblTempUsageDetail_20' ) end [2025-04-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903137', 'tblTempVendorCDR_20' ) start [2025-04-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903137', 'tblTempVendorCDR_20' ) end [2025-04-14 02:20:19] Production.INFO: ProcessCDR(1,14903137,1,1,2) [2025-04-14 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903137', 'tblTempUsageDetail_20' ) start [2025-04-14 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903137', 'tblTempUsageDetail_20' ) end [2025-04-14 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:20:22] Production.INFO: ==29270== Releasing lock... [2025-04-14 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:21:05 [end_date_ymd] => 2025-04-14 02:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:21:05' and `end` < '2025-04-14 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-04-14 02:21:18] Production.INFO: count ==181 [2025-04-14 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:21:05 - End Time 2025-04-14 02:21:05 [2025-04-14 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903142', 'tblTempUsageDetail_20' ) start [2025-04-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903142', 'tblTempUsageDetail_20' ) end [2025-04-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903142', 'tblTempVendorCDR_20' ) start [2025-04-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903142', 'tblTempVendorCDR_20' ) end [2025-04-14 02:21:18] Production.INFO: ProcessCDR(1,14903142,1,1,2) [2025-04-14 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903142', 'tblTempUsageDetail_20' ) start [2025-04-14 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903142', 'tblTempUsageDetail_20' ) end [2025-04-14 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:21:21] Production.INFO: ==29347== Releasing lock... [2025-04-14 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:22:05 [end_date_ymd] => 2025-04-14 02:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:22:05' and `end` < '2025-04-14 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-04-14 02:22:18] Production.INFO: count ==181 [2025-04-14 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:22:05 - End Time 2025-04-14 02:22:05 [2025-04-14 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903147', 'tblTempUsageDetail_20' ) start [2025-04-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903147', 'tblTempUsageDetail_20' ) end [2025-04-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903147', 'tblTempVendorCDR_20' ) start [2025-04-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903147', 'tblTempVendorCDR_20' ) end [2025-04-14 02:22:18] Production.INFO: ProcessCDR(1,14903147,1,1,2) [2025-04-14 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903147', 'tblTempUsageDetail_20' ) start [2025-04-14 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903147', 'tblTempUsageDetail_20' ) end [2025-04-14 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:22:21] Production.INFO: ==29464== Releasing lock... [2025-04-14 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:23:05 [end_date_ymd] => 2025-04-14 02:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:23:05' and `end` < '2025-04-14 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-04-14 02:23:17] Production.INFO: count ==183 [2025-04-14 02:23:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:23:05 - End Time 2025-04-14 02:23:05 [2025-04-14 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903152', 'tblTempUsageDetail_20' ) start [2025-04-14 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903152', 'tblTempUsageDetail_20' ) end [2025-04-14 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903152', 'tblTempVendorCDR_20' ) start [2025-04-14 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903152', 'tblTempVendorCDR_20' ) end [2025-04-14 02:23:17] Production.INFO: ProcessCDR(1,14903152,1,1,2) [2025-04-14 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903152', 'tblTempUsageDetail_20' ) start [2025-04-14 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903152', 'tblTempUsageDetail_20' ) end [2025-04-14 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:23:22] Production.INFO: ==29539== Releasing lock... [2025-04-14 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:24:05 [end_date_ymd] => 2025-04-14 02:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:24:05' and `end` < '2025-04-14 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-04-14 02:24:18] Production.INFO: count ==182 [2025-04-14 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:24:05 - End Time 2025-04-14 02:24:05 [2025-04-14 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903157', 'tblTempUsageDetail_20' ) start [2025-04-14 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903157', 'tblTempUsageDetail_20' ) end [2025-04-14 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903157', 'tblTempVendorCDR_20' ) start [2025-04-14 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903157', 'tblTempVendorCDR_20' ) end [2025-04-14 02:24:18] Production.INFO: ProcessCDR(1,14903157,1,1,2) [2025-04-14 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903157', 'tblTempUsageDetail_20' ) start [2025-04-14 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903157', 'tblTempUsageDetail_20' ) end [2025-04-14 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:24:21] Production.INFO: ==29621== Releasing lock... [2025-04-14 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:25:05 [end_date_ymd] => 2025-04-14 02:25:05 [RateCDR] => 1 ) [2025-04-14 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:25:05' and `end` < '2025-04-14 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:25:18] Production.INFO: count ==182 [2025-04-14 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:25:05 - End Time 2025-04-14 02:25:05 [2025-04-14 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903162', 'tblTempUsageDetail_20' ) start [2025-04-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903162', 'tblTempUsageDetail_20' ) end [2025-04-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903162', 'tblTempVendorCDR_20' ) start [2025-04-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903162', 'tblTempVendorCDR_20' ) end [2025-04-14 02:25:18] Production.INFO: ProcessCDR(1,14903162,1,1,2) [2025-04-14 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903162', 'tblTempUsageDetail_20' ) start [2025-04-14 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903162', 'tblTempUsageDetail_20' ) end [2025-04-14 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:25:21] Production.INFO: ==29691== Releasing lock... [2025-04-14 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:26:05 [end_date_ymd] => 2025-04-14 02:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:26:05' and `end` < '2025-04-14 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-04-14 02:26:18] Production.INFO: count ==182 [2025-04-14 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:26:05 - End Time 2025-04-14 02:26:05 [2025-04-14 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903167', 'tblTempUsageDetail_20' ) start [2025-04-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903167', 'tblTempUsageDetail_20' ) end [2025-04-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903167', 'tblTempVendorCDR_20' ) start [2025-04-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903167', 'tblTempVendorCDR_20' ) end [2025-04-14 02:26:18] Production.INFO: ProcessCDR(1,14903167,1,1,2) [2025-04-14 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903167', 'tblTempUsageDetail_20' ) start [2025-04-14 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903167', 'tblTempUsageDetail_20' ) end [2025-04-14 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:26:21] Production.INFO: ==29770== Releasing lock... [2025-04-14 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:27:05 [end_date_ymd] => 2025-04-14 02:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:27:05' and `end` < '2025-04-14 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-04-14 02:27:17] Production.INFO: count ==182 [2025-04-14 02:27:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:27:05 - End Time 2025-04-14 02:27:05 [2025-04-14 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903172', 'tblTempUsageDetail_20' ) start [2025-04-14 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903172', 'tblTempUsageDetail_20' ) end [2025-04-14 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903172', 'tblTempVendorCDR_20' ) start [2025-04-14 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903172', 'tblTempVendorCDR_20' ) end [2025-04-14 02:27:17] Production.INFO: ProcessCDR(1,14903172,1,1,2) [2025-04-14 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903172', 'tblTempUsageDetail_20' ) start [2025-04-14 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903172', 'tblTempUsageDetail_20' ) end [2025-04-14 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:27:21] Production.INFO: ==29844== Releasing lock... [2025-04-14 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:28:05 [end_date_ymd] => 2025-04-14 02:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:28:05' and `end` < '2025-04-14 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-04-14 02:28:18] Production.INFO: count ==179 [2025-04-14 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:28:05 - End Time 2025-04-14 02:28:05 [2025-04-14 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903177', 'tblTempUsageDetail_20' ) start [2025-04-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903177', 'tblTempUsageDetail_20' ) end [2025-04-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903177', 'tblTempVendorCDR_20' ) start [2025-04-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903177', 'tblTempVendorCDR_20' ) end [2025-04-14 02:28:18] Production.INFO: ProcessCDR(1,14903177,1,1,2) [2025-04-14 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903177', 'tblTempUsageDetail_20' ) start [2025-04-14 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903177', 'tblTempUsageDetail_20' ) end [2025-04-14 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:28:22] Production.INFO: ==29922== Releasing lock... [2025-04-14 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:29:04 [end_date_ymd] => 2025-04-14 02:29:04 [RateCDR] => 1 ) [2025-04-14 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:29:04' and `end` < '2025-04-14 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:29:17] Production.INFO: count ==178 [2025-04-14 02:29:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:29:04 - End Time 2025-04-14 02:29:04 [2025-04-14 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903182', 'tblTempUsageDetail_20' ) start [2025-04-14 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903182', 'tblTempUsageDetail_20' ) end [2025-04-14 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903182', 'tblTempVendorCDR_20' ) start [2025-04-14 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903182', 'tblTempVendorCDR_20' ) end [2025-04-14 02:29:17] Production.INFO: ProcessCDR(1,14903182,1,1,2) [2025-04-14 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903182', 'tblTempUsageDetail_20' ) start [2025-04-14 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903182', 'tblTempUsageDetail_20' ) end [2025-04-14 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:29:21] Production.INFO: ==30003== Releasing lock... [2025-04-14 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:30:06 [end_date_ymd] => 2025-04-14 02:30:06 [RateCDR] => 1 ) [2025-04-14 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:30:06' and `end` < '2025-04-14 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:30:19] Production.INFO: count ==187 [2025-04-14 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-13 23:30:06 - End Time 2025-04-14 02:30:06 [2025-04-14 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903188', 'tblTempUsageDetail_20' ) start [2025-04-14 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903188', 'tblTempUsageDetail_20' ) end [2025-04-14 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903188', 'tblTempVendorCDR_20' ) start [2025-04-14 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903188', 'tblTempVendorCDR_20' ) end [2025-04-14 02:30:19] Production.INFO: ProcessCDR(1,14903188,1,1,2) [2025-04-14 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903188', 'tblTempUsageDetail_20' ) start [2025-04-14 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903188', 'tblTempUsageDetail_20' ) end [2025-04-14 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:30:22] Production.INFO: ==30086== Releasing lock... [2025-04-14 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:31:04 [end_date_ymd] => 2025-04-14 02:31:04 [RateCDR] => 1 ) [2025-04-14 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:31:04' and `end` < '2025-04-14 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:31:17] Production.INFO: count ==187 [2025-04-14 02:31:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:31:04 - End Time 2025-04-14 02:31:04 [2025-04-14 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903193', 'tblTempUsageDetail_20' ) start [2025-04-14 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903193', 'tblTempUsageDetail_20' ) end [2025-04-14 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903193', 'tblTempVendorCDR_20' ) start [2025-04-14 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903193', 'tblTempVendorCDR_20' ) end [2025-04-14 02:31:17] Production.INFO: ProcessCDR(1,14903193,1,1,2) [2025-04-14 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903193', 'tblTempUsageDetail_20' ) start [2025-04-14 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903193', 'tblTempUsageDetail_20' ) end [2025-04-14 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:31:21] Production.INFO: ==30160== Releasing lock... [2025-04-14 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:32:05 [end_date_ymd] => 2025-04-14 02:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:32:05' and `end` < '2025-04-14 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-04-14 02:32:18] Production.INFO: count ==188 [2025-04-14 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:32:05 - End Time 2025-04-14 02:32:05 [2025-04-14 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903198', 'tblTempUsageDetail_20' ) start [2025-04-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903198', 'tblTempUsageDetail_20' ) end [2025-04-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903198', 'tblTempVendorCDR_20' ) start [2025-04-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903198', 'tblTempVendorCDR_20' ) end [2025-04-14 02:32:18] Production.INFO: ProcessCDR(1,14903198,1,1,2) [2025-04-14 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903198', 'tblTempUsageDetail_20' ) start [2025-04-14 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903198', 'tblTempUsageDetail_20' ) end [2025-04-14 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:32:23] Production.INFO: ==30242== Releasing lock... [2025-04-14 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:32:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:33:05 [end_date_ymd] => 2025-04-14 02:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:33:05' and `end` < '2025-04-14 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-04-14 02:33:17] Production.INFO: count ==189 [2025-04-14 02:33:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:33:05 - End Time 2025-04-14 02:33:05 [2025-04-14 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903203', 'tblTempUsageDetail_20' ) start [2025-04-14 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903203', 'tblTempUsageDetail_20' ) end [2025-04-14 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903203', 'tblTempVendorCDR_20' ) start [2025-04-14 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903203', 'tblTempVendorCDR_20' ) end [2025-04-14 02:33:17] Production.INFO: ProcessCDR(1,14903203,1,1,2) [2025-04-14 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903203', 'tblTempUsageDetail_20' ) start [2025-04-14 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903203', 'tblTempUsageDetail_20' ) end [2025-04-14 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:33:22] Production.INFO: ==30317== Releasing lock... [2025-04-14 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:34:05 [end_date_ymd] => 2025-04-14 02:34:05 [RateCDR] => 1 ) [2025-04-14 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:34:05' and `end` < '2025-04-14 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:34:18] Production.INFO: count ==189 [2025-04-14 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:34:05 - End Time 2025-04-14 02:34:05 [2025-04-14 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903208', 'tblTempUsageDetail_20' ) start [2025-04-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903208', 'tblTempUsageDetail_20' ) end [2025-04-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903208', 'tblTempVendorCDR_20' ) start [2025-04-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903208', 'tblTempVendorCDR_20' ) end [2025-04-14 02:34:18] Production.INFO: ProcessCDR(1,14903208,1,1,2) [2025-04-14 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903208', 'tblTempUsageDetail_20' ) start [2025-04-14 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903208', 'tblTempUsageDetail_20' ) end [2025-04-14 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:34:21] Production.INFO: ==30392== Releasing lock... [2025-04-14 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:35:05 [end_date_ymd] => 2025-04-14 02:35:05 [RateCDR] => 1 ) [2025-04-14 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:35:05' and `end` < '2025-04-14 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-04-14 02:35:18] Production.INFO: count ==189 [2025-04-14 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:35:05 - End Time 2025-04-14 02:35:05 [2025-04-14 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903213', 'tblTempUsageDetail_20' ) start [2025-04-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903213', 'tblTempUsageDetail_20' ) end [2025-04-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903213', 'tblTempVendorCDR_20' ) start [2025-04-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903213', 'tblTempVendorCDR_20' ) end [2025-04-14 02:35:18] Production.INFO: ProcessCDR(1,14903213,1,1,2) [2025-04-14 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903213', 'tblTempUsageDetail_20' ) start [2025-04-14 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903213', 'tblTempUsageDetail_20' ) end [2025-04-14 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:35:21] Production.INFO: ==30475== Releasing lock... [2025-04-14 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:36:05 [end_date_ymd] => 2025-04-14 02:36:05 [RateCDR] => 1 ) [2025-04-14 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:36:05' and `end` < '2025-04-14 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:36:18] Production.INFO: count ==189 [2025-04-14 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:36:05 - End Time 2025-04-14 02:36:05 [2025-04-14 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903218', 'tblTempUsageDetail_20' ) start [2025-04-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903218', 'tblTempUsageDetail_20' ) end [2025-04-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903218', 'tblTempVendorCDR_20' ) start [2025-04-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903218', 'tblTempVendorCDR_20' ) end [2025-04-14 02:36:18] Production.INFO: ProcessCDR(1,14903218,1,1,2) [2025-04-14 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903218', 'tblTempUsageDetail_20' ) start [2025-04-14 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903218', 'tblTempUsageDetail_20' ) end [2025-04-14 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:36:21] Production.INFO: ==30547== Releasing lock... [2025-04-14 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:37:05 [end_date_ymd] => 2025-04-14 02:37:05 [RateCDR] => 1 ) [2025-04-14 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:37:05' and `end` < '2025-04-14 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:37:18] Production.INFO: count ==189 [2025-04-14 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:37:05 - End Time 2025-04-14 02:37:05 [2025-04-14 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903223', 'tblTempUsageDetail_20' ) start [2025-04-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903223', 'tblTempUsageDetail_20' ) end [2025-04-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903223', 'tblTempVendorCDR_20' ) start [2025-04-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903223', 'tblTempVendorCDR_20' ) end [2025-04-14 02:37:18] Production.INFO: ProcessCDR(1,14903223,1,1,2) [2025-04-14 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903223', 'tblTempUsageDetail_20' ) start [2025-04-14 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903223', 'tblTempUsageDetail_20' ) end [2025-04-14 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:37:21] Production.INFO: ==30666== Releasing lock... [2025-04-14 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:38:05 [end_date_ymd] => 2025-04-14 02:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:38:05' and `end` < '2025-04-14 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-04-14 02:38:18] Production.INFO: count ==187 [2025-04-14 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:38:05 - End Time 2025-04-14 02:38:05 [2025-04-14 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903228', 'tblTempUsageDetail_20' ) start [2025-04-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903228', 'tblTempUsageDetail_20' ) end [2025-04-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903228', 'tblTempVendorCDR_20' ) start [2025-04-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903228', 'tblTempVendorCDR_20' ) end [2025-04-14 02:38:18] Production.INFO: ProcessCDR(1,14903228,1,1,2) [2025-04-14 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903228', 'tblTempUsageDetail_20' ) start [2025-04-14 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903228', 'tblTempUsageDetail_20' ) end [2025-04-14 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:38:21] Production.INFO: ==30738== Releasing lock... [2025-04-14 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:39:05 [end_date_ymd] => 2025-04-14 02:39:05 [RateCDR] => 1 ) [2025-04-14 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:39:05' and `end` < '2025-04-14 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:39:18] Production.INFO: count ==187 [2025-04-14 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:39:05 - End Time 2025-04-14 02:39:05 [2025-04-14 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903233', 'tblTempUsageDetail_20' ) start [2025-04-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903233', 'tblTempUsageDetail_20' ) end [2025-04-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903233', 'tblTempVendorCDR_20' ) start [2025-04-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903233', 'tblTempVendorCDR_20' ) end [2025-04-14 02:39:18] Production.INFO: ProcessCDR(1,14903233,1,1,2) [2025-04-14 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903233', 'tblTempUsageDetail_20' ) start [2025-04-14 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903233', 'tblTempUsageDetail_20' ) end [2025-04-14 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:39:21] Production.INFO: ==30813== Releasing lock... [2025-04-14 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:40:06 [end_date_ymd] => 2025-04-14 02:40:06 [RateCDR] => 1 ) [2025-04-14 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:40:06' and `end` < '2025-04-14 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:40:19] Production.INFO: count ==195 [2025-04-14 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-13 23:40:06 - End Time 2025-04-14 02:40:06 [2025-04-14 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903238', 'tblTempUsageDetail_20' ) start [2025-04-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903238', 'tblTempUsageDetail_20' ) end [2025-04-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903238', 'tblTempVendorCDR_20' ) start [2025-04-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903238', 'tblTempVendorCDR_20' ) end [2025-04-14 02:40:19] Production.INFO: ProcessCDR(1,14903238,1,1,2) [2025-04-14 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903238', 'tblTempUsageDetail_20' ) start [2025-04-14 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903238', 'tblTempUsageDetail_20' ) end [2025-04-14 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:40:22] Production.INFO: ==30889== Releasing lock... [2025-04-14 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:41:05 [end_date_ymd] => 2025-04-14 02:41:05 [RateCDR] => 1 ) [2025-04-14 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:41:05' and `end` < '2025-04-14 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:41:18] Production.INFO: count ==197 [2025-04-14 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:41:05 - End Time 2025-04-14 02:41:05 [2025-04-14 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903244', 'tblTempUsageDetail_20' ) start [2025-04-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903244', 'tblTempUsageDetail_20' ) end [2025-04-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903244', 'tblTempVendorCDR_20' ) start [2025-04-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903244', 'tblTempVendorCDR_20' ) end [2025-04-14 02:41:18] Production.INFO: ProcessCDR(1,14903244,1,1,2) [2025-04-14 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903244', 'tblTempUsageDetail_20' ) start [2025-04-14 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903244', 'tblTempUsageDetail_20' ) end [2025-04-14 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:41:21] Production.INFO: ==30974== Releasing lock... [2025-04-14 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:42:05 [end_date_ymd] => 2025-04-14 02:42:05 [RateCDR] => 1 ) [2025-04-14 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:42:05' and `end` < '2025-04-14 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:42:18] Production.INFO: count ==199 [2025-04-14 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:42:05 - End Time 2025-04-14 02:42:05 [2025-04-14 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903249', 'tblTempUsageDetail_20' ) start [2025-04-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903249', 'tblTempUsageDetail_20' ) end [2025-04-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903249', 'tblTempVendorCDR_20' ) start [2025-04-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903249', 'tblTempVendorCDR_20' ) end [2025-04-14 02:42:18] Production.INFO: ProcessCDR(1,14903249,1,1,2) [2025-04-14 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903249', 'tblTempUsageDetail_20' ) start [2025-04-14 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903249', 'tblTempUsageDetail_20' ) end [2025-04-14 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:42:21] Production.INFO: ==31045== Releasing lock... [2025-04-14 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:43:05 [end_date_ymd] => 2025-04-14 02:43:05 [RateCDR] => 1 ) [2025-04-14 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:43:05' and `end` < '2025-04-14 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:43:18] Production.INFO: count ==199 [2025-04-14 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:43:05 - End Time 2025-04-14 02:43:05 [2025-04-14 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903254', 'tblTempUsageDetail_20' ) start [2025-04-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903254', 'tblTempUsageDetail_20' ) end [2025-04-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903254', 'tblTempVendorCDR_20' ) start [2025-04-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903254', 'tblTempVendorCDR_20' ) end [2025-04-14 02:43:18] Production.INFO: ProcessCDR(1,14903254,1,1,2) [2025-04-14 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903254', 'tblTempUsageDetail_20' ) start [2025-04-14 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903254', 'tblTempUsageDetail_20' ) end [2025-04-14 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:43:21] Production.INFO: ==31133== Releasing lock... [2025-04-14 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:44:05 [end_date_ymd] => 2025-04-14 02:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:44:05' and `end` < '2025-04-14 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-04-14 02:44:17] Production.INFO: count ==198 [2025-04-14 02:44:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:44:05 - End Time 2025-04-14 02:44:05 [2025-04-14 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903259', 'tblTempUsageDetail_20' ) start [2025-04-14 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903259', 'tblTempUsageDetail_20' ) end [2025-04-14 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903259', 'tblTempVendorCDR_20' ) start [2025-04-14 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903259', 'tblTempVendorCDR_20' ) end [2025-04-14 02:44:17] Production.INFO: ProcessCDR(1,14903259,1,1,2) [2025-04-14 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903259', 'tblTempUsageDetail_20' ) start [2025-04-14 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903259', 'tblTempUsageDetail_20' ) end [2025-04-14 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:44:21] Production.INFO: ==31209== Releasing lock... [2025-04-14 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:45:05 [end_date_ymd] => 2025-04-14 02:45:05 [RateCDR] => 1 ) [2025-04-14 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:45:05' and `end` < '2025-04-14 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:45:18] Production.INFO: count ==198 [2025-04-14 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:45:05 - End Time 2025-04-14 02:45:05 [2025-04-14 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903264', 'tblTempUsageDetail_20' ) start [2025-04-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903264', 'tblTempUsageDetail_20' ) end [2025-04-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903264', 'tblTempVendorCDR_20' ) start [2025-04-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903264', 'tblTempVendorCDR_20' ) end [2025-04-14 02:45:18] Production.INFO: ProcessCDR(1,14903264,1,1,2) [2025-04-14 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903264', 'tblTempUsageDetail_20' ) start [2025-04-14 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903264', 'tblTempUsageDetail_20' ) end [2025-04-14 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:45:21] Production.INFO: ==31283== Releasing lock... [2025-04-14 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:46:05 [end_date_ymd] => 2025-04-14 02:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:46:05' and `end` < '2025-04-14 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-04-14 02:46:17] Production.INFO: count ==197 [2025-04-14 02:46:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:46:05 - End Time 2025-04-14 02:46:05 [2025-04-14 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903269', 'tblTempUsageDetail_20' ) start [2025-04-14 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903269', 'tblTempUsageDetail_20' ) end [2025-04-14 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903269', 'tblTempVendorCDR_20' ) start [2025-04-14 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903269', 'tblTempVendorCDR_20' ) end [2025-04-14 02:46:17] Production.INFO: ProcessCDR(1,14903269,1,1,2) [2025-04-14 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903269', 'tblTempUsageDetail_20' ) start [2025-04-14 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903269', 'tblTempUsageDetail_20' ) end [2025-04-14 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:46:21] Production.INFO: ==31358== Releasing lock... [2025-04-14 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:47:05 [end_date_ymd] => 2025-04-14 02:47:05 [RateCDR] => 1 ) [2025-04-14 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:47:05' and `end` < '2025-04-14 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:47:18] Production.INFO: count ==197 [2025-04-14 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:47:05 - End Time 2025-04-14 02:47:05 [2025-04-14 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903274', 'tblTempUsageDetail_20' ) start [2025-04-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903274', 'tblTempUsageDetail_20' ) end [2025-04-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903274', 'tblTempVendorCDR_20' ) start [2025-04-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903274', 'tblTempVendorCDR_20' ) end [2025-04-14 02:47:18] Production.INFO: ProcessCDR(1,14903274,1,1,2) [2025-04-14 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903274', 'tblTempUsageDetail_20' ) start [2025-04-14 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903274', 'tblTempUsageDetail_20' ) end [2025-04-14 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:47:21] Production.INFO: ==31434== Releasing lock... [2025-04-14 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:48:05 [end_date_ymd] => 2025-04-14 02:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:48:05' and `end` < '2025-04-14 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-04-14 02:48:17] Production.INFO: count ==197 [2025-04-14 02:48:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:48:05 - End Time 2025-04-14 02:48:05 [2025-04-14 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903279', 'tblTempUsageDetail_20' ) start [2025-04-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903279', 'tblTempUsageDetail_20' ) end [2025-04-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903279', 'tblTempVendorCDR_20' ) start [2025-04-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903279', 'tblTempVendorCDR_20' ) end [2025-04-14 02:48:17] Production.INFO: ProcessCDR(1,14903279,1,1,2) [2025-04-14 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903279', 'tblTempUsageDetail_20' ) start [2025-04-14 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903279', 'tblTempUsageDetail_20' ) end [2025-04-14 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:48:21] Production.INFO: ==31514== Releasing lock... [2025-04-14 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:49:05 [end_date_ymd] => 2025-04-14 02:49:05 [RateCDR] => 1 ) [2025-04-14 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:49:05' and `end` < '2025-04-14 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:49:18] Production.INFO: count ==197 [2025-04-14 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:49:05 - End Time 2025-04-14 02:49:05 [2025-04-14 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903284', 'tblTempUsageDetail_20' ) start [2025-04-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903284', 'tblTempUsageDetail_20' ) end [2025-04-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903284', 'tblTempVendorCDR_20' ) start [2025-04-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903284', 'tblTempVendorCDR_20' ) end [2025-04-14 02:49:18] Production.INFO: ProcessCDR(1,14903284,1,1,2) [2025-04-14 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903284', 'tblTempUsageDetail_20' ) start [2025-04-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903284', 'tblTempUsageDetail_20' ) end [2025-04-14 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:49:21] Production.INFO: ==31589== Releasing lock... [2025-04-14 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:50:06 [end_date_ymd] => 2025-04-14 02:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:50:06' and `end` < '2025-04-14 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-04-14 02:50:19] Production.INFO: count ==197 [2025-04-14 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-13 23:50:06 - End Time 2025-04-14 02:50:06 [2025-04-14 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903290', 'tblTempUsageDetail_20' ) start [2025-04-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903290', 'tblTempUsageDetail_20' ) end [2025-04-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903290', 'tblTempVendorCDR_20' ) start [2025-04-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903290', 'tblTempVendorCDR_20' ) end [2025-04-14 02:50:19] Production.INFO: ProcessCDR(1,14903290,1,1,2) [2025-04-14 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903290', 'tblTempUsageDetail_20' ) start [2025-04-14 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903290', 'tblTempUsageDetail_20' ) end [2025-04-14 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:50:22] Production.INFO: ==31666== Releasing lock... [2025-04-14 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:51:05 [end_date_ymd] => 2025-04-14 02:51:05 [RateCDR] => 1 ) [2025-04-14 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:51:05' and `end` < '2025-04-14 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:51:18] Production.INFO: count ==197 [2025-04-14 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:51:05 - End Time 2025-04-14 02:51:05 [2025-04-14 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903295', 'tblTempUsageDetail_20' ) start [2025-04-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903295', 'tblTempUsageDetail_20' ) end [2025-04-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903295', 'tblTempVendorCDR_20' ) start [2025-04-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903295', 'tblTempVendorCDR_20' ) end [2025-04-14 02:51:18] Production.INFO: ProcessCDR(1,14903295,1,1,2) [2025-04-14 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903295', 'tblTempUsageDetail_20' ) start [2025-04-14 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903295', 'tblTempUsageDetail_20' ) end [2025-04-14 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:51:21] Production.INFO: ==31744== Releasing lock... [2025-04-14 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:52:06 [end_date_ymd] => 2025-04-14 02:52:06 [RateCDR] => 1 ) [2025-04-14 02: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-04-13 23:52:06' and `end` < '2025-04-14 02: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-04-14 02:52:18] Production.INFO: count ==195 [2025-04-14 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:52:06 - End Time 2025-04-14 02:52:06 [2025-04-14 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903300', 'tblTempUsageDetail_20' ) start [2025-04-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903300', 'tblTempUsageDetail_20' ) end [2025-04-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903300', 'tblTempVendorCDR_20' ) start [2025-04-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903300', 'tblTempVendorCDR_20' ) end [2025-04-14 02:52:18] Production.INFO: ProcessCDR(1,14903300,1,1,2) [2025-04-14 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903300', 'tblTempUsageDetail_20' ) start [2025-04-14 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903300', 'tblTempUsageDetail_20' ) end [2025-04-14 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:52:22] Production.INFO: ==31819== Releasing lock... [2025-04-14 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:53:05 [end_date_ymd] => 2025-04-14 02:53:05 [RateCDR] => 1 ) [2025-04-14 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:53:05' and `end` < '2025-04-14 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:53:18] Production.INFO: count ==192 [2025-04-14 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:53:05 - End Time 2025-04-14 02:53:05 [2025-04-14 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903305', 'tblTempUsageDetail_20' ) start [2025-04-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903305', 'tblTempUsageDetail_20' ) end [2025-04-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903305', 'tblTempVendorCDR_20' ) start [2025-04-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903305', 'tblTempVendorCDR_20' ) end [2025-04-14 02:53:18] Production.INFO: ProcessCDR(1,14903305,1,1,2) [2025-04-14 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903305', 'tblTempUsageDetail_20' ) start [2025-04-14 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903305', 'tblTempUsageDetail_20' ) end [2025-04-14 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:53:21] Production.INFO: ==31932== Releasing lock... [2025-04-14 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:54:06 [end_date_ymd] => 2025-04-14 02:54:06 [RateCDR] => 1 ) [2025-04-14 02: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-04-13 23:54:06' and `end` < '2025-04-14 02: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-04-14 02:54:18] Production.INFO: count ==192 [2025-04-14 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:54:06 - End Time 2025-04-14 02:54:06 [2025-04-14 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903310', 'tblTempUsageDetail_20' ) start [2025-04-14 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903310', 'tblTempUsageDetail_20' ) end [2025-04-14 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903310', 'tblTempVendorCDR_20' ) start [2025-04-14 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903310', 'tblTempVendorCDR_20' ) end [2025-04-14 02:54:19] Production.INFO: ProcessCDR(1,14903310,1,1,2) [2025-04-14 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903310', 'tblTempUsageDetail_20' ) start [2025-04-14 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903310', 'tblTempUsageDetail_20' ) end [2025-04-14 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:54:22] Production.INFO: ==32010== Releasing lock... [2025-04-14 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:55:05 [end_date_ymd] => 2025-04-14 02:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:55:05' and `end` < '2025-04-14 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-04-14 02:55:18] Production.INFO: count ==192 [2025-04-14 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:55:05 - End Time 2025-04-14 02:55:05 [2025-04-14 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903315', 'tblTempUsageDetail_20' ) start [2025-04-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903315', 'tblTempUsageDetail_20' ) end [2025-04-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903315', 'tblTempVendorCDR_20' ) start [2025-04-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903315', 'tblTempVendorCDR_20' ) end [2025-04-14 02:55:18] Production.INFO: ProcessCDR(1,14903315,1,1,2) [2025-04-14 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903315', 'tblTempUsageDetail_20' ) start [2025-04-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903315', 'tblTempUsageDetail_20' ) end [2025-04-14 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:55:21] Production.INFO: ==32081== Releasing lock... [2025-04-14 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:56:05 [end_date_ymd] => 2025-04-14 02:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:56:05' and `end` < '2025-04-14 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-04-14 02:56:17] Production.INFO: count ==190 [2025-04-14 02:56:17] Production.ERROR: pbx CDR StartTime 2025-04-13 23:56:05 - End Time 2025-04-14 02:56:05 [2025-04-14 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903320', 'tblTempUsageDetail_20' ) start [2025-04-14 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903320', 'tblTempUsageDetail_20' ) end [2025-04-14 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903320', 'tblTempVendorCDR_20' ) start [2025-04-14 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903320', 'tblTempVendorCDR_20' ) end [2025-04-14 02:56:17] Production.INFO: ProcessCDR(1,14903320,1,1,2) [2025-04-14 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903320', 'tblTempUsageDetail_20' ) start [2025-04-14 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903320', 'tblTempUsageDetail_20' ) end [2025-04-14 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:56:21] Production.INFO: ==32153== Releasing lock... [2025-04-14 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:57:06 [end_date_ymd] => 2025-04-14 02:57:06 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:57:06' and `end` < '2025-04-14 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-04-14 02:57:18] Production.INFO: count ==192 [2025-04-14 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:57:06 - End Time 2025-04-14 02:57:06 [2025-04-14 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903325', 'tblTempUsageDetail_20' ) start [2025-04-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903325', 'tblTempUsageDetail_20' ) end [2025-04-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903325', 'tblTempVendorCDR_20' ) start [2025-04-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903325', 'tblTempVendorCDR_20' ) end [2025-04-14 02:57:18] Production.INFO: ProcessCDR(1,14903325,1,1,2) [2025-04-14 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903325', 'tblTempUsageDetail_20' ) start [2025-04-14 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903325', 'tblTempUsageDetail_20' ) end [2025-04-14 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:57:21] Production.INFO: ==32234== Releasing lock... [2025-04-14 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:58:05 [end_date_ymd] => 2025-04-14 02:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-13 23:58:05' and `end` < '2025-04-14 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-04-14 02:58:18] Production.INFO: count ==192 [2025-04-14 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:58:05 - End Time 2025-04-14 02:58:05 [2025-04-14 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903330', 'tblTempUsageDetail_20' ) start [2025-04-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903330', 'tblTempUsageDetail_20' ) end [2025-04-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903330', 'tblTempVendorCDR_20' ) start [2025-04-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903330', 'tblTempVendorCDR_20' ) end [2025-04-14 02:58:18] Production.INFO: ProcessCDR(1,14903330,1,1,2) [2025-04-14 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903330', 'tblTempUsageDetail_20' ) start [2025-04-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903330', 'tblTempUsageDetail_20' ) end [2025-04-14 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:58:21] Production.INFO: ==32309== Releasing lock... [2025-04-14 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-13 23:59:05 [end_date_ymd] => 2025-04-14 02:59:05 [RateCDR] => 1 ) [2025-04-14 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-13 23:59:05' and `end` < '2025-04-14 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 02:59:18] Production.INFO: count ==190 [2025-04-14 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-13 23:59:05 - End Time 2025-04-14 02:59:05 [2025-04-14 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903335', 'tblTempUsageDetail_20' ) start [2025-04-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903335', 'tblTempUsageDetail_20' ) end [2025-04-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903335', 'tblTempVendorCDR_20' ) start [2025-04-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903335', 'tblTempVendorCDR_20' ) end [2025-04-14 02:59:18] Production.INFO: ProcessCDR(1,14903335,1,1,2) [2025-04-14 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903335', 'tblTempUsageDetail_20' ) start [2025-04-14 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903335', 'tblTempUsageDetail_20' ) end [2025-04-14 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 02:59:21] Production.INFO: ==32384== Releasing lock... [2025-04-14 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 02:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:00:05 [end_date_ymd] => 2025-04-14 03:00:05 [RateCDR] => 1 ) [2025-04-14 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:00:05' and `end` < '2025-04-14 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:00:18] Production.INFO: count ==190 [2025-04-14 03:00:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:00:05 - End Time 2025-04-14 03:00:05 [2025-04-14 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903340', 'tblTempUsageDetail_20' ) start [2025-04-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903340', 'tblTempUsageDetail_20' ) end [2025-04-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903340', 'tblTempVendorCDR_20' ) start [2025-04-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903340', 'tblTempVendorCDR_20' ) end [2025-04-14 03:00:18] Production.INFO: ProcessCDR(1,14903340,1,1,2) [2025-04-14 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903340', 'tblTempUsageDetail_20' ) start [2025-04-14 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903340', 'tblTempUsageDetail_20' ) end [2025-04-14 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:00:21] Production.INFO: ==32462== Releasing lock... [2025-04-14 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:01:05 [end_date_ymd] => 2025-04-14 03:01:05 [RateCDR] => 1 ) [2025-04-14 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:01:05' and `end` < '2025-04-14 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:01:18] Production.INFO: count ==190 [2025-04-14 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:01:05 - End Time 2025-04-14 03:01:05 [2025-04-14 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903346', 'tblTempUsageDetail_20' ) start [2025-04-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903346', 'tblTempUsageDetail_20' ) end [2025-04-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903346', 'tblTempVendorCDR_20' ) start [2025-04-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903346', 'tblTempVendorCDR_20' ) end [2025-04-14 03:01:18] Production.INFO: ProcessCDR(1,14903346,1,1,2) [2025-04-14 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903346', 'tblTempUsageDetail_20' ) start [2025-04-14 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903346', 'tblTempUsageDetail_20' ) end [2025-04-14 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:01:21] Production.INFO: ==32549== Releasing lock... [2025-04-14 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:02:04 [end_date_ymd] => 2025-04-14 03:02:04 [RateCDR] => 1 ) [2025-04-14 03:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:02:04' and `end` < '2025-04-14 03:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:02:17] Production.INFO: count ==190 [2025-04-14 03:02:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:02:04 - End Time 2025-04-14 03:02:04 [2025-04-14 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903351', 'tblTempUsageDetail_20' ) start [2025-04-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903351', 'tblTempUsageDetail_20' ) end [2025-04-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903351', 'tblTempVendorCDR_20' ) start [2025-04-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903351', 'tblTempVendorCDR_20' ) end [2025-04-14 03:02:17] Production.INFO: ProcessCDR(1,14903351,1,1,2) [2025-04-14 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903351', 'tblTempUsageDetail_20' ) start [2025-04-14 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903351', 'tblTempUsageDetail_20' ) end [2025-04-14 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:02:20] Production.INFO: ==32701== Releasing lock... [2025-04-14 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:02:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:03:05 [end_date_ymd] => 2025-04-14 03:03:05 [RateCDR] => 1 ) [2025-04-14 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:03:05' and `end` < '2025-04-14 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:03:17] Production.INFO: count ==190 [2025-04-14 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:03:05 - End Time 2025-04-14 03:03:05 [2025-04-14 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903356', 'tblTempUsageDetail_20' ) start [2025-04-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903356', 'tblTempUsageDetail_20' ) end [2025-04-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903356', 'tblTempVendorCDR_20' ) start [2025-04-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903356', 'tblTempVendorCDR_20' ) end [2025-04-14 03:03:18] Production.INFO: ProcessCDR(1,14903356,1,1,2) [2025-04-14 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903356', 'tblTempUsageDetail_20' ) start [2025-04-14 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903356', 'tblTempUsageDetail_20' ) end [2025-04-14 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:03:21] Production.INFO: ==302== Releasing lock... [2025-04-14 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:04:06 [end_date_ymd] => 2025-04-14 03:04:06 [RateCDR] => 1 ) [2025-04-14 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:04:06' and `end` < '2025-04-14 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:04:18] Production.INFO: count ==190 [2025-04-14 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:04:06 - End Time 2025-04-14 03:04:06 [2025-04-14 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903361', 'tblTempUsageDetail_20' ) start [2025-04-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903361', 'tblTempUsageDetail_20' ) end [2025-04-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903361', 'tblTempVendorCDR_20' ) start [2025-04-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903361', 'tblTempVendorCDR_20' ) end [2025-04-14 03:04:18] Production.INFO: ProcessCDR(1,14903361,1,1,2) [2025-04-14 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903361', 'tblTempUsageDetail_20' ) start [2025-04-14 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903361', 'tblTempUsageDetail_20' ) end [2025-04-14 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:04:22] Production.INFO: ==392== Releasing lock... [2025-04-14 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:05:05 [end_date_ymd] => 2025-04-14 03:05:05 [RateCDR] => 1 ) [2025-04-14 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:05:05' and `end` < '2025-04-14 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:05:18] Production.INFO: count ==190 [2025-04-14 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:05:05 - End Time 2025-04-14 03:05:05 [2025-04-14 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903366', 'tblTempUsageDetail_20' ) start [2025-04-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903366', 'tblTempUsageDetail_20' ) end [2025-04-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903366', 'tblTempVendorCDR_20' ) start [2025-04-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903366', 'tblTempVendorCDR_20' ) end [2025-04-14 03:05:18] Production.INFO: ProcessCDR(1,14903366,1,1,2) [2025-04-14 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903366', 'tblTempUsageDetail_20' ) start [2025-04-14 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903366', 'tblTempUsageDetail_20' ) end [2025-04-14 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:05:21] Production.INFO: ==464== Releasing lock... [2025-04-14 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:06:05 [end_date_ymd] => 2025-04-14 03:06:05 [RateCDR] => 1 ) [2025-04-14 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:06:05' and `end` < '2025-04-14 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:06:18] Production.INFO: count ==189 [2025-04-14 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:06:05 - End Time 2025-04-14 03:06:05 [2025-04-14 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903371', 'tblTempUsageDetail_20' ) start [2025-04-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903371', 'tblTempUsageDetail_20' ) end [2025-04-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903371', 'tblTempVendorCDR_20' ) start [2025-04-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903371', 'tblTempVendorCDR_20' ) end [2025-04-14 03:06:18] Production.INFO: ProcessCDR(1,14903371,1,1,2) [2025-04-14 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903371', 'tblTempUsageDetail_20' ) start [2025-04-14 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903371', 'tblTempUsageDetail_20' ) end [2025-04-14 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:06:21] Production.INFO: ==627== Releasing lock... [2025-04-14 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:07:05 [end_date_ymd] => 2025-04-14 03:07:05 [RateCDR] => 1 ) [2025-04-14 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:07:05' and `end` < '2025-04-14 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:07:17] Production.INFO: count ==188 [2025-04-14 03:07:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:07:05 - End Time 2025-04-14 03:07:05 [2025-04-14 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903376', 'tblTempUsageDetail_20' ) start [2025-04-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903376', 'tblTempUsageDetail_20' ) end [2025-04-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903376', 'tblTempVendorCDR_20' ) start [2025-04-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903376', 'tblTempVendorCDR_20' ) end [2025-04-14 03:07:17] Production.INFO: ProcessCDR(1,14903376,1,1,2) [2025-04-14 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903376', 'tblTempUsageDetail_20' ) start [2025-04-14 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903376', 'tblTempUsageDetail_20' ) end [2025-04-14 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:07:21] Production.INFO: ==729== Releasing lock... [2025-04-14 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:08:05 [end_date_ymd] => 2025-04-14 03:08:05 [RateCDR] => 1 ) [2025-04-14 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:08:05' and `end` < '2025-04-14 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:08:18] Production.INFO: count ==188 [2025-04-14 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:08:05 - End Time 2025-04-14 03:08:05 [2025-04-14 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903381', 'tblTempUsageDetail_20' ) start [2025-04-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903381', 'tblTempUsageDetail_20' ) end [2025-04-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903381', 'tblTempVendorCDR_20' ) start [2025-04-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903381', 'tblTempVendorCDR_20' ) end [2025-04-14 03:08:18] Production.INFO: ProcessCDR(1,14903381,1,1,2) [2025-04-14 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903381', 'tblTempUsageDetail_20' ) start [2025-04-14 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903381', 'tblTempUsageDetail_20' ) end [2025-04-14 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:08:21] Production.INFO: ==843== Releasing lock... [2025-04-14 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:09:04 [end_date_ymd] => 2025-04-14 03:09:04 [RateCDR] => 1 ) [2025-04-14 03:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:09:04' and `end` < '2025-04-14 03:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:09:17] Production.INFO: count ==188 [2025-04-14 03:09:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:09:04 - End Time 2025-04-14 03:09:04 [2025-04-14 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903386', 'tblTempUsageDetail_20' ) start [2025-04-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903386', 'tblTempUsageDetail_20' ) end [2025-04-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903386', 'tblTempVendorCDR_20' ) start [2025-04-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903386', 'tblTempVendorCDR_20' ) end [2025-04-14 03:09:17] Production.INFO: ProcessCDR(1,14903386,1,1,2) [2025-04-14 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903386', 'tblTempUsageDetail_20' ) start [2025-04-14 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903386', 'tblTempUsageDetail_20' ) end [2025-04-14 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:09:20] Production.INFO: ==992== Releasing lock... [2025-04-14 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:10:05 [end_date_ymd] => 2025-04-14 03:10:05 [RateCDR] => 1 ) [2025-04-14 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:10:05' and `end` < '2025-04-14 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:10:18] Production.INFO: count ==180 [2025-04-14 03:10:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:10:05 - End Time 2025-04-14 03:10:05 [2025-04-14 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903391', 'tblTempUsageDetail_20' ) start [2025-04-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903391', 'tblTempUsageDetail_20' ) end [2025-04-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903391', 'tblTempVendorCDR_20' ) start [2025-04-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903391', 'tblTempVendorCDR_20' ) end [2025-04-14 03:10:18] Production.INFO: ProcessCDR(1,14903391,1,1,2) [2025-04-14 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903391', 'tblTempUsageDetail_20' ) start [2025-04-14 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903391', 'tblTempUsageDetail_20' ) end [2025-04-14 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:10:21] Production.INFO: ==1066== Releasing lock... [2025-04-14 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:11:05 [end_date_ymd] => 2025-04-14 03:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:11:05' and `end` < '2025-04-14 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-04-14 03:11:18] Production.INFO: count ==180 [2025-04-14 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:11:05 - End Time 2025-04-14 03:11:05 [2025-04-14 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903397', 'tblTempUsageDetail_20' ) start [2025-04-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903397', 'tblTempUsageDetail_20' ) end [2025-04-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903397', 'tblTempVendorCDR_20' ) start [2025-04-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903397', 'tblTempVendorCDR_20' ) end [2025-04-14 03:11:18] Production.INFO: ProcessCDR(1,14903397,1,1,2) [2025-04-14 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903397', 'tblTempUsageDetail_20' ) start [2025-04-14 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903397', 'tblTempUsageDetail_20' ) end [2025-04-14 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:11:21] Production.INFO: ==1147== Releasing lock... [2025-04-14 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:12:05 [end_date_ymd] => 2025-04-14 03:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:12:05' and `end` < '2025-04-14 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-04-14 03:12:17] Production.INFO: count ==178 [2025-04-14 03:12:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:12:05 - End Time 2025-04-14 03:12:05 [2025-04-14 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903402', 'tblTempUsageDetail_20' ) start [2025-04-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903402', 'tblTempUsageDetail_20' ) end [2025-04-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903402', 'tblTempVendorCDR_20' ) start [2025-04-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903402', 'tblTempVendorCDR_20' ) end [2025-04-14 03:12:17] Production.INFO: ProcessCDR(1,14903402,1,1,2) [2025-04-14 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903402', 'tblTempUsageDetail_20' ) start [2025-04-14 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903402', 'tblTempUsageDetail_20' ) end [2025-04-14 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:12:21] Production.INFO: ==1224== Releasing lock... [2025-04-14 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:13:05 [end_date_ymd] => 2025-04-14 03:13:05 [RateCDR] => 1 ) [2025-04-14 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:13:05' and `end` < '2025-04-14 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:13:18] Production.INFO: count ==178 [2025-04-14 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:13:05 - End Time 2025-04-14 03:13:05 [2025-04-14 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903407', 'tblTempUsageDetail_20' ) start [2025-04-14 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903407', 'tblTempUsageDetail_20' ) end [2025-04-14 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903407', 'tblTempVendorCDR_20' ) start [2025-04-14 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903407', 'tblTempVendorCDR_20' ) end [2025-04-14 03:13:18] Production.INFO: ProcessCDR(1,14903407,1,1,2) [2025-04-14 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903407', 'tblTempUsageDetail_20' ) start [2025-04-14 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903407', 'tblTempUsageDetail_20' ) end [2025-04-14 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:13:21] Production.INFO: ==1384== Releasing lock... [2025-04-14 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:14:04 [end_date_ymd] => 2025-04-14 03:14:04 [RateCDR] => 1 ) [2025-04-14 03:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:14:04' and `end` < '2025-04-14 03:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:14:17] Production.INFO: count ==176 [2025-04-14 03:14:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:14:04 - End Time 2025-04-14 03:14:04 [2025-04-14 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903412', 'tblTempUsageDetail_20' ) start [2025-04-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903412', 'tblTempUsageDetail_20' ) end [2025-04-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903412', 'tblTempVendorCDR_20' ) start [2025-04-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903412', 'tblTempVendorCDR_20' ) end [2025-04-14 03:14:17] Production.INFO: ProcessCDR(1,14903412,1,1,2) [2025-04-14 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903412', 'tblTempUsageDetail_20' ) start [2025-04-14 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903412', 'tblTempUsageDetail_20' ) end [2025-04-14 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:14:20] Production.INFO: ==1456== Releasing lock... [2025-04-14 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:15:05 [end_date_ymd] => 2025-04-14 03:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:15:05' and `end` < '2025-04-14 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-04-14 03:15:18] Production.INFO: count ==176 [2025-04-14 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:15:05 - End Time 2025-04-14 03:15:05 [2025-04-14 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903417', 'tblTempUsageDetail_20' ) start [2025-04-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903417', 'tblTempUsageDetail_20' ) end [2025-04-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903417', 'tblTempVendorCDR_20' ) start [2025-04-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903417', 'tblTempVendorCDR_20' ) end [2025-04-14 03:15:18] Production.INFO: ProcessCDR(1,14903417,1,1,2) [2025-04-14 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903417', 'tblTempUsageDetail_20' ) start [2025-04-14 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903417', 'tblTempUsageDetail_20' ) end [2025-04-14 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:15:21] Production.INFO: ==1566== Releasing lock... [2025-04-14 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:16:05 [end_date_ymd] => 2025-04-14 03:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:16:05' and `end` < '2025-04-14 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-04-14 03:16:18] Production.INFO: count ==176 [2025-04-14 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:16:05 - End Time 2025-04-14 03:16:05 [2025-04-14 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903422', 'tblTempUsageDetail_20' ) start [2025-04-14 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903422', 'tblTempUsageDetail_20' ) end [2025-04-14 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903422', 'tblTempVendorCDR_20' ) start [2025-04-14 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903422', 'tblTempVendorCDR_20' ) end [2025-04-14 03:16:18] Production.INFO: ProcessCDR(1,14903422,1,1,2) [2025-04-14 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903422', 'tblTempUsageDetail_20' ) start [2025-04-14 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903422', 'tblTempUsageDetail_20' ) end [2025-04-14 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:16:21] Production.INFO: ==1673== Releasing lock... [2025-04-14 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:17:05 [end_date_ymd] => 2025-04-14 03:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:17:05' and `end` < '2025-04-14 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-04-14 03:17:18] Production.INFO: count ==176 [2025-04-14 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:17:05 - End Time 2025-04-14 03:17:05 [2025-04-14 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903427', 'tblTempUsageDetail_20' ) start [2025-04-14 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903427', 'tblTempUsageDetail_20' ) end [2025-04-14 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903427', 'tblTempVendorCDR_20' ) start [2025-04-14 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903427', 'tblTempVendorCDR_20' ) end [2025-04-14 03:17:18] Production.INFO: ProcessCDR(1,14903427,1,1,2) [2025-04-14 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903427', 'tblTempUsageDetail_20' ) start [2025-04-14 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903427', 'tblTempUsageDetail_20' ) end [2025-04-14 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:17:21] Production.INFO: ==1838== Releasing lock... [2025-04-14 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:18:05 [end_date_ymd] => 2025-04-14 03:18:05 [RateCDR] => 1 ) [2025-04-14 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:18:05' and `end` < '2025-04-14 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:18:18] Production.INFO: count ==176 [2025-04-14 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:18:05 - End Time 2025-04-14 03:18:05 [2025-04-14 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903432', 'tblTempUsageDetail_20' ) start [2025-04-14 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903432', 'tblTempUsageDetail_20' ) end [2025-04-14 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903432', 'tblTempVendorCDR_20' ) start [2025-04-14 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903432', 'tblTempVendorCDR_20' ) end [2025-04-14 03:18:18] Production.INFO: ProcessCDR(1,14903432,1,1,2) [2025-04-14 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903432', 'tblTempUsageDetail_20' ) start [2025-04-14 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903432', 'tblTempUsageDetail_20' ) end [2025-04-14 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:18:21] Production.INFO: ==1907== Releasing lock... [2025-04-14 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:19:05 [end_date_ymd] => 2025-04-14 03:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:19:05' and `end` < '2025-04-14 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-04-14 03:19:18] Production.INFO: count ==176 [2025-04-14 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:19:05 - End Time 2025-04-14 03:19:05 [2025-04-14 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903437', 'tblTempUsageDetail_20' ) start [2025-04-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903437', 'tblTempUsageDetail_20' ) end [2025-04-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903437', 'tblTempVendorCDR_20' ) start [2025-04-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903437', 'tblTempVendorCDR_20' ) end [2025-04-14 03:19:18] Production.INFO: ProcessCDR(1,14903437,1,1,2) [2025-04-14 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903437', 'tblTempUsageDetail_20' ) start [2025-04-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903437', 'tblTempUsageDetail_20' ) end [2025-04-14 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:19:21] Production.INFO: ==1981== Releasing lock... [2025-04-14 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:20:06 [end_date_ymd] => 2025-04-14 03:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:20:06' and `end` < '2025-04-14 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-04-14 03:20:19] Production.INFO: count ==166 [2025-04-14 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-14 00:20:06 - End Time 2025-04-14 03:20:06 [2025-04-14 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903443', 'tblTempUsageDetail_20' ) start [2025-04-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903443', 'tblTempUsageDetail_20' ) end [2025-04-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903443', 'tblTempVendorCDR_20' ) start [2025-04-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903443', 'tblTempVendorCDR_20' ) end [2025-04-14 03:20:19] Production.INFO: ProcessCDR(1,14903443,1,1,2) [2025-04-14 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903443', 'tblTempUsageDetail_20' ) start [2025-04-14 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903443', 'tblTempUsageDetail_20' ) end [2025-04-14 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:20:22] Production.INFO: ==2053== Releasing lock... [2025-04-14 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:21:04 [end_date_ymd] => 2025-04-14 03:21:04 [RateCDR] => 1 ) [2025-04-14 03: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-04-14 00:21:04' and `end` < '2025-04-14 03: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-04-14 03:21:17] Production.INFO: count ==162 [2025-04-14 03:21:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:21:04 - End Time 2025-04-14 03:21:04 [2025-04-14 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903448', 'tblTempUsageDetail_20' ) start [2025-04-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903448', 'tblTempUsageDetail_20' ) end [2025-04-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903448', 'tblTempVendorCDR_20' ) start [2025-04-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903448', 'tblTempVendorCDR_20' ) end [2025-04-14 03:21:17] Production.INFO: ProcessCDR(1,14903448,1,1,2) [2025-04-14 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903448', 'tblTempUsageDetail_20' ) start [2025-04-14 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903448', 'tblTempUsageDetail_20' ) end [2025-04-14 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:21:20] Production.INFO: ==2127== Releasing lock... [2025-04-14 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:22:05 [end_date_ymd] => 2025-04-14 03:22:05 [RateCDR] => 1 ) [2025-04-14 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:22:05' and `end` < '2025-04-14 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:22:18] Production.INFO: count ==161 [2025-04-14 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:22:05 - End Time 2025-04-14 03:22:05 [2025-04-14 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903453', 'tblTempUsageDetail_20' ) start [2025-04-14 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903453', 'tblTempUsageDetail_20' ) end [2025-04-14 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903453', 'tblTempVendorCDR_20' ) start [2025-04-14 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903453', 'tblTempVendorCDR_20' ) end [2025-04-14 03:22:18] Production.INFO: ProcessCDR(1,14903453,1,1,2) [2025-04-14 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903453', 'tblTempUsageDetail_20' ) start [2025-04-14 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903453', 'tblTempUsageDetail_20' ) end [2025-04-14 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:22:21] Production.INFO: ==2207== Releasing lock... [2025-04-14 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:22:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:23:05 [end_date_ymd] => 2025-04-14 03:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:23:05' and `end` < '2025-04-14 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-04-14 03:23:18] Production.INFO: count ==160 [2025-04-14 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:23:05 - End Time 2025-04-14 03:23:05 [2025-04-14 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903458', 'tblTempUsageDetail_20' ) start [2025-04-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903458', 'tblTempUsageDetail_20' ) end [2025-04-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903458', 'tblTempVendorCDR_20' ) start [2025-04-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903458', 'tblTempVendorCDR_20' ) end [2025-04-14 03:23:18] Production.INFO: ProcessCDR(1,14903458,1,1,2) [2025-04-14 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903458', 'tblTempUsageDetail_20' ) start [2025-04-14 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903458', 'tblTempUsageDetail_20' ) end [2025-04-14 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:23:21] Production.INFO: ==2283== Releasing lock... [2025-04-14 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:23:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:24:05 [end_date_ymd] => 2025-04-14 03:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:24:05' and `end` < '2025-04-14 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-04-14 03:24:17] Production.INFO: count ==160 [2025-04-14 03:24:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:24:05 - End Time 2025-04-14 03:24:05 [2025-04-14 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903463', 'tblTempUsageDetail_20' ) start [2025-04-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903463', 'tblTempUsageDetail_20' ) end [2025-04-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903463', 'tblTempVendorCDR_20' ) start [2025-04-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903463', 'tblTempVendorCDR_20' ) end [2025-04-14 03:24:17] Production.INFO: ProcessCDR(1,14903463,1,1,2) [2025-04-14 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903463', 'tblTempUsageDetail_20' ) start [2025-04-14 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903463', 'tblTempUsageDetail_20' ) end [2025-04-14 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:24:20] Production.INFO: ==2359== Releasing lock... [2025-04-14 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:24:20] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:25:05 [end_date_ymd] => 2025-04-14 03:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:25:05' and `end` < '2025-04-14 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-04-14 03:25:18] Production.INFO: count ==160 [2025-04-14 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:25:05 - End Time 2025-04-14 03:25:05 [2025-04-14 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903468', 'tblTempUsageDetail_20' ) start [2025-04-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903468', 'tblTempUsageDetail_20' ) end [2025-04-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903468', 'tblTempVendorCDR_20' ) start [2025-04-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903468', 'tblTempVendorCDR_20' ) end [2025-04-14 03:25:18] Production.INFO: ProcessCDR(1,14903468,1,1,2) [2025-04-14 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903468', 'tblTempUsageDetail_20' ) start [2025-04-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903468', 'tblTempUsageDetail_20' ) end [2025-04-14 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:25:21] Production.INFO: ==2474== Releasing lock... [2025-04-14 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:25:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:26:04 [end_date_ymd] => 2025-04-14 03:26:04 [RateCDR] => 1 ) [2025-04-14 03: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-04-14 00:26:04' and `end` < '2025-04-14 03: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-04-14 03:26:17] Production.INFO: count ==160 [2025-04-14 03:26:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:26:04 - End Time 2025-04-14 03:26:04 [2025-04-14 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903473', 'tblTempUsageDetail_20' ) start [2025-04-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903473', 'tblTempUsageDetail_20' ) end [2025-04-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903473', 'tblTempVendorCDR_20' ) start [2025-04-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903473', 'tblTempVendorCDR_20' ) end [2025-04-14 03:26:17] Production.INFO: ProcessCDR(1,14903473,1,1,2) [2025-04-14 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903473', 'tblTempUsageDetail_20' ) start [2025-04-14 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903473', 'tblTempUsageDetail_20' ) end [2025-04-14 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:26:20] Production.INFO: ==2550== Releasing lock... [2025-04-14 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:26:20] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:27:05 [end_date_ymd] => 2025-04-14 03:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:27:05' and `end` < '2025-04-14 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-04-14 03:27:18] Production.INFO: count ==158 [2025-04-14 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:27:05 - End Time 2025-04-14 03:27:05 [2025-04-14 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903478', 'tblTempUsageDetail_20' ) start [2025-04-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903478', 'tblTempUsageDetail_20' ) end [2025-04-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903478', 'tblTempVendorCDR_20' ) start [2025-04-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903478', 'tblTempVendorCDR_20' ) end [2025-04-14 03:27:18] Production.INFO: ProcessCDR(1,14903478,1,1,2) [2025-04-14 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903478', 'tblTempUsageDetail_20' ) start [2025-04-14 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903478', 'tblTempUsageDetail_20' ) end [2025-04-14 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:27:22] Production.INFO: ==2627== Releasing lock... [2025-04-14 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:27:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:28:04 [end_date_ymd] => 2025-04-14 03:28:04 [RateCDR] => 1 ) [2025-04-14 03:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:28:04' and `end` < '2025-04-14 03:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:28:17] Production.INFO: count ==158 [2025-04-14 03:28:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:28:04 - End Time 2025-04-14 03:28:04 [2025-04-14 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903483', 'tblTempUsageDetail_20' ) start [2025-04-14 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903483', 'tblTempUsageDetail_20' ) end [2025-04-14 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903483', 'tblTempVendorCDR_20' ) start [2025-04-14 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903483', 'tblTempVendorCDR_20' ) end [2025-04-14 03:28:17] Production.INFO: ProcessCDR(1,14903483,1,1,2) [2025-04-14 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903483', 'tblTempUsageDetail_20' ) start [2025-04-14 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903483', 'tblTempUsageDetail_20' ) end [2025-04-14 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:28:21] Production.INFO: ==2697== Releasing lock... [2025-04-14 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:28:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:29:05 [end_date_ymd] => 2025-04-14 03:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:29:05' and `end` < '2025-04-14 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-04-14 03:29:17] Production.INFO: count ==160 [2025-04-14 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:29:05 - End Time 2025-04-14 03:29:05 [2025-04-14 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903488', 'tblTempUsageDetail_20' ) start [2025-04-14 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903488', 'tblTempUsageDetail_20' ) end [2025-04-14 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903488', 'tblTempVendorCDR_20' ) start [2025-04-14 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903488', 'tblTempVendorCDR_20' ) end [2025-04-14 03:29:18] Production.INFO: ProcessCDR(1,14903488,1,1,2) [2025-04-14 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903488', 'tblTempUsageDetail_20' ) start [2025-04-14 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903488', 'tblTempUsageDetail_20' ) end [2025-04-14 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:29:21] Production.INFO: ==2773== Releasing lock... [2025-04-14 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:29:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:30:06 [end_date_ymd] => 2025-04-14 03:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:30:06' and `end` < '2025-04-14 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-04-14 03:30:19] Production.INFO: count ==152 [2025-04-14 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 00:30:06 - End Time 2025-04-14 03:30:06 [2025-04-14 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903494', 'tblTempUsageDetail_20' ) start [2025-04-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903494', 'tblTempUsageDetail_20' ) end [2025-04-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903494', 'tblTempVendorCDR_20' ) start [2025-04-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903494', 'tblTempVendorCDR_20' ) end [2025-04-14 03:30:19] Production.INFO: ProcessCDR(1,14903494,1,1,2) [2025-04-14 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903494', 'tblTempUsageDetail_20' ) start [2025-04-14 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903494', 'tblTempUsageDetail_20' ) end [2025-04-14 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:30:23] Production.INFO: ==2849== Releasing lock... [2025-04-14 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:30:23] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:31:05 [end_date_ymd] => 2025-04-14 03:31:05 [RateCDR] => 1 ) [2025-04-14 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:31:05' and `end` < '2025-04-14 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:31:18] Production.INFO: count ==146 [2025-04-14 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:31:05 - End Time 2025-04-14 03:31:05 [2025-04-14 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903499', 'tblTempUsageDetail_20' ) start [2025-04-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903499', 'tblTempUsageDetail_20' ) end [2025-04-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903499', 'tblTempVendorCDR_20' ) start [2025-04-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903499', 'tblTempVendorCDR_20' ) end [2025-04-14 03:31:18] Production.INFO: ProcessCDR(1,14903499,1,1,2) [2025-04-14 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903499', 'tblTempUsageDetail_20' ) start [2025-04-14 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903499', 'tblTempUsageDetail_20' ) end [2025-04-14 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:31:21] Production.INFO: ==2924== Releasing lock... [2025-04-14 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:31:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:32:05 [end_date_ymd] => 2025-04-14 03:32:05 [RateCDR] => 1 ) [2025-04-14 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:32:05' and `end` < '2025-04-14 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:32:18] Production.INFO: count ==146 [2025-04-14 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:32:05 - End Time 2025-04-14 03:32:05 [2025-04-14 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903504', 'tblTempUsageDetail_20' ) start [2025-04-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903504', 'tblTempUsageDetail_20' ) end [2025-04-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903504', 'tblTempVendorCDR_20' ) start [2025-04-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903504', 'tblTempVendorCDR_20' ) end [2025-04-14 03:32:18] Production.INFO: ProcessCDR(1,14903504,1,1,2) [2025-04-14 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903504', 'tblTempUsageDetail_20' ) start [2025-04-14 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903504', 'tblTempUsageDetail_20' ) end [2025-04-14 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:32:21] Production.INFO: ==3004== Releasing lock... [2025-04-14 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:32:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:33:05 [end_date_ymd] => 2025-04-14 03:33:05 [RateCDR] => 1 ) [2025-04-14 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:33:05' and `end` < '2025-04-14 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:33:18] Production.INFO: count ==146 [2025-04-14 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:33:05 - End Time 2025-04-14 03:33:05 [2025-04-14 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903509', 'tblTempUsageDetail_20' ) start [2025-04-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903509', 'tblTempUsageDetail_20' ) end [2025-04-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903509', 'tblTempVendorCDR_20' ) start [2025-04-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903509', 'tblTempVendorCDR_20' ) end [2025-04-14 03:33:18] Production.INFO: ProcessCDR(1,14903509,1,1,2) [2025-04-14 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903509', 'tblTempUsageDetail_20' ) start [2025-04-14 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903509', 'tblTempUsageDetail_20' ) end [2025-04-14 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:33:21] Production.INFO: ==3077== Releasing lock... [2025-04-14 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:34:06 [end_date_ymd] => 2025-04-14 03:34:06 [RateCDR] => 1 ) [2025-04-14 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:34:06' and `end` < '2025-04-14 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:34:18] Production.INFO: count ==146 [2025-04-14 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:34:06 - End Time 2025-04-14 03:34:06 [2025-04-14 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903514', 'tblTempUsageDetail_20' ) start [2025-04-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903514', 'tblTempUsageDetail_20' ) end [2025-04-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903514', 'tblTempVendorCDR_20' ) start [2025-04-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903514', 'tblTempVendorCDR_20' ) end [2025-04-14 03:34:18] Production.INFO: ProcessCDR(1,14903514,1,1,2) [2025-04-14 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903514', 'tblTempUsageDetail_20' ) start [2025-04-14 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903514', 'tblTempUsageDetail_20' ) end [2025-04-14 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:34:22] Production.INFO: ==3151== Releasing lock... [2025-04-14 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:35:05 [end_date_ymd] => 2025-04-14 03:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:35:05' and `end` < '2025-04-14 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-04-14 03:35:17] Production.INFO: count ==145 [2025-04-14 03:35:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:35:05 - End Time 2025-04-14 03:35:05 [2025-04-14 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903519', 'tblTempUsageDetail_20' ) start [2025-04-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903519', 'tblTempUsageDetail_20' ) end [2025-04-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903519', 'tblTempVendorCDR_20' ) start [2025-04-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903519', 'tblTempVendorCDR_20' ) end [2025-04-14 03:35:17] Production.INFO: ProcessCDR(1,14903519,1,1,2) [2025-04-14 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903519', 'tblTempUsageDetail_20' ) start [2025-04-14 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903519', 'tblTempUsageDetail_20' ) end [2025-04-14 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:35:21] Production.INFO: ==3226== Releasing lock... [2025-04-14 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:35:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:36:05 [end_date_ymd] => 2025-04-14 03:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:36:05' and `end` < '2025-04-14 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-04-14 03:36:18] Production.INFO: count ==145 [2025-04-14 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:36:05 - End Time 2025-04-14 03:36:05 [2025-04-14 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903524', 'tblTempUsageDetail_20' ) start [2025-04-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903524', 'tblTempUsageDetail_20' ) end [2025-04-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903524', 'tblTempVendorCDR_20' ) start [2025-04-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903524', 'tblTempVendorCDR_20' ) end [2025-04-14 03:36:18] Production.INFO: ProcessCDR(1,14903524,1,1,2) [2025-04-14 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903524', 'tblTempUsageDetail_20' ) start [2025-04-14 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903524', 'tblTempUsageDetail_20' ) end [2025-04-14 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:36:21] Production.INFO: ==3297== Releasing lock... [2025-04-14 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:36:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:37:06 [end_date_ymd] => 2025-04-14 03:37:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:37:06' and `end` < '2025-04-14 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-04-14 03:37:18] Production.INFO: count ==145 [2025-04-14 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:37:06 - End Time 2025-04-14 03:37:06 [2025-04-14 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903529', 'tblTempUsageDetail_20' ) start [2025-04-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903529', 'tblTempUsageDetail_20' ) end [2025-04-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903529', 'tblTempVendorCDR_20' ) start [2025-04-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903529', 'tblTempVendorCDR_20' ) end [2025-04-14 03:37:18] Production.INFO: ProcessCDR(1,14903529,1,1,2) [2025-04-14 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903529', 'tblTempUsageDetail_20' ) start [2025-04-14 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903529', 'tblTempUsageDetail_20' ) end [2025-04-14 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:37:22] Production.INFO: ==3371== Releasing lock... [2025-04-14 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:37:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:38:05 [end_date_ymd] => 2025-04-14 03:38:05 [RateCDR] => 1 ) [2025-04-14 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:38:05' and `end` < '2025-04-14 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:38:17] Production.INFO: count ==144 [2025-04-14 03:38:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:38:05 - End Time 2025-04-14 03:38:05 [2025-04-14 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903534', 'tblTempUsageDetail_20' ) start [2025-04-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903534', 'tblTempUsageDetail_20' ) end [2025-04-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903534', 'tblTempVendorCDR_20' ) start [2025-04-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903534', 'tblTempVendorCDR_20' ) end [2025-04-14 03:38:17] Production.INFO: ProcessCDR(1,14903534,1,1,2) [2025-04-14 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903534', 'tblTempUsageDetail_20' ) start [2025-04-14 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903534', 'tblTempUsageDetail_20' ) end [2025-04-14 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:38:21] Production.INFO: ==3449== Releasing lock... [2025-04-14 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:39:05 [end_date_ymd] => 2025-04-14 03:39:05 [RateCDR] => 1 ) [2025-04-14 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:39:05' and `end` < '2025-04-14 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:39:18] Production.INFO: count ==144 [2025-04-14 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:39:05 - End Time 2025-04-14 03:39:05 [2025-04-14 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903539', 'tblTempUsageDetail_20' ) start [2025-04-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903539', 'tblTempUsageDetail_20' ) end [2025-04-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903539', 'tblTempVendorCDR_20' ) start [2025-04-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903539', 'tblTempVendorCDR_20' ) end [2025-04-14 03:39:18] Production.INFO: ProcessCDR(1,14903539,1,1,2) [2025-04-14 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903539', 'tblTempUsageDetail_20' ) start [2025-04-14 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903539', 'tblTempUsageDetail_20' ) end [2025-04-14 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:39:21] Production.INFO: ==3520== Releasing lock... [2025-04-14 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:40:06 [end_date_ymd] => 2025-04-14 03:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:40:06' and `end` < '2025-04-14 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-04-14 03:40:18] Production.INFO: count ==136 [2025-04-14 03:40:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:40:06 - End Time 2025-04-14 03:40:06 [2025-04-14 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903545', 'tblTempUsageDetail_20' ) start [2025-04-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903545', 'tblTempUsageDetail_20' ) end [2025-04-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903545', 'tblTempVendorCDR_20' ) start [2025-04-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903545', 'tblTempVendorCDR_20' ) end [2025-04-14 03:40:18] Production.INFO: ProcessCDR(1,14903545,1,1,2) [2025-04-14 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903545', 'tblTempUsageDetail_20' ) start [2025-04-14 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903545', 'tblTempUsageDetail_20' ) end [2025-04-14 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:40:22] Production.INFO: ==3635== Releasing lock... [2025-04-14 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:41:05 [end_date_ymd] => 2025-04-14 03:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:41:05' and `end` < '2025-04-14 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-04-14 03:41:18] Production.INFO: count ==136 [2025-04-14 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:41:05 - End Time 2025-04-14 03:41:05 [2025-04-14 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903550', 'tblTempUsageDetail_20' ) start [2025-04-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903550', 'tblTempUsageDetail_20' ) end [2025-04-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903550', 'tblTempVendorCDR_20' ) start [2025-04-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903550', 'tblTempVendorCDR_20' ) end [2025-04-14 03:41:18] Production.INFO: ProcessCDR(1,14903550,1,1,2) [2025-04-14 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903550', 'tblTempUsageDetail_20' ) start [2025-04-14 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903550', 'tblTempUsageDetail_20' ) end [2025-04-14 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:41:21] Production.INFO: ==3715== Releasing lock... [2025-04-14 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:42:05 [end_date_ymd] => 2025-04-14 03:42:05 [RateCDR] => 1 ) [2025-04-14 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:42:05' and `end` < '2025-04-14 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:42:18] Production.INFO: count ==136 [2025-04-14 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:42:05 - End Time 2025-04-14 03:42:05 [2025-04-14 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903555', 'tblTempUsageDetail_20' ) start [2025-04-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903555', 'tblTempUsageDetail_20' ) end [2025-04-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903555', 'tblTempVendorCDR_20' ) start [2025-04-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903555', 'tblTempVendorCDR_20' ) end [2025-04-14 03:42:18] Production.INFO: ProcessCDR(1,14903555,1,1,2) [2025-04-14 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903555', 'tblTempUsageDetail_20' ) start [2025-04-14 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903555', 'tblTempUsageDetail_20' ) end [2025-04-14 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:42:21] Production.INFO: ==3789== Releasing lock... [2025-04-14 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:43:05 [end_date_ymd] => 2025-04-14 03:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:43:05' and `end` < '2025-04-14 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-04-14 03:43:18] Production.INFO: count ==136 [2025-04-14 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:43:05 - End Time 2025-04-14 03:43:05 [2025-04-14 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903560', 'tblTempUsageDetail_20' ) start [2025-04-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903560', 'tblTempUsageDetail_20' ) end [2025-04-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903560', 'tblTempVendorCDR_20' ) start [2025-04-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903560', 'tblTempVendorCDR_20' ) end [2025-04-14 03:43:18] Production.INFO: ProcessCDR(1,14903560,1,1,2) [2025-04-14 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903560', 'tblTempUsageDetail_20' ) start [2025-04-14 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903560', 'tblTempUsageDetail_20' ) end [2025-04-14 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:43:21] Production.INFO: ==3867== Releasing lock... [2025-04-14 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:44:06 [end_date_ymd] => 2025-04-14 03:44:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:44:06' and `end` < '2025-04-14 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-04-14 03:44:18] Production.INFO: count ==136 [2025-04-14 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:44:06 - End Time 2025-04-14 03:44:06 [2025-04-14 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903565', 'tblTempUsageDetail_20' ) start [2025-04-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903565', 'tblTempUsageDetail_20' ) end [2025-04-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903565', 'tblTempVendorCDR_20' ) start [2025-04-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903565', 'tblTempVendorCDR_20' ) end [2025-04-14 03:44:19] Production.INFO: ProcessCDR(1,14903565,1,1,2) [2025-04-14 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903565', 'tblTempUsageDetail_20' ) start [2025-04-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903565', 'tblTempUsageDetail_20' ) end [2025-04-14 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:44:22] Production.INFO: ==3941== Releasing lock... [2025-04-14 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:45:05 [end_date_ymd] => 2025-04-14 03:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:45:05' and `end` < '2025-04-14 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-04-14 03:45:18] Production.INFO: count ==136 [2025-04-14 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:45:05 - End Time 2025-04-14 03:45:05 [2025-04-14 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903570', 'tblTempUsageDetail_20' ) start [2025-04-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903570', 'tblTempUsageDetail_20' ) end [2025-04-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903570', 'tblTempVendorCDR_20' ) start [2025-04-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903570', 'tblTempVendorCDR_20' ) end [2025-04-14 03:45:18] Production.INFO: ProcessCDR(1,14903570,1,1,2) [2025-04-14 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903570', 'tblTempUsageDetail_20' ) start [2025-04-14 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903570', 'tblTempUsageDetail_20' ) end [2025-04-14 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:45:21] Production.INFO: ==4014== Releasing lock... [2025-04-14 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:46:05 [end_date_ymd] => 2025-04-14 03:46:05 [RateCDR] => 1 ) [2025-04-14 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:46:05' and `end` < '2025-04-14 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-04-14 03:46:18] Production.INFO: count ==136 [2025-04-14 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:46:05 - End Time 2025-04-14 03:46:05 [2025-04-14 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903575', 'tblTempUsageDetail_20' ) start [2025-04-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903575', 'tblTempUsageDetail_20' ) end [2025-04-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903575', 'tblTempVendorCDR_20' ) start [2025-04-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903575', 'tblTempVendorCDR_20' ) end [2025-04-14 03:46:18] Production.INFO: ProcessCDR(1,14903575,1,1,2) [2025-04-14 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903575', 'tblTempUsageDetail_20' ) start [2025-04-14 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903575', 'tblTempUsageDetail_20' ) end [2025-04-14 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:46:21] Production.INFO: ==4089== Releasing lock... [2025-04-14 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:47:05 [end_date_ymd] => 2025-04-14 03:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:47:05' and `end` < '2025-04-14 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-04-14 03:47:17] Production.INFO: count ==138 [2025-04-14 03:47:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:47:05 - End Time 2025-04-14 03:47:05 [2025-04-14 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903580', 'tblTempUsageDetail_20' ) start [2025-04-14 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903580', 'tblTempUsageDetail_20' ) end [2025-04-14 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903580', 'tblTempVendorCDR_20' ) start [2025-04-14 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903580', 'tblTempVendorCDR_20' ) end [2025-04-14 03:47:17] Production.INFO: ProcessCDR(1,14903580,1,1,2) [2025-04-14 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903580', 'tblTempUsageDetail_20' ) start [2025-04-14 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903580', 'tblTempUsageDetail_20' ) end [2025-04-14 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:47:21] Production.INFO: ==4162== Releasing lock... [2025-04-14 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:47:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:48:05 [end_date_ymd] => 2025-04-14 03:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:48:05' and `end` < '2025-04-14 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-04-14 03:48:17] Production.INFO: count ==136 [2025-04-14 03:48:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:48:05 - End Time 2025-04-14 03:48:05 [2025-04-14 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903585', 'tblTempUsageDetail_20' ) start [2025-04-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903585', 'tblTempUsageDetail_20' ) end [2025-04-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903585', 'tblTempVendorCDR_20' ) start [2025-04-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903585', 'tblTempVendorCDR_20' ) end [2025-04-14 03:48:18] Production.INFO: ProcessCDR(1,14903585,1,1,2) [2025-04-14 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903585', 'tblTempUsageDetail_20' ) start [2025-04-14 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903585', 'tblTempUsageDetail_20' ) end [2025-04-14 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:48:21] Production.INFO: ==4239== Releasing lock... [2025-04-14 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:49:04 [end_date_ymd] => 2025-04-14 03:49:04 [RateCDR] => 1 ) [2025-04-14 03: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-04-14 00:49:04' and `end` < '2025-04-14 03: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-04-14 03:49:17] Production.INFO: count ==136 [2025-04-14 03:49:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:49:04 - End Time 2025-04-14 03:49:04 [2025-04-14 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903590', 'tblTempUsageDetail_20' ) start [2025-04-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903590', 'tblTempUsageDetail_20' ) end [2025-04-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903590', 'tblTempVendorCDR_20' ) start [2025-04-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903590', 'tblTempVendorCDR_20' ) end [2025-04-14 03:49:17] Production.INFO: ProcessCDR(1,14903590,1,1,2) [2025-04-14 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903590', 'tblTempUsageDetail_20' ) start [2025-04-14 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903590', 'tblTempUsageDetail_20' ) end [2025-04-14 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:49:21] Production.INFO: ==4314== Releasing lock... [2025-04-14 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:50:05 [end_date_ymd] => 2025-04-14 03:50:05 [RateCDR] => 1 ) [2025-04-14 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:50:05' and `end` < '2025-04-14 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:50:18] Production.INFO: count ==126 [2025-04-14 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:50:05 - End Time 2025-04-14 03:50:05 [2025-04-14 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903595', 'tblTempUsageDetail_20' ) start [2025-04-14 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903595', 'tblTempUsageDetail_20' ) end [2025-04-14 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903595', 'tblTempVendorCDR_20' ) start [2025-04-14 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903595', 'tblTempVendorCDR_20' ) end [2025-04-14 03:50:18] Production.INFO: ProcessCDR(1,14903595,1,1,2) [2025-04-14 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903595', 'tblTempUsageDetail_20' ) start [2025-04-14 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903595', 'tblTempUsageDetail_20' ) end [2025-04-14 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:50:21] Production.INFO: ==4390== Releasing lock... [2025-04-14 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:51:05 [end_date_ymd] => 2025-04-14 03:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:51:05' and `end` < '2025-04-14 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-04-14 03:51:18] Production.INFO: count ==120 [2025-04-14 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:51:05 - End Time 2025-04-14 03:51:05 [2025-04-14 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903601', 'tblTempUsageDetail_20' ) start [2025-04-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903601', 'tblTempUsageDetail_20' ) end [2025-04-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903601', 'tblTempVendorCDR_20' ) start [2025-04-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903601', 'tblTempVendorCDR_20' ) end [2025-04-14 03:51:18] Production.INFO: ProcessCDR(1,14903601,1,1,2) [2025-04-14 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903601', 'tblTempUsageDetail_20' ) start [2025-04-14 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903601', 'tblTempUsageDetail_20' ) end [2025-04-14 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:51:21] Production.INFO: ==4472== Releasing lock... [2025-04-14 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:52:05 [end_date_ymd] => 2025-04-14 03:52:05 [RateCDR] => 1 ) [2025-04-14 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:52:05' and `end` < '2025-04-14 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:52:17] Production.INFO: count ==120 [2025-04-14 03:52:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:52:05 - End Time 2025-04-14 03:52:05 [2025-04-14 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903606', 'tblTempUsageDetail_20' ) start [2025-04-14 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903606', 'tblTempUsageDetail_20' ) end [2025-04-14 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903606', 'tblTempVendorCDR_20' ) start [2025-04-14 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903606', 'tblTempVendorCDR_20' ) end [2025-04-14 03:52:17] Production.INFO: ProcessCDR(1,14903606,1,1,2) [2025-04-14 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903606', 'tblTempUsageDetail_20' ) start [2025-04-14 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903606', 'tblTempUsageDetail_20' ) end [2025-04-14 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:52:21] Production.INFO: ==4544== Releasing lock... [2025-04-14 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:53:05 [end_date_ymd] => 2025-04-14 03:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:53:05' and `end` < '2025-04-14 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-04-14 03:53:18] Production.INFO: count ==120 [2025-04-14 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:53:05 - End Time 2025-04-14 03:53:05 [2025-04-14 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903611', 'tblTempUsageDetail_20' ) start [2025-04-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903611', 'tblTempUsageDetail_20' ) end [2025-04-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903611', 'tblTempVendorCDR_20' ) start [2025-04-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903611', 'tblTempVendorCDR_20' ) end [2025-04-14 03:53:18] Production.INFO: ProcessCDR(1,14903611,1,1,2) [2025-04-14 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903611', 'tblTempUsageDetail_20' ) start [2025-04-14 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903611', 'tblTempUsageDetail_20' ) end [2025-04-14 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:53:21] Production.INFO: ==4626== Releasing lock... [2025-04-14 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:54:04 [end_date_ymd] => 2025-04-14 03:54:04 [RateCDR] => 1 ) [2025-04-14 03:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:54:04' and `end` < '2025-04-14 03:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:54:17] Production.INFO: count ==120 [2025-04-14 03:54:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:54:04 - End Time 2025-04-14 03:54:04 [2025-04-14 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903616', 'tblTempUsageDetail_20' ) start [2025-04-14 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903616', 'tblTempUsageDetail_20' ) end [2025-04-14 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903616', 'tblTempVendorCDR_20' ) start [2025-04-14 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903616', 'tblTempVendorCDR_20' ) end [2025-04-14 03:54:17] Production.INFO: ProcessCDR(1,14903616,1,1,2) [2025-04-14 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903616', 'tblTempUsageDetail_20' ) start [2025-04-14 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903616', 'tblTempUsageDetail_20' ) end [2025-04-14 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:54:20] Production.INFO: ==4709== Releasing lock... [2025-04-14 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:55:05 [end_date_ymd] => 2025-04-14 03:55:05 [RateCDR] => 1 ) [2025-04-14 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:55:05' and `end` < '2025-04-14 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:55:18] Production.INFO: count ==117 [2025-04-14 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:55:05 - End Time 2025-04-14 03:55:05 [2025-04-14 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903621', 'tblTempUsageDetail_20' ) start [2025-04-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903621', 'tblTempUsageDetail_20' ) end [2025-04-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903621', 'tblTempVendorCDR_20' ) start [2025-04-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903621', 'tblTempVendorCDR_20' ) end [2025-04-14 03:55:18] Production.INFO: ProcessCDR(1,14903621,1,1,2) [2025-04-14 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903621', 'tblTempUsageDetail_20' ) start [2025-04-14 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903621', 'tblTempUsageDetail_20' ) end [2025-04-14 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:55:21] Production.INFO: ==4783== Releasing lock... [2025-04-14 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:56:05 [end_date_ymd] => 2025-04-14 03:56:05 [RateCDR] => 1 ) [2025-04-14 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:56:05' and `end` < '2025-04-14 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:56:18] Production.INFO: count ==117 [2025-04-14 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:56:05 - End Time 2025-04-14 03:56:05 [2025-04-14 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903626', 'tblTempUsageDetail_20' ) start [2025-04-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903626', 'tblTempUsageDetail_20' ) end [2025-04-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903626', 'tblTempVendorCDR_20' ) start [2025-04-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903626', 'tblTempVendorCDR_20' ) end [2025-04-14 03:56:18] Production.INFO: ProcessCDR(1,14903626,1,1,2) [2025-04-14 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903626', 'tblTempUsageDetail_20' ) start [2025-04-14 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903626', 'tblTempUsageDetail_20' ) end [2025-04-14 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:56:21] Production.INFO: ==4896== Releasing lock... [2025-04-14 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:57:05 [end_date_ymd] => 2025-04-14 03:57:05 [RateCDR] => 1 ) [2025-04-14 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:57:05' and `end` < '2025-04-14 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:57:18] Production.INFO: count ==117 [2025-04-14 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:57:05 - End Time 2025-04-14 03:57:05 [2025-04-14 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903631', 'tblTempUsageDetail_20' ) start [2025-04-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903631', 'tblTempUsageDetail_20' ) end [2025-04-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903631', 'tblTempVendorCDR_20' ) start [2025-04-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903631', 'tblTempVendorCDR_20' ) end [2025-04-14 03:57:18] Production.INFO: ProcessCDR(1,14903631,1,1,2) [2025-04-14 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903631', 'tblTempUsageDetail_20' ) start [2025-04-14 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903631', 'tblTempUsageDetail_20' ) end [2025-04-14 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:57:21] Production.INFO: ==4967== Releasing lock... [2025-04-14 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:58:05 [end_date_ymd] => 2025-04-14 03:58:05 [RateCDR] => 1 ) [2025-04-14 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 00:58:05' and `end` < '2025-04-14 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 03:58:18] Production.INFO: count ==117 [2025-04-14 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 00:58:05 - End Time 2025-04-14 03:58:05 [2025-04-14 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903636', 'tblTempUsageDetail_20' ) start [2025-04-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903636', 'tblTempUsageDetail_20' ) end [2025-04-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903636', 'tblTempVendorCDR_20' ) start [2025-04-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903636', 'tblTempVendorCDR_20' ) end [2025-04-14 03:58:18] Production.INFO: ProcessCDR(1,14903636,1,1,2) [2025-04-14 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903636', 'tblTempUsageDetail_20' ) start [2025-04-14 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903636', 'tblTempUsageDetail_20' ) end [2025-04-14 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:58:21] Production.INFO: ==5042== Releasing lock... [2025-04-14 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 00:59:05 [end_date_ymd] => 2025-04-14 03:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 00:59:05' and `end` < '2025-04-14 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-04-14 03:59:17] Production.INFO: count ==119 [2025-04-14 03:59:17] Production.ERROR: pbx CDR StartTime 2025-04-14 00:59:05 - End Time 2025-04-14 03:59:05 [2025-04-14 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903641', 'tblTempUsageDetail_20' ) start [2025-04-14 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903641', 'tblTempUsageDetail_20' ) end [2025-04-14 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903641', 'tblTempVendorCDR_20' ) start [2025-04-14 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903641', 'tblTempVendorCDR_20' ) end [2025-04-14 03:59:17] Production.INFO: ProcessCDR(1,14903641,1,1,2) [2025-04-14 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903641', 'tblTempUsageDetail_20' ) start [2025-04-14 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903641', 'tblTempUsageDetail_20' ) end [2025-04-14 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 03:59:20] Production.INFO: ==5117== Releasing lock... [2025-04-14 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 03:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:00:06 [end_date_ymd] => 2025-04-14 04:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:00:06' and `end` < '2025-04-14 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-04-14 04:00:19] Production.INFO: count ==115 [2025-04-14 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:00:06 - End Time 2025-04-14 04:00:06 [2025-04-14 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903647', 'tblTempUsageDetail_20' ) start [2025-04-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903647', 'tblTempUsageDetail_20' ) end [2025-04-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903647', 'tblTempVendorCDR_20' ) start [2025-04-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903647', 'tblTempVendorCDR_20' ) end [2025-04-14 04:00:19] Production.INFO: ProcessCDR(1,14903647,1,1,2) [2025-04-14 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903647', 'tblTempUsageDetail_20' ) start [2025-04-14 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903647', 'tblTempUsageDetail_20' ) end [2025-04-14 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:00:22] Production.INFO: ==5205== Releasing lock... [2025-04-14 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:01:05 [end_date_ymd] => 2025-04-14 04:01:05 [RateCDR] => 1 ) [2025-04-14 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:01:05' and `end` < '2025-04-14 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:01:18] Production.INFO: count ==115 [2025-04-14 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:01:05 - End Time 2025-04-14 04:01:05 [2025-04-14 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903653', 'tblTempUsageDetail_20' ) start [2025-04-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903653', 'tblTempUsageDetail_20' ) end [2025-04-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903653', 'tblTempVendorCDR_20' ) start [2025-04-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903653', 'tblTempVendorCDR_20' ) end [2025-04-14 04:01:18] Production.INFO: ProcessCDR(1,14903653,1,1,2) [2025-04-14 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903653', 'tblTempUsageDetail_20' ) start [2025-04-14 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903653', 'tblTempUsageDetail_20' ) end [2025-04-14 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:01:22] Production.INFO: ==5297== Releasing lock... [2025-04-14 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:02:05 [end_date_ymd] => 2025-04-14 04:02:05 [RateCDR] => 1 ) [2025-04-14 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:02:05' and `end` < '2025-04-14 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:02:18] Production.INFO: count ==115 [2025-04-14 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:02:05 - End Time 2025-04-14 04:02:05 [2025-04-14 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903658', 'tblTempUsageDetail_20' ) start [2025-04-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903658', 'tblTempUsageDetail_20' ) end [2025-04-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903658', 'tblTempVendorCDR_20' ) start [2025-04-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903658', 'tblTempVendorCDR_20' ) end [2025-04-14 04:02:18] Production.INFO: ProcessCDR(1,14903658,1,1,2) [2025-04-14 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903658', 'tblTempUsageDetail_20' ) start [2025-04-14 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903658', 'tblTempUsageDetail_20' ) end [2025-04-14 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:02:21] Production.INFO: ==5370== Releasing lock... [2025-04-14 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:03:05 [end_date_ymd] => 2025-04-14 04:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:03:05' and `end` < '2025-04-14 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-04-14 04:03:18] Production.INFO: count ==114 [2025-04-14 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:03:05 - End Time 2025-04-14 04:03:05 [2025-04-14 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903663', 'tblTempUsageDetail_20' ) start [2025-04-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903663', 'tblTempUsageDetail_20' ) end [2025-04-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903663', 'tblTempVendorCDR_20' ) start [2025-04-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903663', 'tblTempVendorCDR_20' ) end [2025-04-14 04:03:18] Production.INFO: ProcessCDR(1,14903663,1,1,2) [2025-04-14 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903663', 'tblTempUsageDetail_20' ) start [2025-04-14 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903663', 'tblTempUsageDetail_20' ) end [2025-04-14 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:03:21] Production.INFO: ==5444== Releasing lock... [2025-04-14 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:04:06 [end_date_ymd] => 2025-04-14 04:04:06 [RateCDR] => 1 ) [2025-04-14 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:04:06' and `end` < '2025-04-14 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:04:18] Production.INFO: count ==116 [2025-04-14 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:04:06 - End Time 2025-04-14 04:04:06 [2025-04-14 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903668', 'tblTempUsageDetail_20' ) start [2025-04-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903668', 'tblTempUsageDetail_20' ) end [2025-04-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903668', 'tblTempVendorCDR_20' ) start [2025-04-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903668', 'tblTempVendorCDR_20' ) end [2025-04-14 04:04:18] Production.INFO: ProcessCDR(1,14903668,1,1,2) [2025-04-14 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903668', 'tblTempUsageDetail_20' ) start [2025-04-14 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903668', 'tblTempUsageDetail_20' ) end [2025-04-14 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:04:22] Production.INFO: ==5524== Releasing lock... [2025-04-14 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:04:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:05:05 [end_date_ymd] => 2025-04-14 04:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:05:05' and `end` < '2025-04-14 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-04-14 04:05:18] Production.INFO: count ==118 [2025-04-14 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:05:05 - End Time 2025-04-14 04:05:05 [2025-04-14 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903673', 'tblTempUsageDetail_20' ) start [2025-04-14 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903673', 'tblTempUsageDetail_20' ) end [2025-04-14 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903673', 'tblTempVendorCDR_20' ) start [2025-04-14 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903673', 'tblTempVendorCDR_20' ) end [2025-04-14 04:05:18] Production.INFO: ProcessCDR(1,14903673,1,1,2) [2025-04-14 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903673', 'tblTempUsageDetail_20' ) start [2025-04-14 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903673', 'tblTempUsageDetail_20' ) end [2025-04-14 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:05:21] Production.INFO: ==5605== Releasing lock... [2025-04-14 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:06:05 [end_date_ymd] => 2025-04-14 04:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:06:05' and `end` < '2025-04-14 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-04-14 04:06:18] Production.INFO: count ==119 [2025-04-14 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:06:05 - End Time 2025-04-14 04:06:05 [2025-04-14 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903678', 'tblTempUsageDetail_20' ) start [2025-04-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903678', 'tblTempUsageDetail_20' ) end [2025-04-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903678', 'tblTempVendorCDR_20' ) start [2025-04-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903678', 'tblTempVendorCDR_20' ) end [2025-04-14 04:06:18] Production.INFO: ProcessCDR(1,14903678,1,1,2) [2025-04-14 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903678', 'tblTempUsageDetail_20' ) start [2025-04-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903678', 'tblTempUsageDetail_20' ) end [2025-04-14 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:06:21] Production.INFO: ==5683== Releasing lock... [2025-04-14 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:07:05 [end_date_ymd] => 2025-04-14 04:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:07:05' and `end` < '2025-04-14 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-04-14 04:07:18] Production.INFO: count ==119 [2025-04-14 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:07:05 - End Time 2025-04-14 04:07:05 [2025-04-14 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903683', 'tblTempUsageDetail_20' ) start [2025-04-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903683', 'tblTempUsageDetail_20' ) end [2025-04-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903683', 'tblTempVendorCDR_20' ) start [2025-04-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903683', 'tblTempVendorCDR_20' ) end [2025-04-14 04:07:18] Production.INFO: ProcessCDR(1,14903683,1,1,2) [2025-04-14 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903683', 'tblTempUsageDetail_20' ) start [2025-04-14 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903683', 'tblTempUsageDetail_20' ) end [2025-04-14 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:07:22] Production.INFO: ==5755== Releasing lock... [2025-04-14 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:08:05 [end_date_ymd] => 2025-04-14 04:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:08:05' and `end` < '2025-04-14 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-04-14 04:08:17] Production.INFO: count ==120 [2025-04-14 04:08:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:08:05 - End Time 2025-04-14 04:08:05 [2025-04-14 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903688', 'tblTempUsageDetail_20' ) start [2025-04-14 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903688', 'tblTempUsageDetail_20' ) end [2025-04-14 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903688', 'tblTempVendorCDR_20' ) start [2025-04-14 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903688', 'tblTempVendorCDR_20' ) end [2025-04-14 04:08:17] Production.INFO: ProcessCDR(1,14903688,1,1,2) [2025-04-14 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903688', 'tblTempUsageDetail_20' ) start [2025-04-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903688', 'tblTempUsageDetail_20' ) end [2025-04-14 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:08:21] Production.INFO: ==5826== Releasing lock... [2025-04-14 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:09:05 [end_date_ymd] => 2025-04-14 04:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:09:05' and `end` < '2025-04-14 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-04-14 04:09:18] Production.INFO: count ==120 [2025-04-14 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:09:05 - End Time 2025-04-14 04:09:05 [2025-04-14 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903693', 'tblTempUsageDetail_20' ) start [2025-04-14 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903693', 'tblTempUsageDetail_20' ) end [2025-04-14 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903693', 'tblTempVendorCDR_20' ) start [2025-04-14 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903693', 'tblTempVendorCDR_20' ) end [2025-04-14 04:09:18] Production.INFO: ProcessCDR(1,14903693,1,1,2) [2025-04-14 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903693', 'tblTempUsageDetail_20' ) start [2025-04-14 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903693', 'tblTempUsageDetail_20' ) end [2025-04-14 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:09:21] Production.INFO: ==5902== Releasing lock... [2025-04-14 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:10:06 [end_date_ymd] => 2025-04-14 04:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:10:06' and `end` < '2025-04-14 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-04-14 04:10:19] Production.INFO: count ==122 [2025-04-14 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:10:06 - End Time 2025-04-14 04:10:06 [2025-04-14 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903698', 'tblTempUsageDetail_20' ) start [2025-04-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903698', 'tblTempUsageDetail_20' ) end [2025-04-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903698', 'tblTempVendorCDR_20' ) start [2025-04-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903698', 'tblTempVendorCDR_20' ) end [2025-04-14 04:10:19] Production.INFO: ProcessCDR(1,14903698,1,1,2) [2025-04-14 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903698', 'tblTempUsageDetail_20' ) start [2025-04-14 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903698', 'tblTempUsageDetail_20' ) end [2025-04-14 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:10:22] Production.INFO: ==5978== Releasing lock... [2025-04-14 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:10:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:11:05 [end_date_ymd] => 2025-04-14 04:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:11:05' and `end` < '2025-04-14 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-04-14 04:11:18] Production.INFO: count ==124 [2025-04-14 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:11:05 - End Time 2025-04-14 04:11:05 [2025-04-14 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903704', 'tblTempUsageDetail_20' ) start [2025-04-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903704', 'tblTempUsageDetail_20' ) end [2025-04-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903704', 'tblTempVendorCDR_20' ) start [2025-04-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903704', 'tblTempVendorCDR_20' ) end [2025-04-14 04:11:18] Production.INFO: ProcessCDR(1,14903704,1,1,2) [2025-04-14 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903704', 'tblTempUsageDetail_20' ) start [2025-04-14 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903704', 'tblTempUsageDetail_20' ) end [2025-04-14 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:11:21] Production.INFO: ==6097== Releasing lock... [2025-04-14 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:11:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:12:05 [end_date_ymd] => 2025-04-14 04:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:12:05' and `end` < '2025-04-14 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-04-14 04:12:18] Production.INFO: count ==128 [2025-04-14 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:12:05 - End Time 2025-04-14 04:12:05 [2025-04-14 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903709', 'tblTempUsageDetail_20' ) start [2025-04-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903709', 'tblTempUsageDetail_20' ) end [2025-04-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903709', 'tblTempVendorCDR_20' ) start [2025-04-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903709', 'tblTempVendorCDR_20' ) end [2025-04-14 04:12:18] Production.INFO: ProcessCDR(1,14903709,1,1,2) [2025-04-14 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903709', 'tblTempUsageDetail_20' ) start [2025-04-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903709', 'tblTempUsageDetail_20' ) end [2025-04-14 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:12:21] Production.INFO: ==6170== Releasing lock... [2025-04-14 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:13:05 [end_date_ymd] => 2025-04-14 04:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:13:05' and `end` < '2025-04-14 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-04-14 04:13:18] Production.INFO: count ==128 [2025-04-14 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:13:05 - End Time 2025-04-14 04:13:05 [2025-04-14 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903714', 'tblTempUsageDetail_20' ) start [2025-04-14 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903714', 'tblTempUsageDetail_20' ) end [2025-04-14 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903714', 'tblTempVendorCDR_20' ) start [2025-04-14 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903714', 'tblTempVendorCDR_20' ) end [2025-04-14 04:13:18] Production.INFO: ProcessCDR(1,14903714,1,1,2) [2025-04-14 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903714', 'tblTempUsageDetail_20' ) start [2025-04-14 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903714', 'tblTempUsageDetail_20' ) end [2025-04-14 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:13:21] Production.INFO: ==6245== Releasing lock... [2025-04-14 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:14:05 [end_date_ymd] => 2025-04-14 04:14:05 [RateCDR] => 1 ) [2025-04-14 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:14:05' and `end` < '2025-04-14 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:14:18] Production.INFO: count ==130 [2025-04-14 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:14:05 - End Time 2025-04-14 04:14:05 [2025-04-14 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903719', 'tblTempUsageDetail_20' ) start [2025-04-14 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903719', 'tblTempUsageDetail_20' ) end [2025-04-14 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903719', 'tblTempVendorCDR_20' ) start [2025-04-14 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903719', 'tblTempVendorCDR_20' ) end [2025-04-14 04:14:18] Production.INFO: ProcessCDR(1,14903719,1,1,2) [2025-04-14 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903719', 'tblTempUsageDetail_20' ) start [2025-04-14 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903719', 'tblTempUsageDetail_20' ) end [2025-04-14 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:14:21] Production.INFO: ==6318== Releasing lock... [2025-04-14 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:15:05 [end_date_ymd] => 2025-04-14 04:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:15:05' and `end` < '2025-04-14 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-04-14 04:15:17] Production.INFO: count ==130 [2025-04-14 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:15:05 - End Time 2025-04-14 04:15:05 [2025-04-14 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903724', 'tblTempUsageDetail_20' ) start [2025-04-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903724', 'tblTempUsageDetail_20' ) end [2025-04-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903724', 'tblTempVendorCDR_20' ) start [2025-04-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903724', 'tblTempVendorCDR_20' ) end [2025-04-14 04:15:18] Production.INFO: ProcessCDR(1,14903724,1,1,2) [2025-04-14 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903724', 'tblTempUsageDetail_20' ) start [2025-04-14 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903724', 'tblTempUsageDetail_20' ) end [2025-04-14 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:15:21] Production.INFO: ==6400== Releasing lock... [2025-04-14 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:16:06 [end_date_ymd] => 2025-04-14 04:16:06 [RateCDR] => 1 ) [2025-04-14 04: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-04-14 01:16:06' and `end` < '2025-04-14 04: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-04-14 04:16:19] Production.INFO: count ==130 [2025-04-14 04:16:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:16:06 - End Time 2025-04-14 04:16:06 [2025-04-14 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903729', 'tblTempUsageDetail_20' ) start [2025-04-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903729', 'tblTempUsageDetail_20' ) end [2025-04-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903729', 'tblTempVendorCDR_20' ) start [2025-04-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903729', 'tblTempVendorCDR_20' ) end [2025-04-14 04:16:19] Production.INFO: ProcessCDR(1,14903729,1,1,2) [2025-04-14 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903729', 'tblTempUsageDetail_20' ) start [2025-04-14 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903729', 'tblTempUsageDetail_20' ) end [2025-04-14 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:16:22] Production.INFO: ==6471== Releasing lock... [2025-04-14 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:17:05 [end_date_ymd] => 2025-04-14 04:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:17:05' and `end` < '2025-04-14 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-04-14 04:17:18] Production.INFO: count ==97 [2025-04-14 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:17:05 - End Time 2025-04-14 04:17:05 [2025-04-14 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903734', 'tblTempUsageDetail_20' ) start [2025-04-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903734', 'tblTempUsageDetail_20' ) end [2025-04-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903734', 'tblTempVendorCDR_20' ) start [2025-04-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903734', 'tblTempVendorCDR_20' ) end [2025-04-14 04:17:18] Production.INFO: ProcessCDR(1,14903734,1,1,2) [2025-04-14 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903734', 'tblTempUsageDetail_20' ) start [2025-04-14 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903734', 'tblTempUsageDetail_20' ) end [2025-04-14 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:17:21] Production.INFO: ==6550== Releasing lock... [2025-04-14 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:18:06 [end_date_ymd] => 2025-04-14 04:18:06 [RateCDR] => 1 ) [2025-04-14 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:18:06' and `end` < '2025-04-14 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:18:19] Production.INFO: count ==95 [2025-04-14 04:18:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:18:06 - End Time 2025-04-14 04:18:06 [2025-04-14 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903739', 'tblTempUsageDetail_20' ) start [2025-04-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903739', 'tblTempUsageDetail_20' ) end [2025-04-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903739', 'tblTempVendorCDR_20' ) start [2025-04-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903739', 'tblTempVendorCDR_20' ) end [2025-04-14 04:18:19] Production.INFO: ProcessCDR(1,14903739,1,1,2) [2025-04-14 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903739', 'tblTempUsageDetail_20' ) start [2025-04-14 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903739', 'tblTempUsageDetail_20' ) end [2025-04-14 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:18:22] Production.INFO: ==6621== Releasing lock... [2025-04-14 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:19:05 [end_date_ymd] => 2025-04-14 04:19:05 [RateCDR] => 1 ) [2025-04-14 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:19:05' and `end` < '2025-04-14 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:19:18] Production.INFO: count ==95 [2025-04-14 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:19:05 - End Time 2025-04-14 04:19:05 [2025-04-14 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903744', 'tblTempUsageDetail_20' ) start [2025-04-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903744', 'tblTempUsageDetail_20' ) end [2025-04-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903744', 'tblTempVendorCDR_20' ) start [2025-04-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903744', 'tblTempVendorCDR_20' ) end [2025-04-14 04:19:18] Production.INFO: ProcessCDR(1,14903744,1,1,2) [2025-04-14 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903744', 'tblTempUsageDetail_20' ) start [2025-04-14 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903744', 'tblTempUsageDetail_20' ) end [2025-04-14 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:19:21] Production.INFO: ==6697== Releasing lock... [2025-04-14 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:20:06 [end_date_ymd] => 2025-04-14 04:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:20:06' and `end` < '2025-04-14 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-04-14 04:20:19] Production.INFO: count ==95 [2025-04-14 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:20:06 - End Time 2025-04-14 04:20:06 [2025-04-14 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903749', 'tblTempUsageDetail_20' ) start [2025-04-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903749', 'tblTempUsageDetail_20' ) end [2025-04-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903749', 'tblTempVendorCDR_20' ) start [2025-04-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903749', 'tblTempVendorCDR_20' ) end [2025-04-14 04:20:19] Production.INFO: ProcessCDR(1,14903749,1,1,2) [2025-04-14 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903749', 'tblTempUsageDetail_20' ) start [2025-04-14 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903749', 'tblTempUsageDetail_20' ) end [2025-04-14 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:20:23] Production.INFO: ==6772== Releasing lock... [2025-04-14 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:21:05 [end_date_ymd] => 2025-04-14 04:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:21:05' and `end` < '2025-04-14 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-04-14 04:21:18] Production.INFO: count ==95 [2025-04-14 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:21:05 - End Time 2025-04-14 04:21:05 [2025-04-14 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903755', 'tblTempUsageDetail_20' ) start [2025-04-14 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903755', 'tblTempUsageDetail_20' ) end [2025-04-14 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903755', 'tblTempVendorCDR_20' ) start [2025-04-14 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903755', 'tblTempVendorCDR_20' ) end [2025-04-14 04:21:18] Production.INFO: ProcessCDR(1,14903755,1,1,2) [2025-04-14 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903755', 'tblTempUsageDetail_20' ) start [2025-04-14 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903755', 'tblTempUsageDetail_20' ) end [2025-04-14 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:21:21] Production.INFO: ==6852== Releasing lock... [2025-04-14 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:22:05 [end_date_ymd] => 2025-04-14 04:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:22:05' and `end` < '2025-04-14 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-04-14 04:22:18] Production.INFO: count ==95 [2025-04-14 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:22:05 - End Time 2025-04-14 04:22:05 [2025-04-14 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903760', 'tblTempUsageDetail_20' ) start [2025-04-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903760', 'tblTempUsageDetail_20' ) end [2025-04-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903760', 'tblTempVendorCDR_20' ) start [2025-04-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903760', 'tblTempVendorCDR_20' ) end [2025-04-14 04:22:18] Production.INFO: ProcessCDR(1,14903760,1,1,2) [2025-04-14 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903760', 'tblTempUsageDetail_20' ) start [2025-04-14 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903760', 'tblTempUsageDetail_20' ) end [2025-04-14 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:22:22] Production.INFO: ==6925== Releasing lock... [2025-04-14 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:23:04 [end_date_ymd] => 2025-04-14 04:23:04 [RateCDR] => 1 ) [2025-04-14 04:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:23:04' and `end` < '2025-04-14 04: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-04-14 04:23:17] Production.INFO: count ==95 [2025-04-14 04:23:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:23:04 - End Time 2025-04-14 04:23:04 [2025-04-14 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903765', 'tblTempUsageDetail_20' ) start [2025-04-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903765', 'tblTempUsageDetail_20' ) end [2025-04-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903765', 'tblTempVendorCDR_20' ) start [2025-04-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903765', 'tblTempVendorCDR_20' ) end [2025-04-14 04:23:17] Production.INFO: ProcessCDR(1,14903765,1,1,2) [2025-04-14 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903765', 'tblTempUsageDetail_20' ) start [2025-04-14 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903765', 'tblTempUsageDetail_20' ) end [2025-04-14 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:23:20] Production.INFO: ==7000== Releasing lock... [2025-04-14 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:24:05 [end_date_ymd] => 2025-04-14 04:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:24:05' and `end` < '2025-04-14 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-04-14 04:24:18] Production.INFO: count ==97 [2025-04-14 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:24:05 - End Time 2025-04-14 04:24:05 [2025-04-14 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903770', 'tblTempUsageDetail_20' ) start [2025-04-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903770', 'tblTempUsageDetail_20' ) end [2025-04-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903770', 'tblTempVendorCDR_20' ) start [2025-04-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903770', 'tblTempVendorCDR_20' ) end [2025-04-14 04:24:18] Production.INFO: ProcessCDR(1,14903770,1,1,2) [2025-04-14 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903770', 'tblTempUsageDetail_20' ) start [2025-04-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903770', 'tblTempUsageDetail_20' ) end [2025-04-14 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:24:21] Production.INFO: ==7071== Releasing lock... [2025-04-14 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:25:05 [end_date_ymd] => 2025-04-14 04:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:25:05' and `end` < '2025-04-14 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-04-14 04:25:17] Production.INFO: count ==99 [2025-04-14 04:25:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:25:05 - End Time 2025-04-14 04:25:05 [2025-04-14 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903775', 'tblTempUsageDetail_20' ) start [2025-04-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903775', 'tblTempUsageDetail_20' ) end [2025-04-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903775', 'tblTempVendorCDR_20' ) start [2025-04-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903775', 'tblTempVendorCDR_20' ) end [2025-04-14 04:25:17] Production.INFO: ProcessCDR(1,14903775,1,1,2) [2025-04-14 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903775', 'tblTempUsageDetail_20' ) start [2025-04-14 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903775', 'tblTempUsageDetail_20' ) end [2025-04-14 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:25:21] Production.INFO: ==7142== Releasing lock... [2025-04-14 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:26:05 [end_date_ymd] => 2025-04-14 04:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:26:05' and `end` < '2025-04-14 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-04-14 04:26:18] Production.INFO: count ==97 [2025-04-14 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:26:05 - End Time 2025-04-14 04:26:05 [2025-04-14 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903780', 'tblTempUsageDetail_20' ) start [2025-04-14 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903780', 'tblTempUsageDetail_20' ) end [2025-04-14 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903780', 'tblTempVendorCDR_20' ) start [2025-04-14 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903780', 'tblTempVendorCDR_20' ) end [2025-04-14 04:26:18] Production.INFO: ProcessCDR(1,14903780,1,1,2) [2025-04-14 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903780', 'tblTempUsageDetail_20' ) start [2025-04-14 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903780', 'tblTempUsageDetail_20' ) end [2025-04-14 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:26:21] Production.INFO: ==7218== Releasing lock... [2025-04-14 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:27:05 [end_date_ymd] => 2025-04-14 04:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:27:05' and `end` < '2025-04-14 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-04-14 04:27:17] Production.INFO: count ==97 [2025-04-14 04:27:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:27:05 - End Time 2025-04-14 04:27:05 [2025-04-14 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903785', 'tblTempUsageDetail_20' ) start [2025-04-14 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903785', 'tblTempUsageDetail_20' ) end [2025-04-14 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903785', 'tblTempVendorCDR_20' ) start [2025-04-14 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903785', 'tblTempVendorCDR_20' ) end [2025-04-14 04:27:17] Production.INFO: ProcessCDR(1,14903785,1,1,2) [2025-04-14 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903785', 'tblTempUsageDetail_20' ) start [2025-04-14 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903785', 'tblTempUsageDetail_20' ) end [2025-04-14 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:27:21] Production.INFO: ==7328== Releasing lock... [2025-04-14 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:28:05 [end_date_ymd] => 2025-04-14 04:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:28:05' and `end` < '2025-04-14 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-04-14 04:28:18] Production.INFO: count ==97 [2025-04-14 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:28:05 - End Time 2025-04-14 04:28:05 [2025-04-14 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903790', 'tblTempUsageDetail_20' ) start [2025-04-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903790', 'tblTempUsageDetail_20' ) end [2025-04-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903790', 'tblTempVendorCDR_20' ) start [2025-04-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903790', 'tblTempVendorCDR_20' ) end [2025-04-14 04:28:18] Production.INFO: ProcessCDR(1,14903790,1,1,2) [2025-04-14 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903790', 'tblTempUsageDetail_20' ) start [2025-04-14 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903790', 'tblTempUsageDetail_20' ) end [2025-04-14 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:28:21] Production.INFO: ==7401== Releasing lock... [2025-04-14 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:29:06 [end_date_ymd] => 2025-04-14 04:29:06 [RateCDR] => 1 ) [2025-04-14 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:29:06' and `end` < '2025-04-14 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:29:19] Production.INFO: count ==97 [2025-04-14 04:29:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:29:06 - End Time 2025-04-14 04:29:06 [2025-04-14 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903795', 'tblTempUsageDetail_20' ) start [2025-04-14 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903795', 'tblTempUsageDetail_20' ) end [2025-04-14 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903795', 'tblTempVendorCDR_20' ) start [2025-04-14 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903795', 'tblTempVendorCDR_20' ) end [2025-04-14 04:29:19] Production.INFO: ProcessCDR(1,14903795,1,1,2) [2025-04-14 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903795', 'tblTempUsageDetail_20' ) start [2025-04-14 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903795', 'tblTempUsageDetail_20' ) end [2025-04-14 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:29:22] Production.INFO: ==7481== Releasing lock... [2025-04-14 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:30:06 [end_date_ymd] => 2025-04-14 04:30:06 [RateCDR] => 1 ) [2025-04-14 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:30:06' and `end` < '2025-04-14 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:30:19] Production.INFO: count ==99 [2025-04-14 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:30:06 - End Time 2025-04-14 04:30:06 [2025-04-14 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903802', 'tblTempUsageDetail_20' ) start [2025-04-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903802', 'tblTempUsageDetail_20' ) end [2025-04-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903802', 'tblTempVendorCDR_20' ) start [2025-04-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903802', 'tblTempVendorCDR_20' ) end [2025-04-14 04:30:19] Production.INFO: ProcessCDR(1,14903802,1,1,2) [2025-04-14 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903802', 'tblTempUsageDetail_20' ) start [2025-04-14 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903802', 'tblTempUsageDetail_20' ) end [2025-04-14 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:30:23] Production.INFO: ==7554== Releasing lock... [2025-04-14 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:30:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:31:05 [end_date_ymd] => 2025-04-14 04:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:31:05' and `end` < '2025-04-14 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-04-14 04:31:18] Production.INFO: count ==99 [2025-04-14 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:31:05 - End Time 2025-04-14 04:31:05 [2025-04-14 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903807', 'tblTempUsageDetail_20' ) start [2025-04-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903807', 'tblTempUsageDetail_20' ) end [2025-04-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903807', 'tblTempVendorCDR_20' ) start [2025-04-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903807', 'tblTempVendorCDR_20' ) end [2025-04-14 04:31:18] Production.INFO: ProcessCDR(1,14903807,1,1,2) [2025-04-14 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903807', 'tblTempUsageDetail_20' ) start [2025-04-14 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903807', 'tblTempUsageDetail_20' ) end [2025-04-14 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:31:21] Production.INFO: ==7825== Releasing lock... [2025-04-14 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:32:05 [end_date_ymd] => 2025-04-14 04:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:32:05' and `end` < '2025-04-14 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-04-14 04:32:18] Production.INFO: count ==99 [2025-04-14 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:32:05 - End Time 2025-04-14 04:32:05 [2025-04-14 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903812', 'tblTempUsageDetail_20' ) start [2025-04-14 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903812', 'tblTempUsageDetail_20' ) end [2025-04-14 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903812', 'tblTempVendorCDR_20' ) start [2025-04-14 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903812', 'tblTempVendorCDR_20' ) end [2025-04-14 04:32:18] Production.INFO: ProcessCDR(1,14903812,1,1,2) [2025-04-14 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903812', 'tblTempUsageDetail_20' ) start [2025-04-14 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903812', 'tblTempUsageDetail_20' ) end [2025-04-14 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:32:21] Production.INFO: ==7908== Releasing lock... [2025-04-14 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:33:05 [end_date_ymd] => 2025-04-14 04:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:33:05' and `end` < '2025-04-14 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-04-14 04:33:18] Production.INFO: count ==99 [2025-04-14 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:33:05 - End Time 2025-04-14 04:33:05 [2025-04-14 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903817', 'tblTempUsageDetail_20' ) start [2025-04-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903817', 'tblTempUsageDetail_20' ) end [2025-04-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903817', 'tblTempVendorCDR_20' ) start [2025-04-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903817', 'tblTempVendorCDR_20' ) end [2025-04-14 04:33:18] Production.INFO: ProcessCDR(1,14903817,1,1,2) [2025-04-14 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903817', 'tblTempUsageDetail_20' ) start [2025-04-14 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903817', 'tblTempUsageDetail_20' ) end [2025-04-14 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:33:21] Production.INFO: ==7979== Releasing lock... [2025-04-14 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:34:05 [end_date_ymd] => 2025-04-14 04:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:34:05' and `end` < '2025-04-14 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-04-14 04:34:18] Production.INFO: count ==99 [2025-04-14 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:34:05 - End Time 2025-04-14 04:34:05 [2025-04-14 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903822', 'tblTempUsageDetail_20' ) start [2025-04-14 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903822', 'tblTempUsageDetail_20' ) end [2025-04-14 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903822', 'tblTempVendorCDR_20' ) start [2025-04-14 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903822', 'tblTempVendorCDR_20' ) end [2025-04-14 04:34:18] Production.INFO: ProcessCDR(1,14903822,1,1,2) [2025-04-14 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903822', 'tblTempUsageDetail_20' ) start [2025-04-14 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903822', 'tblTempUsageDetail_20' ) end [2025-04-14 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:34:21] Production.INFO: ==8052== Releasing lock... [2025-04-14 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:35:05 [end_date_ymd] => 2025-04-14 04:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:35:05' and `end` < '2025-04-14 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-04-14 04:35:18] Production.INFO: count ==99 [2025-04-14 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:35:05 - End Time 2025-04-14 04:35:05 [2025-04-14 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903827', 'tblTempUsageDetail_20' ) start [2025-04-14 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903827', 'tblTempUsageDetail_20' ) end [2025-04-14 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903827', 'tblTempVendorCDR_20' ) start [2025-04-14 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903827', 'tblTempVendorCDR_20' ) end [2025-04-14 04:35:18] Production.INFO: ProcessCDR(1,14903827,1,1,2) [2025-04-14 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903827', 'tblTempUsageDetail_20' ) start [2025-04-14 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903827', 'tblTempUsageDetail_20' ) end [2025-04-14 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:35:21] Production.INFO: ==8128== Releasing lock... [2025-04-14 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:36:05 [end_date_ymd] => 2025-04-14 04:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:36:05' and `end` < '2025-04-14 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-04-14 04:36:17] Production.INFO: count ==99 [2025-04-14 04:36:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:36:05 - End Time 2025-04-14 04:36:05 [2025-04-14 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903832', 'tblTempUsageDetail_20' ) start [2025-04-14 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903832', 'tblTempUsageDetail_20' ) end [2025-04-14 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903832', 'tblTempVendorCDR_20' ) start [2025-04-14 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903832', 'tblTempVendorCDR_20' ) end [2025-04-14 04:36:17] Production.INFO: ProcessCDR(1,14903832,1,1,2) [2025-04-14 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903832', 'tblTempUsageDetail_20' ) start [2025-04-14 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903832', 'tblTempUsageDetail_20' ) end [2025-04-14 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:36:21] Production.INFO: ==8201== Releasing lock... [2025-04-14 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:37:05 [end_date_ymd] => 2025-04-14 04:37:05 [RateCDR] => 1 ) [2025-04-14 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:37:05' and `end` < '2025-04-14 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:37:18] Production.INFO: count ==99 [2025-04-14 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:37:05 - End Time 2025-04-14 04:37:05 [2025-04-14 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903837', 'tblTempUsageDetail_20' ) start [2025-04-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903837', 'tblTempUsageDetail_20' ) end [2025-04-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903837', 'tblTempVendorCDR_20' ) start [2025-04-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903837', 'tblTempVendorCDR_20' ) end [2025-04-14 04:37:18] Production.INFO: ProcessCDR(1,14903837,1,1,2) [2025-04-14 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903837', 'tblTempUsageDetail_20' ) start [2025-04-14 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903837', 'tblTempUsageDetail_20' ) end [2025-04-14 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:37:21] Production.INFO: ==8277== Releasing lock... [2025-04-14 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:38:05 [end_date_ymd] => 2025-04-14 04:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:38:05' and `end` < '2025-04-14 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-04-14 04:38:18] Production.INFO: count ==98 [2025-04-14 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:38:05 - End Time 2025-04-14 04:38:05 [2025-04-14 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903842', 'tblTempUsageDetail_20' ) start [2025-04-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903842', 'tblTempUsageDetail_20' ) end [2025-04-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903842', 'tblTempVendorCDR_20' ) start [2025-04-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903842', 'tblTempVendorCDR_20' ) end [2025-04-14 04:38:18] Production.INFO: ProcessCDR(1,14903842,1,1,2) [2025-04-14 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903842', 'tblTempUsageDetail_20' ) start [2025-04-14 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903842', 'tblTempUsageDetail_20' ) end [2025-04-14 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:38:21] Production.INFO: ==8349== Releasing lock... [2025-04-14 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:39:05 [end_date_ymd] => 2025-04-14 04:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:39:05' and `end` < '2025-04-14 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-04-14 04:39:18] Production.INFO: count ==98 [2025-04-14 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:39:05 - End Time 2025-04-14 04:39:05 [2025-04-14 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903847', 'tblTempUsageDetail_20' ) start [2025-04-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903847', 'tblTempUsageDetail_20' ) end [2025-04-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903847', 'tblTempVendorCDR_20' ) start [2025-04-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903847', 'tblTempVendorCDR_20' ) end [2025-04-14 04:39:18] Production.INFO: ProcessCDR(1,14903847,1,1,2) [2025-04-14 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903847', 'tblTempUsageDetail_20' ) start [2025-04-14 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903847', 'tblTempUsageDetail_20' ) end [2025-04-14 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:39:21] Production.INFO: ==8420== Releasing lock... [2025-04-14 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:40:06 [end_date_ymd] => 2025-04-14 04:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:40:06' and `end` < '2025-04-14 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-04-14 04:40:18] Production.INFO: count ==90 [2025-04-14 04:40:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:40:06 - End Time 2025-04-14 04:40:06 [2025-04-14 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903853', 'tblTempUsageDetail_20' ) start [2025-04-14 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903853', 'tblTempUsageDetail_20' ) end [2025-04-14 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903853', 'tblTempVendorCDR_20' ) start [2025-04-14 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903853', 'tblTempVendorCDR_20' ) end [2025-04-14 04:40:18] Production.INFO: ProcessCDR(1,14903853,1,1,2) [2025-04-14 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903853', 'tblTempUsageDetail_20' ) start [2025-04-14 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903853', 'tblTempUsageDetail_20' ) end [2025-04-14 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:40:22] Production.INFO: ==8494== Releasing lock... [2025-04-14 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:41:05 [end_date_ymd] => 2025-04-14 04:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:41:05' and `end` < '2025-04-14 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-04-14 04:41:17] Production.INFO: count ==90 [2025-04-14 04:41:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:41:05 - End Time 2025-04-14 04:41:05 [2025-04-14 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903858', 'tblTempUsageDetail_20' ) start [2025-04-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903858', 'tblTempUsageDetail_20' ) end [2025-04-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903858', 'tblTempVendorCDR_20' ) start [2025-04-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903858', 'tblTempVendorCDR_20' ) end [2025-04-14 04:41:17] Production.INFO: ProcessCDR(1,14903858,1,1,2) [2025-04-14 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903858', 'tblTempUsageDetail_20' ) start [2025-04-14 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903858', 'tblTempUsageDetail_20' ) end [2025-04-14 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:41:21] Production.INFO: ==8570== Releasing lock... [2025-04-14 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:42:06 [end_date_ymd] => 2025-04-14 04:42:06 [RateCDR] => 1 ) [2025-04-14 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:42:06' and `end` < '2025-04-14 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:42:18] Production.INFO: count ==90 [2025-04-14 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:42:06 - End Time 2025-04-14 04:42:06 [2025-04-14 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903863', 'tblTempUsageDetail_20' ) start [2025-04-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903863', 'tblTempUsageDetail_20' ) end [2025-04-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903863', 'tblTempVendorCDR_20' ) start [2025-04-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903863', 'tblTempVendorCDR_20' ) end [2025-04-14 04:42:18] Production.INFO: ProcessCDR(1,14903863,1,1,2) [2025-04-14 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903863', 'tblTempUsageDetail_20' ) start [2025-04-14 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903863', 'tblTempUsageDetail_20' ) end [2025-04-14 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:42:22] Production.INFO: ==8683== Releasing lock... [2025-04-14 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:43:05 [end_date_ymd] => 2025-04-14 04:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:43:05' and `end` < '2025-04-14 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-04-14 04:43:18] Production.INFO: count ==92 [2025-04-14 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:43:05 - End Time 2025-04-14 04:43:05 [2025-04-14 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903868', 'tblTempUsageDetail_20' ) start [2025-04-14 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903868', 'tblTempUsageDetail_20' ) end [2025-04-14 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903868', 'tblTempVendorCDR_20' ) start [2025-04-14 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903868', 'tblTempVendorCDR_20' ) end [2025-04-14 04:43:18] Production.INFO: ProcessCDR(1,14903868,1,1,2) [2025-04-14 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903868', 'tblTempUsageDetail_20' ) start [2025-04-14 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903868', 'tblTempUsageDetail_20' ) end [2025-04-14 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:43:21] Production.INFO: ==8757== Releasing lock... [2025-04-14 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:44:06 [end_date_ymd] => 2025-04-14 04:44:06 [RateCDR] => 1 ) [2025-04-14 04: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-04-14 01:44:06' and `end` < '2025-04-14 04: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-04-14 04:44:19] Production.INFO: count ==96 [2025-04-14 04:44:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:44:06 - End Time 2025-04-14 04:44:06 [2025-04-14 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903873', 'tblTempUsageDetail_20' ) start [2025-04-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903873', 'tblTempUsageDetail_20' ) end [2025-04-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903873', 'tblTempVendorCDR_20' ) start [2025-04-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903873', 'tblTempVendorCDR_20' ) end [2025-04-14 04:44:19] Production.INFO: ProcessCDR(1,14903873,1,1,2) [2025-04-14 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903873', 'tblTempUsageDetail_20' ) start [2025-04-14 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903873', 'tblTempUsageDetail_20' ) end [2025-04-14 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:44:22] Production.INFO: ==8831== Releasing lock... [2025-04-14 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:45:05 [end_date_ymd] => 2025-04-14 04:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:45:05' and `end` < '2025-04-14 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-04-14 04:45:18] Production.INFO: count ==96 [2025-04-14 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:45:05 - End Time 2025-04-14 04:45:05 [2025-04-14 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903878', 'tblTempUsageDetail_20' ) start [2025-04-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903878', 'tblTempUsageDetail_20' ) end [2025-04-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903878', 'tblTempVendorCDR_20' ) start [2025-04-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903878', 'tblTempVendorCDR_20' ) end [2025-04-14 04:45:18] Production.INFO: ProcessCDR(1,14903878,1,1,2) [2025-04-14 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903878', 'tblTempUsageDetail_20' ) start [2025-04-14 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903878', 'tblTempUsageDetail_20' ) end [2025-04-14 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:45:21] Production.INFO: ==8903== Releasing lock... [2025-04-14 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:46:04 [end_date_ymd] => 2025-04-14 04:46:04 [RateCDR] => 1 ) [2025-04-14 04:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:46:04' and `end` < '2025-04-14 04:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:46:17] Production.INFO: count ==93 [2025-04-14 04:46:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:46:04 - End Time 2025-04-14 04:46:04 [2025-04-14 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903881', 'tblTempUsageDetail_20' ) start [2025-04-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903881', 'tblTempUsageDetail_20' ) end [2025-04-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903881', 'tblTempVendorCDR_20' ) start [2025-04-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903881', 'tblTempVendorCDR_20' ) end [2025-04-14 04:46:17] Production.INFO: ProcessCDR(1,14903881,1,1,2) [2025-04-14 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903881', 'tblTempUsageDetail_20' ) start [2025-04-14 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903881', 'tblTempUsageDetail_20' ) end [2025-04-14 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:46:21] Production.INFO: ==8980== Releasing lock... [2025-04-14 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:47:05 [end_date_ymd] => 2025-04-14 04:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:47:05' and `end` < '2025-04-14 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-04-14 04:47:19] Production.INFO: count ==93 [2025-04-14 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:47:05 - End Time 2025-04-14 04:47:05 [2025-04-14 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903888', 'tblTempUsageDetail_20' ) start [2025-04-14 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903888', 'tblTempUsageDetail_20' ) end [2025-04-14 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903888', 'tblTempVendorCDR_20' ) start [2025-04-14 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903888', 'tblTempVendorCDR_20' ) end [2025-04-14 04:47:19] Production.INFO: ProcessCDR(1,14903888,1,1,2) [2025-04-14 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903888', 'tblTempUsageDetail_20' ) start [2025-04-14 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903888', 'tblTempUsageDetail_20' ) end [2025-04-14 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:47:22] Production.INFO: ==9054== Releasing lock... [2025-04-14 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:48:05 [end_date_ymd] => 2025-04-14 04:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:48:05' and `end` < '2025-04-14 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-04-14 04:48:18] Production.INFO: count ==93 [2025-04-14 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:48:05 - End Time 2025-04-14 04:48:05 [2025-04-14 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903893', 'tblTempUsageDetail_20' ) start [2025-04-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903893', 'tblTempUsageDetail_20' ) end [2025-04-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903893', 'tblTempVendorCDR_20' ) start [2025-04-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903893', 'tblTempVendorCDR_20' ) end [2025-04-14 04:48:18] Production.INFO: ProcessCDR(1,14903893,1,1,2) [2025-04-14 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903893', 'tblTempUsageDetail_20' ) start [2025-04-14 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903893', 'tblTempUsageDetail_20' ) end [2025-04-14 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:48:21] Production.INFO: ==9131== Releasing lock... [2025-04-14 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:49:05 [end_date_ymd] => 2025-04-14 04:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:49:05' and `end` < '2025-04-14 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-04-14 04:49:19] Production.INFO: count ==93 [2025-04-14 04:49:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:49:05 - End Time 2025-04-14 04:49:05 [2025-04-14 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903898', 'tblTempUsageDetail_20' ) start [2025-04-14 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903898', 'tblTempUsageDetail_20' ) end [2025-04-14 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903898', 'tblTempVendorCDR_20' ) start [2025-04-14 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903898', 'tblTempVendorCDR_20' ) end [2025-04-14 04:49:19] Production.INFO: ProcessCDR(1,14903898,1,1,2) [2025-04-14 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903898', 'tblTempUsageDetail_20' ) start [2025-04-14 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903898', 'tblTempUsageDetail_20' ) end [2025-04-14 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:49:22] Production.INFO: ==9202== Releasing lock... [2025-04-14 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:50:06 [end_date_ymd] => 2025-04-14 04:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:50:06' and `end` < '2025-04-14 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-04-14 04:50:19] Production.INFO: count ==94 [2025-04-14 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:50:06 - End Time 2025-04-14 04:50:06 [2025-04-14 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903904', 'tblTempUsageDetail_20' ) start [2025-04-14 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903904', 'tblTempUsageDetail_20' ) end [2025-04-14 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903904', 'tblTempVendorCDR_20' ) start [2025-04-14 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903904', 'tblTempVendorCDR_20' ) end [2025-04-14 04:50:19] Production.INFO: ProcessCDR(1,14903904,1,1,2) [2025-04-14 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903904', 'tblTempUsageDetail_20' ) start [2025-04-14 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903904', 'tblTempUsageDetail_20' ) end [2025-04-14 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:50:22] Production.INFO: ==9279== Releasing lock... [2025-04-14 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:51:06 [end_date_ymd] => 2025-04-14 04:51:06 [RateCDR] => 1 ) [2025-04-14 04: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-04-14 01:51:06' and `end` < '2025-04-14 04: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-04-14 04:51:19] Production.INFO: count ==94 [2025-04-14 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:51:06 - End Time 2025-04-14 04:51:06 [2025-04-14 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903909', 'tblTempUsageDetail_20' ) start [2025-04-14 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903909', 'tblTempUsageDetail_20' ) end [2025-04-14 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903909', 'tblTempVendorCDR_20' ) start [2025-04-14 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903909', 'tblTempVendorCDR_20' ) end [2025-04-14 04:51:19] Production.INFO: ProcessCDR(1,14903909,1,1,2) [2025-04-14 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903909', 'tblTempUsageDetail_20' ) start [2025-04-14 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903909', 'tblTempUsageDetail_20' ) end [2025-04-14 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:51:23] Production.INFO: ==9360== Releasing lock... [2025-04-14 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:51:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:52:05 [end_date_ymd] => 2025-04-14 04:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:52:05' and `end` < '2025-04-14 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-04-14 04:52:19] Production.INFO: count ==94 [2025-04-14 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:52:05 - End Time 2025-04-14 04:52:05 [2025-04-14 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903914', 'tblTempUsageDetail_20' ) start [2025-04-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903914', 'tblTempUsageDetail_20' ) end [2025-04-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903914', 'tblTempVendorCDR_20' ) start [2025-04-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903914', 'tblTempVendorCDR_20' ) end [2025-04-14 04:52:19] Production.INFO: ProcessCDR(1,14903914,1,1,2) [2025-04-14 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903914', 'tblTempUsageDetail_20' ) start [2025-04-14 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903914', 'tblTempUsageDetail_20' ) end [2025-04-14 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:52:22] Production.INFO: ==9433== Releasing lock... [2025-04-14 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:53:05 [end_date_ymd] => 2025-04-14 04:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:53:05' and `end` < '2025-04-14 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-04-14 04:53:19] Production.INFO: count ==91 [2025-04-14 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:53:05 - End Time 2025-04-14 04:53:05 [2025-04-14 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903919', 'tblTempUsageDetail_20' ) start [2025-04-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903919', 'tblTempUsageDetail_20' ) end [2025-04-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903919', 'tblTempVendorCDR_20' ) start [2025-04-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903919', 'tblTempVendorCDR_20' ) end [2025-04-14 04:53:19] Production.INFO: ProcessCDR(1,14903919,1,1,2) [2025-04-14 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903919', 'tblTempUsageDetail_20' ) start [2025-04-14 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903919', 'tblTempUsageDetail_20' ) end [2025-04-14 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:53:23] Production.INFO: ==9507== Releasing lock... [2025-04-14 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:53:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:54:05 [end_date_ymd] => 2025-04-14 04:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:54:05' and `end` < '2025-04-14 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-04-14 04:54:18] Production.INFO: count ==91 [2025-04-14 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:54:05 - End Time 2025-04-14 04:54:05 [2025-04-14 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903924', 'tblTempUsageDetail_20' ) start [2025-04-14 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903924', 'tblTempUsageDetail_20' ) end [2025-04-14 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903924', 'tblTempVendorCDR_20' ) start [2025-04-14 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903924', 'tblTempVendorCDR_20' ) end [2025-04-14 04:54:18] Production.INFO: ProcessCDR(1,14903924,1,1,2) [2025-04-14 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903924', 'tblTempUsageDetail_20' ) start [2025-04-14 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903924', 'tblTempUsageDetail_20' ) end [2025-04-14 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:54:22] Production.INFO: ==9586== Releasing lock... [2025-04-14 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:55:06 [end_date_ymd] => 2025-04-14 04:55:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:55:06' and `end` < '2025-04-14 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-04-14 04:55:19] Production.INFO: count ==91 [2025-04-14 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:55:06 - End Time 2025-04-14 04:55:06 [2025-04-14 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903929', 'tblTempUsageDetail_20' ) start [2025-04-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903929', 'tblTempUsageDetail_20' ) end [2025-04-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903929', 'tblTempVendorCDR_20' ) start [2025-04-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903929', 'tblTempVendorCDR_20' ) end [2025-04-14 04:55:19] Production.INFO: ProcessCDR(1,14903929,1,1,2) [2025-04-14 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903929', 'tblTempUsageDetail_20' ) start [2025-04-14 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903929', 'tblTempUsageDetail_20' ) end [2025-04-14 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:55:22] Production.INFO: ==9656== Releasing lock... [2025-04-14 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:56:04 [end_date_ymd] => 2025-04-14 04:56:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:56:04' and `end` < '2025-04-14 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-04-14 04:56:17] Production.INFO: count ==91 [2025-04-14 04:56:17] Production.ERROR: pbx CDR StartTime 2025-04-14 01:56:04 - End Time 2025-04-14 04:56:04 [2025-04-14 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903934', 'tblTempUsageDetail_20' ) start [2025-04-14 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903934', 'tblTempUsageDetail_20' ) end [2025-04-14 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903934', 'tblTempVendorCDR_20' ) start [2025-04-14 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903934', 'tblTempVendorCDR_20' ) end [2025-04-14 04:56:17] Production.INFO: ProcessCDR(1,14903934,1,1,2) [2025-04-14 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903934', 'tblTempUsageDetail_20' ) start [2025-04-14 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903934', 'tblTempUsageDetail_20' ) end [2025-04-14 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:56:21] Production.INFO: ==9725== Releasing lock... [2025-04-14 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:57:06 [end_date_ymd] => 2025-04-14 04:57:06 [RateCDR] => 1 ) [2025-04-14 04: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-04-14 01:57:06' and `end` < '2025-04-14 04: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-04-14 04:57:19] Production.INFO: count ==90 [2025-04-14 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:57:06 - End Time 2025-04-14 04:57:06 [2025-04-14 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903939', 'tblTempUsageDetail_20' ) start [2025-04-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903939', 'tblTempUsageDetail_20' ) end [2025-04-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903939', 'tblTempVendorCDR_20' ) start [2025-04-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903939', 'tblTempVendorCDR_20' ) end [2025-04-14 04:57:19] Production.INFO: ProcessCDR(1,14903939,1,1,2) [2025-04-14 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903939', 'tblTempUsageDetail_20' ) start [2025-04-14 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903939', 'tblTempUsageDetail_20' ) end [2025-04-14 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:57:22] Production.INFO: ==9798== Releasing lock... [2025-04-14 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:58:05 [end_date_ymd] => 2025-04-14 04:58:05 [RateCDR] => 1 ) [2025-04-14 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 01:58:05' and `end` < '2025-04-14 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 04:58:19] Production.INFO: count ==88 [2025-04-14 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-14 01:58:05 - End Time 2025-04-14 04:58:05 [2025-04-14 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903944', 'tblTempUsageDetail_20' ) start [2025-04-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903944', 'tblTempUsageDetail_20' ) end [2025-04-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903944', 'tblTempVendorCDR_20' ) start [2025-04-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903944', 'tblTempVendorCDR_20' ) end [2025-04-14 04:58:19] Production.INFO: ProcessCDR(1,14903944,1,1,2) [2025-04-14 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903944', 'tblTempUsageDetail_20' ) start [2025-04-14 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903944', 'tblTempUsageDetail_20' ) end [2025-04-14 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:58:22] Production.INFO: ==9909== Releasing lock... [2025-04-14 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 01:59:05 [end_date_ymd] => 2025-04-14 04:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 01:59:05' and `end` < '2025-04-14 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-04-14 04:59:18] Production.INFO: count ==90 [2025-04-14 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 01:59:05 - End Time 2025-04-14 04:59:05 [2025-04-14 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903949', 'tblTempUsageDetail_20' ) start [2025-04-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903949', 'tblTempUsageDetail_20' ) end [2025-04-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903949', 'tblTempVendorCDR_20' ) start [2025-04-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903949', 'tblTempVendorCDR_20' ) end [2025-04-14 04:59:18] Production.INFO: ProcessCDR(1,14903949,1,1,2) [2025-04-14 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903949', 'tblTempUsageDetail_20' ) start [2025-04-14 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903949', 'tblTempUsageDetail_20' ) end [2025-04-14 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 04:59:22] Production.INFO: ==9984== Releasing lock... [2025-04-14 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 04:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:00:05 [end_date_ymd] => 2025-04-14 05:00:05 [RateCDR] => 1 ) [2025-04-14 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 02:00:05' and `end` < '2025-04-14 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 05:00:19] Production.INFO: count ==87 [2025-04-14 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 02:00:05 - End Time 2025-04-14 05:00:05 [2025-04-14 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903954', 'tblTempUsageDetail_20' ) start [2025-04-14 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903954', 'tblTempUsageDetail_20' ) end [2025-04-14 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903954', 'tblTempVendorCDR_20' ) start [2025-04-14 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903954', 'tblTempVendorCDR_20' ) end [2025-04-14 05:00:19] Production.INFO: ProcessCDR(1,14903954,1,1,2) [2025-04-14 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903954', 'tblTempUsageDetail_20' ) start [2025-04-14 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903954', 'tblTempUsageDetail_20' ) end [2025-04-14 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:00:22] Production.INFO: ==10068== Releasing lock... [2025-04-14 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:01:05 [end_date_ymd] => 2025-04-14 05:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:01:05' and `end` < '2025-04-14 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-04-14 05:01:18] Production.INFO: count ==85 [2025-04-14 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:01:05 - End Time 2025-04-14 05:01:05 [2025-04-14 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903960', 'tblTempUsageDetail_20' ) start [2025-04-14 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903960', 'tblTempUsageDetail_20' ) end [2025-04-14 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903960', 'tblTempVendorCDR_20' ) start [2025-04-14 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903960', 'tblTempVendorCDR_20' ) end [2025-04-14 05:01:18] Production.INFO: ProcessCDR(1,14903960,1,1,2) [2025-04-14 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903960', 'tblTempUsageDetail_20' ) start [2025-04-14 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903960', 'tblTempUsageDetail_20' ) end [2025-04-14 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:01:21] Production.INFO: ==10154== Releasing lock... [2025-04-14 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:02:04 [end_date_ymd] => 2025-04-14 05:02:04 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:02:04' and `end` < '2025-04-14 05: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-04-14 05:02:18] Production.INFO: count ==87 [2025-04-14 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:02:04 - End Time 2025-04-14 05:02:04 [2025-04-14 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903965', 'tblTempUsageDetail_20' ) start [2025-04-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903965', 'tblTempUsageDetail_20' ) end [2025-04-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903965', 'tblTempVendorCDR_20' ) start [2025-04-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903965', 'tblTempVendorCDR_20' ) end [2025-04-14 05:02:18] Production.INFO: ProcessCDR(1,14903965,1,1,2) [2025-04-14 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903965', 'tblTempUsageDetail_20' ) start [2025-04-14 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903965', 'tblTempUsageDetail_20' ) end [2025-04-14 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:02:21] Production.INFO: ==10225== Releasing lock... [2025-04-14 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:03:05 [end_date_ymd] => 2025-04-14 05:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:03:05' and `end` < '2025-04-14 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-04-14 05:03:18] Production.INFO: count ==87 [2025-04-14 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:03:05 - End Time 2025-04-14 05:03:05 [2025-04-14 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903970', 'tblTempUsageDetail_20' ) start [2025-04-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903970', 'tblTempUsageDetail_20' ) end [2025-04-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903970', 'tblTempVendorCDR_20' ) start [2025-04-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903970', 'tblTempVendorCDR_20' ) end [2025-04-14 05:03:18] Production.INFO: ProcessCDR(1,14903970,1,1,2) [2025-04-14 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903970', 'tblTempUsageDetail_20' ) start [2025-04-14 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903970', 'tblTempUsageDetail_20' ) end [2025-04-14 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:03:21] Production.INFO: ==10307== Releasing lock... [2025-04-14 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:04:05 [end_date_ymd] => 2025-04-14 05:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:04:05' and `end` < '2025-04-14 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-04-14 05:04:18] Production.INFO: count ==87 [2025-04-14 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:04:05 - End Time 2025-04-14 05:04:05 [2025-04-14 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903975', 'tblTempUsageDetail_20' ) start [2025-04-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903975', 'tblTempUsageDetail_20' ) end [2025-04-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903975', 'tblTempVendorCDR_20' ) start [2025-04-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903975', 'tblTempVendorCDR_20' ) end [2025-04-14 05:04:18] Production.INFO: ProcessCDR(1,14903975,1,1,2) [2025-04-14 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903975', 'tblTempUsageDetail_20' ) start [2025-04-14 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903975', 'tblTempUsageDetail_20' ) end [2025-04-14 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:04:21] Production.INFO: ==10380== Releasing lock... [2025-04-14 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:05:05 [end_date_ymd] => 2025-04-14 05:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:05:05' and `end` < '2025-04-14 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-04-14 05:05:18] Production.INFO: count ==87 [2025-04-14 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:05:05 - End Time 2025-04-14 05:05:05 [2025-04-14 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903980', 'tblTempUsageDetail_20' ) start [2025-04-14 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903980', 'tblTempUsageDetail_20' ) end [2025-04-14 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903980', 'tblTempVendorCDR_20' ) start [2025-04-14 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903980', 'tblTempVendorCDR_20' ) end [2025-04-14 05:05:18] Production.INFO: ProcessCDR(1,14903980,1,1,2) [2025-04-14 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903980', 'tblTempUsageDetail_20' ) start [2025-04-14 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903980', 'tblTempUsageDetail_20' ) end [2025-04-14 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:05:21] Production.INFO: ==10452== Releasing lock... [2025-04-14 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:06:06 [end_date_ymd] => 2025-04-14 05:06:06 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:06:06' and `end` < '2025-04-14 05: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-04-14 05:06:18] Production.INFO: count ==87 [2025-04-14 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:06:06 - End Time 2025-04-14 05:06:06 [2025-04-14 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903985', 'tblTempUsageDetail_20' ) start [2025-04-14 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903985', 'tblTempUsageDetail_20' ) end [2025-04-14 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903985', 'tblTempVendorCDR_20' ) start [2025-04-14 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903985', 'tblTempVendorCDR_20' ) end [2025-04-14 05:06:18] Production.INFO: ProcessCDR(1,14903985,1,1,2) [2025-04-14 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903985', 'tblTempUsageDetail_20' ) start [2025-04-14 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903985', 'tblTempUsageDetail_20' ) end [2025-04-14 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:06:22] Production.INFO: ==10527== Releasing lock... [2025-04-14 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:07:05 [end_date_ymd] => 2025-04-14 05:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:07:05' and `end` < '2025-04-14 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-04-14 05:07:18] Production.INFO: count ==85 [2025-04-14 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:07:05 - End Time 2025-04-14 05:07:05 [2025-04-14 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903990', 'tblTempUsageDetail_20' ) start [2025-04-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903990', 'tblTempUsageDetail_20' ) end [2025-04-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903990', 'tblTempVendorCDR_20' ) start [2025-04-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903990', 'tblTempVendorCDR_20' ) end [2025-04-14 05:07:18] Production.INFO: ProcessCDR(1,14903990,1,1,2) [2025-04-14 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903990', 'tblTempUsageDetail_20' ) start [2025-04-14 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903990', 'tblTempUsageDetail_20' ) end [2025-04-14 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:07:21] Production.INFO: ==10599== Releasing lock... [2025-04-14 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:08:06 [end_date_ymd] => 2025-04-14 05:08:06 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:08:06' and `end` < '2025-04-14 05: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-04-14 05:08:18] Production.INFO: count ==85 [2025-04-14 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:08:06 - End Time 2025-04-14 05:08:06 [2025-04-14 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903995', 'tblTempUsageDetail_20' ) start [2025-04-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14903995', 'tblTempUsageDetail_20' ) end [2025-04-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903995', 'tblTempVendorCDR_20' ) start [2025-04-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14903995', 'tblTempVendorCDR_20' ) end [2025-04-14 05:08:18] Production.INFO: ProcessCDR(1,14903995,1,1,2) [2025-04-14 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14903995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14903995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14903995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14903995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903995', 'tblTempUsageDetail_20' ) start [2025-04-14 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14903995', 'tblTempUsageDetail_20' ) end [2025-04-14 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:08:22] Production.INFO: ==10671== Releasing lock... [2025-04-14 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:09:04 [end_date_ymd] => 2025-04-14 05:09:04 [RateCDR] => 1 ) [2025-04-14 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 02:09:04' and `end` < '2025-04-14 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 05:09:17] Production.INFO: count ==85 [2025-04-14 05:09:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:09:04 - End Time 2025-04-14 05:09:04 [2025-04-14 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904000', 'tblTempUsageDetail_20' ) start [2025-04-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904000', 'tblTempUsageDetail_20' ) end [2025-04-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904000', 'tblTempVendorCDR_20' ) start [2025-04-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904000', 'tblTempVendorCDR_20' ) end [2025-04-14 05:09:17] Production.INFO: ProcessCDR(1,14904000,1,1,2) [2025-04-14 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904000', 'tblTempUsageDetail_20' ) start [2025-04-14 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904000', 'tblTempUsageDetail_20' ) end [2025-04-14 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:09:20] Production.INFO: ==10743== Releasing lock... [2025-04-14 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:09:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:10:06 [end_date_ymd] => 2025-04-14 05:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:10:06' and `end` < '2025-04-14 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-04-14 05:10:19] Production.INFO: count ==85 [2025-04-14 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 02:10:06 - End Time 2025-04-14 05:10:06 [2025-04-14 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904006', 'tblTempUsageDetail_20' ) start [2025-04-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904006', 'tblTempUsageDetail_20' ) end [2025-04-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904006', 'tblTempVendorCDR_20' ) start [2025-04-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904006', 'tblTempVendorCDR_20' ) end [2025-04-14 05:10:19] Production.INFO: ProcessCDR(1,14904006,1,1,2) [2025-04-14 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904006', 'tblTempUsageDetail_20' ) start [2025-04-14 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904006', 'tblTempUsageDetail_20' ) end [2025-04-14 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:10:23] Production.INFO: ==10822== Releasing lock... [2025-04-14 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:11:04 [end_date_ymd] => 2025-04-14 05:11:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:11:04' and `end` < '2025-04-14 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-04-14 05:11:17] Production.INFO: count ==85 [2025-04-14 05:11:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:11:04 - End Time 2025-04-14 05:11:04 [2025-04-14 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904011', 'tblTempUsageDetail_20' ) start [2025-04-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904011', 'tblTempUsageDetail_20' ) end [2025-04-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904011', 'tblTempVendorCDR_20' ) start [2025-04-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904011', 'tblTempVendorCDR_20' ) end [2025-04-14 05:11:17] Production.INFO: ProcessCDR(1,14904011,1,1,2) [2025-04-14 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904011', 'tblTempUsageDetail_20' ) start [2025-04-14 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904011', 'tblTempUsageDetail_20' ) end [2025-04-14 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:11:21] Production.INFO: ==10902== Releasing lock... [2025-04-14 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:12:05 [end_date_ymd] => 2025-04-14 05:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:12:05' and `end` < '2025-04-14 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-04-14 05:12:17] Production.INFO: count ==85 [2025-04-14 05:12:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:12:05 - End Time 2025-04-14 05:12:05 [2025-04-14 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904016', 'tblTempUsageDetail_20' ) start [2025-04-14 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904016', 'tblTempUsageDetail_20' ) end [2025-04-14 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904016', 'tblTempVendorCDR_20' ) start [2025-04-14 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904016', 'tblTempVendorCDR_20' ) end [2025-04-14 05:12:17] Production.INFO: ProcessCDR(1,14904016,1,1,2) [2025-04-14 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904016', 'tblTempUsageDetail_20' ) start [2025-04-14 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904016', 'tblTempUsageDetail_20' ) end [2025-04-14 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:12:21] Production.INFO: ==10978== Releasing lock... [2025-04-14 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:13:06 [end_date_ymd] => 2025-04-14 05:13:06 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:13:06' and `end` < '2025-04-14 05: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-04-14 05:13:18] Production.INFO: count ==85 [2025-04-14 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:13:06 - End Time 2025-04-14 05:13:06 [2025-04-14 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904021', 'tblTempUsageDetail_20' ) start [2025-04-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904021', 'tblTempUsageDetail_20' ) end [2025-04-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904021', 'tblTempVendorCDR_20' ) start [2025-04-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904021', 'tblTempVendorCDR_20' ) end [2025-04-14 05:13:18] Production.INFO: ProcessCDR(1,14904021,1,1,2) [2025-04-14 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904021', 'tblTempUsageDetail_20' ) start [2025-04-14 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904021', 'tblTempUsageDetail_20' ) end [2025-04-14 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:13:21] Production.INFO: ==11093== Releasing lock... [2025-04-14 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:14:05 [end_date_ymd] => 2025-04-14 05:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:14:05' and `end` < '2025-04-14 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-04-14 05:14:18] Production.INFO: count ==85 [2025-04-14 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:14:05 - End Time 2025-04-14 05:14:05 [2025-04-14 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904026', 'tblTempUsageDetail_20' ) start [2025-04-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904026', 'tblTempUsageDetail_20' ) end [2025-04-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904026', 'tblTempVendorCDR_20' ) start [2025-04-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904026', 'tblTempVendorCDR_20' ) end [2025-04-14 05:14:18] Production.INFO: ProcessCDR(1,14904026,1,1,2) [2025-04-14 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904026', 'tblTempUsageDetail_20' ) start [2025-04-14 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904026', 'tblTempUsageDetail_20' ) end [2025-04-14 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:14:21] Production.INFO: ==11164== Releasing lock... [2025-04-14 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:15:05 [end_date_ymd] => 2025-04-14 05:15:05 [RateCDR] => 1 ) [2025-04-14 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 02:15:05' and `end` < '2025-04-14 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 05:15:18] Production.INFO: count ==85 [2025-04-14 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:15:05 - End Time 2025-04-14 05:15:05 [2025-04-14 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904031', 'tblTempUsageDetail_20' ) start [2025-04-14 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904031', 'tblTempUsageDetail_20' ) end [2025-04-14 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904031', 'tblTempVendorCDR_20' ) start [2025-04-14 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904031', 'tblTempVendorCDR_20' ) end [2025-04-14 05:15:18] Production.INFO: ProcessCDR(1,14904031,1,1,2) [2025-04-14 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904031', 'tblTempUsageDetail_20' ) start [2025-04-14 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904031', 'tblTempUsageDetail_20' ) end [2025-04-14 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:15:21] Production.INFO: ==11235== Releasing lock... [2025-04-14 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:16:05 [end_date_ymd] => 2025-04-14 05:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:16:05' and `end` < '2025-04-14 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-04-14 05:16:18] Production.INFO: count ==85 [2025-04-14 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:16:05 - End Time 2025-04-14 05:16:05 [2025-04-14 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904036', 'tblTempUsageDetail_20' ) start [2025-04-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904036', 'tblTempUsageDetail_20' ) end [2025-04-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904036', 'tblTempVendorCDR_20' ) start [2025-04-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904036', 'tblTempVendorCDR_20' ) end [2025-04-14 05:16:18] Production.INFO: ProcessCDR(1,14904036,1,1,2) [2025-04-14 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904036', 'tblTempUsageDetail_20' ) start [2025-04-14 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904036', 'tblTempUsageDetail_20' ) end [2025-04-14 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:16:21] Production.INFO: ==11307== Releasing lock... [2025-04-14 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:17:05 [end_date_ymd] => 2025-04-14 05:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:17:05' and `end` < '2025-04-14 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-04-14 05:17:18] Production.INFO: count ==85 [2025-04-14 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:17:05 - End Time 2025-04-14 05:17:05 [2025-04-14 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904041', 'tblTempUsageDetail_20' ) start [2025-04-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904041', 'tblTempUsageDetail_20' ) end [2025-04-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904041', 'tblTempVendorCDR_20' ) start [2025-04-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904041', 'tblTempVendorCDR_20' ) end [2025-04-14 05:17:18] Production.INFO: ProcessCDR(1,14904041,1,1,2) [2025-04-14 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904041', 'tblTempUsageDetail_20' ) start [2025-04-14 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904041', 'tblTempUsageDetail_20' ) end [2025-04-14 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:17:21] Production.INFO: ==11386== Releasing lock... [2025-04-14 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:18:05 [end_date_ymd] => 2025-04-14 05:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:18:05' and `end` < '2025-04-14 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-04-14 05:18:17] Production.INFO: count ==85 [2025-04-14 05:18:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:18:05 - End Time 2025-04-14 05:18:05 [2025-04-14 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904046', 'tblTempUsageDetail_20' ) start [2025-04-14 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904046', 'tblTempUsageDetail_20' ) end [2025-04-14 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904046', 'tblTempVendorCDR_20' ) start [2025-04-14 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904046', 'tblTempVendorCDR_20' ) end [2025-04-14 05:18:17] Production.INFO: ProcessCDR(1,14904046,1,1,2) [2025-04-14 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904046', 'tblTempUsageDetail_20' ) start [2025-04-14 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904046', 'tblTempUsageDetail_20' ) end [2025-04-14 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:18:20] Production.INFO: ==11470== Releasing lock... [2025-04-14 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:18:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:19:05 [end_date_ymd] => 2025-04-14 05:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:19:05' and `end` < '2025-04-14 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-04-14 05:19:18] Production.INFO: count ==85 [2025-04-14 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:19:05 - End Time 2025-04-14 05:19:05 [2025-04-14 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904051', 'tblTempUsageDetail_20' ) start [2025-04-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904051', 'tblTempUsageDetail_20' ) end [2025-04-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904051', 'tblTempVendorCDR_20' ) start [2025-04-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904051', 'tblTempVendorCDR_20' ) end [2025-04-14 05:19:18] Production.INFO: ProcessCDR(1,14904051,1,1,2) [2025-04-14 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904051', 'tblTempUsageDetail_20' ) start [2025-04-14 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904051', 'tblTempUsageDetail_20' ) end [2025-04-14 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:19:21] Production.INFO: ==11549== Releasing lock... [2025-04-14 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:20:05 [end_date_ymd] => 2025-04-14 05:20:05 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:20:05' and `end` < '2025-04-14 05: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-04-14 05:20:18] Production.INFO: count ==85 [2025-04-14 05:20:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:20:05 - End Time 2025-04-14 05:20:05 [2025-04-14 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904057', 'tblTempUsageDetail_20' ) start [2025-04-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904057', 'tblTempUsageDetail_20' ) end [2025-04-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904057', 'tblTempVendorCDR_20' ) start [2025-04-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904057', 'tblTempVendorCDR_20' ) end [2025-04-14 05:20:18] Production.INFO: ProcessCDR(1,14904057,1,1,2) [2025-04-14 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904057', 'tblTempUsageDetail_20' ) start [2025-04-14 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904057', 'tblTempUsageDetail_20' ) end [2025-04-14 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:20:21] Production.INFO: ==11623== Releasing lock... [2025-04-14 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:21:05 [end_date_ymd] => 2025-04-14 05:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:21:05' and `end` < '2025-04-14 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-04-14 05:21:18] Production.INFO: count ==85 [2025-04-14 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:21:05 - End Time 2025-04-14 05:21:05 [2025-04-14 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904062', 'tblTempUsageDetail_20' ) start [2025-04-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904062', 'tblTempUsageDetail_20' ) end [2025-04-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904062', 'tblTempVendorCDR_20' ) start [2025-04-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904062', 'tblTempVendorCDR_20' ) end [2025-04-14 05:21:18] Production.INFO: ProcessCDR(1,14904062,1,1,2) [2025-04-14 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904062', 'tblTempUsageDetail_20' ) start [2025-04-14 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904062', 'tblTempUsageDetail_20' ) end [2025-04-14 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:21:21] Production.INFO: ==11699== Releasing lock... [2025-04-14 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:22:04 [end_date_ymd] => 2025-04-14 05:22:04 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:22:04' and `end` < '2025-04-14 05: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-04-14 05:22:17] Production.INFO: count ==85 [2025-04-14 05:22:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:22:04 - End Time 2025-04-14 05:22:04 [2025-04-14 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904067', 'tblTempUsageDetail_20' ) start [2025-04-14 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904067', 'tblTempUsageDetail_20' ) end [2025-04-14 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904067', 'tblTempVendorCDR_20' ) start [2025-04-14 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904067', 'tblTempVendorCDR_20' ) end [2025-04-14 05:22:17] Production.INFO: ProcessCDR(1,14904067,1,1,2) [2025-04-14 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904067', 'tblTempUsageDetail_20' ) start [2025-04-14 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904067', 'tblTempUsageDetail_20' ) end [2025-04-14 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:22:20] Production.INFO: ==11778== Releasing lock... [2025-04-14 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:23:05 [end_date_ymd] => 2025-04-14 05:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:23:05' and `end` < '2025-04-14 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-04-14 05:23:18] Production.INFO: count ==83 [2025-04-14 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:23:05 - End Time 2025-04-14 05:23:05 [2025-04-14 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904072', 'tblTempUsageDetail_20' ) start [2025-04-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904072', 'tblTempUsageDetail_20' ) end [2025-04-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904072', 'tblTempVendorCDR_20' ) start [2025-04-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904072', 'tblTempVendorCDR_20' ) end [2025-04-14 05:23:18] Production.INFO: ProcessCDR(1,14904072,1,1,2) [2025-04-14 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904072', 'tblTempUsageDetail_20' ) start [2025-04-14 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904072', 'tblTempUsageDetail_20' ) end [2025-04-14 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:23:21] Production.INFO: ==11856== Releasing lock... [2025-04-14 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:24:05 [end_date_ymd] => 2025-04-14 05:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:24:05' and `end` < '2025-04-14 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 05:24:18] Production.INFO: count ==83 [2025-04-14 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:24:05 - End Time 2025-04-14 05:24:05 [2025-04-14 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904077', 'tblTempUsageDetail_20' ) start [2025-04-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904077', 'tblTempUsageDetail_20' ) end [2025-04-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904077', 'tblTempVendorCDR_20' ) start [2025-04-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904077', 'tblTempVendorCDR_20' ) end [2025-04-14 05:24:18] Production.INFO: ProcessCDR(1,14904077,1,1,2) [2025-04-14 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904077', 'tblTempUsageDetail_20' ) start [2025-04-14 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904077', 'tblTempUsageDetail_20' ) end [2025-04-14 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:24:21] Production.INFO: ==11929== Releasing lock... [2025-04-14 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:25:05 [end_date_ymd] => 2025-04-14 05:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:25:05' and `end` < '2025-04-14 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-04-14 05:25:17] Production.INFO: count ==83 [2025-04-14 05:25:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:25:05 - End Time 2025-04-14 05:25:05 [2025-04-14 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904082', 'tblTempUsageDetail_20' ) start [2025-04-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904082', 'tblTempUsageDetail_20' ) end [2025-04-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904082', 'tblTempVendorCDR_20' ) start [2025-04-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904082', 'tblTempVendorCDR_20' ) end [2025-04-14 05:25:18] Production.INFO: ProcessCDR(1,14904082,1,1,2) [2025-04-14 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904082', 'tblTempUsageDetail_20' ) start [2025-04-14 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904082', 'tblTempUsageDetail_20' ) end [2025-04-14 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:25:21] Production.INFO: ==12007== Releasing lock... [2025-04-14 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:26:05 [end_date_ymd] => 2025-04-14 05:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:26:05' and `end` < '2025-04-14 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-04-14 05:26:18] Production.INFO: count ==83 [2025-04-14 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:26:05 - End Time 2025-04-14 05:26:05 [2025-04-14 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904087', 'tblTempUsageDetail_20' ) start [2025-04-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904087', 'tblTempUsageDetail_20' ) end [2025-04-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904087', 'tblTempVendorCDR_20' ) start [2025-04-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904087', 'tblTempVendorCDR_20' ) end [2025-04-14 05:26:18] Production.INFO: ProcessCDR(1,14904087,1,1,2) [2025-04-14 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904087', 'tblTempUsageDetail_20' ) start [2025-04-14 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904087', 'tblTempUsageDetail_20' ) end [2025-04-14 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:26:21] Production.INFO: ==12081== Releasing lock... [2025-04-14 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:27:05 [end_date_ymd] => 2025-04-14 05:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:27:05' and `end` < '2025-04-14 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-04-14 05:27:17] Production.INFO: count ==83 [2025-04-14 05:27:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:27:05 - End Time 2025-04-14 05:27:05 [2025-04-14 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904092', 'tblTempUsageDetail_20' ) start [2025-04-14 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904092', 'tblTempUsageDetail_20' ) end [2025-04-14 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904092', 'tblTempVendorCDR_20' ) start [2025-04-14 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904092', 'tblTempVendorCDR_20' ) end [2025-04-14 05:27:17] Production.INFO: ProcessCDR(1,14904092,1,1,2) [2025-04-14 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904092', 'tblTempUsageDetail_20' ) start [2025-04-14 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904092', 'tblTempUsageDetail_20' ) end [2025-04-14 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:27:21] Production.INFO: ==12163== Releasing lock... [2025-04-14 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:28:05 [end_date_ymd] => 2025-04-14 05:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:28:05' and `end` < '2025-04-14 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-04-14 05:28:18] Production.INFO: count ==83 [2025-04-14 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:28:05 - End Time 2025-04-14 05:28:05 [2025-04-14 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904097', 'tblTempUsageDetail_20' ) start [2025-04-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904097', 'tblTempUsageDetail_20' ) end [2025-04-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904097', 'tblTempVendorCDR_20' ) start [2025-04-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904097', 'tblTempVendorCDR_20' ) end [2025-04-14 05:28:18] Production.INFO: ProcessCDR(1,14904097,1,1,2) [2025-04-14 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904097', 'tblTempUsageDetail_20' ) start [2025-04-14 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904097', 'tblTempUsageDetail_20' ) end [2025-04-14 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:28:21] Production.INFO: ==12236== Releasing lock... [2025-04-14 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:29:05 [end_date_ymd] => 2025-04-14 05:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:29:05' and `end` < '2025-04-14 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-04-14 05:29:18] Production.INFO: count ==83 [2025-04-14 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:29:05 - End Time 2025-04-14 05:29:05 [2025-04-14 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904102', 'tblTempUsageDetail_20' ) start [2025-04-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904102', 'tblTempUsageDetail_20' ) end [2025-04-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904102', 'tblTempVendorCDR_20' ) start [2025-04-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904102', 'tblTempVendorCDR_20' ) end [2025-04-14 05:29:18] Production.INFO: ProcessCDR(1,14904102,1,1,2) [2025-04-14 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904102', 'tblTempUsageDetail_20' ) start [2025-04-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904102', 'tblTempUsageDetail_20' ) end [2025-04-14 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:29:21] Production.INFO: ==12347== Releasing lock... [2025-04-14 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:30:06 [end_date_ymd] => 2025-04-14 05:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:30:06' and `end` < '2025-04-14 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-04-14 05:30:18] Production.INFO: count ==73 [2025-04-14 05:30:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:30:06 - End Time 2025-04-14 05:30:06 [2025-04-14 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904108', 'tblTempUsageDetail_20' ) start [2025-04-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904108', 'tblTempUsageDetail_20' ) end [2025-04-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904108', 'tblTempVendorCDR_20' ) start [2025-04-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904108', 'tblTempVendorCDR_20' ) end [2025-04-14 05:30:18] Production.INFO: ProcessCDR(1,14904108,1,1,2) [2025-04-14 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904108', 'tblTempUsageDetail_20' ) start [2025-04-14 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904108', 'tblTempUsageDetail_20' ) end [2025-04-14 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:30:22] Production.INFO: ==12419== Releasing lock... [2025-04-14 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:31:05 [end_date_ymd] => 2025-04-14 05:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:31:05' and `end` < '2025-04-14 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-04-14 05:31:17] Production.INFO: count ==73 [2025-04-14 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:31:05 - End Time 2025-04-14 05:31:05 [2025-04-14 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904113', 'tblTempUsageDetail_20' ) start [2025-04-14 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904113', 'tblTempUsageDetail_20' ) end [2025-04-14 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904113', 'tblTempVendorCDR_20' ) start [2025-04-14 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904113', 'tblTempVendorCDR_20' ) end [2025-04-14 05:31:17] Production.INFO: ProcessCDR(1,14904113,1,1,2) [2025-04-14 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904113', 'tblTempUsageDetail_20' ) start [2025-04-14 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904113', 'tblTempUsageDetail_20' ) end [2025-04-14 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:31:21] Production.INFO: ==12498== Releasing lock... [2025-04-14 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:32:05 [end_date_ymd] => 2025-04-14 05:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:32:05' and `end` < '2025-04-14 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-04-14 05:32:18] Production.INFO: count ==72 [2025-04-14 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:32:05 - End Time 2025-04-14 05:32:05 [2025-04-14 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904118', 'tblTempUsageDetail_20' ) start [2025-04-14 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904118', 'tblTempUsageDetail_20' ) end [2025-04-14 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904118', 'tblTempVendorCDR_20' ) start [2025-04-14 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904118', 'tblTempVendorCDR_20' ) end [2025-04-14 05:32:18] Production.INFO: ProcessCDR(1,14904118,1,1,2) [2025-04-14 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904118', 'tblTempUsageDetail_20' ) start [2025-04-14 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904118', 'tblTempUsageDetail_20' ) end [2025-04-14 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:32:21] Production.INFO: ==12574== Releasing lock... [2025-04-14 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:33:05 [end_date_ymd] => 2025-04-14 05:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:33:05' and `end` < '2025-04-14 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-04-14 05:33:18] Production.INFO: count ==71 [2025-04-14 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:33:05 - End Time 2025-04-14 05:33:05 [2025-04-14 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904123', 'tblTempUsageDetail_20' ) start [2025-04-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904123', 'tblTempUsageDetail_20' ) end [2025-04-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904123', 'tblTempVendorCDR_20' ) start [2025-04-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904123', 'tblTempVendorCDR_20' ) end [2025-04-14 05:33:18] Production.INFO: ProcessCDR(1,14904123,1,1,2) [2025-04-14 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904123', 'tblTempUsageDetail_20' ) start [2025-04-14 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904123', 'tblTempUsageDetail_20' ) end [2025-04-14 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:33:21] Production.INFO: ==12643== Releasing lock... [2025-04-14 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:34:04 [end_date_ymd] => 2025-04-14 05:34:04 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:34:04' and `end` < '2025-04-14 05: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-04-14 05:34:17] Production.INFO: count ==71 [2025-04-14 05:34:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:34:04 - End Time 2025-04-14 05:34:04 [2025-04-14 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904125', 'tblTempUsageDetail_20' ) start [2025-04-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904125', 'tblTempUsageDetail_20' ) end [2025-04-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904125', 'tblTempVendorCDR_20' ) start [2025-04-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904125', 'tblTempVendorCDR_20' ) end [2025-04-14 05:34:17] Production.INFO: ProcessCDR(1,14904125,1,1,2) [2025-04-14 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904125', 'tblTempUsageDetail_20' ) start [2025-04-14 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904125', 'tblTempUsageDetail_20' ) end [2025-04-14 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:34:20] Production.INFO: ==12717== Releasing lock... [2025-04-14 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:34:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:35:05 [end_date_ymd] => 2025-04-14 05:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:35:05' and `end` < '2025-04-14 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-04-14 05:35:18] Production.INFO: count ==71 [2025-04-14 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:35:05 - End Time 2025-04-14 05:35:05 [2025-04-14 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904133', 'tblTempUsageDetail_20' ) start [2025-04-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904133', 'tblTempUsageDetail_20' ) end [2025-04-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904133', 'tblTempVendorCDR_20' ) start [2025-04-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904133', 'tblTempVendorCDR_20' ) end [2025-04-14 05:35:18] Production.INFO: ProcessCDR(1,14904133,1,1,2) [2025-04-14 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904133', 'tblTempUsageDetail_20' ) start [2025-04-14 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904133', 'tblTempUsageDetail_20' ) end [2025-04-14 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:35:21] Production.INFO: ==12789== Releasing lock... [2025-04-14 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:36:05 [end_date_ymd] => 2025-04-14 05:36:05 [RateCDR] => 1 ) [2025-04-14 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 02:36:05' and `end` < '2025-04-14 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 05:36:17] Production.INFO: count ==71 [2025-04-14 05:36:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:36:05 - End Time 2025-04-14 05:36:05 [2025-04-14 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904138', 'tblTempUsageDetail_20' ) start [2025-04-14 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904138', 'tblTempUsageDetail_20' ) end [2025-04-14 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904138', 'tblTempVendorCDR_20' ) start [2025-04-14 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904138', 'tblTempVendorCDR_20' ) end [2025-04-14 05:36:18] Production.INFO: ProcessCDR(1,14904138,1,1,2) [2025-04-14 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904138', 'tblTempUsageDetail_20' ) start [2025-04-14 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904138', 'tblTempUsageDetail_20' ) end [2025-04-14 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:36:21] Production.INFO: ==12866== Releasing lock... [2025-04-14 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:37:05 [end_date_ymd] => 2025-04-14 05:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:37:05' and `end` < '2025-04-14 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-04-14 05:37:17] Production.INFO: count ==71 [2025-04-14 05:37:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:37:05 - End Time 2025-04-14 05:37:05 [2025-04-14 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904143', 'tblTempUsageDetail_20' ) start [2025-04-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904143', 'tblTempUsageDetail_20' ) end [2025-04-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904143', 'tblTempVendorCDR_20' ) start [2025-04-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904143', 'tblTempVendorCDR_20' ) end [2025-04-14 05:37:17] Production.INFO: ProcessCDR(1,14904143,1,1,2) [2025-04-14 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904143', 'tblTempUsageDetail_20' ) start [2025-04-14 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904143', 'tblTempUsageDetail_20' ) end [2025-04-14 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:37:20] Production.INFO: ==12943== Releasing lock... [2025-04-14 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:38:05 [end_date_ymd] => 2025-04-14 05:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:38:05' and `end` < '2025-04-14 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-04-14 05:38:18] Production.INFO: count ==71 [2025-04-14 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:38:05 - End Time 2025-04-14 05:38:05 [2025-04-14 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904148', 'tblTempUsageDetail_20' ) start [2025-04-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904148', 'tblTempUsageDetail_20' ) end [2025-04-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904148', 'tblTempVendorCDR_20' ) start [2025-04-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904148', 'tblTempVendorCDR_20' ) end [2025-04-14 05:38:18] Production.INFO: ProcessCDR(1,14904148,1,1,2) [2025-04-14 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904148', 'tblTempUsageDetail_20' ) start [2025-04-14 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904148', 'tblTempUsageDetail_20' ) end [2025-04-14 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:38:21] Production.INFO: ==13013== Releasing lock... [2025-04-14 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:39:05 [end_date_ymd] => 2025-04-14 05:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:39:05' and `end` < '2025-04-14 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-04-14 05:39:17] Production.INFO: count ==71 [2025-04-14 05:39:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:39:05 - End Time 2025-04-14 05:39:05 [2025-04-14 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904153', 'tblTempUsageDetail_20' ) start [2025-04-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904153', 'tblTempUsageDetail_20' ) end [2025-04-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904153', 'tblTempVendorCDR_20' ) start [2025-04-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904153', 'tblTempVendorCDR_20' ) end [2025-04-14 05:39:17] Production.INFO: ProcessCDR(1,14904153,1,1,2) [2025-04-14 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904153', 'tblTempUsageDetail_20' ) start [2025-04-14 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904153', 'tblTempUsageDetail_20' ) end [2025-04-14 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:39:21] Production.INFO: ==13084== Releasing lock... [2025-04-14 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:40:05 [end_date_ymd] => 2025-04-14 05:40:05 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:40:05' and `end` < '2025-04-14 05: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-04-14 05:40:18] Production.INFO: count ==65 [2025-04-14 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:40:05 - End Time 2025-04-14 05:40:05 [2025-04-14 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904158', 'tblTempUsageDetail_20' ) start [2025-04-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904158', 'tblTempUsageDetail_20' ) end [2025-04-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904158', 'tblTempVendorCDR_20' ) start [2025-04-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904158', 'tblTempVendorCDR_20' ) end [2025-04-14 05:40:18] Production.INFO: ProcessCDR(1,14904158,1,1,2) [2025-04-14 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904158', 'tblTempUsageDetail_20' ) start [2025-04-14 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904158', 'tblTempUsageDetail_20' ) end [2025-04-14 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:40:21] Production.INFO: ==13164== Releasing lock... [2025-04-14 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:41:05 [end_date_ymd] => 2025-04-14 05:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:41:05' and `end` < '2025-04-14 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-04-14 05:41:18] Production.INFO: count ==60 [2025-04-14 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:41:05 - End Time 2025-04-14 05:41:05 [2025-04-14 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904164', 'tblTempUsageDetail_20' ) start [2025-04-14 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904164', 'tblTempUsageDetail_20' ) end [2025-04-14 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904164', 'tblTempVendorCDR_20' ) start [2025-04-14 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904164', 'tblTempVendorCDR_20' ) end [2025-04-14 05:41:18] Production.INFO: ProcessCDR(1,14904164,1,1,2) [2025-04-14 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904164', 'tblTempUsageDetail_20' ) start [2025-04-14 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904164', 'tblTempUsageDetail_20' ) end [2025-04-14 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:41:21] Production.INFO: ==13236== Releasing lock... [2025-04-14 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:42:04 [end_date_ymd] => 2025-04-14 05:42:04 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:42:04' and `end` < '2025-04-14 05: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-04-14 05:42:17] Production.INFO: count ==59 [2025-04-14 05:42:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:42:04 - End Time 2025-04-14 05:42:04 [2025-04-14 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904169', 'tblTempUsageDetail_20' ) start [2025-04-14 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904169', 'tblTempUsageDetail_20' ) end [2025-04-14 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904169', 'tblTempVendorCDR_20' ) start [2025-04-14 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904169', 'tblTempVendorCDR_20' ) end [2025-04-14 05:42:17] Production.INFO: ProcessCDR(1,14904169,1,1,2) [2025-04-14 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904169', 'tblTempUsageDetail_20' ) start [2025-04-14 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904169', 'tblTempUsageDetail_20' ) end [2025-04-14 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:42:21] Production.INFO: ==13311== Releasing lock... [2025-04-14 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:43:05 [end_date_ymd] => 2025-04-14 05:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:43:05' and `end` < '2025-04-14 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-04-14 05:43:18] Production.INFO: count ==59 [2025-04-14 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:43:05 - End Time 2025-04-14 05:43:05 [2025-04-14 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904174', 'tblTempUsageDetail_20' ) start [2025-04-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904174', 'tblTempUsageDetail_20' ) end [2025-04-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904174', 'tblTempVendorCDR_20' ) start [2025-04-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904174', 'tblTempVendorCDR_20' ) end [2025-04-14 05:43:18] Production.INFO: ProcessCDR(1,14904174,1,1,2) [2025-04-14 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904174', 'tblTempUsageDetail_20' ) start [2025-04-14 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904174', 'tblTempUsageDetail_20' ) end [2025-04-14 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:43:21] Production.INFO: ==13385== Releasing lock... [2025-04-14 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:44:05 [end_date_ymd] => 2025-04-14 05:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:44:05' and `end` < '2025-04-14 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-04-14 05:44:18] Production.INFO: count ==59 [2025-04-14 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:44:05 - End Time 2025-04-14 05:44:05 [2025-04-14 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904179', 'tblTempUsageDetail_20' ) start [2025-04-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904179', 'tblTempUsageDetail_20' ) end [2025-04-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904179', 'tblTempVendorCDR_20' ) start [2025-04-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904179', 'tblTempVendorCDR_20' ) end [2025-04-14 05:44:18] Production.INFO: ProcessCDR(1,14904179,1,1,2) [2025-04-14 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904179', 'tblTempUsageDetail_20' ) start [2025-04-14 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904179', 'tblTempUsageDetail_20' ) end [2025-04-14 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:44:21] Production.INFO: ==13501== Releasing lock... [2025-04-14 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:45:05 [end_date_ymd] => 2025-04-14 05:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:45:05' and `end` < '2025-04-14 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-04-14 05:45:17] Production.INFO: count ==59 [2025-04-14 05:45:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:45:05 - End Time 2025-04-14 05:45:05 [2025-04-14 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904184', 'tblTempUsageDetail_20' ) start [2025-04-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904184', 'tblTempUsageDetail_20' ) end [2025-04-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904184', 'tblTempVendorCDR_20' ) start [2025-04-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904184', 'tblTempVendorCDR_20' ) end [2025-04-14 05:45:17] Production.INFO: ProcessCDR(1,14904184,1,1,2) [2025-04-14 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904184', 'tblTempUsageDetail_20' ) start [2025-04-14 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904184', 'tblTempUsageDetail_20' ) end [2025-04-14 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:45:21] Production.INFO: ==13570== Releasing lock... [2025-04-14 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:46:05 [end_date_ymd] => 2025-04-14 05:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:46:05' and `end` < '2025-04-14 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-04-14 05:46:18] Production.INFO: count ==59 [2025-04-14 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:46:05 - End Time 2025-04-14 05:46:05 [2025-04-14 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904189', 'tblTempUsageDetail_20' ) start [2025-04-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904189', 'tblTempUsageDetail_20' ) end [2025-04-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904189', 'tblTempVendorCDR_20' ) start [2025-04-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904189', 'tblTempVendorCDR_20' ) end [2025-04-14 05:46:18] Production.INFO: ProcessCDR(1,14904189,1,1,2) [2025-04-14 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904189', 'tblTempUsageDetail_20' ) start [2025-04-14 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904189', 'tblTempUsageDetail_20' ) end [2025-04-14 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:46:21] Production.INFO: ==13642== Releasing lock... [2025-04-14 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:47:04 [end_date_ymd] => 2025-04-14 05:47:04 [RateCDR] => 1 ) [2025-04-14 05:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 02:47:04' and `end` < '2025-04-14 05:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 05:47:17] Production.INFO: count ==59 [2025-04-14 05:47:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:47:04 - End Time 2025-04-14 05:47:04 [2025-04-14 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904194', 'tblTempUsageDetail_20' ) start [2025-04-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904194', 'tblTempUsageDetail_20' ) end [2025-04-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904194', 'tblTempVendorCDR_20' ) start [2025-04-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904194', 'tblTempVendorCDR_20' ) end [2025-04-14 05:47:17] Production.INFO: ProcessCDR(1,14904194,1,1,2) [2025-04-14 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904194', 'tblTempUsageDetail_20' ) start [2025-04-14 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904194', 'tblTempUsageDetail_20' ) end [2025-04-14 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:47:20] Production.INFO: ==13713== Releasing lock... [2025-04-14 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:48:05 [end_date_ymd] => 2025-04-14 05:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:48:05' and `end` < '2025-04-14 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-04-14 05:48:18] Production.INFO: count ==59 [2025-04-14 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:48:05 - End Time 2025-04-14 05:48:05 [2025-04-14 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904199', 'tblTempUsageDetail_20' ) start [2025-04-14 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904199', 'tblTempUsageDetail_20' ) end [2025-04-14 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904199', 'tblTempVendorCDR_20' ) start [2025-04-14 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904199', 'tblTempVendorCDR_20' ) end [2025-04-14 05:48:18] Production.INFO: ProcessCDR(1,14904199,1,1,2) [2025-04-14 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904199', 'tblTempUsageDetail_20' ) start [2025-04-14 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904199', 'tblTempUsageDetail_20' ) end [2025-04-14 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:48:21] Production.INFO: ==13790== Releasing lock... [2025-04-14 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:49:04 [end_date_ymd] => 2025-04-14 05:49:04 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:49:04' and `end` < '2025-04-14 05: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-04-14 05:49:17] Production.INFO: count ==59 [2025-04-14 05:49:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:49:04 - End Time 2025-04-14 05:49:04 [2025-04-14 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904204', 'tblTempUsageDetail_20' ) start [2025-04-14 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904204', 'tblTempUsageDetail_20' ) end [2025-04-14 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904204', 'tblTempVendorCDR_20' ) start [2025-04-14 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904204', 'tblTempVendorCDR_20' ) end [2025-04-14 05:49:17] Production.INFO: ProcessCDR(1,14904204,1,1,2) [2025-04-14 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904204', 'tblTempUsageDetail_20' ) start [2025-04-14 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904204', 'tblTempUsageDetail_20' ) end [2025-04-14 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:49:20] Production.INFO: ==13862== Releasing lock... [2025-04-14 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:50:06 [end_date_ymd] => 2025-04-14 05:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:50:06' and `end` < '2025-04-14 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-04-14 05:50:19] Production.INFO: count ==59 [2025-04-14 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 02:50:06 - End Time 2025-04-14 05:50:06 [2025-04-14 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904209', 'tblTempUsageDetail_20' ) start [2025-04-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904209', 'tblTempUsageDetail_20' ) end [2025-04-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904209', 'tblTempVendorCDR_20' ) start [2025-04-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904209', 'tblTempVendorCDR_20' ) end [2025-04-14 05:50:19] Production.INFO: ProcessCDR(1,14904209,1,1,2) [2025-04-14 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904209', 'tblTempUsageDetail_20' ) start [2025-04-14 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904209', 'tblTempUsageDetail_20' ) end [2025-04-14 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:50:23] Production.INFO: ==13939== Releasing lock... [2025-04-14 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:50:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:51:05 [end_date_ymd] => 2025-04-14 05:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:51:05' and `end` < '2025-04-14 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-04-14 05:51:18] Production.INFO: count ==59 [2025-04-14 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:51:05 - End Time 2025-04-14 05:51:05 [2025-04-14 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904215', 'tblTempUsageDetail_20' ) start [2025-04-14 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904215', 'tblTempUsageDetail_20' ) end [2025-04-14 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904215', 'tblTempVendorCDR_20' ) start [2025-04-14 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904215', 'tblTempVendorCDR_20' ) end [2025-04-14 05:51:18] Production.INFO: ProcessCDR(1,14904215,1,1,2) [2025-04-14 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904215', 'tblTempUsageDetail_20' ) start [2025-04-14 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904215', 'tblTempUsageDetail_20' ) end [2025-04-14 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:51:21] Production.INFO: ==14014== Releasing lock... [2025-04-14 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:52:05 [end_date_ymd] => 2025-04-14 05:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:52:05' and `end` < '2025-04-14 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-04-14 05:52:17] Production.INFO: count ==59 [2025-04-14 05:52:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:52:05 - End Time 2025-04-14 05:52:05 [2025-04-14 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904220', 'tblTempUsageDetail_20' ) start [2025-04-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904220', 'tblTempUsageDetail_20' ) end [2025-04-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904220', 'tblTempVendorCDR_20' ) start [2025-04-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904220', 'tblTempVendorCDR_20' ) end [2025-04-14 05:52:17] Production.INFO: ProcessCDR(1,14904220,1,1,2) [2025-04-14 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904220', 'tblTempUsageDetail_20' ) start [2025-04-14 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904220', 'tblTempUsageDetail_20' ) end [2025-04-14 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:52:21] Production.INFO: ==14087== Releasing lock... [2025-04-14 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:53:05 [end_date_ymd] => 2025-04-14 05:53:05 [RateCDR] => 1 ) [2025-04-14 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 02:53:05' and `end` < '2025-04-14 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 05:53:18] Production.INFO: count ==59 [2025-04-14 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:53:05 - End Time 2025-04-14 05:53:05 [2025-04-14 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904225', 'tblTempUsageDetail_20' ) start [2025-04-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904225', 'tblTempUsageDetail_20' ) end [2025-04-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904225', 'tblTempVendorCDR_20' ) start [2025-04-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904225', 'tblTempVendorCDR_20' ) end [2025-04-14 05:53:18] Production.INFO: ProcessCDR(1,14904225,1,1,2) [2025-04-14 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904225', 'tblTempUsageDetail_20' ) start [2025-04-14 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904225', 'tblTempUsageDetail_20' ) end [2025-04-14 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:53:21] Production.INFO: ==14157== Releasing lock... [2025-04-14 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:54:05 [end_date_ymd] => 2025-04-14 05:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:54:05' and `end` < '2025-04-14 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-04-14 05:54:18] Production.INFO: count ==59 [2025-04-14 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:54:05 - End Time 2025-04-14 05:54:05 [2025-04-14 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904230', 'tblTempUsageDetail_20' ) start [2025-04-14 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904230', 'tblTempUsageDetail_20' ) end [2025-04-14 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904230', 'tblTempVendorCDR_20' ) start [2025-04-14 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904230', 'tblTempVendorCDR_20' ) end [2025-04-14 05:54:18] Production.INFO: ProcessCDR(1,14904230,1,1,2) [2025-04-14 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904230', 'tblTempUsageDetail_20' ) start [2025-04-14 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904230', 'tblTempUsageDetail_20' ) end [2025-04-14 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:54:21] Production.INFO: ==14241== Releasing lock... [2025-04-14 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:55:05 [end_date_ymd] => 2025-04-14 05:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:55:05' and `end` < '2025-04-14 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-04-14 05:55:18] Production.INFO: count ==61 [2025-04-14 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:55:05 - End Time 2025-04-14 05:55:05 [2025-04-14 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904235', 'tblTempUsageDetail_20' ) start [2025-04-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904235', 'tblTempUsageDetail_20' ) end [2025-04-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904235', 'tblTempVendorCDR_20' ) start [2025-04-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904235', 'tblTempVendorCDR_20' ) end [2025-04-14 05:55:18] Production.INFO: ProcessCDR(1,14904235,1,1,2) [2025-04-14 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904235', 'tblTempUsageDetail_20' ) start [2025-04-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904235', 'tblTempUsageDetail_20' ) end [2025-04-14 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:55:21] Production.INFO: ==14314== Releasing lock... [2025-04-14 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:56:05 [end_date_ymd] => 2025-04-14 05:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:56:05' and `end` < '2025-04-14 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-04-14 05:56:17] Production.INFO: count ==61 [2025-04-14 05:56:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:56:05 - End Time 2025-04-14 05:56:05 [2025-04-14 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904240', 'tblTempUsageDetail_20' ) start [2025-04-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904240', 'tblTempUsageDetail_20' ) end [2025-04-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904240', 'tblTempVendorCDR_20' ) start [2025-04-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904240', 'tblTempVendorCDR_20' ) end [2025-04-14 05:56:17] Production.INFO: ProcessCDR(1,14904240,1,1,2) [2025-04-14 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904240', 'tblTempUsageDetail_20' ) start [2025-04-14 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904240', 'tblTempUsageDetail_20' ) end [2025-04-14 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:56:21] Production.INFO: ==14387== Releasing lock... [2025-04-14 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:57:05 [end_date_ymd] => 2025-04-14 05:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:57:05' and `end` < '2025-04-14 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-04-14 05:57:18] Production.INFO: count ==61 [2025-04-14 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:57:05 - End Time 2025-04-14 05:57:05 [2025-04-14 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904245', 'tblTempUsageDetail_20' ) start [2025-04-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904245', 'tblTempUsageDetail_20' ) end [2025-04-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904245', 'tblTempVendorCDR_20' ) start [2025-04-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904245', 'tblTempVendorCDR_20' ) end [2025-04-14 05:57:18] Production.INFO: ProcessCDR(1,14904245,1,1,2) [2025-04-14 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904245', 'tblTempUsageDetail_20' ) start [2025-04-14 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904245', 'tblTempUsageDetail_20' ) end [2025-04-14 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:57:21] Production.INFO: ==14461== Releasing lock... [2025-04-14 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:58:06 [end_date_ymd] => 2025-04-14 05:58:06 [RateCDR] => 1 ) [2025-04-14 05: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-04-14 02:58:06' and `end` < '2025-04-14 05: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-04-14 05:58:18] Production.INFO: count ==61 [2025-04-14 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 02:58:06 - End Time 2025-04-14 05:58:06 [2025-04-14 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904250', 'tblTempUsageDetail_20' ) start [2025-04-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904250', 'tblTempUsageDetail_20' ) end [2025-04-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904250', 'tblTempVendorCDR_20' ) start [2025-04-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904250', 'tblTempVendorCDR_20' ) end [2025-04-14 05:58:18] Production.INFO: ProcessCDR(1,14904250,1,1,2) [2025-04-14 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904250', 'tblTempUsageDetail_20' ) start [2025-04-14 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904250', 'tblTempUsageDetail_20' ) end [2025-04-14 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:58:21] Production.INFO: ==14531== Releasing lock... [2025-04-14 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 02:59:05 [end_date_ymd] => 2025-04-14 05:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 02:59:05' and `end` < '2025-04-14 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-04-14 05:59:17] Production.INFO: count ==61 [2025-04-14 05:59:17] Production.ERROR: pbx CDR StartTime 2025-04-14 02:59:05 - End Time 2025-04-14 05:59:05 [2025-04-14 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904255', 'tblTempUsageDetail_20' ) start [2025-04-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904255', 'tblTempUsageDetail_20' ) end [2025-04-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904255', 'tblTempVendorCDR_20' ) start [2025-04-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904255', 'tblTempVendorCDR_20' ) end [2025-04-14 05:59:17] Production.INFO: ProcessCDR(1,14904255,1,1,2) [2025-04-14 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904255', 'tblTempUsageDetail_20' ) start [2025-04-14 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904255', 'tblTempUsageDetail_20' ) end [2025-04-14 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 05:59:21] Production.INFO: ==14634== Releasing lock... [2025-04-14 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 05:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:00:06 [end_date_ymd] => 2025-04-14 06:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:00:06' and `end` < '2025-04-14 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-04-14 06:00:19] Production.INFO: count ==61 [2025-04-14 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 03:00:06 - End Time 2025-04-14 06:00:06 [2025-04-14 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904261', 'tblTempUsageDetail_20' ) start [2025-04-14 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904261', 'tblTempUsageDetail_20' ) end [2025-04-14 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904261', 'tblTempVendorCDR_20' ) start [2025-04-14 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904261', 'tblTempVendorCDR_20' ) end [2025-04-14 06:00:19] Production.INFO: ProcessCDR(1,14904261,1,1,2) [2025-04-14 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904261', 'tblTempUsageDetail_20' ) start [2025-04-14 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904261', 'tblTempUsageDetail_20' ) end [2025-04-14 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:00:22] Production.INFO: ==14724== Releasing lock... [2025-04-14 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:01:05 [end_date_ymd] => 2025-04-14 06:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:01:05' and `end` < '2025-04-14 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-04-14 06:01:18] Production.INFO: count ==61 [2025-04-14 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:01:05 - End Time 2025-04-14 06:01:05 [2025-04-14 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904266', 'tblTempUsageDetail_20' ) start [2025-04-14 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904266', 'tblTempUsageDetail_20' ) end [2025-04-14 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904266', 'tblTempVendorCDR_20' ) start [2025-04-14 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904266', 'tblTempVendorCDR_20' ) end [2025-04-14 06:01:18] Production.INFO: ProcessCDR(1,14904266,1,1,2) [2025-04-14 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904266', 'tblTempUsageDetail_20' ) start [2025-04-14 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904266', 'tblTempUsageDetail_20' ) end [2025-04-14 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:01:21] Production.INFO: ==14808== Releasing lock... [2025-04-14 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:02:05 [end_date_ymd] => 2025-04-14 06:02:05 [RateCDR] => 1 ) [2025-04-14 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:02:05' and `end` < '2025-04-14 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:02:18] Production.INFO: count ==61 [2025-04-14 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:02:05 - End Time 2025-04-14 06:02:05 [2025-04-14 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904271', 'tblTempUsageDetail_20' ) start [2025-04-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904271', 'tblTempUsageDetail_20' ) end [2025-04-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904271', 'tblTempVendorCDR_20' ) start [2025-04-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904271', 'tblTempVendorCDR_20' ) end [2025-04-14 06:02:18] Production.INFO: ProcessCDR(1,14904271,1,1,2) [2025-04-14 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904271', 'tblTempUsageDetail_20' ) start [2025-04-14 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904271', 'tblTempUsageDetail_20' ) end [2025-04-14 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:02:21] Production.INFO: ==14881== Releasing lock... [2025-04-14 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:03:05 [end_date_ymd] => 2025-04-14 06:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:03:05' and `end` < '2025-04-14 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-04-14 06:03:17] Production.INFO: count ==61 [2025-04-14 06:03:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:03:05 - End Time 2025-04-14 06:03:05 [2025-04-14 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904276', 'tblTempUsageDetail_20' ) start [2025-04-14 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904276', 'tblTempUsageDetail_20' ) end [2025-04-14 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904276', 'tblTempVendorCDR_20' ) start [2025-04-14 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904276', 'tblTempVendorCDR_20' ) end [2025-04-14 06:03:17] Production.INFO: ProcessCDR(1,14904276,1,1,2) [2025-04-14 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904276', 'tblTempUsageDetail_20' ) start [2025-04-14 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904276', 'tblTempUsageDetail_20' ) end [2025-04-14 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:03:21] Production.INFO: ==14955== Releasing lock... [2025-04-14 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:04:05 [end_date_ymd] => 2025-04-14 06:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:04:05' and `end` < '2025-04-14 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-04-14 06:04:17] Production.INFO: count ==63 [2025-04-14 06:04:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:04:05 - End Time 2025-04-14 06:04:05 [2025-04-14 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904281', 'tblTempUsageDetail_20' ) start [2025-04-14 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904281', 'tblTempUsageDetail_20' ) end [2025-04-14 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904281', 'tblTempVendorCDR_20' ) start [2025-04-14 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904281', 'tblTempVendorCDR_20' ) end [2025-04-14 06:04:17] Production.INFO: ProcessCDR(1,14904281,1,1,2) [2025-04-14 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904281', 'tblTempUsageDetail_20' ) start [2025-04-14 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904281', 'tblTempUsageDetail_20' ) end [2025-04-14 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:04:21] Production.INFO: ==15025== Releasing lock... [2025-04-14 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:05:05 [end_date_ymd] => 2025-04-14 06:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:05:05' and `end` < '2025-04-14 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-04-14 06:05:18] Production.INFO: count ==63 [2025-04-14 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:05:05 - End Time 2025-04-14 06:05:05 [2025-04-14 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904286', 'tblTempUsageDetail_20' ) start [2025-04-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904286', 'tblTempUsageDetail_20' ) end [2025-04-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904286', 'tblTempVendorCDR_20' ) start [2025-04-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904286', 'tblTempVendorCDR_20' ) end [2025-04-14 06:05:18] Production.INFO: ProcessCDR(1,14904286,1,1,2) [2025-04-14 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904286', 'tblTempUsageDetail_20' ) start [2025-04-14 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904286', 'tblTempUsageDetail_20' ) end [2025-04-14 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:05:21] Production.INFO: ==15098== Releasing lock... [2025-04-14 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:06:05 [end_date_ymd] => 2025-04-14 06:06:05 [RateCDR] => 1 ) [2025-04-14 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:06:05' and `end` < '2025-04-14 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:06:17] Production.INFO: count ==63 [2025-04-14 06:06:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:06:05 - End Time 2025-04-14 06:06:05 [2025-04-14 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904291', 'tblTempUsageDetail_20' ) start [2025-04-14 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904291', 'tblTempUsageDetail_20' ) end [2025-04-14 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904291', 'tblTempVendorCDR_20' ) start [2025-04-14 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904291', 'tblTempVendorCDR_20' ) end [2025-04-14 06:06:17] Production.INFO: ProcessCDR(1,14904291,1,1,2) [2025-04-14 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904291', 'tblTempUsageDetail_20' ) start [2025-04-14 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904291', 'tblTempUsageDetail_20' ) end [2025-04-14 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:06:21] Production.INFO: ==15174== Releasing lock... [2025-04-14 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:07:05 [end_date_ymd] => 2025-04-14 06:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:07:05' and `end` < '2025-04-14 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-04-14 06:07:18] Production.INFO: count ==65 [2025-04-14 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:07:05 - End Time 2025-04-14 06:07:05 [2025-04-14 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904296', 'tblTempUsageDetail_20' ) start [2025-04-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904296', 'tblTempUsageDetail_20' ) end [2025-04-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904296', 'tblTempVendorCDR_20' ) start [2025-04-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904296', 'tblTempVendorCDR_20' ) end [2025-04-14 06:07:18] Production.INFO: ProcessCDR(1,14904296,1,1,2) [2025-04-14 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904296', 'tblTempUsageDetail_20' ) start [2025-04-14 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904296', 'tblTempUsageDetail_20' ) end [2025-04-14 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:07:22] Production.INFO: ==15247== Releasing lock... [2025-04-14 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:08:05 [end_date_ymd] => 2025-04-14 06:08:05 [RateCDR] => 1 ) [2025-04-14 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:08:05' and `end` < '2025-04-14 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:08:17] Production.INFO: count ==66 [2025-04-14 06:08:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:08:05 - End Time 2025-04-14 06:08:05 [2025-04-14 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904301', 'tblTempUsageDetail_20' ) start [2025-04-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904301', 'tblTempUsageDetail_20' ) end [2025-04-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904301', 'tblTempVendorCDR_20' ) start [2025-04-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904301', 'tblTempVendorCDR_20' ) end [2025-04-14 06:08:17] Production.INFO: ProcessCDR(1,14904301,1,1,2) [2025-04-14 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904301', 'tblTempUsageDetail_20' ) start [2025-04-14 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904301', 'tblTempUsageDetail_20' ) end [2025-04-14 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:08:22] Production.INFO: ==15325== Releasing lock... [2025-04-14 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:09:05 [end_date_ymd] => 2025-04-14 06:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:09:05' and `end` < '2025-04-14 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-04-14 06:09:17] Production.INFO: count ==66 [2025-04-14 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:09:05 - End Time 2025-04-14 06:09:05 [2025-04-14 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904306', 'tblTempUsageDetail_20' ) start [2025-04-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904306', 'tblTempUsageDetail_20' ) end [2025-04-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904306', 'tblTempVendorCDR_20' ) start [2025-04-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904306', 'tblTempVendorCDR_20' ) end [2025-04-14 06:09:18] Production.INFO: ProcessCDR(1,14904306,1,1,2) [2025-04-14 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904306', 'tblTempUsageDetail_20' ) start [2025-04-14 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904306', 'tblTempUsageDetail_20' ) end [2025-04-14 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:09:21] Production.INFO: ==15398== Releasing lock... [2025-04-14 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:10:05 [end_date_ymd] => 2025-04-14 06:10:05 [RateCDR] => 1 ) [2025-04-14 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:10:05' and `end` < '2025-04-14 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:10:18] Production.INFO: count ==66 [2025-04-14 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:10:05 - End Time 2025-04-14 06:10:05 [2025-04-14 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904312', 'tblTempUsageDetail_20' ) start [2025-04-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904312', 'tblTempUsageDetail_20' ) end [2025-04-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904312', 'tblTempVendorCDR_20' ) start [2025-04-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904312', 'tblTempVendorCDR_20' ) end [2025-04-14 06:10:18] Production.INFO: ProcessCDR(1,14904312,1,1,2) [2025-04-14 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904312', 'tblTempUsageDetail_20' ) start [2025-04-14 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904312', 'tblTempUsageDetail_20' ) end [2025-04-14 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:10:21] Production.INFO: ==15469== Releasing lock... [2025-04-14 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:11:05 [end_date_ymd] => 2025-04-14 06:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:11:05' and `end` < '2025-04-14 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-04-14 06:11:17] Production.INFO: count ==66 [2025-04-14 06:11:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:11:05 - End Time 2025-04-14 06:11:05 [2025-04-14 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904317', 'tblTempUsageDetail_20' ) start [2025-04-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904317', 'tblTempUsageDetail_20' ) end [2025-04-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904317', 'tblTempVendorCDR_20' ) start [2025-04-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904317', 'tblTempVendorCDR_20' ) end [2025-04-14 06:11:17] Production.INFO: ProcessCDR(1,14904317,1,1,2) [2025-04-14 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904317', 'tblTempUsageDetail_20' ) start [2025-04-14 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904317', 'tblTempUsageDetail_20' ) end [2025-04-14 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:11:21] Production.INFO: ==15547== Releasing lock... [2025-04-14 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:12:05 [end_date_ymd] => 2025-04-14 06:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:12:05' and `end` < '2025-04-14 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-04-14 06:12:18] Production.INFO: count ==66 [2025-04-14 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:12:05 - End Time 2025-04-14 06:12:05 [2025-04-14 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904322', 'tblTempUsageDetail_20' ) start [2025-04-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904322', 'tblTempUsageDetail_20' ) end [2025-04-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904322', 'tblTempVendorCDR_20' ) start [2025-04-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904322', 'tblTempVendorCDR_20' ) end [2025-04-14 06:12:18] Production.INFO: ProcessCDR(1,14904322,1,1,2) [2025-04-14 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904322', 'tblTempUsageDetail_20' ) start [2025-04-14 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904322', 'tblTempUsageDetail_20' ) end [2025-04-14 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:12:21] Production.INFO: ==15622== Releasing lock... [2025-04-14 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:13:05 [end_date_ymd] => 2025-04-14 06:13:05 [RateCDR] => 1 ) [2025-04-14 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:13:05' and `end` < '2025-04-14 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:13:18] Production.INFO: count ==66 [2025-04-14 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:13:05 - End Time 2025-04-14 06:13:05 [2025-04-14 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904327', 'tblTempUsageDetail_20' ) start [2025-04-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904327', 'tblTempUsageDetail_20' ) end [2025-04-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904327', 'tblTempVendorCDR_20' ) start [2025-04-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904327', 'tblTempVendorCDR_20' ) end [2025-04-14 06:13:18] Production.INFO: ProcessCDR(1,14904327,1,1,2) [2025-04-14 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904327', 'tblTempUsageDetail_20' ) start [2025-04-14 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904327', 'tblTempUsageDetail_20' ) end [2025-04-14 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:13:21] Production.INFO: ==15693== Releasing lock... [2025-04-14 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:14:05 [end_date_ymd] => 2025-04-14 06:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:14:05' and `end` < '2025-04-14 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-04-14 06:14:18] Production.INFO: count ==66 [2025-04-14 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:14:05 - End Time 2025-04-14 06:14:05 [2025-04-14 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904332', 'tblTempUsageDetail_20' ) start [2025-04-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904332', 'tblTempUsageDetail_20' ) end [2025-04-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904332', 'tblTempVendorCDR_20' ) start [2025-04-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904332', 'tblTempVendorCDR_20' ) end [2025-04-14 06:14:18] Production.INFO: ProcessCDR(1,14904332,1,1,2) [2025-04-14 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904332', 'tblTempUsageDetail_20' ) start [2025-04-14 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904332', 'tblTempUsageDetail_20' ) end [2025-04-14 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:14:21] Production.INFO: ==15765== Releasing lock... [2025-04-14 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:15:05 [end_date_ymd] => 2025-04-14 06:15:05 [RateCDR] => 1 ) [2025-04-14 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:15:05' and `end` < '2025-04-14 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:15:18] Production.INFO: count ==66 [2025-04-14 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:15:05 - End Time 2025-04-14 06:15:05 [2025-04-14 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904337', 'tblTempUsageDetail_20' ) start [2025-04-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904337', 'tblTempUsageDetail_20' ) end [2025-04-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904337', 'tblTempVendorCDR_20' ) start [2025-04-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904337', 'tblTempVendorCDR_20' ) end [2025-04-14 06:15:18] Production.INFO: ProcessCDR(1,14904337,1,1,2) [2025-04-14 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904337', 'tblTempUsageDetail_20' ) start [2025-04-14 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904337', 'tblTempUsageDetail_20' ) end [2025-04-14 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:15:21] Production.INFO: ==15874== Releasing lock... [2025-04-14 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:16:05 [end_date_ymd] => 2025-04-14 06:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:16:05' and `end` < '2025-04-14 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-04-14 06:16:17] Production.INFO: count ==66 [2025-04-14 06:16:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:16:05 - End Time 2025-04-14 06:16:05 [2025-04-14 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904342', 'tblTempUsageDetail_20' ) start [2025-04-14 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904342', 'tblTempUsageDetail_20' ) end [2025-04-14 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904342', 'tblTempVendorCDR_20' ) start [2025-04-14 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904342', 'tblTempVendorCDR_20' ) end [2025-04-14 06:16:17] Production.INFO: ProcessCDR(1,14904342,1,1,2) [2025-04-14 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904342', 'tblTempUsageDetail_20' ) start [2025-04-14 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904342', 'tblTempUsageDetail_20' ) end [2025-04-14 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:16:20] Production.INFO: ==15946== Releasing lock... [2025-04-14 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:17:05 [end_date_ymd] => 2025-04-14 06:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:17:05' and `end` < '2025-04-14 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-04-14 06:17:17] Production.INFO: count ==66 [2025-04-14 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:17:05 - End Time 2025-04-14 06:17:05 [2025-04-14 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904347', 'tblTempUsageDetail_20' ) start [2025-04-14 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904347', 'tblTempUsageDetail_20' ) end [2025-04-14 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904347', 'tblTempVendorCDR_20' ) start [2025-04-14 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904347', 'tblTempVendorCDR_20' ) end [2025-04-14 06:17:18] Production.INFO: ProcessCDR(1,14904347,1,1,2) [2025-04-14 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904347', 'tblTempUsageDetail_20' ) start [2025-04-14 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904347', 'tblTempUsageDetail_20' ) end [2025-04-14 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:17:21] Production.INFO: ==16022== Releasing lock... [2025-04-14 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:18:05 [end_date_ymd] => 2025-04-14 06:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:18:05' and `end` < '2025-04-14 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-04-14 06:18:18] Production.INFO: count ==66 [2025-04-14 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:18:05 - End Time 2025-04-14 06:18:05 [2025-04-14 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904352', 'tblTempUsageDetail_20' ) start [2025-04-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904352', 'tblTempUsageDetail_20' ) end [2025-04-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904352', 'tblTempVendorCDR_20' ) start [2025-04-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904352', 'tblTempVendorCDR_20' ) end [2025-04-14 06:18:18] Production.INFO: ProcessCDR(1,14904352,1,1,2) [2025-04-14 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904352', 'tblTempUsageDetail_20' ) start [2025-04-14 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904352', 'tblTempUsageDetail_20' ) end [2025-04-14 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:18:21] Production.INFO: ==16097== Releasing lock... [2025-04-14 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:19:05 [end_date_ymd] => 2025-04-14 06:19:05 [RateCDR] => 1 ) [2025-04-14 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:19:05' and `end` < '2025-04-14 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:19:18] Production.INFO: count ==68 [2025-04-14 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:19:05 - End Time 2025-04-14 06:19:05 [2025-04-14 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904357', 'tblTempUsageDetail_20' ) start [2025-04-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904357', 'tblTempUsageDetail_20' ) end [2025-04-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904357', 'tblTempVendorCDR_20' ) start [2025-04-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904357', 'tblTempVendorCDR_20' ) end [2025-04-14 06:19:18] Production.INFO: ProcessCDR(1,14904357,1,1,2) [2025-04-14 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904357', 'tblTempUsageDetail_20' ) start [2025-04-14 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904357', 'tblTempUsageDetail_20' ) end [2025-04-14 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:19:21] Production.INFO: ==16168== Releasing lock... [2025-04-14 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:20:06 [end_date_ymd] => 2025-04-14 06:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:20:06' and `end` < '2025-04-14 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-04-14 06:20:18] Production.INFO: count ==74 [2025-04-14 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:20:06 - End Time 2025-04-14 06:20:06 [2025-04-14 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904363', 'tblTempUsageDetail_20' ) start [2025-04-14 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904363', 'tblTempUsageDetail_20' ) end [2025-04-14 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904363', 'tblTempVendorCDR_20' ) start [2025-04-14 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904363', 'tblTempVendorCDR_20' ) end [2025-04-14 06:20:19] Production.INFO: ProcessCDR(1,14904363,1,1,2) [2025-04-14 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904363', 'tblTempUsageDetail_20' ) start [2025-04-14 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904363', 'tblTempUsageDetail_20' ) end [2025-04-14 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:20:22] Production.INFO: ==16242== Releasing lock... [2025-04-14 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:21:05 [end_date_ymd] => 2025-04-14 06:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:21:05' and `end` < '2025-04-14 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-04-14 06:21:17] Production.INFO: count ==74 [2025-04-14 06:21:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:21:05 - End Time 2025-04-14 06:21:05 [2025-04-14 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904368', 'tblTempUsageDetail_20' ) start [2025-04-14 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904368', 'tblTempUsageDetail_20' ) end [2025-04-14 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904368', 'tblTempVendorCDR_20' ) start [2025-04-14 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904368', 'tblTempVendorCDR_20' ) end [2025-04-14 06:21:17] Production.INFO: ProcessCDR(1,14904368,1,1,2) [2025-04-14 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904368', 'tblTempUsageDetail_20' ) start [2025-04-14 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904368', 'tblTempUsageDetail_20' ) end [2025-04-14 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:21:21] Production.INFO: ==16325== Releasing lock... [2025-04-14 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:22:05 [end_date_ymd] => 2025-04-14 06:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:22:05' and `end` < '2025-04-14 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-04-14 06:22:18] Production.INFO: count ==78 [2025-04-14 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:22:05 - End Time 2025-04-14 06:22:05 [2025-04-14 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904373', 'tblTempUsageDetail_20' ) start [2025-04-14 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904373', 'tblTempUsageDetail_20' ) end [2025-04-14 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904373', 'tblTempVendorCDR_20' ) start [2025-04-14 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904373', 'tblTempVendorCDR_20' ) end [2025-04-14 06:22:18] Production.INFO: ProcessCDR(1,14904373,1,1,2) [2025-04-14 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904373', 'tblTempUsageDetail_20' ) start [2025-04-14 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904373', 'tblTempUsageDetail_20' ) end [2025-04-14 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:22:21] Production.INFO: ==16407== Releasing lock... [2025-04-14 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:23:05 [end_date_ymd] => 2025-04-14 06:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:23:05' and `end` < '2025-04-14 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-04-14 06:23:18] Production.INFO: count ==78 [2025-04-14 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:23:05 - End Time 2025-04-14 06:23:05 [2025-04-14 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904378', 'tblTempUsageDetail_20' ) start [2025-04-14 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904378', 'tblTempUsageDetail_20' ) end [2025-04-14 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904378', 'tblTempVendorCDR_20' ) start [2025-04-14 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904378', 'tblTempVendorCDR_20' ) end [2025-04-14 06:23:18] Production.INFO: ProcessCDR(1,14904378,1,1,2) [2025-04-14 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904378', 'tblTempUsageDetail_20' ) start [2025-04-14 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904378', 'tblTempUsageDetail_20' ) end [2025-04-14 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:23:21] Production.INFO: ==16479== Releasing lock... [2025-04-14 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:24:05 [end_date_ymd] => 2025-04-14 06:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:24:05' and `end` < '2025-04-14 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-04-14 06:24:18] Production.INFO: count ==78 [2025-04-14 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:24:05 - End Time 2025-04-14 06:24:05 [2025-04-14 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904383', 'tblTempUsageDetail_20' ) start [2025-04-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904383', 'tblTempUsageDetail_20' ) end [2025-04-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904383', 'tblTempVendorCDR_20' ) start [2025-04-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904383', 'tblTempVendorCDR_20' ) end [2025-04-14 06:24:18] Production.INFO: ProcessCDR(1,14904383,1,1,2) [2025-04-14 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904383', 'tblTempUsageDetail_20' ) start [2025-04-14 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904383', 'tblTempUsageDetail_20' ) end [2025-04-14 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:24:21] Production.INFO: ==16552== Releasing lock... [2025-04-14 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:25:05 [end_date_ymd] => 2025-04-14 06:25:05 [RateCDR] => 1 ) [2025-04-14 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:25:05' and `end` < '2025-04-14 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:25:18] Production.INFO: count ==78 [2025-04-14 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:25:05 - End Time 2025-04-14 06:25:05 [2025-04-14 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904388', 'tblTempUsageDetail_20' ) start [2025-04-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904388', 'tblTempUsageDetail_20' ) end [2025-04-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904388', 'tblTempVendorCDR_20' ) start [2025-04-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904388', 'tblTempVendorCDR_20' ) end [2025-04-14 06:25:18] Production.INFO: ProcessCDR(1,14904388,1,1,2) [2025-04-14 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904388', 'tblTempUsageDetail_20' ) start [2025-04-14 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904388', 'tblTempUsageDetail_20' ) end [2025-04-14 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:25:21] Production.INFO: ==16625== Releasing lock... [2025-04-14 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:26:06 [end_date_ymd] => 2025-04-14 06:26:06 [RateCDR] => 1 ) [2025-04-14 06: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-04-14 03:26:06' and `end` < '2025-04-14 06: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-04-14 06:26:19] Production.INFO: count ==78 [2025-04-14 06:26:19] Production.ERROR: pbx CDR StartTime 2025-04-14 03:26:06 - End Time 2025-04-14 06:26:06 [2025-04-14 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904393', 'tblTempUsageDetail_20' ) start [2025-04-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904393', 'tblTempUsageDetail_20' ) end [2025-04-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904393', 'tblTempVendorCDR_20' ) start [2025-04-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904393', 'tblTempVendorCDR_20' ) end [2025-04-14 06:26:19] Production.INFO: ProcessCDR(1,14904393,1,1,2) [2025-04-14 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904393', 'tblTempUsageDetail_20' ) start [2025-04-14 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904393', 'tblTempUsageDetail_20' ) end [2025-04-14 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:26:22] Production.INFO: ==16699== Releasing lock... [2025-04-14 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:27:04 [end_date_ymd] => 2025-04-14 06:27:04 [RateCDR] => 1 ) [2025-04-14 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:27:04' and `end` < '2025-04-14 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:27:17] Production.INFO: count ==78 [2025-04-14 06:27:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:27:04 - End Time 2025-04-14 06:27:04 [2025-04-14 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904398', 'tblTempUsageDetail_20' ) start [2025-04-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904398', 'tblTempUsageDetail_20' ) end [2025-04-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904398', 'tblTempVendorCDR_20' ) start [2025-04-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904398', 'tblTempVendorCDR_20' ) end [2025-04-14 06:27:17] Production.INFO: ProcessCDR(1,14904398,1,1,2) [2025-04-14 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904398', 'tblTempUsageDetail_20' ) start [2025-04-14 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904398', 'tblTempUsageDetail_20' ) end [2025-04-14 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:27:20] Production.INFO: ==16773== Releasing lock... [2025-04-14 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:28:05 [end_date_ymd] => 2025-04-14 06:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:28:05' and `end` < '2025-04-14 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-04-14 06:28:18] Production.INFO: count ==78 [2025-04-14 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:28:05 - End Time 2025-04-14 06:28:05 [2025-04-14 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904403', 'tblTempUsageDetail_20' ) start [2025-04-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904403', 'tblTempUsageDetail_20' ) end [2025-04-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904403', 'tblTempVendorCDR_20' ) start [2025-04-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904403', 'tblTempVendorCDR_20' ) end [2025-04-14 06:28:18] Production.INFO: ProcessCDR(1,14904403,1,1,2) [2025-04-14 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904403', 'tblTempUsageDetail_20' ) start [2025-04-14 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904403', 'tblTempUsageDetail_20' ) end [2025-04-14 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:28:21] Production.INFO: ==16849== Releasing lock... [2025-04-14 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:29:06 [end_date_ymd] => 2025-04-14 06:29:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:29:06' and `end` < '2025-04-14 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-04-14 06:29:18] Production.INFO: count ==76 [2025-04-14 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:29:06 - End Time 2025-04-14 06:29:06 [2025-04-14 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904408', 'tblTempUsageDetail_20' ) start [2025-04-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904408', 'tblTempUsageDetail_20' ) end [2025-04-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904408', 'tblTempVendorCDR_20' ) start [2025-04-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904408', 'tblTempVendorCDR_20' ) end [2025-04-14 06:29:18] Production.INFO: ProcessCDR(1,14904408,1,1,2) [2025-04-14 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904408', 'tblTempUsageDetail_20' ) start [2025-04-14 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904408', 'tblTempUsageDetail_20' ) end [2025-04-14 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:29:22] Production.INFO: ==16923== Releasing lock... [2025-04-14 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:30:06 [end_date_ymd] => 2025-04-14 06:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:30:06' and `end` < '2025-04-14 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-04-14 06:30:19] Production.INFO: count ==78 [2025-04-14 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 03:30:06 - End Time 2025-04-14 06:30:06 [2025-04-14 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904413', 'tblTempUsageDetail_20' ) start [2025-04-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904413', 'tblTempUsageDetail_20' ) end [2025-04-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904413', 'tblTempVendorCDR_20' ) start [2025-04-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904413', 'tblTempVendorCDR_20' ) end [2025-04-14 06:30:19] Production.INFO: ProcessCDR(1,14904413,1,1,2) [2025-04-14 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904413', 'tblTempUsageDetail_20' ) start [2025-04-14 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904413', 'tblTempUsageDetail_20' ) end [2025-04-14 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:30:22] Production.INFO: ==17037== Releasing lock... [2025-04-14 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:31:05 [end_date_ymd] => 2025-04-14 06:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:31:05' and `end` < '2025-04-14 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-04-14 06:31:18] Production.INFO: count ==78 [2025-04-14 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:31:05 - End Time 2025-04-14 06:31:05 [2025-04-14 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904419', 'tblTempUsageDetail_20' ) start [2025-04-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904419', 'tblTempUsageDetail_20' ) end [2025-04-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904419', 'tblTempVendorCDR_20' ) start [2025-04-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904419', 'tblTempVendorCDR_20' ) end [2025-04-14 06:31:18] Production.INFO: ProcessCDR(1,14904419,1,1,2) [2025-04-14 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904419', 'tblTempUsageDetail_20' ) start [2025-04-14 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904419', 'tblTempUsageDetail_20' ) end [2025-04-14 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:31:22] Production.INFO: ==17111== Releasing lock... [2025-04-14 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:32:05 [end_date_ymd] => 2025-04-14 06:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:32:05' and `end` < '2025-04-14 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-04-14 06:32:18] Production.INFO: count ==78 [2025-04-14 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:32:05 - End Time 2025-04-14 06:32:05 [2025-04-14 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904424', 'tblTempUsageDetail_20' ) start [2025-04-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904424', 'tblTempUsageDetail_20' ) end [2025-04-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904424', 'tblTempVendorCDR_20' ) start [2025-04-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904424', 'tblTempVendorCDR_20' ) end [2025-04-14 06:32:18] Production.INFO: ProcessCDR(1,14904424,1,1,2) [2025-04-14 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904424', 'tblTempUsageDetail_20' ) start [2025-04-14 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904424', 'tblTempUsageDetail_20' ) end [2025-04-14 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:32:21] Production.INFO: ==17183== Releasing lock... [2025-04-14 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:33:05 [end_date_ymd] => 2025-04-14 06:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:33:05' and `end` < '2025-04-14 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-04-14 06:33:17] Production.INFO: count ==78 [2025-04-14 06:33:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:33:05 - End Time 2025-04-14 06:33:05 [2025-04-14 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904429', 'tblTempUsageDetail_20' ) start [2025-04-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904429', 'tblTempUsageDetail_20' ) end [2025-04-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904429', 'tblTempVendorCDR_20' ) start [2025-04-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904429', 'tblTempVendorCDR_20' ) end [2025-04-14 06:33:17] Production.INFO: ProcessCDR(1,14904429,1,1,2) [2025-04-14 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904429', 'tblTempUsageDetail_20' ) start [2025-04-14 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904429', 'tblTempUsageDetail_20' ) end [2025-04-14 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:33:21] Production.INFO: ==17257== Releasing lock... [2025-04-14 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:34:05 [end_date_ymd] => 2025-04-14 06:34:05 [RateCDR] => 1 ) [2025-04-14 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:34:05' and `end` < '2025-04-14 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:34:18] Production.INFO: count ==78 [2025-04-14 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:34:05 - End Time 2025-04-14 06:34:05 [2025-04-14 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904434', 'tblTempUsageDetail_20' ) start [2025-04-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904434', 'tblTempUsageDetail_20' ) end [2025-04-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904434', 'tblTempVendorCDR_20' ) start [2025-04-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904434', 'tblTempVendorCDR_20' ) end [2025-04-14 06:34:18] Production.INFO: ProcessCDR(1,14904434,1,1,2) [2025-04-14 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904434', 'tblTempUsageDetail_20' ) start [2025-04-14 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904434', 'tblTempUsageDetail_20' ) end [2025-04-14 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:34:22] Production.INFO: ==17333== Releasing lock... [2025-04-14 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:35:06 [end_date_ymd] => 2025-04-14 06:35:06 [RateCDR] => 1 ) [2025-04-14 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:35:06' and `end` < '2025-04-14 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:35:18] Production.INFO: count ==78 [2025-04-14 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:35:06 - End Time 2025-04-14 06:35:06 [2025-04-14 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904439', 'tblTempUsageDetail_20' ) start [2025-04-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904439', 'tblTempUsageDetail_20' ) end [2025-04-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904439', 'tblTempVendorCDR_20' ) start [2025-04-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904439', 'tblTempVendorCDR_20' ) end [2025-04-14 06:35:18] Production.INFO: ProcessCDR(1,14904439,1,1,2) [2025-04-14 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904439', 'tblTempUsageDetail_20' ) start [2025-04-14 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904439', 'tblTempUsageDetail_20' ) end [2025-04-14 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:35:22] Production.INFO: ==17410== Releasing lock... [2025-04-14 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:35:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:36:05 [end_date_ymd] => 2025-04-14 06:36:05 [RateCDR] => 1 ) [2025-04-14 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:36:05' and `end` < '2025-04-14 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:36:18] Production.INFO: count ==78 [2025-04-14 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:36:05 - End Time 2025-04-14 06:36:05 [2025-04-14 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904444', 'tblTempUsageDetail_20' ) start [2025-04-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904444', 'tblTempUsageDetail_20' ) end [2025-04-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904444', 'tblTempVendorCDR_20' ) start [2025-04-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904444', 'tblTempVendorCDR_20' ) end [2025-04-14 06:36:18] Production.INFO: ProcessCDR(1,14904444,1,1,2) [2025-04-14 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904444', 'tblTempUsageDetail_20' ) start [2025-04-14 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904444', 'tblTempUsageDetail_20' ) end [2025-04-14 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:36:22] Production.INFO: ==17479== Releasing lock... [2025-04-14 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:37:05 [end_date_ymd] => 2025-04-14 06:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:37:05' and `end` < '2025-04-14 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-04-14 06:37:17] Production.INFO: count ==78 [2025-04-14 06:37:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:37:05 - End Time 2025-04-14 06:37:05 [2025-04-14 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904449', 'tblTempUsageDetail_20' ) start [2025-04-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904449', 'tblTempUsageDetail_20' ) end [2025-04-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904449', 'tblTempVendorCDR_20' ) start [2025-04-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904449', 'tblTempVendorCDR_20' ) end [2025-04-14 06:37:17] Production.INFO: ProcessCDR(1,14904449,1,1,2) [2025-04-14 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904449', 'tblTempUsageDetail_20' ) start [2025-04-14 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904449', 'tblTempUsageDetail_20' ) end [2025-04-14 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:37:21] Production.INFO: ==17554== Releasing lock... [2025-04-14 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:38:05 [end_date_ymd] => 2025-04-14 06:38:05 [RateCDR] => 1 ) [2025-04-14 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:38:05' and `end` < '2025-04-14 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:38:18] Production.INFO: count ==78 [2025-04-14 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:38:05 - End Time 2025-04-14 06:38:05 [2025-04-14 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904454', 'tblTempUsageDetail_20' ) start [2025-04-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904454', 'tblTempUsageDetail_20' ) end [2025-04-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904454', 'tblTempVendorCDR_20' ) start [2025-04-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904454', 'tblTempVendorCDR_20' ) end [2025-04-14 06:38:18] Production.INFO: ProcessCDR(1,14904454,1,1,2) [2025-04-14 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904454', 'tblTempUsageDetail_20' ) start [2025-04-14 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904454', 'tblTempUsageDetail_20' ) end [2025-04-14 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:38:22] Production.INFO: ==17631== Releasing lock... [2025-04-14 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:39:05 [end_date_ymd] => 2025-04-14 06:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:39:05' and `end` < '2025-04-14 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-04-14 06:39:18] Production.INFO: count ==78 [2025-04-14 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:39:05 - End Time 2025-04-14 06:39:05 [2025-04-14 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904459', 'tblTempUsageDetail_20' ) start [2025-04-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904459', 'tblTempUsageDetail_20' ) end [2025-04-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904459', 'tblTempVendorCDR_20' ) start [2025-04-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904459', 'tblTempVendorCDR_20' ) end [2025-04-14 06:39:18] Production.INFO: ProcessCDR(1,14904459,1,1,2) [2025-04-14 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904459', 'tblTempUsageDetail_20' ) start [2025-04-14 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904459', 'tblTempUsageDetail_20' ) end [2025-04-14 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:39:22] Production.INFO: ==17703== Releasing lock... [2025-04-14 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:40:06 [end_date_ymd] => 2025-04-14 06:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:40:06' and `end` < '2025-04-14 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-04-14 06:40:18] Production.INFO: count ==78 [2025-04-14 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:40:06 - End Time 2025-04-14 06:40:06 [2025-04-14 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904465', 'tblTempUsageDetail_20' ) start [2025-04-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904465', 'tblTempUsageDetail_20' ) end [2025-04-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904465', 'tblTempVendorCDR_20' ) start [2025-04-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904465', 'tblTempVendorCDR_20' ) end [2025-04-14 06:40:18] Production.INFO: ProcessCDR(1,14904465,1,1,2) [2025-04-14 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904465', 'tblTempUsageDetail_20' ) start [2025-04-14 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904465', 'tblTempUsageDetail_20' ) end [2025-04-14 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:40:22] Production.INFO: ==17779== Releasing lock... [2025-04-14 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:41:05 [end_date_ymd] => 2025-04-14 06:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:41:05' and `end` < '2025-04-14 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-04-14 06:41:18] Production.INFO: count ==78 [2025-04-14 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:41:05 - End Time 2025-04-14 06:41:05 [2025-04-14 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904470', 'tblTempUsageDetail_20' ) start [2025-04-14 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904470', 'tblTempUsageDetail_20' ) end [2025-04-14 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904470', 'tblTempVendorCDR_20' ) start [2025-04-14 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904470', 'tblTempVendorCDR_20' ) end [2025-04-14 06:41:18] Production.INFO: ProcessCDR(1,14904470,1,1,2) [2025-04-14 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904470', 'tblTempUsageDetail_20' ) start [2025-04-14 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904470', 'tblTempUsageDetail_20' ) end [2025-04-14 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:41:21] Production.INFO: ==17853== Releasing lock... [2025-04-14 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:42:05 [end_date_ymd] => 2025-04-14 06:42:05 [RateCDR] => 1 ) [2025-04-14 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:42:05' and `end` < '2025-04-14 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:42:17] Production.INFO: count ==78 [2025-04-14 06:42:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:42:05 - End Time 2025-04-14 06:42:05 [2025-04-14 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904475', 'tblTempUsageDetail_20' ) start [2025-04-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904475', 'tblTempUsageDetail_20' ) end [2025-04-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904475', 'tblTempVendorCDR_20' ) start [2025-04-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904475', 'tblTempVendorCDR_20' ) end [2025-04-14 06:42:17] Production.INFO: ProcessCDR(1,14904475,1,1,2) [2025-04-14 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904475', 'tblTempUsageDetail_20' ) start [2025-04-14 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904475', 'tblTempUsageDetail_20' ) end [2025-04-14 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:42:21] Production.INFO: ==17925== Releasing lock... [2025-04-14 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:43:05 [end_date_ymd] => 2025-04-14 06:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:43:05' and `end` < '2025-04-14 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-04-14 06:43:18] Production.INFO: count ==79 [2025-04-14 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:43:05 - End Time 2025-04-14 06:43:05 [2025-04-14 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904480', 'tblTempUsageDetail_20' ) start [2025-04-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904480', 'tblTempUsageDetail_20' ) end [2025-04-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904480', 'tblTempVendorCDR_20' ) start [2025-04-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904480', 'tblTempVendorCDR_20' ) end [2025-04-14 06:43:18] Production.INFO: ProcessCDR(1,14904480,1,1,2) [2025-04-14 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904480', 'tblTempUsageDetail_20' ) start [2025-04-14 06:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904480', 'tblTempUsageDetail_20' ) end [2025-04-14 06:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:43:23] Production.INFO: ==17995== Releasing lock... [2025-04-14 06:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:43:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:44:05 [end_date_ymd] => 2025-04-14 06:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:44:05' and `end` < '2025-04-14 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-04-14 06:44:18] Production.INFO: count ==79 [2025-04-14 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:44:05 - End Time 2025-04-14 06:44:05 [2025-04-14 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904485', 'tblTempUsageDetail_20' ) start [2025-04-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904485', 'tblTempUsageDetail_20' ) end [2025-04-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904485', 'tblTempVendorCDR_20' ) start [2025-04-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904485', 'tblTempVendorCDR_20' ) end [2025-04-14 06:44:18] Production.INFO: ProcessCDR(1,14904485,1,1,2) [2025-04-14 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904485', 'tblTempUsageDetail_20' ) start [2025-04-14 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904485', 'tblTempUsageDetail_20' ) end [2025-04-14 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:44:21] Production.INFO: ==18068== Releasing lock... [2025-04-14 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:45:05 [end_date_ymd] => 2025-04-14 06:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:45:05' and `end` < '2025-04-14 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-04-14 06:45:18] Production.INFO: count ==79 [2025-04-14 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:45:05 - End Time 2025-04-14 06:45:05 [2025-04-14 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904490', 'tblTempUsageDetail_20' ) start [2025-04-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904490', 'tblTempUsageDetail_20' ) end [2025-04-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904490', 'tblTempVendorCDR_20' ) start [2025-04-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904490', 'tblTempVendorCDR_20' ) end [2025-04-14 06:45:18] Production.INFO: ProcessCDR(1,14904490,1,1,2) [2025-04-14 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904490', 'tblTempUsageDetail_20' ) start [2025-04-14 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904490', 'tblTempUsageDetail_20' ) end [2025-04-14 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:45:21] Production.INFO: ==18140== Releasing lock... [2025-04-14 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:46:05 [end_date_ymd] => 2025-04-14 06:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:46:05' and `end` < '2025-04-14 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-04-14 06:46:18] Production.INFO: count ==79 [2025-04-14 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:46:05 - End Time 2025-04-14 06:46:05 [2025-04-14 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904495', 'tblTempUsageDetail_20' ) start [2025-04-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904495', 'tblTempUsageDetail_20' ) end [2025-04-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904495', 'tblTempVendorCDR_20' ) start [2025-04-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904495', 'tblTempVendorCDR_20' ) end [2025-04-14 06:46:18] Production.INFO: ProcessCDR(1,14904495,1,1,2) [2025-04-14 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904495', 'tblTempUsageDetail_20' ) start [2025-04-14 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904495', 'tblTempUsageDetail_20' ) end [2025-04-14 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:46:21] Production.INFO: ==18254== Releasing lock... [2025-04-14 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:47:05 [end_date_ymd] => 2025-04-14 06:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:47:05' and `end` < '2025-04-14 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-04-14 06:47:17] Production.INFO: count ==77 [2025-04-14 06:47:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:47:05 - End Time 2025-04-14 06:47:05 [2025-04-14 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904500', 'tblTempUsageDetail_20' ) start [2025-04-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904500', 'tblTempUsageDetail_20' ) end [2025-04-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904500', 'tblTempVendorCDR_20' ) start [2025-04-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904500', 'tblTempVendorCDR_20' ) end [2025-04-14 06:47:17] Production.INFO: ProcessCDR(1,14904500,1,1,2) [2025-04-14 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904500', 'tblTempUsageDetail_20' ) start [2025-04-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904500', 'tblTempUsageDetail_20' ) end [2025-04-14 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:47:21] Production.INFO: ==18325== Releasing lock... [2025-04-14 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:48:05 [end_date_ymd] => 2025-04-14 06:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:48:05' and `end` < '2025-04-14 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-04-14 06:48:18] Production.INFO: count ==77 [2025-04-14 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:48:05 - End Time 2025-04-14 06:48:05 [2025-04-14 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904505', 'tblTempUsageDetail_20' ) start [2025-04-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904505', 'tblTempUsageDetail_20' ) end [2025-04-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904505', 'tblTempVendorCDR_20' ) start [2025-04-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904505', 'tblTempVendorCDR_20' ) end [2025-04-14 06:48:18] Production.INFO: ProcessCDR(1,14904505,1,1,2) [2025-04-14 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904505', 'tblTempUsageDetail_20' ) start [2025-04-14 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904505', 'tblTempUsageDetail_20' ) end [2025-04-14 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:48:21] Production.INFO: ==18400== Releasing lock... [2025-04-14 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:49:05 [end_date_ymd] => 2025-04-14 06:49:05 [RateCDR] => 1 ) [2025-04-14 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:49:05' and `end` < '2025-04-14 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:49:17] Production.INFO: count ==77 [2025-04-14 06:49:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:49:05 - End Time 2025-04-14 06:49:05 [2025-04-14 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904510', 'tblTempUsageDetail_20' ) start [2025-04-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904510', 'tblTempUsageDetail_20' ) end [2025-04-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904510', 'tblTempVendorCDR_20' ) start [2025-04-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904510', 'tblTempVendorCDR_20' ) end [2025-04-14 06:49:17] Production.INFO: ProcessCDR(1,14904510,1,1,2) [2025-04-14 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904510', 'tblTempUsageDetail_20' ) start [2025-04-14 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904510', 'tblTempUsageDetail_20' ) end [2025-04-14 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:49:21] Production.INFO: ==18474== Releasing lock... [2025-04-14 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:50:06 [end_date_ymd] => 2025-04-14 06:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:50:06' and `end` < '2025-04-14 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-04-14 06:50:19] Production.INFO: count ==77 [2025-04-14 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 03:50:06 - End Time 2025-04-14 06:50:06 [2025-04-14 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904516', 'tblTempUsageDetail_20' ) start [2025-04-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904516', 'tblTempUsageDetail_20' ) end [2025-04-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904516', 'tblTempVendorCDR_20' ) start [2025-04-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904516', 'tblTempVendorCDR_20' ) end [2025-04-14 06:50:19] Production.INFO: ProcessCDR(1,14904516,1,1,2) [2025-04-14 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904516', 'tblTempUsageDetail_20' ) start [2025-04-14 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904516', 'tblTempUsageDetail_20' ) end [2025-04-14 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:50:23] Production.INFO: ==18552== Releasing lock... [2025-04-14 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:51:05 [end_date_ymd] => 2025-04-14 06:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:51:05' and `end` < '2025-04-14 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-04-14 06:51:18] Production.INFO: count ==77 [2025-04-14 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:51:05 - End Time 2025-04-14 06:51:05 [2025-04-14 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904521', 'tblTempUsageDetail_20' ) start [2025-04-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904521', 'tblTempUsageDetail_20' ) end [2025-04-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904521', 'tblTempVendorCDR_20' ) start [2025-04-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904521', 'tblTempVendorCDR_20' ) end [2025-04-14 06:51:18] Production.INFO: ProcessCDR(1,14904521,1,1,2) [2025-04-14 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904521', 'tblTempUsageDetail_20' ) start [2025-04-14 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904521', 'tblTempUsageDetail_20' ) end [2025-04-14 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:51:21] Production.INFO: ==18632== Releasing lock... [2025-04-14 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:52:05 [end_date_ymd] => 2025-04-14 06:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:52:05' and `end` < '2025-04-14 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-04-14 06:52:18] Production.INFO: count ==77 [2025-04-14 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:52:05 - End Time 2025-04-14 06:52:05 [2025-04-14 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904526', 'tblTempUsageDetail_20' ) start [2025-04-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904526', 'tblTempUsageDetail_20' ) end [2025-04-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904526', 'tblTempVendorCDR_20' ) start [2025-04-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904526', 'tblTempVendorCDR_20' ) end [2025-04-14 06:52:18] Production.INFO: ProcessCDR(1,14904526,1,1,2) [2025-04-14 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904526', 'tblTempUsageDetail_20' ) start [2025-04-14 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904526', 'tblTempUsageDetail_20' ) end [2025-04-14 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:52:21] Production.INFO: ==18705== Releasing lock... [2025-04-14 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:53:04 [end_date_ymd] => 2025-04-14 06:53:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:53:04' and `end` < '2025-04-14 06:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:53:17] Production.INFO: count ==79 [2025-04-14 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-14 03:53:04 - End Time 2025-04-14 06:53:04 [2025-04-14 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904531', 'tblTempUsageDetail_20' ) start [2025-04-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904531', 'tblTempUsageDetail_20' ) end [2025-04-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904531', 'tblTempVendorCDR_20' ) start [2025-04-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904531', 'tblTempVendorCDR_20' ) end [2025-04-14 06:53:17] Production.INFO: ProcessCDR(1,14904531,1,1,2) [2025-04-14 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904531', 'tblTempUsageDetail_20' ) start [2025-04-14 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904531', 'tblTempUsageDetail_20' ) end [2025-04-14 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:53:21] Production.INFO: ==18779== Releasing lock... [2025-04-14 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:54:05 [end_date_ymd] => 2025-04-14 06:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:54:05' and `end` < '2025-04-14 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-04-14 06:54:18] Production.INFO: count ==79 [2025-04-14 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:54:05 - End Time 2025-04-14 06:54:05 [2025-04-14 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904536', 'tblTempUsageDetail_20' ) start [2025-04-14 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904536', 'tblTempUsageDetail_20' ) end [2025-04-14 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904536', 'tblTempVendorCDR_20' ) start [2025-04-14 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904536', 'tblTempVendorCDR_20' ) end [2025-04-14 06:54:18] Production.INFO: ProcessCDR(1,14904536,1,1,2) [2025-04-14 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904536', 'tblTempUsageDetail_20' ) start [2025-04-14 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904536', 'tblTempUsageDetail_20' ) end [2025-04-14 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:54:21] Production.INFO: ==18852== Releasing lock... [2025-04-14 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:55:05 [end_date_ymd] => 2025-04-14 06:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:55:05' and `end` < '2025-04-14 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-04-14 06:55:18] Production.INFO: count ==79 [2025-04-14 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:55:05 - End Time 2025-04-14 06:55:05 [2025-04-14 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904541', 'tblTempUsageDetail_20' ) start [2025-04-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904541', 'tblTempUsageDetail_20' ) end [2025-04-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904541', 'tblTempVendorCDR_20' ) start [2025-04-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904541', 'tblTempVendorCDR_20' ) end [2025-04-14 06:55:18] Production.INFO: ProcessCDR(1,14904541,1,1,2) [2025-04-14 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904541', 'tblTempUsageDetail_20' ) start [2025-04-14 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904541', 'tblTempUsageDetail_20' ) end [2025-04-14 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:55:21] Production.INFO: ==18922== Releasing lock... [2025-04-14 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:56:05 [end_date_ymd] => 2025-04-14 06:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:56:05' and `end` < '2025-04-14 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-04-14 06:56:18] Production.INFO: count ==79 [2025-04-14 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:56:05 - End Time 2025-04-14 06:56:05 [2025-04-14 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904546', 'tblTempUsageDetail_20' ) start [2025-04-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904546', 'tblTempUsageDetail_20' ) end [2025-04-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904546', 'tblTempVendorCDR_20' ) start [2025-04-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904546', 'tblTempVendorCDR_20' ) end [2025-04-14 06:56:18] Production.INFO: ProcessCDR(1,14904546,1,1,2) [2025-04-14 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904546', 'tblTempUsageDetail_20' ) start [2025-04-14 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904546', 'tblTempUsageDetail_20' ) end [2025-04-14 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:56:21] Production.INFO: ==18993== Releasing lock... [2025-04-14 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:57:05 [end_date_ymd] => 2025-04-14 06:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:57:05' and `end` < '2025-04-14 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-04-14 06:57:18] Production.INFO: count ==81 [2025-04-14 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:57:05 - End Time 2025-04-14 06:57:05 [2025-04-14 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904551', 'tblTempUsageDetail_20' ) start [2025-04-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904551', 'tblTempUsageDetail_20' ) end [2025-04-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904551', 'tblTempVendorCDR_20' ) start [2025-04-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904551', 'tblTempVendorCDR_20' ) end [2025-04-14 06:57:18] Production.INFO: ProcessCDR(1,14904551,1,1,2) [2025-04-14 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904551', 'tblTempUsageDetail_20' ) start [2025-04-14 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904551', 'tblTempUsageDetail_20' ) end [2025-04-14 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:57:21] Production.INFO: ==19074== Releasing lock... [2025-04-14 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:58:05 [end_date_ymd] => 2025-04-14 06:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 03:58:05' and `end` < '2025-04-14 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-04-14 06:58:18] Production.INFO: count ==80 [2025-04-14 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:58:05 - End Time 2025-04-14 06:58:05 [2025-04-14 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904556', 'tblTempUsageDetail_20' ) start [2025-04-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904556', 'tblTempUsageDetail_20' ) end [2025-04-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904556', 'tblTempVendorCDR_20' ) start [2025-04-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904556', 'tblTempVendorCDR_20' ) end [2025-04-14 06:58:18] Production.INFO: ProcessCDR(1,14904556,1,1,2) [2025-04-14 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904556', 'tblTempUsageDetail_20' ) start [2025-04-14 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904556', 'tblTempUsageDetail_20' ) end [2025-04-14 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:58:21] Production.INFO: ==19149== Releasing lock... [2025-04-14 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 03:59:06 [end_date_ymd] => 2025-04-14 06:59:06 [RateCDR] => 1 ) [2025-04-14 06:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 03:59:06' and `end` < '2025-04-14 06:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 06:59:18] Production.INFO: count ==78 [2025-04-14 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 03:59:06 - End Time 2025-04-14 06:59:06 [2025-04-14 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904561', 'tblTempUsageDetail_20' ) start [2025-04-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904561', 'tblTempUsageDetail_20' ) end [2025-04-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904561', 'tblTempVendorCDR_20' ) start [2025-04-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904561', 'tblTempVendorCDR_20' ) end [2025-04-14 06:59:18] Production.INFO: ProcessCDR(1,14904561,1,1,2) [2025-04-14 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904561', 'tblTempUsageDetail_20' ) start [2025-04-14 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904561', 'tblTempUsageDetail_20' ) end [2025-04-14 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 06:59:22] Production.INFO: ==19223== Releasing lock... [2025-04-14 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 06:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:00:06 [end_date_ymd] => 2025-04-14 07:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:00:06' and `end` < '2025-04-14 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-04-14 07:00:18] Production.INFO: count ==75 [2025-04-14 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:00:06 - End Time 2025-04-14 07:00:06 [2025-04-14 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904567', 'tblTempUsageDetail_20' ) start [2025-04-14 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904567', 'tblTempUsageDetail_20' ) end [2025-04-14 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904567', 'tblTempVendorCDR_20' ) start [2025-04-14 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904567', 'tblTempVendorCDR_20' ) end [2025-04-14 07:00:19] Production.INFO: ProcessCDR(1,14904567,1,1,2) [2025-04-14 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904567', 'tblTempUsageDetail_20' ) start [2025-04-14 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904567', 'tblTempUsageDetail_20' ) end [2025-04-14 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:00:22] Production.INFO: ==19298== Releasing lock... [2025-04-14 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:01:06 [end_date_ymd] => 2025-04-14 07:01:06 [RateCDR] => 1 ) [2025-04-14 07: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-04-14 04:01:06' and `end` < '2025-04-14 07: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-04-14 07:01:18] Production.INFO: count ==75 [2025-04-14 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:01:06 - End Time 2025-04-14 07:01:06 [2025-04-14 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904572', 'tblTempUsageDetail_20' ) start [2025-04-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904572', 'tblTempUsageDetail_20' ) end [2025-04-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904572', 'tblTempVendorCDR_20' ) start [2025-04-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904572', 'tblTempVendorCDR_20' ) end [2025-04-14 07:01:18] Production.INFO: ProcessCDR(1,14904572,1,1,2) [2025-04-14 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904572', 'tblTempUsageDetail_20' ) start [2025-04-14 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904572', 'tblTempUsageDetail_20' ) end [2025-04-14 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:01:22] Production.INFO: ==19500== Releasing lock... [2025-04-14 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:02:05 [end_date_ymd] => 2025-04-14 07:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:02:05' and `end` < '2025-04-14 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-04-14 07:02:19] Production.INFO: count ==75 [2025-04-14 07:02:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:02:05 - End Time 2025-04-14 07:02:05 [2025-04-14 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904577', 'tblTempUsageDetail_20' ) start [2025-04-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904577', 'tblTempUsageDetail_20' ) end [2025-04-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904577', 'tblTempVendorCDR_20' ) start [2025-04-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904577', 'tblTempVendorCDR_20' ) end [2025-04-14 07:02:20] Production.INFO: ProcessCDR(1,14904577,1,1,2) [2025-04-14 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904577', 'tblTempUsageDetail_20' ) start [2025-04-14 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904577', 'tblTempUsageDetail_20' ) end [2025-04-14 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:02:23] Production.INFO: ==19579== Releasing lock... [2025-04-14 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:02:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:03:05 [end_date_ymd] => 2025-04-14 07:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:03:05' and `end` < '2025-04-14 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-04-14 07:03:18] Production.INFO: count ==74 [2025-04-14 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:03:05 - End Time 2025-04-14 07:03:05 [2025-04-14 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904582', 'tblTempUsageDetail_20' ) start [2025-04-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904582', 'tblTempUsageDetail_20' ) end [2025-04-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904582', 'tblTempVendorCDR_20' ) start [2025-04-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904582', 'tblTempVendorCDR_20' ) end [2025-04-14 07:03:18] Production.INFO: ProcessCDR(1,14904582,1,1,2) [2025-04-14 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904582', 'tblTempUsageDetail_20' ) start [2025-04-14 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904582', 'tblTempUsageDetail_20' ) end [2025-04-14 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:03:21] Production.INFO: ==19652== Releasing lock... [2025-04-14 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:04:05 [end_date_ymd] => 2025-04-14 07:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:04:05' and `end` < '2025-04-14 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-04-14 07:04:18] Production.INFO: count ==75 [2025-04-14 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:04:05 - End Time 2025-04-14 07:04:05 [2025-04-14 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904587', 'tblTempUsageDetail_20' ) start [2025-04-14 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904587', 'tblTempUsageDetail_20' ) end [2025-04-14 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904587', 'tblTempVendorCDR_20' ) start [2025-04-14 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904587', 'tblTempVendorCDR_20' ) end [2025-04-14 07:04:18] Production.INFO: ProcessCDR(1,14904587,1,1,2) [2025-04-14 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904587', 'tblTempUsageDetail_20' ) start [2025-04-14 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904587', 'tblTempUsageDetail_20' ) end [2025-04-14 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:04:21] Production.INFO: ==19723== Releasing lock... [2025-04-14 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:05:05 [end_date_ymd] => 2025-04-14 07:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:05:05' and `end` < '2025-04-14 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-04-14 07:05:19] Production.INFO: count ==75 [2025-04-14 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:05:05 - End Time 2025-04-14 07:05:05 [2025-04-14 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904592', 'tblTempUsageDetail_20' ) start [2025-04-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904592', 'tblTempUsageDetail_20' ) end [2025-04-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904592', 'tblTempVendorCDR_20' ) start [2025-04-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904592', 'tblTempVendorCDR_20' ) end [2025-04-14 07:05:19] Production.INFO: ProcessCDR(1,14904592,1,1,2) [2025-04-14 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904592', 'tblTempUsageDetail_20' ) start [2025-04-14 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904592', 'tblTempUsageDetail_20' ) end [2025-04-14 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:05:22] Production.INFO: ==19874== Releasing lock... [2025-04-14 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:06:05 [end_date_ymd] => 2025-04-14 07:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:06:05' and `end` < '2025-04-14 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-04-14 07:06:18] Production.INFO: count ==73 [2025-04-14 07:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:06:05 - End Time 2025-04-14 07:06:05 [2025-04-14 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904597', 'tblTempUsageDetail_20' ) start [2025-04-14 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904597', 'tblTempUsageDetail_20' ) end [2025-04-14 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904597', 'tblTempVendorCDR_20' ) start [2025-04-14 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904597', 'tblTempVendorCDR_20' ) end [2025-04-14 07:06:18] Production.INFO: ProcessCDR(1,14904597,1,1,2) [2025-04-14 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904597', 'tblTempUsageDetail_20' ) start [2025-04-14 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904597', 'tblTempUsageDetail_20' ) end [2025-04-14 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:06:21] Production.INFO: ==19950== Releasing lock... [2025-04-14 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:07:05 [end_date_ymd] => 2025-04-14 07:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:07:05' and `end` < '2025-04-14 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-04-14 07:07:20] Production.INFO: count ==74 [2025-04-14 07:07:20] Production.ERROR: pbx CDR StartTime 2025-04-14 04:07:05 - End Time 2025-04-14 07:07:05 [2025-04-14 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904602', 'tblTempUsageDetail_20' ) start [2025-04-14 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904602', 'tblTempUsageDetail_20' ) end [2025-04-14 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904602', 'tblTempVendorCDR_20' ) start [2025-04-14 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904602', 'tblTempVendorCDR_20' ) end [2025-04-14 07:07:20] Production.INFO: ProcessCDR(1,14904602,1,1,2) [2025-04-14 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904602', 'tblTempUsageDetail_20' ) start [2025-04-14 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904602', 'tblTempUsageDetail_20' ) end [2025-04-14 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:07:23] Production.INFO: ==20023== Releasing lock... [2025-04-14 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:07:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:08:05 [end_date_ymd] => 2025-04-14 07:08:05 [RateCDR] => 1 ) [2025-04-14 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:08:05' and `end` < '2025-04-14 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:08:20] Production.INFO: count ==73 [2025-04-14 07:08:20] Production.ERROR: pbx CDR StartTime 2025-04-14 04:08:05 - End Time 2025-04-14 07:08:05 [2025-04-14 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904607', 'tblTempUsageDetail_20' ) start [2025-04-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904607', 'tblTempUsageDetail_20' ) end [2025-04-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904607', 'tblTempVendorCDR_20' ) start [2025-04-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904607', 'tblTempVendorCDR_20' ) end [2025-04-14 07:08:20] Production.INFO: ProcessCDR(1,14904607,1,1,2) [2025-04-14 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904607', 'tblTempUsageDetail_20' ) start [2025-04-14 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904607', 'tblTempUsageDetail_20' ) end [2025-04-14 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:08:23] Production.INFO: ==20176== Releasing lock... [2025-04-14 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:08:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:09:05 [end_date_ymd] => 2025-04-14 07:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:09:05' and `end` < '2025-04-14 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-04-14 07:09:19] Production.INFO: count ==74 [2025-04-14 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:09:05 - End Time 2025-04-14 07:09:05 [2025-04-14 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904612', 'tblTempUsageDetail_20' ) start [2025-04-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904612', 'tblTempUsageDetail_20' ) end [2025-04-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904612', 'tblTempVendorCDR_20' ) start [2025-04-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904612', 'tblTempVendorCDR_20' ) end [2025-04-14 07:09:19] Production.INFO: ProcessCDR(1,14904612,1,1,2) [2025-04-14 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904612', 'tblTempUsageDetail_20' ) start [2025-04-14 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904612', 'tblTempUsageDetail_20' ) end [2025-04-14 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:09:24] Production.INFO: ==20250== Releasing lock... [2025-04-14 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:09:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:10:06 [end_date_ymd] => 2025-04-14 07:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:10:06' and `end` < '2025-04-14 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-04-14 07:10:21] Production.INFO: count ==63 [2025-04-14 07:10:21] Production.ERROR: pbx CDR StartTime 2025-04-14 04:10:06 - End Time 2025-04-14 07:10:06 [2025-04-14 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904618', 'tblTempUsageDetail_20' ) start [2025-04-14 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904618', 'tblTempUsageDetail_20' ) end [2025-04-14 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904618', 'tblTempVendorCDR_20' ) start [2025-04-14 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904618', 'tblTempVendorCDR_20' ) end [2025-04-14 07:10:21] Production.INFO: ProcessCDR(1,14904618,1,1,2) [2025-04-14 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904618', 'tblTempUsageDetail_20' ) start [2025-04-14 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904618', 'tblTempUsageDetail_20' ) end [2025-04-14 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:10:24] Production.INFO: ==20325== Releasing lock... [2025-04-14 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:10:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:11:05 [end_date_ymd] => 2025-04-14 07:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:11:05' and `end` < '2025-04-14 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-04-14 07:11:19] Production.INFO: count ==62 [2025-04-14 07:11:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:11:05 - End Time 2025-04-14 07:11:05 [2025-04-14 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904623', 'tblTempUsageDetail_20' ) start [2025-04-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904623', 'tblTempUsageDetail_20' ) end [2025-04-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904623', 'tblTempVendorCDR_20' ) start [2025-04-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904623', 'tblTempVendorCDR_20' ) end [2025-04-14 07:11:19] Production.INFO: ProcessCDR(1,14904623,1,1,2) [2025-04-14 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904623', 'tblTempUsageDetail_20' ) start [2025-04-14 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904623', 'tblTempUsageDetail_20' ) end [2025-04-14 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:11:23] Production.INFO: ==20398== Releasing lock... [2025-04-14 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:11:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:12:06 [end_date_ymd] => 2025-04-14 07:12:06 [RateCDR] => 1 ) [2025-04-14 07: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-04-14 04:12:06' and `end` < '2025-04-14 07: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-04-14 07:12:19] Production.INFO: count ==58 [2025-04-14 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:12:06 - End Time 2025-04-14 07:12:06 [2025-04-14 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904628', 'tblTempUsageDetail_20' ) start [2025-04-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904628', 'tblTempUsageDetail_20' ) end [2025-04-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904628', 'tblTempVendorCDR_20' ) start [2025-04-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904628', 'tblTempVendorCDR_20' ) end [2025-04-14 07:12:19] Production.INFO: ProcessCDR(1,14904628,1,1,2) [2025-04-14 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904628', 'tblTempUsageDetail_20' ) start [2025-04-14 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904628', 'tblTempUsageDetail_20' ) end [2025-04-14 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:12:22] Production.INFO: ==20550== Releasing lock... [2025-04-14 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:13:05 [end_date_ymd] => 2025-04-14 07:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:13:05' and `end` < '2025-04-14 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-04-14 07:13:19] Production.INFO: count ==57 [2025-04-14 07:13:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:13:05 - End Time 2025-04-14 07:13:05 [2025-04-14 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904633', 'tblTempUsageDetail_20' ) start [2025-04-14 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904633', 'tblTempUsageDetail_20' ) end [2025-04-14 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904633', 'tblTempVendorCDR_20' ) start [2025-04-14 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904633', 'tblTempVendorCDR_20' ) end [2025-04-14 07:13:19] Production.INFO: ProcessCDR(1,14904633,1,1,2) [2025-04-14 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904633', 'tblTempUsageDetail_20' ) start [2025-04-14 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904633', 'tblTempUsageDetail_20' ) end [2025-04-14 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:13:23] Production.INFO: ==20624== Releasing lock... [2025-04-14 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:13:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:14:05 [end_date_ymd] => 2025-04-14 07:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:14:05' and `end` < '2025-04-14 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-04-14 07:14:19] Production.INFO: count ==56 [2025-04-14 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:14:05 - End Time 2025-04-14 07:14:05 [2025-04-14 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904638', 'tblTempUsageDetail_20' ) start [2025-04-14 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904638', 'tblTempUsageDetail_20' ) end [2025-04-14 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904638', 'tblTempVendorCDR_20' ) start [2025-04-14 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904638', 'tblTempVendorCDR_20' ) end [2025-04-14 07:14:19] Production.INFO: ProcessCDR(1,14904638,1,1,2) [2025-04-14 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904638', 'tblTempUsageDetail_20' ) start [2025-04-14 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904638', 'tblTempUsageDetail_20' ) end [2025-04-14 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:14:23] Production.INFO: ==20704== Releasing lock... [2025-04-14 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:14:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:15:05 [end_date_ymd] => 2025-04-14 07:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:15:05' and `end` < '2025-04-14 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-04-14 07:15:18] Production.INFO: count ==56 [2025-04-14 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:15:05 - End Time 2025-04-14 07:15:05 [2025-04-14 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904643', 'tblTempUsageDetail_20' ) start [2025-04-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904643', 'tblTempUsageDetail_20' ) end [2025-04-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904643', 'tblTempVendorCDR_20' ) start [2025-04-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904643', 'tblTempVendorCDR_20' ) end [2025-04-14 07:15:18] Production.INFO: ProcessCDR(1,14904643,1,1,2) [2025-04-14 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904643', 'tblTempUsageDetail_20' ) start [2025-04-14 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904643', 'tblTempUsageDetail_20' ) end [2025-04-14 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:15:21] Production.INFO: ==20852== Releasing lock... [2025-04-14 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:16:05 [end_date_ymd] => 2025-04-14 07:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:16:05' and `end` < '2025-04-14 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-04-14 07:16:19] Production.INFO: count ==61 [2025-04-14 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:16:05 - End Time 2025-04-14 07:16:05 [2025-04-14 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904648', 'tblTempUsageDetail_20' ) start [2025-04-14 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904648', 'tblTempUsageDetail_20' ) end [2025-04-14 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904648', 'tblTempVendorCDR_20' ) start [2025-04-14 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904648', 'tblTempVendorCDR_20' ) end [2025-04-14 07:16:19] Production.INFO: ProcessCDR(1,14904648,1,1,2) [2025-04-14 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904648', 'tblTempUsageDetail_20' ) start [2025-04-14 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904648', 'tblTempUsageDetail_20' ) end [2025-04-14 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:16:23] Production.INFO: ==20931== Releasing lock... [2025-04-14 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:16:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:17:04 [end_date_ymd] => 2025-04-14 07:17:04 [RateCDR] => 1 ) [2025-04-14 07: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-04-14 04:17:04' and `end` < '2025-04-14 07: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-04-14 07:17:17] Production.INFO: count ==61 [2025-04-14 07:17:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:17:04 - End Time 2025-04-14 07:17:04 [2025-04-14 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904653', 'tblTempUsageDetail_20' ) start [2025-04-14 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904653', 'tblTempUsageDetail_20' ) end [2025-04-14 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904653', 'tblTempVendorCDR_20' ) start [2025-04-14 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904653', 'tblTempVendorCDR_20' ) end [2025-04-14 07:17:17] Production.INFO: ProcessCDR(1,14904653,1,1,2) [2025-04-14 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904653', 'tblTempUsageDetail_20' ) start [2025-04-14 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904653', 'tblTempUsageDetail_20' ) end [2025-04-14 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:17:21] Production.INFO: ==21042== Releasing lock... [2025-04-14 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:18:05 [end_date_ymd] => 2025-04-14 07:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:18:05' and `end` < '2025-04-14 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-04-14 07:18:18] Production.INFO: count ==61 [2025-04-14 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:18:05 - End Time 2025-04-14 07:18:05 [2025-04-14 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904658', 'tblTempUsageDetail_20' ) start [2025-04-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904658', 'tblTempUsageDetail_20' ) end [2025-04-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904658', 'tblTempVendorCDR_20' ) start [2025-04-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904658', 'tblTempVendorCDR_20' ) end [2025-04-14 07:18:18] Production.INFO: ProcessCDR(1,14904658,1,1,2) [2025-04-14 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904658', 'tblTempUsageDetail_20' ) start [2025-04-14 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904658', 'tblTempUsageDetail_20' ) end [2025-04-14 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:18:21] Production.INFO: ==21117== Releasing lock... [2025-04-14 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-14 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:19:04 [end_date_ymd] => 2025-04-14 07:19:04 [RateCDR] => 1 ) [2025-04-14 07: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-04-14 04:19:04' and `end` < '2025-04-14 07: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-04-14 07:19:17] Production.INFO: count ==66 [2025-04-14 07:19:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:19:04 - End Time 2025-04-14 07:19:04 [2025-04-14 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904663', 'tblTempUsageDetail_20' ) start [2025-04-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904663', 'tblTempUsageDetail_20' ) end [2025-04-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904663', 'tblTempVendorCDR_20' ) start [2025-04-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904663', 'tblTempVendorCDR_20' ) end [2025-04-14 07:19:17] Production.INFO: ProcessCDR(1,14904663,1,1,2) [2025-04-14 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904663', 'tblTempUsageDetail_20' ) start [2025-04-14 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904663', 'tblTempUsageDetail_20' ) end [2025-04-14 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:19:20] Production.INFO: ==21188== Releasing lock... [2025-04-14 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:20:05 [end_date_ymd] => 2025-04-14 07:20:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:20:05' and `end` < '2025-04-14 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-04-14 07:20:18] Production.INFO: count ==66 [2025-04-14 07:20:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:20:05 - End Time 2025-04-14 07:20:05 [2025-04-14 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904667', 'tblTempUsageDetail_20' ) start [2025-04-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904667', 'tblTempUsageDetail_20' ) end [2025-04-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904667', 'tblTempVendorCDR_20' ) start [2025-04-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904667', 'tblTempVendorCDR_20' ) end [2025-04-14 07:20:18] Production.INFO: ProcessCDR(1,14904667,1,1,2) [2025-04-14 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904667', 'tblTempUsageDetail_20' ) start [2025-04-14 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904667', 'tblTempUsageDetail_20' ) end [2025-04-14 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:20:21] Production.INFO: ==21264== Releasing lock... [2025-04-14 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:21:04 [end_date_ymd] => 2025-04-14 07:21:04 [RateCDR] => 1 ) [2025-04-14 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:21:04' and `end` < '2025-04-14 07: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-04-14 07:21:17] Production.INFO: count ==66 [2025-04-14 07:21:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:21:04 - End Time 2025-04-14 07:21:04 [2025-04-14 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904674', 'tblTempUsageDetail_20' ) start [2025-04-14 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904674', 'tblTempUsageDetail_20' ) end [2025-04-14 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904674', 'tblTempVendorCDR_20' ) start [2025-04-14 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904674', 'tblTempVendorCDR_20' ) end [2025-04-14 07:21:17] Production.INFO: ProcessCDR(1,14904674,1,1,2) [2025-04-14 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904674', 'tblTempUsageDetail_20' ) start [2025-04-14 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904674', 'tblTempUsageDetail_20' ) end [2025-04-14 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:21:21] Production.INFO: ==21339== Releasing lock... [2025-04-14 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:22:05 [end_date_ymd] => 2025-04-14 07:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:22:05' and `end` < '2025-04-14 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-04-14 07:22:18] Production.INFO: count ==66 [2025-04-14 07:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:22:05 - End Time 2025-04-14 07:22:05 [2025-04-14 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904679', 'tblTempUsageDetail_20' ) start [2025-04-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904679', 'tblTempUsageDetail_20' ) end [2025-04-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904679', 'tblTempVendorCDR_20' ) start [2025-04-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904679', 'tblTempVendorCDR_20' ) end [2025-04-14 07:22:18] Production.INFO: ProcessCDR(1,14904679,1,1,2) [2025-04-14 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904679', 'tblTempUsageDetail_20' ) start [2025-04-14 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904679', 'tblTempUsageDetail_20' ) end [2025-04-14 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:22:21] Production.INFO: ==21410== Releasing lock... [2025-04-14 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:23:05 [end_date_ymd] => 2025-04-14 07:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:23:05' and `end` < '2025-04-14 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-04-14 07:23:18] Production.INFO: count ==66 [2025-04-14 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:23:05 - End Time 2025-04-14 07:23:05 [2025-04-14 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904684', 'tblTempUsageDetail_20' ) start [2025-04-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904684', 'tblTempUsageDetail_20' ) end [2025-04-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904684', 'tblTempVendorCDR_20' ) start [2025-04-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904684', 'tblTempVendorCDR_20' ) end [2025-04-14 07:23:18] Production.INFO: ProcessCDR(1,14904684,1,1,2) [2025-04-14 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904684', 'tblTempUsageDetail_20' ) start [2025-04-14 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904684', 'tblTempUsageDetail_20' ) end [2025-04-14 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:23:21] Production.INFO: ==21486== Releasing lock... [2025-04-14 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:24:05 [end_date_ymd] => 2025-04-14 07:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:24:05' and `end` < '2025-04-14 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-04-14 07:24:18] Production.INFO: count ==64 [2025-04-14 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:24:05 - End Time 2025-04-14 07:24:05 [2025-04-14 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904689', 'tblTempUsageDetail_20' ) start [2025-04-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904689', 'tblTempUsageDetail_20' ) end [2025-04-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904689', 'tblTempVendorCDR_20' ) start [2025-04-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904689', 'tblTempVendorCDR_20' ) end [2025-04-14 07:24:18] Production.INFO: ProcessCDR(1,14904689,1,1,2) [2025-04-14 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904689', 'tblTempUsageDetail_20' ) start [2025-04-14 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904689', 'tblTempUsageDetail_20' ) end [2025-04-14 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:24:21] Production.INFO: ==21558== Releasing lock... [2025-04-14 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:25:05 [end_date_ymd] => 2025-04-14 07:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:25:05' and `end` < '2025-04-14 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-04-14 07:25:18] Production.INFO: count ==62 [2025-04-14 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:25:05 - End Time 2025-04-14 07:25:05 [2025-04-14 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904694', 'tblTempUsageDetail_20' ) start [2025-04-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904694', 'tblTempUsageDetail_20' ) end [2025-04-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904694', 'tblTempVendorCDR_20' ) start [2025-04-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904694', 'tblTempVendorCDR_20' ) end [2025-04-14 07:25:18] Production.INFO: ProcessCDR(1,14904694,1,1,2) [2025-04-14 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904694', 'tblTempUsageDetail_20' ) start [2025-04-14 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904694', 'tblTempUsageDetail_20' ) end [2025-04-14 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:25:21] Production.INFO: ==21636== Releasing lock... [2025-04-14 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:26:05 [end_date_ymd] => 2025-04-14 07:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:26:05' and `end` < '2025-04-14 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-04-14 07:26:18] Production.INFO: count ==62 [2025-04-14 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:26:05 - End Time 2025-04-14 07:26:05 [2025-04-14 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904699', 'tblTempUsageDetail_20' ) start [2025-04-14 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904699', 'tblTempUsageDetail_20' ) end [2025-04-14 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904699', 'tblTempVendorCDR_20' ) start [2025-04-14 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904699', 'tblTempVendorCDR_20' ) end [2025-04-14 07:26:18] Production.INFO: ProcessCDR(1,14904699,1,1,2) [2025-04-14 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904699', 'tblTempUsageDetail_20' ) start [2025-04-14 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904699', 'tblTempUsageDetail_20' ) end [2025-04-14 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:26:21] Production.INFO: ==21706== Releasing lock... [2025-04-14 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:27:05 [end_date_ymd] => 2025-04-14 07:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:27:05' and `end` < '2025-04-14 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-04-14 07:27:18] Production.INFO: count ==62 [2025-04-14 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:27:05 - End Time 2025-04-14 07:27:05 [2025-04-14 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904704', 'tblTempUsageDetail_20' ) start [2025-04-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904704', 'tblTempUsageDetail_20' ) end [2025-04-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904704', 'tblTempVendorCDR_20' ) start [2025-04-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904704', 'tblTempVendorCDR_20' ) end [2025-04-14 07:27:18] Production.INFO: ProcessCDR(1,14904704,1,1,2) [2025-04-14 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904704', 'tblTempUsageDetail_20' ) start [2025-04-14 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904704', 'tblTempUsageDetail_20' ) end [2025-04-14 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:27:21] Production.INFO: ==21781== Releasing lock... [2025-04-14 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:28:05 [end_date_ymd] => 2025-04-14 07:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:28:05' and `end` < '2025-04-14 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-04-14 07:28:17] Production.INFO: count ==64 [2025-04-14 07:28:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:28:05 - End Time 2025-04-14 07:28:05 [2025-04-14 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904709', 'tblTempUsageDetail_20' ) start [2025-04-14 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904709', 'tblTempUsageDetail_20' ) end [2025-04-14 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904709', 'tblTempVendorCDR_20' ) start [2025-04-14 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904709', 'tblTempVendorCDR_20' ) end [2025-04-14 07:28:17] Production.INFO: ProcessCDR(1,14904709,1,1,2) [2025-04-14 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904709', 'tblTempUsageDetail_20' ) start [2025-04-14 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904709', 'tblTempUsageDetail_20' ) end [2025-04-14 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:28:21] Production.INFO: ==21851== Releasing lock... [2025-04-14 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:29:05 [end_date_ymd] => 2025-04-14 07:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:29:05' and `end` < '2025-04-14 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-04-14 07:29:18] Production.INFO: count ==64 [2025-04-14 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:29:05 - End Time 2025-04-14 07:29:05 [2025-04-14 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904714', 'tblTempUsageDetail_20' ) start [2025-04-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904714', 'tblTempUsageDetail_20' ) end [2025-04-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904714', 'tblTempVendorCDR_20' ) start [2025-04-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904714', 'tblTempVendorCDR_20' ) end [2025-04-14 07:29:18] Production.INFO: ProcessCDR(1,14904714,1,1,2) [2025-04-14 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904714', 'tblTempUsageDetail_20' ) start [2025-04-14 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904714', 'tblTempUsageDetail_20' ) end [2025-04-14 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:29:22] Production.INFO: ==21931== Releasing lock... [2025-04-14 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:30:06 [end_date_ymd] => 2025-04-14 07:30:06 [RateCDR] => 1 ) [2025-04-14 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:30:06' and `end` < '2025-04-14 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:30:19] Production.INFO: count ==62 [2025-04-14 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 04:30:06 - End Time 2025-04-14 07:30:06 [2025-04-14 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904720', 'tblTempUsageDetail_20' ) start [2025-04-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904720', 'tblTempUsageDetail_20' ) end [2025-04-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904720', 'tblTempVendorCDR_20' ) start [2025-04-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904720', 'tblTempVendorCDR_20' ) end [2025-04-14 07:30:19] Production.INFO: ProcessCDR(1,14904720,1,1,2) [2025-04-14 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904720', 'tblTempUsageDetail_20' ) start [2025-04-14 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904720', 'tblTempUsageDetail_20' ) end [2025-04-14 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:30:22] Production.INFO: ==22007== Releasing lock... [2025-04-14 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:31:05 [end_date_ymd] => 2025-04-14 07:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:31:05' and `end` < '2025-04-14 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-04-14 07:31:18] Production.INFO: count ==62 [2025-04-14 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:31:05 - End Time 2025-04-14 07:31:05 [2025-04-14 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904725', 'tblTempUsageDetail_20' ) start [2025-04-14 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904725', 'tblTempUsageDetail_20' ) end [2025-04-14 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904725', 'tblTempVendorCDR_20' ) start [2025-04-14 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904725', 'tblTempVendorCDR_20' ) end [2025-04-14 07:31:18] Production.INFO: ProcessCDR(1,14904725,1,1,2) [2025-04-14 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904725', 'tblTempUsageDetail_20' ) start [2025-04-14 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904725', 'tblTempUsageDetail_20' ) end [2025-04-14 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:31:21] Production.INFO: ==22081== Releasing lock... [2025-04-14 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:32:05 [end_date_ymd] => 2025-04-14 07:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:32:05' and `end` < '2025-04-14 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-04-14 07:32:18] Production.INFO: count ==62 [2025-04-14 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:32:05 - End Time 2025-04-14 07:32:05 [2025-04-14 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904730', 'tblTempUsageDetail_20' ) start [2025-04-14 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904730', 'tblTempUsageDetail_20' ) end [2025-04-14 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904730', 'tblTempVendorCDR_20' ) start [2025-04-14 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904730', 'tblTempVendorCDR_20' ) end [2025-04-14 07:32:18] Production.INFO: ProcessCDR(1,14904730,1,1,2) [2025-04-14 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904730', 'tblTempUsageDetail_20' ) start [2025-04-14 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904730', 'tblTempUsageDetail_20' ) end [2025-04-14 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:32:21] Production.INFO: ==22198== Releasing lock... [2025-04-14 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:33:05 [end_date_ymd] => 2025-04-14 07:33:05 [RateCDR] => 1 ) [2025-04-14 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:33:05' and `end` < '2025-04-14 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:33:18] Production.INFO: count ==64 [2025-04-14 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:33:05 - End Time 2025-04-14 07:33:05 [2025-04-14 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904735', 'tblTempUsageDetail_20' ) start [2025-04-14 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904735', 'tblTempUsageDetail_20' ) end [2025-04-14 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904735', 'tblTempVendorCDR_20' ) start [2025-04-14 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904735', 'tblTempVendorCDR_20' ) end [2025-04-14 07:33:18] Production.INFO: ProcessCDR(1,14904735,1,1,2) [2025-04-14 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904735', 'tblTempUsageDetail_20' ) start [2025-04-14 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904735', 'tblTempUsageDetail_20' ) end [2025-04-14 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:33:21] Production.INFO: ==22272== Releasing lock... [2025-04-14 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:34:05 [end_date_ymd] => 2025-04-14 07:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:34:05' and `end` < '2025-04-14 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-04-14 07:34:18] Production.INFO: count ==64 [2025-04-14 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:34:05 - End Time 2025-04-14 07:34:05 [2025-04-14 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904740', 'tblTempUsageDetail_20' ) start [2025-04-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904740', 'tblTempUsageDetail_20' ) end [2025-04-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904740', 'tblTempVendorCDR_20' ) start [2025-04-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904740', 'tblTempVendorCDR_20' ) end [2025-04-14 07:34:18] Production.INFO: ProcessCDR(1,14904740,1,1,2) [2025-04-14 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904740', 'tblTempUsageDetail_20' ) start [2025-04-14 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904740', 'tblTempUsageDetail_20' ) end [2025-04-14 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:34:21] Production.INFO: ==22344== Releasing lock... [2025-04-14 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:35:05 [end_date_ymd] => 2025-04-14 07:35:05 [RateCDR] => 1 ) [2025-04-14 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:35:05' and `end` < '2025-04-14 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:35:17] Production.INFO: count ==64 [2025-04-14 07:35:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:35:05 - End Time 2025-04-14 07:35:05 [2025-04-14 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904745', 'tblTempUsageDetail_20' ) start [2025-04-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904745', 'tblTempUsageDetail_20' ) end [2025-04-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904745', 'tblTempVendorCDR_20' ) start [2025-04-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904745', 'tblTempVendorCDR_20' ) end [2025-04-14 07:35:17] Production.INFO: ProcessCDR(1,14904745,1,1,2) [2025-04-14 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904745', 'tblTempUsageDetail_20' ) start [2025-04-14 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904745', 'tblTempUsageDetail_20' ) end [2025-04-14 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:35:21] Production.INFO: ==22414== Releasing lock... [2025-04-14 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:36:05 [end_date_ymd] => 2025-04-14 07:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:36:05' and `end` < '2025-04-14 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-04-14 07:36:18] Production.INFO: count ==64 [2025-04-14 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:36:05 - End Time 2025-04-14 07:36:05 [2025-04-14 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904750', 'tblTempUsageDetail_20' ) start [2025-04-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904750', 'tblTempUsageDetail_20' ) end [2025-04-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904750', 'tblTempVendorCDR_20' ) start [2025-04-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904750', 'tblTempVendorCDR_20' ) end [2025-04-14 07:36:18] Production.INFO: ProcessCDR(1,14904750,1,1,2) [2025-04-14 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904750', 'tblTempUsageDetail_20' ) start [2025-04-14 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904750', 'tblTempUsageDetail_20' ) end [2025-04-14 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:36:21] Production.INFO: ==22488== Releasing lock... [2025-04-14 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:37:05 [end_date_ymd] => 2025-04-14 07:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:37:05' and `end` < '2025-04-14 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-04-14 07:37:18] Production.INFO: count ==70 [2025-04-14 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:37:05 - End Time 2025-04-14 07:37:05 [2025-04-14 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904755', 'tblTempUsageDetail_20' ) start [2025-04-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904755', 'tblTempUsageDetail_20' ) end [2025-04-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904755', 'tblTempVendorCDR_20' ) start [2025-04-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904755', 'tblTempVendorCDR_20' ) end [2025-04-14 07:37:18] Production.INFO: ProcessCDR(1,14904755,1,1,2) [2025-04-14 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904755', 'tblTempUsageDetail_20' ) start [2025-04-14 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904755', 'tblTempUsageDetail_20' ) end [2025-04-14 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:37:22] Production.INFO: ==22566== Releasing lock... [2025-04-14 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:38:06 [end_date_ymd] => 2025-04-14 07:38:06 [RateCDR] => 1 ) [2025-04-14 07: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-04-14 04:38:06' and `end` < '2025-04-14 07: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-04-14 07:38:18] Production.INFO: count ==70 [2025-04-14 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:38:06 - End Time 2025-04-14 07:38:06 [2025-04-14 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904760', 'tblTempUsageDetail_20' ) start [2025-04-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904760', 'tblTempUsageDetail_20' ) end [2025-04-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904760', 'tblTempVendorCDR_20' ) start [2025-04-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904760', 'tblTempVendorCDR_20' ) end [2025-04-14 07:38:18] Production.INFO: ProcessCDR(1,14904760,1,1,2) [2025-04-14 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904760', 'tblTempUsageDetail_20' ) start [2025-04-14 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904760', 'tblTempUsageDetail_20' ) end [2025-04-14 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:38:22] Production.INFO: ==22637== Releasing lock... [2025-04-14 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:39:04 [end_date_ymd] => 2025-04-14 07:39:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:39:04' and `end` < '2025-04-14 07:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:39:17] Production.INFO: count ==70 [2025-04-14 07:39:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:39:04 - End Time 2025-04-14 07:39:04 [2025-04-14 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904765', 'tblTempUsageDetail_20' ) start [2025-04-14 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904765', 'tblTempUsageDetail_20' ) end [2025-04-14 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904765', 'tblTempVendorCDR_20' ) start [2025-04-14 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904765', 'tblTempVendorCDR_20' ) end [2025-04-14 07:39:17] Production.INFO: ProcessCDR(1,14904765,1,1,2) [2025-04-14 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904765', 'tblTempUsageDetail_20' ) start [2025-04-14 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904765', 'tblTempUsageDetail_20' ) end [2025-04-14 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:39:21] Production.INFO: ==22711== Releasing lock... [2025-04-14 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:40:05 [end_date_ymd] => 2025-04-14 07:40:05 [RateCDR] => 1 ) [2025-04-14 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:40:05' and `end` < '2025-04-14 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:40:18] Production.INFO: count ==78 [2025-04-14 07:40:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:40:05 - End Time 2025-04-14 07:40:05 [2025-04-14 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904770', 'tblTempUsageDetail_20' ) start [2025-04-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904770', 'tblTempUsageDetail_20' ) end [2025-04-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904770', 'tblTempVendorCDR_20' ) start [2025-04-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904770', 'tblTempVendorCDR_20' ) end [2025-04-14 07:40:18] Production.INFO: ProcessCDR(1,14904770,1,1,2) [2025-04-14 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904770', 'tblTempUsageDetail_20' ) start [2025-04-14 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904770', 'tblTempUsageDetail_20' ) end [2025-04-14 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:40:21] Production.INFO: ==22783== Releasing lock... [2025-04-14 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:41:05 [end_date_ymd] => 2025-04-14 07:41:05 [RateCDR] => 1 ) [2025-04-14 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:41:05' and `end` < '2025-04-14 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:41:17] Production.INFO: count ==83 [2025-04-14 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:41:05 - End Time 2025-04-14 07:41:05 [2025-04-14 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904776', 'tblTempUsageDetail_20' ) start [2025-04-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904776', 'tblTempUsageDetail_20' ) end [2025-04-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904776', 'tblTempVendorCDR_20' ) start [2025-04-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904776', 'tblTempVendorCDR_20' ) end [2025-04-14 07:41:17] Production.INFO: ProcessCDR(1,14904776,1,1,2) [2025-04-14 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904776', 'tblTempUsageDetail_20' ) start [2025-04-14 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904776', 'tblTempUsageDetail_20' ) end [2025-04-14 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:41:20] Production.INFO: ==22862== Releasing lock... [2025-04-14 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:42:05 [end_date_ymd] => 2025-04-14 07:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:42:05' and `end` < '2025-04-14 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-04-14 07:42:18] Production.INFO: count ==83 [2025-04-14 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:42:05 - End Time 2025-04-14 07:42:05 [2025-04-14 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904781', 'tblTempUsageDetail_20' ) start [2025-04-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904781', 'tblTempUsageDetail_20' ) end [2025-04-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904781', 'tblTempVendorCDR_20' ) start [2025-04-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904781', 'tblTempVendorCDR_20' ) end [2025-04-14 07:42:18] Production.INFO: ProcessCDR(1,14904781,1,1,2) [2025-04-14 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904781', 'tblTempUsageDetail_20' ) start [2025-04-14 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904781', 'tblTempUsageDetail_20' ) end [2025-04-14 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:42:22] Production.INFO: ==22940== Releasing lock... [2025-04-14 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:43:05 [end_date_ymd] => 2025-04-14 07:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:43:05' and `end` < '2025-04-14 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-04-14 07:43:18] Production.INFO: count ==83 [2025-04-14 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:43:05 - End Time 2025-04-14 07:43:05 [2025-04-14 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904786', 'tblTempUsageDetail_20' ) start [2025-04-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904786', 'tblTempUsageDetail_20' ) end [2025-04-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904786', 'tblTempVendorCDR_20' ) start [2025-04-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904786', 'tblTempVendorCDR_20' ) end [2025-04-14 07:43:18] Production.INFO: ProcessCDR(1,14904786,1,1,2) [2025-04-14 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904786', 'tblTempUsageDetail_20' ) start [2025-04-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904786', 'tblTempUsageDetail_20' ) end [2025-04-14 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:43:21] Production.INFO: ==23020== Releasing lock... [2025-04-14 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:44:05 [end_date_ymd] => 2025-04-14 07:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:44:05' and `end` < '2025-04-14 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-04-14 07:44:17] Production.INFO: count ==79 [2025-04-14 07:44:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:44:05 - End Time 2025-04-14 07:44:05 [2025-04-14 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904791', 'tblTempUsageDetail_20' ) start [2025-04-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904791', 'tblTempUsageDetail_20' ) end [2025-04-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904791', 'tblTempVendorCDR_20' ) start [2025-04-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904791', 'tblTempVendorCDR_20' ) end [2025-04-14 07:44:17] Production.INFO: ProcessCDR(1,14904791,1,1,2) [2025-04-14 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904791', 'tblTempUsageDetail_20' ) start [2025-04-14 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904791', 'tblTempUsageDetail_20' ) end [2025-04-14 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:44:21] Production.INFO: ==23092== Releasing lock... [2025-04-14 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:45:05 [end_date_ymd] => 2025-04-14 07:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:45:05' and `end` < '2025-04-14 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-04-14 07:45:18] Production.INFO: count ==80 [2025-04-14 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:45:05 - End Time 2025-04-14 07:45:05 [2025-04-14 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904796', 'tblTempUsageDetail_20' ) start [2025-04-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904796', 'tblTempUsageDetail_20' ) end [2025-04-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904796', 'tblTempVendorCDR_20' ) start [2025-04-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904796', 'tblTempVendorCDR_20' ) end [2025-04-14 07:45:18] Production.INFO: ProcessCDR(1,14904796,1,1,2) [2025-04-14 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904796', 'tblTempUsageDetail_20' ) start [2025-04-14 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904796', 'tblTempUsageDetail_20' ) end [2025-04-14 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:45:23] Production.INFO: ==23167== Releasing lock... [2025-04-14 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:45:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:46:05 [end_date_ymd] => 2025-04-14 07:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:46:05' and `end` < '2025-04-14 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-04-14 07:46:17] Production.INFO: count ==85 [2025-04-14 07:46:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:46:05 - End Time 2025-04-14 07:46:05 [2025-04-14 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904801', 'tblTempUsageDetail_20' ) start [2025-04-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904801', 'tblTempUsageDetail_20' ) end [2025-04-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904801', 'tblTempVendorCDR_20' ) start [2025-04-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904801', 'tblTempVendorCDR_20' ) end [2025-04-14 07:46:17] Production.INFO: ProcessCDR(1,14904801,1,1,2) [2025-04-14 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904801', 'tblTempUsageDetail_20' ) start [2025-04-14 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904801', 'tblTempUsageDetail_20' ) end [2025-04-14 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:46:21] Production.INFO: ==23242== Releasing lock... [2025-04-14 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:47:05 [end_date_ymd] => 2025-04-14 07:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:47:05' and `end` < '2025-04-14 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-04-14 07:47:18] Production.INFO: count ==85 [2025-04-14 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:47:05 - End Time 2025-04-14 07:47:05 [2025-04-14 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904806', 'tblTempUsageDetail_20' ) start [2025-04-14 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904806', 'tblTempUsageDetail_20' ) end [2025-04-14 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904806', 'tblTempVendorCDR_20' ) start [2025-04-14 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904806', 'tblTempVendorCDR_20' ) end [2025-04-14 07:47:18] Production.INFO: ProcessCDR(1,14904806,1,1,2) [2025-04-14 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904806', 'tblTempUsageDetail_20' ) start [2025-04-14 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904806', 'tblTempUsageDetail_20' ) end [2025-04-14 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:47:21] Production.INFO: ==23316== Releasing lock... [2025-04-14 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:48:05 [end_date_ymd] => 2025-04-14 07:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:48:05' and `end` < '2025-04-14 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-04-14 07:48:18] Production.INFO: count ==85 [2025-04-14 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:48:05 - End Time 2025-04-14 07:48:05 [2025-04-14 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904811', 'tblTempUsageDetail_20' ) start [2025-04-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904811', 'tblTempUsageDetail_20' ) end [2025-04-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904811', 'tblTempVendorCDR_20' ) start [2025-04-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904811', 'tblTempVendorCDR_20' ) end [2025-04-14 07:48:18] Production.INFO: ProcessCDR(1,14904811,1,1,2) [2025-04-14 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904811', 'tblTempUsageDetail_20' ) start [2025-04-14 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904811', 'tblTempUsageDetail_20' ) end [2025-04-14 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:48:21] Production.INFO: ==23430== Releasing lock... [2025-04-14 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:49:05 [end_date_ymd] => 2025-04-14 07:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:49:05' and `end` < '2025-04-14 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-04-14 07:49:17] Production.INFO: count ==85 [2025-04-14 07:49:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:49:05 - End Time 2025-04-14 07:49:05 [2025-04-14 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904816', 'tblTempUsageDetail_20' ) start [2025-04-14 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904816', 'tblTempUsageDetail_20' ) end [2025-04-14 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904816', 'tblTempVendorCDR_20' ) start [2025-04-14 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904816', 'tblTempVendorCDR_20' ) end [2025-04-14 07:49:17] Production.INFO: ProcessCDR(1,14904816,1,1,2) [2025-04-14 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904816', 'tblTempUsageDetail_20' ) start [2025-04-14 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904816', 'tblTempUsageDetail_20' ) end [2025-04-14 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:49:21] Production.INFO: ==23500== Releasing lock... [2025-04-14 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:50:05 [end_date_ymd] => 2025-04-14 07:50:05 [RateCDR] => 1 ) [2025-04-14 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:50:05' and `end` < '2025-04-14 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:50:18] Production.INFO: count ==84 [2025-04-14 07:50:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:50:05 - End Time 2025-04-14 07:50:05 [2025-04-14 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904822', 'tblTempUsageDetail_20' ) start [2025-04-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904822', 'tblTempUsageDetail_20' ) end [2025-04-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904822', 'tblTempVendorCDR_20' ) start [2025-04-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904822', 'tblTempVendorCDR_20' ) end [2025-04-14 07:50:18] Production.INFO: ProcessCDR(1,14904822,1,1,2) [2025-04-14 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904822', 'tblTempUsageDetail_20' ) start [2025-04-14 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904822', 'tblTempUsageDetail_20' ) end [2025-04-14 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:50:21] Production.INFO: ==23578== Releasing lock... [2025-04-14 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:51:05 [end_date_ymd] => 2025-04-14 07:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:51:05' and `end` < '2025-04-14 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-04-14 07:51:17] Production.INFO: count ==84 [2025-04-14 07:51:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:51:05 - End Time 2025-04-14 07:51:05 [2025-04-14 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904827', 'tblTempUsageDetail_20' ) start [2025-04-14 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904827', 'tblTempUsageDetail_20' ) end [2025-04-14 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904827', 'tblTempVendorCDR_20' ) start [2025-04-14 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904827', 'tblTempVendorCDR_20' ) end [2025-04-14 07:51:17] Production.INFO: ProcessCDR(1,14904827,1,1,2) [2025-04-14 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904827', 'tblTempUsageDetail_20' ) start [2025-04-14 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904827', 'tblTempUsageDetail_20' ) end [2025-04-14 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:51:21] Production.INFO: ==23653== Releasing lock... [2025-04-14 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:52:05 [end_date_ymd] => 2025-04-14 07:52:05 [RateCDR] => 1 ) [2025-04-14 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:52:05' and `end` < '2025-04-14 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:52:18] Production.INFO: count ==84 [2025-04-14 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:52:05 - End Time 2025-04-14 07:52:05 [2025-04-14 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904832', 'tblTempUsageDetail_20' ) start [2025-04-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904832', 'tblTempUsageDetail_20' ) end [2025-04-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904832', 'tblTempVendorCDR_20' ) start [2025-04-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904832', 'tblTempVendorCDR_20' ) end [2025-04-14 07:52:18] Production.INFO: ProcessCDR(1,14904832,1,1,2) [2025-04-14 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904832', 'tblTempUsageDetail_20' ) start [2025-04-14 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904832', 'tblTempUsageDetail_20' ) end [2025-04-14 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:52:21] Production.INFO: ==23731== Releasing lock... [2025-04-14 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-14 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:53:05 [end_date_ymd] => 2025-04-14 07:53:05 [RateCDR] => 1 ) [2025-04-14 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:53:05' and `end` < '2025-04-14 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:53:17] Production.INFO: count ==88 [2025-04-14 07:53:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:53:05 - End Time 2025-04-14 07:53:05 [2025-04-14 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904837', 'tblTempUsageDetail_20' ) start [2025-04-14 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904837', 'tblTempUsageDetail_20' ) end [2025-04-14 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904837', 'tblTempVendorCDR_20' ) start [2025-04-14 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904837', 'tblTempVendorCDR_20' ) end [2025-04-14 07:53:18] Production.INFO: ProcessCDR(1,14904837,1,1,2) [2025-04-14 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904837', 'tblTempUsageDetail_20' ) start [2025-04-14 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904837', 'tblTempUsageDetail_20' ) end [2025-04-14 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:53:21] Production.INFO: ==23801== Releasing lock... [2025-04-14 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:54:05 [end_date_ymd] => 2025-04-14 07:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:54:05' and `end` < '2025-04-14 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-04-14 07:54:18] Production.INFO: count ==88 [2025-04-14 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:54:05 - End Time 2025-04-14 07:54:05 [2025-04-14 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904842', 'tblTempUsageDetail_20' ) start [2025-04-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904842', 'tblTempUsageDetail_20' ) end [2025-04-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904842', 'tblTempVendorCDR_20' ) start [2025-04-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904842', 'tblTempVendorCDR_20' ) end [2025-04-14 07:54:18] Production.INFO: ProcessCDR(1,14904842,1,1,2) [2025-04-14 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904842', 'tblTempUsageDetail_20' ) start [2025-04-14 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904842', 'tblTempUsageDetail_20' ) end [2025-04-14 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:54:21] Production.INFO: ==23870== Releasing lock... [2025-04-14 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:55:05 [end_date_ymd] => 2025-04-14 07:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:55:05' and `end` < '2025-04-14 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-04-14 07:55:18] Production.INFO: count ==88 [2025-04-14 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:55:05 - End Time 2025-04-14 07:55:05 [2025-04-14 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904847', 'tblTempUsageDetail_20' ) start [2025-04-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904847', 'tblTempUsageDetail_20' ) end [2025-04-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904847', 'tblTempVendorCDR_20' ) start [2025-04-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904847', 'tblTempVendorCDR_20' ) end [2025-04-14 07:55:18] Production.INFO: ProcessCDR(1,14904847,1,1,2) [2025-04-14 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904847', 'tblTempUsageDetail_20' ) start [2025-04-14 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904847', 'tblTempUsageDetail_20' ) end [2025-04-14 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:55:22] Production.INFO: ==23946== Releasing lock... [2025-04-14 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-14 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:56:05 [end_date_ymd] => 2025-04-14 07:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:56:05' and `end` < '2025-04-14 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-04-14 07:56:18] Production.INFO: count ==93 [2025-04-14 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:56:05 - End Time 2025-04-14 07:56:05 [2025-04-14 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904852', 'tblTempUsageDetail_20' ) start [2025-04-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904852', 'tblTempUsageDetail_20' ) end [2025-04-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904852', 'tblTempVendorCDR_20' ) start [2025-04-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904852', 'tblTempVendorCDR_20' ) end [2025-04-14 07:56:18] Production.INFO: ProcessCDR(1,14904852,1,1,2) [2025-04-14 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904852', 'tblTempUsageDetail_20' ) start [2025-04-14 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904852', 'tblTempUsageDetail_20' ) end [2025-04-14 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:56:21] Production.INFO: ==24024== Releasing lock... [2025-04-14 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:57:04 [end_date_ymd] => 2025-04-14 07:57:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:57:04' and `end` < '2025-04-14 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-04-14 07:57:17] Production.INFO: count ==100 [2025-04-14 07:57:17] Production.ERROR: pbx CDR StartTime 2025-04-14 04:57:04 - End Time 2025-04-14 07:57:04 [2025-04-14 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904857', 'tblTempUsageDetail_20' ) start [2025-04-14 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904857', 'tblTempUsageDetail_20' ) end [2025-04-14 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904857', 'tblTempVendorCDR_20' ) start [2025-04-14 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904857', 'tblTempVendorCDR_20' ) end [2025-04-14 07:57:17] Production.INFO: ProcessCDR(1,14904857,1,1,2) [2025-04-14 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904857', 'tblTempUsageDetail_20' ) start [2025-04-14 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904857', 'tblTempUsageDetail_20' ) end [2025-04-14 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:57:20] Production.INFO: ==24101== Releasing lock... [2025-04-14 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:57:20] Production.INFO: 29 MB #Memory Used# [2025-04-14 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:58:05 [end_date_ymd] => 2025-04-14 07:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 04:58:05' and `end` < '2025-04-14 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-04-14 07:58:17] Production.INFO: count ==101 [2025-04-14 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:58:05 - End Time 2025-04-14 07:58:05 [2025-04-14 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904862', 'tblTempUsageDetail_20' ) start [2025-04-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904862', 'tblTempUsageDetail_20' ) end [2025-04-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904862', 'tblTempVendorCDR_20' ) start [2025-04-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904862', 'tblTempVendorCDR_20' ) end [2025-04-14 07:58:18] Production.INFO: ProcessCDR(1,14904862,1,1,2) [2025-04-14 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904862', 'tblTempUsageDetail_20' ) start [2025-04-14 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904862', 'tblTempUsageDetail_20' ) end [2025-04-14 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:58:22] Production.INFO: ==24174== Releasing lock... [2025-04-14 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:58:22] Production.INFO: 29 MB #Memory Used# [2025-04-14 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 04:59:05 [end_date_ymd] => 2025-04-14 07:59:05 [RateCDR] => 1 ) [2025-04-14 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 04:59:05' and `end` < '2025-04-14 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 07:59:18] Production.INFO: count ==100 [2025-04-14 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 04:59:05 - End Time 2025-04-14 07:59:05 [2025-04-14 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904867', 'tblTempUsageDetail_20' ) start [2025-04-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904867', 'tblTempUsageDetail_20' ) end [2025-04-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904867', 'tblTempVendorCDR_20' ) start [2025-04-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904867', 'tblTempVendorCDR_20' ) end [2025-04-14 07:59:18] Production.INFO: ProcessCDR(1,14904867,1,1,2) [2025-04-14 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904867', 'tblTempUsageDetail_20' ) start [2025-04-14 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904867', 'tblTempUsageDetail_20' ) end [2025-04-14 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 07:59:21] Production.INFO: ==24246== Releasing lock... [2025-04-14 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 07:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-14 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:00:06 [end_date_ymd] => 2025-04-14 08:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:00:06' and `end` < '2025-04-14 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-04-14 08:00:19] Production.INFO: count ==116 [2025-04-14 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:00:06 - End Time 2025-04-14 08:00:06 [2025-04-14 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904873', 'tblTempUsageDetail_20' ) start [2025-04-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904873', 'tblTempUsageDetail_20' ) end [2025-04-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904873', 'tblTempVendorCDR_20' ) start [2025-04-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904873', 'tblTempVendorCDR_20' ) end [2025-04-14 08:00:19] Production.INFO: ProcessCDR(1,14904873,1,1,2) [2025-04-14 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904873', 'tblTempUsageDetail_20' ) start [2025-04-14 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904873', 'tblTempUsageDetail_20' ) end [2025-04-14 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:00:22] Production.INFO: ==24321== Releasing lock... [2025-04-14 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:01:05 [end_date_ymd] => 2025-04-14 08:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:01:05' and `end` < '2025-04-14 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-04-14 08:01:18] Production.INFO: count ==142 [2025-04-14 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:01:05 - End Time 2025-04-14 08:01:05 [2025-04-14 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904878', 'tblTempUsageDetail_20' ) start [2025-04-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904878', 'tblTempUsageDetail_20' ) end [2025-04-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904878', 'tblTempVendorCDR_20' ) start [2025-04-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904878', 'tblTempVendorCDR_20' ) end [2025-04-14 08:01:18] Production.INFO: ProcessCDR(1,14904878,1,1,2) [2025-04-14 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904878', 'tblTempUsageDetail_20' ) start [2025-04-14 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904878', 'tblTempUsageDetail_20' ) end [2025-04-14 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:01:23] Production.INFO: ==24409== Releasing lock... [2025-04-14 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:01:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-14 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:02:05 [end_date_ymd] => 2025-04-14 08:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:02:05' and `end` < '2025-04-14 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-04-14 08:02:18] Production.INFO: count ==147 [2025-04-14 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:02:05 - End Time 2025-04-14 08:02:05 [2025-04-14 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904883', 'tblTempUsageDetail_20' ) start [2025-04-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904883', 'tblTempUsageDetail_20' ) end [2025-04-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904883', 'tblTempVendorCDR_20' ) start [2025-04-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904883', 'tblTempVendorCDR_20' ) end [2025-04-14 08:02:18] Production.INFO: ProcessCDR(1,14904883,1,1,2) [2025-04-14 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904883', 'tblTempUsageDetail_20' ) start [2025-04-14 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904883', 'tblTempUsageDetail_20' ) end [2025-04-14 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:02:21] Production.INFO: ==24484== Releasing lock... [2025-04-14 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:03:05 [end_date_ymd] => 2025-04-14 08:03:05 [RateCDR] => 1 ) [2025-04-14 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:03:05' and `end` < '2025-04-14 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:03:18] Production.INFO: count ==153 [2025-04-14 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:03:05 - End Time 2025-04-14 08:03:05 [2025-04-14 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904888', 'tblTempUsageDetail_20' ) start [2025-04-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904888', 'tblTempUsageDetail_20' ) end [2025-04-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904888', 'tblTempVendorCDR_20' ) start [2025-04-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904888', 'tblTempVendorCDR_20' ) end [2025-04-14 08:03:18] Production.INFO: ProcessCDR(1,14904888,1,1,2) [2025-04-14 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904888', 'tblTempUsageDetail_20' ) start [2025-04-14 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904888', 'tblTempUsageDetail_20' ) end [2025-04-14 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:03:22] Production.INFO: ==24594== Releasing lock... [2025-04-14 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:04:05 [end_date_ymd] => 2025-04-14 08:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:04:05' and `end` < '2025-04-14 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-04-14 08:04:17] Production.INFO: count ==159 [2025-04-14 08:04:17] Production.ERROR: pbx CDR StartTime 2025-04-14 05:04:05 - End Time 2025-04-14 08:04:05 [2025-04-14 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904893', 'tblTempUsageDetail_20' ) start [2025-04-14 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904893', 'tblTempUsageDetail_20' ) end [2025-04-14 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904893', 'tblTempVendorCDR_20' ) start [2025-04-14 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904893', 'tblTempVendorCDR_20' ) end [2025-04-14 08:04:17] Production.INFO: ProcessCDR(1,14904893,1,1,2) [2025-04-14 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904893', 'tblTempUsageDetail_20' ) start [2025-04-14 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904893', 'tblTempUsageDetail_20' ) end [2025-04-14 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:04:22] Production.INFO: ==24670== Releasing lock... [2025-04-14 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:05:05 [end_date_ymd] => 2025-04-14 08:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:05:05' and `end` < '2025-04-14 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-04-14 08:05:18] Production.INFO: count ==160 [2025-04-14 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:05:05 - End Time 2025-04-14 08:05:05 [2025-04-14 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904898', 'tblTempUsageDetail_20' ) start [2025-04-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904898', 'tblTempUsageDetail_20' ) end [2025-04-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904898', 'tblTempVendorCDR_20' ) start [2025-04-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904898', 'tblTempVendorCDR_20' ) end [2025-04-14 08:05:18] Production.INFO: ProcessCDR(1,14904898,1,1,2) [2025-04-14 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904898', 'tblTempUsageDetail_20' ) start [2025-04-14 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904898', 'tblTempUsageDetail_20' ) end [2025-04-14 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:05:23] Production.INFO: ==24741== Releasing lock... [2025-04-14 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:05:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-14 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:06:05 [end_date_ymd] => 2025-04-14 08:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:06:05' and `end` < '2025-04-14 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-04-14 08:06:18] Production.INFO: count ==174 [2025-04-14 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:06:05 - End Time 2025-04-14 08:06:05 [2025-04-14 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904903', 'tblTempUsageDetail_20' ) start [2025-04-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904903', 'tblTempUsageDetail_20' ) end [2025-04-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904903', 'tblTempVendorCDR_20' ) start [2025-04-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904903', 'tblTempVendorCDR_20' ) end [2025-04-14 08:06:18] Production.INFO: ProcessCDR(1,14904903,1,1,2) [2025-04-14 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904903', 'tblTempUsageDetail_20' ) start [2025-04-14 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904903', 'tblTempUsageDetail_20' ) end [2025-04-14 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:06:23] Production.INFO: ==24814== Releasing lock... [2025-04-14 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:06:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-14 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:07:05 [end_date_ymd] => 2025-04-14 08:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:07:05' and `end` < '2025-04-14 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-04-14 08:07:18] Production.INFO: count ==186 [2025-04-14 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:07:05 - End Time 2025-04-14 08:07:05 [2025-04-14 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904908', 'tblTempUsageDetail_20' ) start [2025-04-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904908', 'tblTempUsageDetail_20' ) end [2025-04-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904908', 'tblTempVendorCDR_20' ) start [2025-04-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904908', 'tblTempVendorCDR_20' ) end [2025-04-14 08:07:18] Production.INFO: ProcessCDR(1,14904908,1,1,2) [2025-04-14 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904908', 'tblTempUsageDetail_20' ) start [2025-04-14 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904908', 'tblTempUsageDetail_20' ) end [2025-04-14 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:07:21] Production.INFO: ==24884== Releasing lock... [2025-04-14 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:07:21] Production.INFO: 30 MB #Memory Used# [2025-04-14 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:08:05 [end_date_ymd] => 2025-04-14 08:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:08:05' and `end` < '2025-04-14 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-04-14 08:08:18] Production.INFO: count ==190 [2025-04-14 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:08:05 - End Time 2025-04-14 08:08:05 [2025-04-14 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904913', 'tblTempUsageDetail_20' ) start [2025-04-14 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904913', 'tblTempUsageDetail_20' ) end [2025-04-14 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904913', 'tblTempVendorCDR_20' ) start [2025-04-14 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904913', 'tblTempVendorCDR_20' ) end [2025-04-14 08:08:18] Production.INFO: ProcessCDR(1,14904913,1,1,2) [2025-04-14 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904913', 'tblTempUsageDetail_20' ) start [2025-04-14 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904913', 'tblTempUsageDetail_20' ) end [2025-04-14 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:08:22] Production.INFO: ==24959== Releasing lock... [2025-04-14 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-14 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:09:05 [end_date_ymd] => 2025-04-14 08:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:09:05' and `end` < '2025-04-14 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-04-14 08:09:18] Production.INFO: count ==190 [2025-04-14 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:09:05 - End Time 2025-04-14 08:09:05 [2025-04-14 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904918', 'tblTempUsageDetail_20' ) start [2025-04-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904918', 'tblTempUsageDetail_20' ) end [2025-04-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904918', 'tblTempVendorCDR_20' ) start [2025-04-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904918', 'tblTempVendorCDR_20' ) end [2025-04-14 08:09:18] Production.INFO: ProcessCDR(1,14904918,1,1,2) [2025-04-14 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904918', 'tblTempUsageDetail_20' ) start [2025-04-14 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904918', 'tblTempUsageDetail_20' ) end [2025-04-14 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:09:21] Production.INFO: ==25028== Releasing lock... [2025-04-14 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-14 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:10:06 [end_date_ymd] => 2025-04-14 08:10:06 [RateCDR] => 1 ) [2025-04-14 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:10:06' and `end` < '2025-04-14 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:10:19] Production.INFO: count ==205 [2025-04-14 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:10:06 - End Time 2025-04-14 08:10:06 [2025-04-14 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904924', 'tblTempUsageDetail_20' ) start [2025-04-14 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904924', 'tblTempUsageDetail_20' ) end [2025-04-14 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904924', 'tblTempVendorCDR_20' ) start [2025-04-14 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904924', 'tblTempVendorCDR_20' ) end [2025-04-14 08:10:19] Production.INFO: ProcessCDR(1,14904924,1,1,2) [2025-04-14 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904924', 'tblTempUsageDetail_20' ) start [2025-04-14 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904924', 'tblTempUsageDetail_20' ) end [2025-04-14 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:10:22] Production.INFO: ==25106== Releasing lock... [2025-04-14 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:10:22] Production.INFO: 30 MB #Memory Used# [2025-04-14 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:11:04 [end_date_ymd] => 2025-04-14 08:11:04 [RateCDR] => 1 ) [2025-04-14 08: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-04-14 05:11:04' and `end` < '2025-04-14 08: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-04-14 08:11:17] Production.INFO: count ==227 [2025-04-14 08:11:17] Production.ERROR: pbx CDR StartTime 2025-04-14 05:11:04 - End Time 2025-04-14 08:11:04 [2025-04-14 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904929', 'tblTempUsageDetail_20' ) start [2025-04-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904929', 'tblTempUsageDetail_20' ) end [2025-04-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904929', 'tblTempVendorCDR_20' ) start [2025-04-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904929', 'tblTempVendorCDR_20' ) end [2025-04-14 08:11:17] Production.INFO: ProcessCDR(1,14904929,1,1,2) [2025-04-14 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904929', 'tblTempUsageDetail_20' ) start [2025-04-14 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904929', 'tblTempUsageDetail_20' ) end [2025-04-14 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:11:21] Production.INFO: ==25184== Releasing lock... [2025-04-14 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-14 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:12:05 [end_date_ymd] => 2025-04-14 08:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:12:05' and `end` < '2025-04-14 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-04-14 08:12:18] Production.INFO: count ==228 [2025-04-14 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:12:05 - End Time 2025-04-14 08:12:05 [2025-04-14 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904934', 'tblTempUsageDetail_20' ) start [2025-04-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904934', 'tblTempUsageDetail_20' ) end [2025-04-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904934', 'tblTempVendorCDR_20' ) start [2025-04-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904934', 'tblTempVendorCDR_20' ) end [2025-04-14 08:12:18] Production.INFO: ProcessCDR(1,14904934,1,1,2) [2025-04-14 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904934', 'tblTempUsageDetail_20' ) start [2025-04-14 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904934', 'tblTempUsageDetail_20' ) end [2025-04-14 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:12:23] Production.INFO: ==25259== Releasing lock... [2025-04-14 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:12:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-14 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:13:05 [end_date_ymd] => 2025-04-14 08:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:13:05' and `end` < '2025-04-14 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-04-14 08:13:17] Production.INFO: count ==238 [2025-04-14 08:13:17] Production.ERROR: pbx CDR StartTime 2025-04-14 05:13:05 - End Time 2025-04-14 08:13:05 [2025-04-14 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904939', 'tblTempUsageDetail_20' ) start [2025-04-14 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904939', 'tblTempUsageDetail_20' ) end [2025-04-14 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904939', 'tblTempVendorCDR_20' ) start [2025-04-14 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904939', 'tblTempVendorCDR_20' ) end [2025-04-14 08:13:17] Production.INFO: ProcessCDR(1,14904939,1,1,2) [2025-04-14 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904939', 'tblTempUsageDetail_20' ) start [2025-04-14 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904939', 'tblTempUsageDetail_20' ) end [2025-04-14 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:13:21] Production.INFO: ==25331== Releasing lock... [2025-04-14 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-14 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:14:05 [end_date_ymd] => 2025-04-14 08:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:14:05' and `end` < '2025-04-14 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-04-14 08:14:18] Production.INFO: count ==239 [2025-04-14 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:14:05 - End Time 2025-04-14 08:14:05 [2025-04-14 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904944', 'tblTempUsageDetail_20' ) start [2025-04-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904944', 'tblTempUsageDetail_20' ) end [2025-04-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904944', 'tblTempVendorCDR_20' ) start [2025-04-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904944', 'tblTempVendorCDR_20' ) end [2025-04-14 08:14:18] Production.INFO: ProcessCDR(1,14904944,1,1,2) [2025-04-14 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904944', 'tblTempUsageDetail_20' ) start [2025-04-14 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904944', 'tblTempUsageDetail_20' ) end [2025-04-14 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:14:23] Production.INFO: ==25405== Releasing lock... [2025-04-14 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:14:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-14 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:15:06 [end_date_ymd] => 2025-04-14 08:15:06 [RateCDR] => 1 ) [2025-04-14 08: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-04-14 05:15:06' and `end` < '2025-04-14 08: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-04-14 08:15:19] Production.INFO: count ==267 [2025-04-14 08:15:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:15:06 - End Time 2025-04-14 08:15:06 [2025-04-14 08:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904949', 'tblTempUsageDetail_20' ) start [2025-04-14 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904949', 'tblTempUsageDetail_20' ) end [2025-04-14 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904949', 'tblTempVendorCDR_20' ) start [2025-04-14 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904949', 'tblTempVendorCDR_20' ) end [2025-04-14 08:15:19] Production.INFO: ProcessCDR(1,14904949,1,1,2) [2025-04-14 08:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904949', 'tblTempUsageDetail_20' ) start [2025-04-14 08:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904949', 'tblTempUsageDetail_20' ) end [2025-04-14 08:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:15:24] Production.INFO: ==25478== Releasing lock... [2025-04-14 08:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:15:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-14 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:16:05 [end_date_ymd] => 2025-04-14 08:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:16:05' and `end` < '2025-04-14 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-04-14 08:16:18] Production.INFO: count ==279 [2025-04-14 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:16:05 - End Time 2025-04-14 08:16:05 [2025-04-14 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904954', 'tblTempUsageDetail_20' ) start [2025-04-14 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904954', 'tblTempUsageDetail_20' ) end [2025-04-14 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904954', 'tblTempVendorCDR_20' ) start [2025-04-14 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904954', 'tblTempVendorCDR_20' ) end [2025-04-14 08:16:18] Production.INFO: ProcessCDR(1,14904954,1,1,2) [2025-04-14 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904954', 'tblTempUsageDetail_20' ) start [2025-04-14 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904954', 'tblTempUsageDetail_20' ) end [2025-04-14 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:16:23] Production.INFO: ==25551== Releasing lock... [2025-04-14 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:16:23] Production.INFO: 31 MB #Memory Used# [2025-04-14 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:17:06 [end_date_ymd] => 2025-04-14 08:17:06 [RateCDR] => 1 ) [2025-04-14 08: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-04-14 05:17:06' and `end` < '2025-04-14 08: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-04-14 08:17:18] Production.INFO: count ==279 [2025-04-14 08:17:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:17:06 - End Time 2025-04-14 08:17:06 [2025-04-14 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904959', 'tblTempUsageDetail_20' ) start [2025-04-14 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904959', 'tblTempUsageDetail_20' ) end [2025-04-14 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904959', 'tblTempVendorCDR_20' ) start [2025-04-14 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904959', 'tblTempVendorCDR_20' ) end [2025-04-14 08:17:19] Production.INFO: ProcessCDR(1,14904959,1,1,2) [2025-04-14 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904959', 'tblTempUsageDetail_20' ) start [2025-04-14 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904959', 'tblTempUsageDetail_20' ) end [2025-04-14 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:17:22] Production.INFO: ==25626== Releasing lock... [2025-04-14 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:17:22] Production.INFO: 31 MB #Memory Used# [2025-04-14 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:18:05 [end_date_ymd] => 2025-04-14 08:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:18:05' and `end` < '2025-04-14 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-04-14 08:18:17] Production.INFO: count ==281 [2025-04-14 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:18:05 - End Time 2025-04-14 08:18:05 [2025-04-14 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904964', 'tblTempUsageDetail_20' ) start [2025-04-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904964', 'tblTempUsageDetail_20' ) end [2025-04-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904964', 'tblTempVendorCDR_20' ) start [2025-04-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904964', 'tblTempVendorCDR_20' ) end [2025-04-14 08:18:18] Production.INFO: ProcessCDR(1,14904964,1,1,2) [2025-04-14 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904964', 'tblTempUsageDetail_20' ) start [2025-04-14 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904964', 'tblTempUsageDetail_20' ) end [2025-04-14 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:18:21] Production.INFO: ==25696== Releasing lock... [2025-04-14 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-14 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:19:05 [end_date_ymd] => 2025-04-14 08:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:19:05' and `end` < '2025-04-14 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-04-14 08:19:18] Production.INFO: count ==281 [2025-04-14 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:19:05 - End Time 2025-04-14 08:19:05 [2025-04-14 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904969', 'tblTempUsageDetail_20' ) start [2025-04-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904969', 'tblTempUsageDetail_20' ) end [2025-04-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904969', 'tblTempVendorCDR_20' ) start [2025-04-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904969', 'tblTempVendorCDR_20' ) end [2025-04-14 08:19:18] Production.INFO: ProcessCDR(1,14904969,1,1,2) [2025-04-14 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904969', 'tblTempUsageDetail_20' ) start [2025-04-14 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904969', 'tblTempUsageDetail_20' ) end [2025-04-14 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:19:22] Production.INFO: ==25810== Releasing lock... [2025-04-14 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-14 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:20:05 [end_date_ymd] => 2025-04-14 08:20:05 [RateCDR] => 1 ) [2025-04-14 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:20:05' and `end` < '2025-04-14 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:20:18] Production.INFO: count ==295 [2025-04-14 08:20:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:20:05 - End Time 2025-04-14 08:20:05 [2025-04-14 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904974', 'tblTempUsageDetail_20' ) start [2025-04-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904974', 'tblTempUsageDetail_20' ) end [2025-04-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904974', 'tblTempVendorCDR_20' ) start [2025-04-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904974', 'tblTempVendorCDR_20' ) end [2025-04-14 08:20:18] Production.INFO: ProcessCDR(1,14904974,1,1,2) [2025-04-14 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904974', 'tblTempUsageDetail_20' ) start [2025-04-14 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904974', 'tblTempUsageDetail_20' ) end [2025-04-14 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:20:23] Production.INFO: ==25885== Releasing lock... [2025-04-14 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-14 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:21:05 [end_date_ymd] => 2025-04-14 08:21:05 [RateCDR] => 1 ) [2025-04-14 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:21:05' and `end` < '2025-04-14 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:21:18] Production.INFO: count ==315 [2025-04-14 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:21:05 - End Time 2025-04-14 08:21:05 [2025-04-14 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904980', 'tblTempUsageDetail_20' ) start [2025-04-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904980', 'tblTempUsageDetail_20' ) end [2025-04-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904980', 'tblTempVendorCDR_20' ) start [2025-04-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904980', 'tblTempVendorCDR_20' ) end [2025-04-14 08:21:18] Production.INFO: ProcessCDR(1,14904980,1,1,2) [2025-04-14 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904980', 'tblTempUsageDetail_20' ) start [2025-04-14 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904980', 'tblTempUsageDetail_20' ) end [2025-04-14 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:21:23] Production.INFO: ==25961== Releasing lock... [2025-04-14 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:21:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-14 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:22:05 [end_date_ymd] => 2025-04-14 08:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:22:05' and `end` < '2025-04-14 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-04-14 08:22:18] Production.INFO: count ==334 [2025-04-14 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:22:05 - End Time 2025-04-14 08:22:05 [2025-04-14 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904985', 'tblTempUsageDetail_20' ) start [2025-04-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904985', 'tblTempUsageDetail_20' ) end [2025-04-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904985', 'tblTempVendorCDR_20' ) start [2025-04-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904985', 'tblTempVendorCDR_20' ) end [2025-04-14 08:22:18] Production.INFO: ProcessCDR(1,14904985,1,1,2) [2025-04-14 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904985', 'tblTempUsageDetail_20' ) start [2025-04-14 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904985', 'tblTempUsageDetail_20' ) end [2025-04-14 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:22:21] Production.INFO: ==26034== Releasing lock... [2025-04-14 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-14 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:23:05 [end_date_ymd] => 2025-04-14 08:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:23:05' and `end` < '2025-04-14 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-04-14 08:23:18] Production.INFO: count ==339 [2025-04-14 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:23:05 - End Time 2025-04-14 08:23:05 [2025-04-14 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904990', 'tblTempUsageDetail_20' ) start [2025-04-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904990', 'tblTempUsageDetail_20' ) end [2025-04-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904990', 'tblTempVendorCDR_20' ) start [2025-04-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904990', 'tblTempVendorCDR_20' ) end [2025-04-14 08:23:18] Production.INFO: ProcessCDR(1,14904990,1,1,2) [2025-04-14 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904990', 'tblTempUsageDetail_20' ) start [2025-04-14 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904990', 'tblTempUsageDetail_20' ) end [2025-04-14 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:23:21] Production.INFO: ==26107== Releasing lock... [2025-04-14 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-14 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:24:05 [end_date_ymd] => 2025-04-14 08:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:24:05' and `end` < '2025-04-14 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-04-14 08:24:18] Production.INFO: count ==344 [2025-04-14 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:24:05 - End Time 2025-04-14 08:24:05 [2025-04-14 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904995', 'tblTempUsageDetail_20' ) start [2025-04-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14904995', 'tblTempUsageDetail_20' ) end [2025-04-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904995', 'tblTempVendorCDR_20' ) start [2025-04-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14904995', 'tblTempVendorCDR_20' ) end [2025-04-14 08:24:18] Production.INFO: ProcessCDR(1,14904995,1,1,2) [2025-04-14 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14904995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14904995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14904995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14904995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904995', 'tblTempUsageDetail_20' ) start [2025-04-14 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14904995', 'tblTempUsageDetail_20' ) end [2025-04-14 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:24:21] Production.INFO: ==26184== Releasing lock... [2025-04-14 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:24:21] Production.INFO: 31 MB #Memory Used# [2025-04-14 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:25:04 [end_date_ymd] => 2025-04-14 08:25:04 [RateCDR] => 1 ) [2025-04-14 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:25:04' and `end` < '2025-04-14 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:25:17] Production.INFO: count ==351 [2025-04-14 08:25:17] Production.ERROR: pbx CDR StartTime 2025-04-14 05:25:04 - End Time 2025-04-14 08:25:04 [2025-04-14 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905000', 'tblTempUsageDetail_20' ) start [2025-04-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905000', 'tblTempUsageDetail_20' ) end [2025-04-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905000', 'tblTempVendorCDR_20' ) start [2025-04-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905000', 'tblTempVendorCDR_20' ) end [2025-04-14 08:25:17] Production.INFO: ProcessCDR(1,14905000,1,1,2) [2025-04-14 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905000', 'tblTempUsageDetail_20' ) start [2025-04-14 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905000', 'tblTempUsageDetail_20' ) end [2025-04-14 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:25:22] Production.INFO: ==26256== Releasing lock... [2025-04-14 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:25:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-14 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:26:06 [end_date_ymd] => 2025-04-14 08:26:06 [RateCDR] => 1 ) [2025-04-14 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:26:06' and `end` < '2025-04-14 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:26:19] Production.INFO: count ==364 [2025-04-14 08:26:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:26:06 - End Time 2025-04-14 08:26:06 [2025-04-14 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905005', 'tblTempUsageDetail_20' ) start [2025-04-14 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905005', 'tblTempUsageDetail_20' ) end [2025-04-14 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905005', 'tblTempVendorCDR_20' ) start [2025-04-14 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905005', 'tblTempVendorCDR_20' ) end [2025-04-14 08:26:19] Production.INFO: ProcessCDR(1,14905005,1,1,2) [2025-04-14 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905005', 'tblTempUsageDetail_20' ) start [2025-04-14 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905005', 'tblTempUsageDetail_20' ) end [2025-04-14 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:26:23] Production.INFO: ==26326== Releasing lock... [2025-04-14 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:26:23] Production.INFO: 31 MB #Memory Used# [2025-04-14 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:27:05 [end_date_ymd] => 2025-04-14 08:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:27:05' and `end` < '2025-04-14 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-04-14 08:27:18] Production.INFO: count ==370 [2025-04-14 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:27:05 - End Time 2025-04-14 08:27:05 [2025-04-14 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905010', 'tblTempUsageDetail_20' ) start [2025-04-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905010', 'tblTempUsageDetail_20' ) end [2025-04-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905010', 'tblTempVendorCDR_20' ) start [2025-04-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905010', 'tblTempVendorCDR_20' ) end [2025-04-14 08:27:18] Production.INFO: ProcessCDR(1,14905010,1,1,2) [2025-04-14 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905010', 'tblTempUsageDetail_20' ) start [2025-04-14 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905010', 'tblTempUsageDetail_20' ) end [2025-04-14 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:27:22] Production.INFO: ==26403== Releasing lock... [2025-04-14 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-14 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:28:05 [end_date_ymd] => 2025-04-14 08:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:28:05' and `end` < '2025-04-14 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-04-14 08:28:18] Production.INFO: count ==370 [2025-04-14 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:28:05 - End Time 2025-04-14 08:28:05 [2025-04-14 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905015', 'tblTempUsageDetail_20' ) start [2025-04-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905015', 'tblTempUsageDetail_20' ) end [2025-04-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905015', 'tblTempVendorCDR_20' ) start [2025-04-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905015', 'tblTempVendorCDR_20' ) end [2025-04-14 08:28:18] Production.INFO: ProcessCDR(1,14905015,1,1,2) [2025-04-14 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905015', 'tblTempUsageDetail_20' ) start [2025-04-14 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905015', 'tblTempUsageDetail_20' ) end [2025-04-14 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:28:21] Production.INFO: ==26475== Releasing lock... [2025-04-14 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-14 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:29:05 [end_date_ymd] => 2025-04-14 08:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:29:05' and `end` < '2025-04-14 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-04-14 08:29:18] Production.INFO: count ==390 [2025-04-14 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:29:05 - End Time 2025-04-14 08:29:05 [2025-04-14 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905020', 'tblTempUsageDetail_20' ) start [2025-04-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905020', 'tblTempUsageDetail_20' ) end [2025-04-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905020', 'tblTempVendorCDR_20' ) start [2025-04-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905020', 'tblTempVendorCDR_20' ) end [2025-04-14 08:29:18] Production.INFO: ProcessCDR(1,14905020,1,1,2) [2025-04-14 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905020', 'tblTempUsageDetail_20' ) start [2025-04-14 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905020', 'tblTempUsageDetail_20' ) end [2025-04-14 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:29:22] Production.INFO: ==26547== Releasing lock... [2025-04-14 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:29:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:30:06 [end_date_ymd] => 2025-04-14 08:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:30:06' and `end` < '2025-04-14 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-04-14 08:30:19] Production.INFO: count ==409 [2025-04-14 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:30:06 - End Time 2025-04-14 08:30:06 [2025-04-14 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905026', 'tblTempUsageDetail_20' ) start [2025-04-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905026', 'tblTempUsageDetail_20' ) end [2025-04-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905026', 'tblTempVendorCDR_20' ) start [2025-04-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905026', 'tblTempVendorCDR_20' ) end [2025-04-14 08:30:19] Production.INFO: ProcessCDR(1,14905026,1,1,2) [2025-04-14 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905026', 'tblTempUsageDetail_20' ) start [2025-04-14 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905026', 'tblTempUsageDetail_20' ) end [2025-04-14 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:30:24] Production.INFO: ==26623== Releasing lock... [2025-04-14 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:31:06 [end_date_ymd] => 2025-04-14 08:31:06 [RateCDR] => 1 ) [2025-04-14 08: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-04-14 05:31:06' and `end` < '2025-04-14 08: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-04-14 08:31:19] Production.INFO: count ==448 [2025-04-14 08:31:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:31:06 - End Time 2025-04-14 08:31:06 [2025-04-14 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905031', 'tblTempUsageDetail_20' ) start [2025-04-14 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905031', 'tblTempUsageDetail_20' ) end [2025-04-14 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905031', 'tblTempVendorCDR_20' ) start [2025-04-14 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905031', 'tblTempVendorCDR_20' ) end [2025-04-14 08:31:19] Production.INFO: ProcessCDR(1,14905031,1,1,2) [2025-04-14 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905031', 'tblTempUsageDetail_20' ) start [2025-04-14 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905031', 'tblTempUsageDetail_20' ) end [2025-04-14 08:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:31:24] Production.INFO: ==26697== Releasing lock... [2025-04-14 08:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:31:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:32:05 [end_date_ymd] => 2025-04-14 08:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:32:05' and `end` < '2025-04-14 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-04-14 08:32:18] Production.INFO: count ==454 [2025-04-14 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:32:05 - End Time 2025-04-14 08:32:05 [2025-04-14 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905036', 'tblTempUsageDetail_20' ) start [2025-04-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905036', 'tblTempUsageDetail_20' ) end [2025-04-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905036', 'tblTempVendorCDR_20' ) start [2025-04-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905036', 'tblTempVendorCDR_20' ) end [2025-04-14 08:32:18] Production.INFO: ProcessCDR(1,14905036,1,1,2) [2025-04-14 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905036', 'tblTempUsageDetail_20' ) start [2025-04-14 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905036', 'tblTempUsageDetail_20' ) end [2025-04-14 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:32:23] Production.INFO: ==26767== Releasing lock... [2025-04-14 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:32:23] Production.INFO: 32 MB #Memory Used# [2025-04-14 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:33:05 [end_date_ymd] => 2025-04-14 08:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:33:05' and `end` < '2025-04-14 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-04-14 08:33:18] Production.INFO: count ==460 [2025-04-14 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:33:05 - End Time 2025-04-14 08:33:05 [2025-04-14 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905041', 'tblTempUsageDetail_20' ) start [2025-04-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905041', 'tblTempUsageDetail_20' ) end [2025-04-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905041', 'tblTempVendorCDR_20' ) start [2025-04-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905041', 'tblTempVendorCDR_20' ) end [2025-04-14 08:33:18] Production.INFO: ProcessCDR(1,14905041,1,1,2) [2025-04-14 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905041', 'tblTempUsageDetail_20' ) start [2025-04-14 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905041', 'tblTempUsageDetail_20' ) end [2025-04-14 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:33:23] Production.INFO: ==26838== Releasing lock... [2025-04-14 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:33:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:34:05 [end_date_ymd] => 2025-04-14 08:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:34:05' and `end` < '2025-04-14 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-04-14 08:34:18] Production.INFO: count ==465 [2025-04-14 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:34:05 - End Time 2025-04-14 08:34:05 [2025-04-14 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905046', 'tblTempUsageDetail_20' ) start [2025-04-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905046', 'tblTempUsageDetail_20' ) end [2025-04-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905046', 'tblTempVendorCDR_20' ) start [2025-04-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905046', 'tblTempVendorCDR_20' ) end [2025-04-14 08:34:18] Production.INFO: ProcessCDR(1,14905046,1,1,2) [2025-04-14 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905046', 'tblTempUsageDetail_20' ) start [2025-04-14 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905046', 'tblTempUsageDetail_20' ) end [2025-04-14 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:34:21] Production.INFO: ==26952== Releasing lock... [2025-04-14 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:34:21] Production.INFO: 32 MB #Memory Used# [2025-04-14 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:35:05 [end_date_ymd] => 2025-04-14 08:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:35:05' and `end` < '2025-04-14 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-04-14 08:35:18] Production.INFO: count ==473 [2025-04-14 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:35:05 - End Time 2025-04-14 08:35:05 [2025-04-14 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905051', 'tblTempUsageDetail_20' ) start [2025-04-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905051', 'tblTempUsageDetail_20' ) end [2025-04-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905051', 'tblTempVendorCDR_20' ) start [2025-04-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905051', 'tblTempVendorCDR_20' ) end [2025-04-14 08:35:18] Production.INFO: ProcessCDR(1,14905051,1,1,2) [2025-04-14 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905051', 'tblTempUsageDetail_20' ) start [2025-04-14 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905051', 'tblTempUsageDetail_20' ) end [2025-04-14 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:35:23] Production.INFO: ==27026== Releasing lock... [2025-04-14 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:35:23] Production.INFO: 32 MB #Memory Used# [2025-04-14 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:36:06 [end_date_ymd] => 2025-04-14 08:36:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:36:06' and `end` < '2025-04-14 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-04-14 08:36:18] Production.INFO: count ==478 [2025-04-14 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:36:06 - End Time 2025-04-14 08:36:06 [2025-04-14 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905056', 'tblTempUsageDetail_20' ) start [2025-04-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905056', 'tblTempUsageDetail_20' ) end [2025-04-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905056', 'tblTempVendorCDR_20' ) start [2025-04-14 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905056', 'tblTempVendorCDR_20' ) end [2025-04-14 08:36:19] Production.INFO: ProcessCDR(1,14905056,1,1,2) [2025-04-14 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905056', 'tblTempUsageDetail_20' ) start [2025-04-14 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905056', 'tblTempUsageDetail_20' ) end [2025-04-14 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:36:22] Production.INFO: ==27097== Releasing lock... [2025-04-14 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:37:05 [end_date_ymd] => 2025-04-14 08:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:37:05' and `end` < '2025-04-14 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-04-14 08:37:18] Production.INFO: count ==478 [2025-04-14 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:37:05 - End Time 2025-04-14 08:37:05 [2025-04-14 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905061', 'tblTempUsageDetail_20' ) start [2025-04-14 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905061', 'tblTempUsageDetail_20' ) end [2025-04-14 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905061', 'tblTempVendorCDR_20' ) start [2025-04-14 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905061', 'tblTempVendorCDR_20' ) end [2025-04-14 08:37:18] Production.INFO: ProcessCDR(1,14905061,1,1,2) [2025-04-14 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905061', 'tblTempUsageDetail_20' ) start [2025-04-14 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905061', 'tblTempUsageDetail_20' ) end [2025-04-14 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:37:21] Production.INFO: ==27175== Releasing lock... [2025-04-14 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:38:06 [end_date_ymd] => 2025-04-14 08:38:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:38:06' and `end` < '2025-04-14 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-04-14 08:38:18] Production.INFO: count ==480 [2025-04-14 08:38:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:38:06 - End Time 2025-04-14 08:38:06 [2025-04-14 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905066', 'tblTempUsageDetail_20' ) start [2025-04-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905066', 'tblTempUsageDetail_20' ) end [2025-04-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905066', 'tblTempVendorCDR_20' ) start [2025-04-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905066', 'tblTempVendorCDR_20' ) end [2025-04-14 08:38:19] Production.INFO: ProcessCDR(1,14905066,1,1,2) [2025-04-14 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905066', 'tblTempUsageDetail_20' ) start [2025-04-14 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905066', 'tblTempUsageDetail_20' ) end [2025-04-14 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:38:23] Production.INFO: ==27246== Releasing lock... [2025-04-14 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:38:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:39:04 [end_date_ymd] => 2025-04-14 08:39:04 [RateCDR] => 1 ) [2025-04-14 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:39:04' and `end` < '2025-04-14 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:39:17] Production.INFO: count ==492 [2025-04-14 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:39:04 - End Time 2025-04-14 08:39:04 [2025-04-14 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905071', 'tblTempUsageDetail_20' ) start [2025-04-14 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905071', 'tblTempUsageDetail_20' ) end [2025-04-14 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905071', 'tblTempVendorCDR_20' ) start [2025-04-14 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905071', 'tblTempVendorCDR_20' ) end [2025-04-14 08:39:18] Production.INFO: ProcessCDR(1,14905071,1,1,2) [2025-04-14 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905071', 'tblTempUsageDetail_20' ) start [2025-04-14 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905071', 'tblTempUsageDetail_20' ) end [2025-04-14 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:39:21] Production.INFO: ==27317== Releasing lock... [2025-04-14 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:40:06 [end_date_ymd] => 2025-04-14 08:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:40:06' and `end` < '2025-04-14 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-04-14 08:40:19] Production.INFO: count ==513 [2025-04-14 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:40:06 - End Time 2025-04-14 08:40:06 [2025-04-14 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905077', 'tblTempUsageDetail_20' ) start [2025-04-14 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905077', 'tblTempUsageDetail_20' ) end [2025-04-14 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905077', 'tblTempVendorCDR_20' ) start [2025-04-14 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905077', 'tblTempVendorCDR_20' ) end [2025-04-14 08:40:19] Production.INFO: ProcessCDR(1,14905077,1,1,2) [2025-04-14 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905077', 'tblTempUsageDetail_20' ) start [2025-04-14 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905077', 'tblTempUsageDetail_20' ) end [2025-04-14 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:40:24] Production.INFO: ==27396== Releasing lock... [2025-04-14 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:40:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:41:04 [end_date_ymd] => 2025-04-14 08:41:04 [RateCDR] => 1 ) [2025-04-14 08: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-04-14 05:41:04' and `end` < '2025-04-14 08: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-04-14 08:41:17] Production.INFO: count ==547 [2025-04-14 08:41:17] Production.ERROR: pbx CDR StartTime 2025-04-14 05:41:04 - End Time 2025-04-14 08:41:04 [2025-04-14 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905082', 'tblTempUsageDetail_20' ) start [2025-04-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905082', 'tblTempUsageDetail_20' ) end [2025-04-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905082', 'tblTempVendorCDR_20' ) start [2025-04-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905082', 'tblTempVendorCDR_20' ) end [2025-04-14 08:41:17] Production.INFO: ProcessCDR(1,14905082,1,1,2) [2025-04-14 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905082', 'tblTempUsageDetail_20' ) start [2025-04-14 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905082', 'tblTempUsageDetail_20' ) end [2025-04-14 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:41:22] Production.INFO: ==27469== Releasing lock... [2025-04-14 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:42:05 [end_date_ymd] => 2025-04-14 08:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:42:05' and `end` < '2025-04-14 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-04-14 08:42:18] Production.INFO: count ==556 [2025-04-14 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:42:05 - End Time 2025-04-14 08:42:05 [2025-04-14 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905087', 'tblTempUsageDetail_20' ) start [2025-04-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905087', 'tblTempUsageDetail_20' ) end [2025-04-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905087', 'tblTempVendorCDR_20' ) start [2025-04-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905087', 'tblTempVendorCDR_20' ) end [2025-04-14 08:42:18] Production.INFO: ProcessCDR(1,14905087,1,1,2) [2025-04-14 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905087', 'tblTempUsageDetail_20' ) start [2025-04-14 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905087', 'tblTempUsageDetail_20' ) end [2025-04-14 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:42:23] Production.INFO: ==27542== Releasing lock... [2025-04-14 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:42:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:43:05 [end_date_ymd] => 2025-04-14 08:43:05 [RateCDR] => 1 ) [2025-04-14 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:43:05' and `end` < '2025-04-14 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:43:18] Production.INFO: count ==560 [2025-04-14 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:43:05 - End Time 2025-04-14 08:43:05 [2025-04-14 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905092', 'tblTempUsageDetail_20' ) start [2025-04-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905092', 'tblTempUsageDetail_20' ) end [2025-04-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905092', 'tblTempVendorCDR_20' ) start [2025-04-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905092', 'tblTempVendorCDR_20' ) end [2025-04-14 08:43:18] Production.INFO: ProcessCDR(1,14905092,1,1,2) [2025-04-14 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905092', 'tblTempUsageDetail_20' ) start [2025-04-14 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905092', 'tblTempUsageDetail_20' ) end [2025-04-14 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:43:23] Production.INFO: ==27618== Releasing lock... [2025-04-14 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:44:05 [end_date_ymd] => 2025-04-14 08:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:44:05' and `end` < '2025-04-14 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-04-14 08:44:18] Production.INFO: count ==560 [2025-04-14 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:44:05 - End Time 2025-04-14 08:44:05 [2025-04-14 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905097', 'tblTempUsageDetail_20' ) start [2025-04-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905097', 'tblTempUsageDetail_20' ) end [2025-04-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905097', 'tblTempVendorCDR_20' ) start [2025-04-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905097', 'tblTempVendorCDR_20' ) end [2025-04-14 08:44:18] Production.INFO: ProcessCDR(1,14905097,1,1,2) [2025-04-14 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905097', 'tblTempUsageDetail_20' ) start [2025-04-14 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905097', 'tblTempUsageDetail_20' ) end [2025-04-14 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:44:21] Production.INFO: ==27691== Releasing lock... [2025-04-14 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:45:05 [end_date_ymd] => 2025-04-14 08:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:45:05' and `end` < '2025-04-14 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-04-14 08:45:18] Production.INFO: count ==564 [2025-04-14 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:45:05 - End Time 2025-04-14 08:45:05 [2025-04-14 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905102', 'tblTempUsageDetail_20' ) start [2025-04-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905102', 'tblTempUsageDetail_20' ) end [2025-04-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905102', 'tblTempVendorCDR_20' ) start [2025-04-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905102', 'tblTempVendorCDR_20' ) end [2025-04-14 08:45:18] Production.INFO: ProcessCDR(1,14905102,1,1,2) [2025-04-14 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905102', 'tblTempUsageDetail_20' ) start [2025-04-14 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905102', 'tblTempUsageDetail_20' ) end [2025-04-14 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:45:22] Production.INFO: ==27761== Releasing lock... [2025-04-14 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:46:05 [end_date_ymd] => 2025-04-14 08:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:46:05' and `end` < '2025-04-14 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-04-14 08:46:18] Production.INFO: count ==575 [2025-04-14 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:46:05 - End Time 2025-04-14 08:46:05 [2025-04-14 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905107', 'tblTempUsageDetail_20' ) start [2025-04-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905107', 'tblTempUsageDetail_20' ) end [2025-04-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905107', 'tblTempVendorCDR_20' ) start [2025-04-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905107', 'tblTempVendorCDR_20' ) end [2025-04-14 08:46:18] Production.INFO: ProcessCDR(1,14905107,1,1,2) [2025-04-14 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905107', 'tblTempUsageDetail_20' ) start [2025-04-14 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905107', 'tblTempUsageDetail_20' ) end [2025-04-14 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:46:23] Production.INFO: ==27835== Releasing lock... [2025-04-14 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:46:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-14 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:47:05 [end_date_ymd] => 2025-04-14 08:47:05 [RateCDR] => 1 ) [2025-04-14 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:47:05' and `end` < '2025-04-14 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:47:18] Production.INFO: count ==576 [2025-04-14 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:47:05 - End Time 2025-04-14 08:47:05 [2025-04-14 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905112', 'tblTempUsageDetail_20' ) start [2025-04-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905112', 'tblTempUsageDetail_20' ) end [2025-04-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905112', 'tblTempVendorCDR_20' ) start [2025-04-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905112', 'tblTempVendorCDR_20' ) end [2025-04-14 08:47:18] Production.INFO: ProcessCDR(1,14905112,1,1,2) [2025-04-14 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905112', 'tblTempUsageDetail_20' ) start [2025-04-14 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905112', 'tblTempUsageDetail_20' ) end [2025-04-14 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:47:21] Production.INFO: ==27909== Releasing lock... [2025-04-14 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:47:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:48:05 [end_date_ymd] => 2025-04-14 08:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:48:05' and `end` < '2025-04-14 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-04-14 08:48:18] Production.INFO: count ==582 [2025-04-14 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:48:05 - End Time 2025-04-14 08:48:05 [2025-04-14 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905117', 'tblTempUsageDetail_20' ) start [2025-04-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905117', 'tblTempUsageDetail_20' ) end [2025-04-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905117', 'tblTempVendorCDR_20' ) start [2025-04-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905117', 'tblTempVendorCDR_20' ) end [2025-04-14 08:48:18] Production.INFO: ProcessCDR(1,14905117,1,1,2) [2025-04-14 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905117', 'tblTempUsageDetail_20' ) start [2025-04-14 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905117', 'tblTempUsageDetail_20' ) end [2025-04-14 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:48:23] Production.INFO: ==27978== Releasing lock... [2025-04-14 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:48:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:49:05 [end_date_ymd] => 2025-04-14 08:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:49:05' and `end` < '2025-04-14 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-04-14 08:49:18] Production.INFO: count ==583 [2025-04-14 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:49:05 - End Time 2025-04-14 08:49:05 [2025-04-14 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905122', 'tblTempUsageDetail_20' ) start [2025-04-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905122', 'tblTempUsageDetail_20' ) end [2025-04-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905122', 'tblTempVendorCDR_20' ) start [2025-04-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905122', 'tblTempVendorCDR_20' ) end [2025-04-14 08:49:18] Production.INFO: ProcessCDR(1,14905122,1,1,2) [2025-04-14 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905122', 'tblTempUsageDetail_20' ) start [2025-04-14 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905122', 'tblTempUsageDetail_20' ) end [2025-04-14 08:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:49:24] Production.INFO: ==28086== Releasing lock... [2025-04-14 08:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:49:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:50:06 [end_date_ymd] => 2025-04-14 08:50:06 [RateCDR] => 1 ) [2025-04-14 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:50:06' and `end` < '2025-04-14 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:50:19] Production.INFO: count ==595 [2025-04-14 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:50:06 - End Time 2025-04-14 08:50:06 [2025-04-14 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905128', 'tblTempUsageDetail_20' ) start [2025-04-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905128', 'tblTempUsageDetail_20' ) end [2025-04-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905128', 'tblTempVendorCDR_20' ) start [2025-04-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905128', 'tblTempVendorCDR_20' ) end [2025-04-14 08:50:19] Production.INFO: ProcessCDR(1,14905128,1,1,2) [2025-04-14 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905128', 'tblTempUsageDetail_20' ) start [2025-04-14 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905128', 'tblTempUsageDetail_20' ) end [2025-04-14 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:50:22] Production.INFO: ==28169== Releasing lock... [2025-04-14 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:50:22] Production.INFO: 33 MB #Memory Used# [2025-04-14 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:51:05 [end_date_ymd] => 2025-04-14 08:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:51:05' and `end` < '2025-04-14 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-04-14 08:51:17] Production.INFO: count ==641 [2025-04-14 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:51:05 - End Time 2025-04-14 08:51:05 [2025-04-14 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905133', 'tblTempUsageDetail_20' ) start [2025-04-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905133', 'tblTempUsageDetail_20' ) end [2025-04-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905133', 'tblTempVendorCDR_20' ) start [2025-04-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905133', 'tblTempVendorCDR_20' ) end [2025-04-14 08:51:18] Production.INFO: ProcessCDR(1,14905133,1,1,2) [2025-04-14 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905133', 'tblTempUsageDetail_20' ) start [2025-04-14 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905133', 'tblTempUsageDetail_20' ) end [2025-04-14 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:51:23] Production.INFO: ==28246== Releasing lock... [2025-04-14 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:51:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-14 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:52:05 [end_date_ymd] => 2025-04-14 08:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:52:05' and `end` < '2025-04-14 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-04-14 08:52:18] Production.INFO: count ==646 [2025-04-14 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:52:05 - End Time 2025-04-14 08:52:05 [2025-04-14 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905138', 'tblTempUsageDetail_20' ) start [2025-04-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905138', 'tblTempUsageDetail_20' ) end [2025-04-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905138', 'tblTempVendorCDR_20' ) start [2025-04-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905138', 'tblTempVendorCDR_20' ) end [2025-04-14 08:52:18] Production.INFO: ProcessCDR(1,14905138,1,1,2) [2025-04-14 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905138', 'tblTempUsageDetail_20' ) start [2025-04-14 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905138', 'tblTempUsageDetail_20' ) end [2025-04-14 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:52:23] Production.INFO: ==28318== Releasing lock... [2025-04-14 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:53:05 [end_date_ymd] => 2025-04-14 08:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:53:05' and `end` < '2025-04-14 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-04-14 08:53:18] Production.INFO: count ==654 [2025-04-14 08:53:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:53:05 - End Time 2025-04-14 08:53:05 [2025-04-14 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905143', 'tblTempUsageDetail_20' ) start [2025-04-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905143', 'tblTempUsageDetail_20' ) end [2025-04-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905143', 'tblTempVendorCDR_20' ) start [2025-04-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905143', 'tblTempVendorCDR_20' ) end [2025-04-14 08:53:19] Production.INFO: ProcessCDR(1,14905143,1,1,2) [2025-04-14 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905143', 'tblTempUsageDetail_20' ) start [2025-04-14 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905143', 'tblTempUsageDetail_20' ) end [2025-04-14 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:53:23] Production.INFO: ==28394== Releasing lock... [2025-04-14 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:53:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:54:05 [end_date_ymd] => 2025-04-14 08:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:54:05' and `end` < '2025-04-14 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-04-14 08:54:18] Production.INFO: count ==659 [2025-04-14 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:54:05 - End Time 2025-04-14 08:54:05 [2025-04-14 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905148', 'tblTempUsageDetail_20' ) start [2025-04-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905148', 'tblTempUsageDetail_20' ) end [2025-04-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905148', 'tblTempVendorCDR_20' ) start [2025-04-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905148', 'tblTempVendorCDR_20' ) end [2025-04-14 08:54:18] Production.INFO: ProcessCDR(1,14905148,1,1,2) [2025-04-14 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905148', 'tblTempUsageDetail_20' ) start [2025-04-14 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905148', 'tblTempUsageDetail_20' ) end [2025-04-14 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:54:22] Production.INFO: ==28466== Releasing lock... [2025-04-14 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-14 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:55:05 [end_date_ymd] => 2025-04-14 08:55:05 [RateCDR] => 1 ) [2025-04-14 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:55:05' and `end` < '2025-04-14 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:55:18] Production.INFO: count ==682 [2025-04-14 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:55:05 - End Time 2025-04-14 08:55:05 [2025-04-14 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905153', 'tblTempUsageDetail_20' ) start [2025-04-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905153', 'tblTempUsageDetail_20' ) end [2025-04-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905153', 'tblTempVendorCDR_20' ) start [2025-04-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905153', 'tblTempVendorCDR_20' ) end [2025-04-14 08:55:18] Production.INFO: ProcessCDR(1,14905153,1,1,2) [2025-04-14 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905153', 'tblTempUsageDetail_20' ) start [2025-04-14 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905153', 'tblTempUsageDetail_20' ) end [2025-04-14 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:55:23] Production.INFO: ==28538== Releasing lock... [2025-04-14 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:56:05 [end_date_ymd] => 2025-04-14 08:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:56:05' and `end` < '2025-04-14 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-04-14 08:56:18] Production.INFO: count ==691 [2025-04-14 08:56:19] Production.ERROR: pbx CDR StartTime 2025-04-14 05:56:05 - End Time 2025-04-14 08:56:05 [2025-04-14 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905158', 'tblTempUsageDetail_20' ) start [2025-04-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905158', 'tblTempUsageDetail_20' ) end [2025-04-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905158', 'tblTempVendorCDR_20' ) start [2025-04-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905158', 'tblTempVendorCDR_20' ) end [2025-04-14 08:56:19] Production.INFO: ProcessCDR(1,14905158,1,1,2) [2025-04-14 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905158', 'tblTempUsageDetail_20' ) start [2025-04-14 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905158', 'tblTempUsageDetail_20' ) end [2025-04-14 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:56:22] Production.INFO: ==28609== Releasing lock... [2025-04-14 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:56:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-14 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:57:04 [end_date_ymd] => 2025-04-14 08:57:04 [RateCDR] => 1 ) [2025-04-14 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:57:04' and `end` < '2025-04-14 08:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:57:17] Production.INFO: count ==697 [2025-04-14 08:57:17] Production.ERROR: pbx CDR StartTime 2025-04-14 05:57:04 - End Time 2025-04-14 08:57:04 [2025-04-14 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905163', 'tblTempUsageDetail_20' ) start [2025-04-14 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905163', 'tblTempUsageDetail_20' ) end [2025-04-14 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905163', 'tblTempVendorCDR_20' ) start [2025-04-14 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905163', 'tblTempVendorCDR_20' ) end [2025-04-14 08:57:17] Production.INFO: ProcessCDR(1,14905163,1,1,2) [2025-04-14 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905163', 'tblTempUsageDetail_20' ) start [2025-04-14 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905163', 'tblTempUsageDetail_20' ) end [2025-04-14 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:57:21] Production.INFO: ==28683== Releasing lock... [2025-04-14 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:57:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:58:05 [end_date_ymd] => 2025-04-14 08:58:05 [RateCDR] => 1 ) [2025-04-14 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 05:58:05' and `end` < '2025-04-14 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 08:58:18] Production.INFO: count ==703 [2025-04-14 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:58:05 - End Time 2025-04-14 08:58:05 [2025-04-14 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905168', 'tblTempUsageDetail_20' ) start [2025-04-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905168', 'tblTempUsageDetail_20' ) end [2025-04-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905168', 'tblTempVendorCDR_20' ) start [2025-04-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905168', 'tblTempVendorCDR_20' ) end [2025-04-14 08:58:18] Production.INFO: ProcessCDR(1,14905168,1,1,2) [2025-04-14 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905168', 'tblTempUsageDetail_20' ) start [2025-04-14 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905168', 'tblTempUsageDetail_20' ) end [2025-04-14 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:58:21] Production.INFO: ==28760== Releasing lock... [2025-04-14 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 05:59:05 [end_date_ymd] => 2025-04-14 08:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 05:59:05' and `end` < '2025-04-14 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-04-14 08:59:18] Production.INFO: count ==705 [2025-04-14 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 05:59:05 - End Time 2025-04-14 08:59:05 [2025-04-14 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905173', 'tblTempUsageDetail_20' ) start [2025-04-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905173', 'tblTempUsageDetail_20' ) end [2025-04-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905173', 'tblTempVendorCDR_20' ) start [2025-04-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905173', 'tblTempVendorCDR_20' ) end [2025-04-14 08:59:18] Production.INFO: ProcessCDR(1,14905173,1,1,2) [2025-04-14 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905173', 'tblTempUsageDetail_20' ) start [2025-04-14 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905173', 'tblTempUsageDetail_20' ) end [2025-04-14 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 08:59:23] Production.INFO: ==28835== Releasing lock... [2025-04-14 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 08:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:00:05 [end_date_ymd] => 2025-04-14 09:00:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:00:05' and `end` < '2025-04-14 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-04-14 09:00:18] Production.INFO: count ==721 [2025-04-14 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:00:05 - End Time 2025-04-14 09:00:05 [2025-04-14 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905178', 'tblTempUsageDetail_20' ) start [2025-04-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905178', 'tblTempUsageDetail_20' ) end [2025-04-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905178', 'tblTempVendorCDR_20' ) start [2025-04-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905178', 'tblTempVendorCDR_20' ) end [2025-04-14 09:00:19] Production.INFO: ProcessCDR(1,14905178,1,1,2) [2025-04-14 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905178', 'tblTempUsageDetail_20' ) start [2025-04-14 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905178', 'tblTempUsageDetail_20' ) end [2025-04-14 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:00:23] Production.INFO: ==28910== Releasing lock... [2025-04-14 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:00:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-14 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:01:05 [end_date_ymd] => 2025-04-14 09:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:01:05' and `end` < '2025-04-14 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-04-14 09:01:18] Production.INFO: count ==774 [2025-04-14 09:01:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:01:05 - End Time 2025-04-14 09:01:05 [2025-04-14 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905184', 'tblTempUsageDetail_20' ) start [2025-04-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905184', 'tblTempUsageDetail_20' ) end [2025-04-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905184', 'tblTempVendorCDR_20' ) start [2025-04-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905184', 'tblTempVendorCDR_20' ) end [2025-04-14 09:01:19] Production.INFO: ProcessCDR(1,14905184,1,1,2) [2025-04-14 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905184', 'tblTempUsageDetail_20' ) start [2025-04-14 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905184', 'tblTempUsageDetail_20' ) end [2025-04-14 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:01:23] Production.INFO: ==28994== Releasing lock... [2025-04-14 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:01:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 09:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:02:04 [end_date_ymd] => 2025-04-14 09:02:04 [RateCDR] => 1 ) [2025-04-14 09: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-04-14 06:02:04' and `end` < '2025-04-14 09: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-04-14 09:02:17] Production.INFO: count ==777 [2025-04-14 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:02:04 - End Time 2025-04-14 09:02:04 [2025-04-14 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905189', 'tblTempUsageDetail_20' ) start [2025-04-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905189', 'tblTempUsageDetail_20' ) end [2025-04-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905189', 'tblTempVendorCDR_20' ) start [2025-04-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905189', 'tblTempVendorCDR_20' ) end [2025-04-14 09:02:18] Production.INFO: ProcessCDR(1,14905189,1,1,2) [2025-04-14 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905189', 'tblTempUsageDetail_20' ) start [2025-04-14 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905189', 'tblTempUsageDetail_20' ) end [2025-04-14 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:02:21] Production.INFO: ==29067== Releasing lock... [2025-04-14 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:02:21] Production.INFO: 34 MB #Memory Used# [2025-04-14 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:03:05 [end_date_ymd] => 2025-04-14 09:03:05 [RateCDR] => 1 ) [2025-04-14 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:03:05' and `end` < '2025-04-14 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:03:18] Production.INFO: count ==786 [2025-04-14 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:03:05 - End Time 2025-04-14 09:03:05 [2025-04-14 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905194', 'tblTempUsageDetail_20' ) start [2025-04-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905194', 'tblTempUsageDetail_20' ) end [2025-04-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905194', 'tblTempVendorCDR_20' ) start [2025-04-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905194', 'tblTempVendorCDR_20' ) end [2025-04-14 09:03:19] Production.INFO: ProcessCDR(1,14905194,1,1,2) [2025-04-14 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905194', 'tblTempUsageDetail_20' ) start [2025-04-14 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905194', 'tblTempUsageDetail_20' ) end [2025-04-14 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:03:23] Production.INFO: ==29144== Releasing lock... [2025-04-14 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:03:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:04:05 [end_date_ymd] => 2025-04-14 09:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:04:05' and `end` < '2025-04-14 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-04-14 09:04:18] Production.INFO: count ==806 [2025-04-14 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:04:05 - End Time 2025-04-14 09:04:05 [2025-04-14 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905199', 'tblTempUsageDetail_20' ) start [2025-04-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905199', 'tblTempUsageDetail_20' ) end [2025-04-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905199', 'tblTempVendorCDR_20' ) start [2025-04-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905199', 'tblTempVendorCDR_20' ) end [2025-04-14 09:04:18] Production.INFO: ProcessCDR(1,14905199,1,1,2) [2025-04-14 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905199', 'tblTempUsageDetail_20' ) start [2025-04-14 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905199', 'tblTempUsageDetail_20' ) end [2025-04-14 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:04:23] Production.INFO: ==29215== Releasing lock... [2025-04-14 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:04:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:05:04 [end_date_ymd] => 2025-04-14 09:05:04 [RateCDR] => 1 ) [2025-04-14 09:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:05:04' and `end` < '2025-04-14 09:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:05:17] Production.INFO: count ==811 [2025-04-14 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:05:04 - End Time 2025-04-14 09:05:04 [2025-04-14 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905204', 'tblTempUsageDetail_20' ) start [2025-04-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905204', 'tblTempUsageDetail_20' ) end [2025-04-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905204', 'tblTempVendorCDR_20' ) start [2025-04-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905204', 'tblTempVendorCDR_20' ) end [2025-04-14 09:05:18] Production.INFO: ProcessCDR(1,14905204,1,1,2) [2025-04-14 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905204', 'tblTempUsageDetail_20' ) start [2025-04-14 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905204', 'tblTempUsageDetail_20' ) end [2025-04-14 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:05:22] Production.INFO: ==29331== Releasing lock... [2025-04-14 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:05:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-14 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:06:04 [end_date_ymd] => 2025-04-14 09:06:04 [RateCDR] => 1 ) [2025-04-14 09:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:06:04' and `end` < '2025-04-14 09:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:06:17] Production.INFO: count ==814 [2025-04-14 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:06:04 - End Time 2025-04-14 09:06:04 [2025-04-14 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905209', 'tblTempUsageDetail_20' ) start [2025-04-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905209', 'tblTempUsageDetail_20' ) end [2025-04-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905209', 'tblTempVendorCDR_20' ) start [2025-04-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905209', 'tblTempVendorCDR_20' ) end [2025-04-14 09:06:18] Production.INFO: ProcessCDR(1,14905209,1,1,2) [2025-04-14 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905209', 'tblTempUsageDetail_20' ) start [2025-04-14 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905209', 'tblTempUsageDetail_20' ) end [2025-04-14 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:06:21] Production.INFO: ==29404== Releasing lock... [2025-04-14 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:06:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:07:05 [end_date_ymd] => 2025-04-14 09:07:05 [RateCDR] => 1 ) [2025-04-14 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:07:05' and `end` < '2025-04-14 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:07:18] Production.INFO: count ==825 [2025-04-14 09:07:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:07:05 - End Time 2025-04-14 09:07:05 [2025-04-14 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905214', 'tblTempUsageDetail_20' ) start [2025-04-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905214', 'tblTempUsageDetail_20' ) end [2025-04-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905214', 'tblTempVendorCDR_20' ) start [2025-04-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905214', 'tblTempVendorCDR_20' ) end [2025-04-14 09:07:19] Production.INFO: ProcessCDR(1,14905214,1,1,2) [2025-04-14 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905214', 'tblTempUsageDetail_20' ) start [2025-04-14 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905214', 'tblTempUsageDetail_20' ) end [2025-04-14 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:07:23] Production.INFO: ==29479== Releasing lock... [2025-04-14 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:07:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:08:05 [end_date_ymd] => 2025-04-14 09:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:08:05' and `end` < '2025-04-14 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-04-14 09:08:18] Production.INFO: count ==841 [2025-04-14 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:08:05 - End Time 2025-04-14 09:08:05 [2025-04-14 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905219', 'tblTempUsageDetail_20' ) start [2025-04-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905219', 'tblTempUsageDetail_20' ) end [2025-04-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905219', 'tblTempVendorCDR_20' ) start [2025-04-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905219', 'tblTempVendorCDR_20' ) end [2025-04-14 09:08:18] Production.INFO: ProcessCDR(1,14905219,1,1,2) [2025-04-14 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905219', 'tblTempUsageDetail_20' ) start [2025-04-14 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905219', 'tblTempUsageDetail_20' ) end [2025-04-14 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:08:23] Production.INFO: ==29552== Releasing lock... [2025-04-14 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:08:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:09:05 [end_date_ymd] => 2025-04-14 09:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:09:05' and `end` < '2025-04-14 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-04-14 09:09:18] Production.INFO: count ==865 [2025-04-14 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:09:05 - End Time 2025-04-14 09:09:05 [2025-04-14 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905224', 'tblTempUsageDetail_20' ) start [2025-04-14 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905224', 'tblTempUsageDetail_20' ) end [2025-04-14 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905224', 'tblTempVendorCDR_20' ) start [2025-04-14 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905224', 'tblTempVendorCDR_20' ) end [2025-04-14 09:09:18] Production.INFO: ProcessCDR(1,14905224,1,1,2) [2025-04-14 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905224', 'tblTempUsageDetail_20' ) start [2025-04-14 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905224', 'tblTempUsageDetail_20' ) end [2025-04-14 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:09:23] Production.INFO: ==29621== Releasing lock... [2025-04-14 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-14 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:10:06 [end_date_ymd] => 2025-04-14 09:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:10:06' and `end` < '2025-04-14 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-04-14 09:10:19] Production.INFO: count ==895 [2025-04-14 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:10:06 - End Time 2025-04-14 09:10:06 [2025-04-14 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905230', 'tblTempUsageDetail_20' ) start [2025-04-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905230', 'tblTempUsageDetail_20' ) end [2025-04-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905230', 'tblTempVendorCDR_20' ) start [2025-04-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905230', 'tblTempVendorCDR_20' ) end [2025-04-14 09:10:19] Production.INFO: ProcessCDR(1,14905230,1,1,2) [2025-04-14 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905230', 'tblTempUsageDetail_20' ) start [2025-04-14 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905230', 'tblTempUsageDetail_20' ) end [2025-04-14 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:10:22] Production.INFO: ==29695== Releasing lock... [2025-04-14 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:10:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:11:05 [end_date_ymd] => 2025-04-14 09:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:11:05' and `end` < '2025-04-14 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-04-14 09:11:18] Production.INFO: count ==984 [2025-04-14 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:11:05 - End Time 2025-04-14 09:11:05 [2025-04-14 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905235', 'tblTempUsageDetail_20' ) start [2025-04-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905235', 'tblTempUsageDetail_20' ) end [2025-04-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905235', 'tblTempVendorCDR_20' ) start [2025-04-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905235', 'tblTempVendorCDR_20' ) end [2025-04-14 09:11:18] Production.INFO: ProcessCDR(1,14905235,1,1,2) [2025-04-14 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905235', 'tblTempUsageDetail_20' ) start [2025-04-14 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905235', 'tblTempUsageDetail_20' ) end [2025-04-14 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:11:23] Production.INFO: ==29770== Releasing lock... [2025-04-14 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:11:23] Production.INFO: 36 MB #Memory Used# [2025-04-14 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:12:05 [end_date_ymd] => 2025-04-14 09:12:05 [RateCDR] => 1 ) [2025-04-14 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:12:05' and `end` < '2025-04-14 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:12:18] Production.INFO: count ==1002 [2025-04-14 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:12:05 - End Time 2025-04-14 09:12:05 [2025-04-14 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905240', 'tblTempUsageDetail_20' ) start [2025-04-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905240', 'tblTempUsageDetail_20' ) end [2025-04-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905240', 'tblTempVendorCDR_20' ) start [2025-04-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905240', 'tblTempVendorCDR_20' ) end [2025-04-14 09:12:18] Production.INFO: ProcessCDR(1,14905240,1,1,2) [2025-04-14 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905240', 'tblTempUsageDetail_20' ) start [2025-04-14 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905240', 'tblTempUsageDetail_20' ) end [2025-04-14 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:12:23] Production.INFO: ==29850== Releasing lock... [2025-04-14 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:12:23] Production.INFO: 36 MB #Memory Used# [2025-04-14 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:13:04 [end_date_ymd] => 2025-04-14 09:13:04 [RateCDR] => 1 ) [2025-04-14 09: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-04-14 06:13:04' and `end` < '2025-04-14 09: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-04-14 09:13:17] Production.INFO: count ==1007 [2025-04-14 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:13:04 - End Time 2025-04-14 09:13:04 [2025-04-14 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905245', 'tblTempUsageDetail_20' ) start [2025-04-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905245', 'tblTempUsageDetail_20' ) end [2025-04-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905245', 'tblTempVendorCDR_20' ) start [2025-04-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905245', 'tblTempVendorCDR_20' ) end [2025-04-14 09:13:18] Production.INFO: ProcessCDR(1,14905245,1,1,2) [2025-04-14 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905245', 'tblTempUsageDetail_20' ) start [2025-04-14 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905245', 'tblTempUsageDetail_20' ) end [2025-04-14 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:13:23] Production.INFO: ==29924== Releasing lock... [2025-04-14 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:13:23] Production.INFO: 36 MB #Memory Used# [2025-04-14 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:14:05 [end_date_ymd] => 2025-04-14 09:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:14:05' and `end` < '2025-04-14 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-04-14 09:14:18] Production.INFO: count ==1023 [2025-04-14 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:14:05 - End Time 2025-04-14 09:14:05 [2025-04-14 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905250', 'tblTempUsageDetail_20' ) start [2025-04-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905250', 'tblTempUsageDetail_20' ) end [2025-04-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905250', 'tblTempVendorCDR_20' ) start [2025-04-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905250', 'tblTempVendorCDR_20' ) end [2025-04-14 09:14:18] Production.INFO: ProcessCDR(1,14905250,1,1,2) [2025-04-14 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905250', 'tblTempUsageDetail_20' ) start [2025-04-14 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905250', 'tblTempUsageDetail_20' ) end [2025-04-14 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:14:23] Production.INFO: ==30003== Releasing lock... [2025-04-14 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:15:05 [end_date_ymd] => 2025-04-14 09:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:15:05' and `end` < '2025-04-14 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-04-14 09:15:18] Production.INFO: count ==1024 [2025-04-14 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:15:05 - End Time 2025-04-14 09:15:05 [2025-04-14 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905255', 'tblTempUsageDetail_20' ) start [2025-04-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905255', 'tblTempUsageDetail_20' ) end [2025-04-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905255', 'tblTempVendorCDR_20' ) start [2025-04-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905255', 'tblTempVendorCDR_20' ) end [2025-04-14 09:15:18] Production.INFO: ProcessCDR(1,14905255,1,1,2) [2025-04-14 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905255', 'tblTempUsageDetail_20' ) start [2025-04-14 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905255', 'tblTempUsageDetail_20' ) end [2025-04-14 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:15:23] Production.INFO: ==30074== Releasing lock... [2025-04-14 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:16:05 [end_date_ymd] => 2025-04-14 09:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:16:05' and `end` < '2025-04-14 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-04-14 09:16:18] Production.INFO: count ==1053 [2025-04-14 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:16:05 - End Time 2025-04-14 09:16:05 [2025-04-14 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905260', 'tblTempUsageDetail_20' ) start [2025-04-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905260', 'tblTempUsageDetail_20' ) end [2025-04-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905260', 'tblTempVendorCDR_20' ) start [2025-04-14 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905260', 'tblTempVendorCDR_20' ) end [2025-04-14 09:16:19] Production.INFO: ProcessCDR(1,14905260,1,1,2) [2025-04-14 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905260', 'tblTempUsageDetail_20' ) start [2025-04-14 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905260', 'tblTempUsageDetail_20' ) end [2025-04-14 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:16:24] Production.INFO: ==30153== Releasing lock... [2025-04-14 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:16:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:17:05 [end_date_ymd] => 2025-04-14 09:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:17:05' and `end` < '2025-04-14 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-04-14 09:17:19] Production.INFO: count ==1068 [2025-04-14 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:17:05 - End Time 2025-04-14 09:17:05 [2025-04-14 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905265', 'tblTempUsageDetail_20' ) start [2025-04-14 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905265', 'tblTempUsageDetail_20' ) end [2025-04-14 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905265', 'tblTempVendorCDR_20' ) start [2025-04-14 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905265', 'tblTempVendorCDR_20' ) end [2025-04-14 09:17:19] Production.INFO: ProcessCDR(1,14905265,1,1,2) [2025-04-14 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905265', 'tblTempUsageDetail_20' ) start [2025-04-14 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905265', 'tblTempUsageDetail_20' ) end [2025-04-14 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:17:24] Production.INFO: ==30225== Releasing lock... [2025-04-14 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:17:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-14 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:18:05 [end_date_ymd] => 2025-04-14 09:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:18:05' and `end` < '2025-04-14 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-04-14 09:18:19] Production.INFO: count ==1086 [2025-04-14 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:18:05 - End Time 2025-04-14 09:18:05 [2025-04-14 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905270', 'tblTempUsageDetail_20' ) start [2025-04-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905270', 'tblTempUsageDetail_20' ) end [2025-04-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905270', 'tblTempVendorCDR_20' ) start [2025-04-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905270', 'tblTempVendorCDR_20' ) end [2025-04-14 09:18:19] Production.INFO: ProcessCDR(1,14905270,1,1,2) [2025-04-14 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905270', 'tblTempUsageDetail_20' ) start [2025-04-14 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905270', 'tblTempUsageDetail_20' ) end [2025-04-14 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:18:24] Production.INFO: ==30336== Releasing lock... [2025-04-14 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:18:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:19:05 [end_date_ymd] => 2025-04-14 09:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:19:05' and `end` < '2025-04-14 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-04-14 09:19:18] Production.INFO: count ==1113 [2025-04-14 09:19:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:19:05 - End Time 2025-04-14 09:19:05 [2025-04-14 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905275', 'tblTempUsageDetail_20' ) start [2025-04-14 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905275', 'tblTempUsageDetail_20' ) end [2025-04-14 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905275', 'tblTempVendorCDR_20' ) start [2025-04-14 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905275', 'tblTempVendorCDR_20' ) end [2025-04-14 09:19:19] Production.INFO: ProcessCDR(1,14905275,1,1,2) [2025-04-14 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905275', 'tblTempUsageDetail_20' ) start [2025-04-14 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905275', 'tblTempUsageDetail_20' ) end [2025-04-14 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:19:24] Production.INFO: ==30408== Releasing lock... [2025-04-14 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:19:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:20:05 [end_date_ymd] => 2025-04-14 09:20:05 [RateCDR] => 1 ) [2025-04-14 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:20:05' and `end` < '2025-04-14 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:20:18] Production.INFO: count ==1132 [2025-04-14 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:20:05 - End Time 2025-04-14 09:20:05 [2025-04-14 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905281', 'tblTempUsageDetail_20' ) start [2025-04-14 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905281', 'tblTempUsageDetail_20' ) end [2025-04-14 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905281', 'tblTempVendorCDR_20' ) start [2025-04-14 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905281', 'tblTempVendorCDR_20' ) end [2025-04-14 09:20:19] Production.INFO: ProcessCDR(1,14905281,1,1,2) [2025-04-14 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905281', 'tblTempUsageDetail_20' ) start [2025-04-14 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905281', 'tblTempUsageDetail_20' ) end [2025-04-14 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:20:24] Production.INFO: ==30520== Releasing lock... [2025-04-14 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:20:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-14 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:21:05 [end_date_ymd] => 2025-04-14 09:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:21:05' and `end` < '2025-04-14 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-04-14 09:21:18] Production.INFO: count ==1239 [2025-04-14 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:21:05 - End Time 2025-04-14 09:21:05 [2025-04-14 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905286', 'tblTempUsageDetail_20' ) start [2025-04-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905286', 'tblTempUsageDetail_20' ) end [2025-04-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905286', 'tblTempVendorCDR_20' ) start [2025-04-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905286', 'tblTempVendorCDR_20' ) end [2025-04-14 09:21:19] Production.INFO: ProcessCDR(1,14905286,1,1,2) [2025-04-14 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905286', 'tblTempUsageDetail_20' ) start [2025-04-14 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905286', 'tblTempUsageDetail_20' ) end [2025-04-14 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:21:24] Production.INFO: ==30598== Releasing lock... [2025-04-14 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:21:24] Production.INFO: 38 MB #Memory Used# [2025-04-14 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:22:06 [end_date_ymd] => 2025-04-14 09:22:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:22:06' and `end` < '2025-04-14 09: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-04-14 09:22:19] Production.INFO: count ==1251 [2025-04-14 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:22:06 - End Time 2025-04-14 09:22:06 [2025-04-14 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905291', 'tblTempUsageDetail_20' ) start [2025-04-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905291', 'tblTempUsageDetail_20' ) end [2025-04-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905291', 'tblTempVendorCDR_20' ) start [2025-04-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905291', 'tblTempVendorCDR_20' ) end [2025-04-14 09:22:19] Production.INFO: ProcessCDR(1,14905291,1,1,2) [2025-04-14 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905291', 'tblTempUsageDetail_20' ) start [2025-04-14 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905291', 'tblTempUsageDetail_20' ) end [2025-04-14 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:22:24] Production.INFO: ==30673== Releasing lock... [2025-04-14 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:22:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-14 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:23:05 [end_date_ymd] => 2025-04-14 09:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:23:05' and `end` < '2025-04-14 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-04-14 09:23:18] Production.INFO: count ==1294 [2025-04-14 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:23:05 - End Time 2025-04-14 09:23:05 [2025-04-14 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905296', 'tblTempUsageDetail_20' ) start [2025-04-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905296', 'tblTempUsageDetail_20' ) end [2025-04-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905296', 'tblTempVendorCDR_20' ) start [2025-04-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905296', 'tblTempVendorCDR_20' ) end [2025-04-14 09:23:19] Production.INFO: ProcessCDR(1,14905296,1,1,2) [2025-04-14 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905296', 'tblTempUsageDetail_20' ) start [2025-04-14 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905296', 'tblTempUsageDetail_20' ) end [2025-04-14 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:23:23] Production.INFO: ==30747== Releasing lock... [2025-04-14 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-14 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:24:05 [end_date_ymd] => 2025-04-14 09:24:05 [RateCDR] => 1 ) [2025-04-14 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:24:05' and `end` < '2025-04-14 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:24:18] Production.INFO: count ==1298 [2025-04-14 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:24:05 - End Time 2025-04-14 09:24:05 [2025-04-14 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905301', 'tblTempUsageDetail_20' ) start [2025-04-14 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905301', 'tblTempUsageDetail_20' ) end [2025-04-14 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905301', 'tblTempVendorCDR_20' ) start [2025-04-14 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905301', 'tblTempVendorCDR_20' ) end [2025-04-14 09:24:19] Production.INFO: ProcessCDR(1,14905301,1,1,2) [2025-04-14 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905301', 'tblTempUsageDetail_20' ) start [2025-04-14 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905301', 'tblTempUsageDetail_20' ) end [2025-04-14 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:24:24] Production.INFO: ==30820== Releasing lock... [2025-04-14 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:24:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-14 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:25:05 [end_date_ymd] => 2025-04-14 09:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:25:05' and `end` < '2025-04-14 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-04-14 09:25:18] Production.INFO: count ==1315 [2025-04-14 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:25:05 - End Time 2025-04-14 09:25:05 [2025-04-14 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905302', 'tblTempUsageDetail_20' ) start [2025-04-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905302', 'tblTempUsageDetail_20' ) end [2025-04-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905302', 'tblTempVendorCDR_20' ) start [2025-04-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905302', 'tblTempVendorCDR_20' ) end [2025-04-14 09:25:19] Production.INFO: ProcessCDR(1,14905302,1,1,2) [2025-04-14 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905302', 'tblTempUsageDetail_20' ) start [2025-04-14 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905302', 'tblTempUsageDetail_20' ) end [2025-04-14 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:25:24] Production.INFO: ==30893== Releasing lock... [2025-04-14 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:25:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-14 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:26:06 [end_date_ymd] => 2025-04-14 09:26:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:26:06' and `end` < '2025-04-14 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-04-14 09:26:19] Production.INFO: count ==1335 [2025-04-14 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:26:06 - End Time 2025-04-14 09:26:06 [2025-04-14 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905311', 'tblTempUsageDetail_20' ) start [2025-04-14 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905311', 'tblTempUsageDetail_20' ) end [2025-04-14 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905311', 'tblTempVendorCDR_20' ) start [2025-04-14 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905311', 'tblTempVendorCDR_20' ) end [2025-04-14 09:26:19] Production.INFO: ProcessCDR(1,14905311,1,1,2) [2025-04-14 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905311', 'tblTempUsageDetail_20' ) start [2025-04-14 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905311', 'tblTempUsageDetail_20' ) end [2025-04-14 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:26:24] Production.INFO: ==30976== Releasing lock... [2025-04-14 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:26:24] Production.INFO: 38 MB #Memory Used# [2025-04-14 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:27:05 [end_date_ymd] => 2025-04-14 09:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:27:05' and `end` < '2025-04-14 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-04-14 09:27:18] Production.INFO: count ==1350 [2025-04-14 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:27:05 - End Time 2025-04-14 09:27:05 [2025-04-14 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905316', 'tblTempUsageDetail_20' ) start [2025-04-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905316', 'tblTempUsageDetail_20' ) end [2025-04-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905316', 'tblTempVendorCDR_20' ) start [2025-04-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905316', 'tblTempVendorCDR_20' ) end [2025-04-14 09:27:19] Production.INFO: ProcessCDR(1,14905316,1,1,2) [2025-04-14 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905316', 'tblTempUsageDetail_20' ) start [2025-04-14 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905316', 'tblTempUsageDetail_20' ) end [2025-04-14 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:27:24] Production.INFO: ==31046== Releasing lock... [2025-04-14 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:27:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-14 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:28:05 [end_date_ymd] => 2025-04-14 09:28:05 [RateCDR] => 1 ) [2025-04-14 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:28:05' and `end` < '2025-04-14 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:28:19] Production.INFO: count ==1362 [2025-04-14 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:28:05 - End Time 2025-04-14 09:28:05 [2025-04-14 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905321', 'tblTempUsageDetail_20' ) start [2025-04-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905321', 'tblTempUsageDetail_20' ) end [2025-04-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905321', 'tblTempVendorCDR_20' ) start [2025-04-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905321', 'tblTempVendorCDR_20' ) end [2025-04-14 09:28:19] Production.INFO: ProcessCDR(1,14905321,1,1,2) [2025-04-14 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905321', 'tblTempUsageDetail_20' ) start [2025-04-14 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905321', 'tblTempUsageDetail_20' ) end [2025-04-14 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:28:24] Production.INFO: ==31119== Releasing lock... [2025-04-14 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:28:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-14 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:29:05 [end_date_ymd] => 2025-04-14 09:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:29:05' and `end` < '2025-04-14 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-04-14 09:29:18] Production.INFO: count ==1368 [2025-04-14 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:29:05 - End Time 2025-04-14 09:29:05 [2025-04-14 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905326', 'tblTempUsageDetail_20' ) start [2025-04-14 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905326', 'tblTempUsageDetail_20' ) end [2025-04-14 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905326', 'tblTempVendorCDR_20' ) start [2025-04-14 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905326', 'tblTempVendorCDR_20' ) end [2025-04-14 09:29:18] Production.INFO: ProcessCDR(1,14905326,1,1,2) [2025-04-14 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905326', 'tblTempUsageDetail_20' ) start [2025-04-14 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905326', 'tblTempUsageDetail_20' ) end [2025-04-14 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:29:23] Production.INFO: ==31193== Releasing lock... [2025-04-14 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:29:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-14 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:30:06 [end_date_ymd] => 2025-04-14 09:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:30:06' and `end` < '2025-04-14 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-04-14 09:30:19] Production.INFO: count ==1389 [2025-04-14 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:30:06 - End Time 2025-04-14 09:30:06 [2025-04-14 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905332', 'tblTempUsageDetail_20' ) start [2025-04-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905332', 'tblTempUsageDetail_20' ) end [2025-04-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905332', 'tblTempVendorCDR_20' ) start [2025-04-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905332', 'tblTempVendorCDR_20' ) end [2025-04-14 09:30:19] Production.INFO: ProcessCDR(1,14905332,1,1,2) [2025-04-14 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905332', 'tblTempUsageDetail_20' ) start [2025-04-14 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905332', 'tblTempUsageDetail_20' ) end [2025-04-14 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:30:24] Production.INFO: ==31275== Releasing lock... [2025-04-14 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:30:24] Production.INFO: 39 MB #Memory Used# [2025-04-14 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:31:05 [end_date_ymd] => 2025-04-14 09:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:31:05' and `end` < '2025-04-14 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-04-14 09:31:18] Production.INFO: count ==1469 [2025-04-14 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:31:05 - End Time 2025-04-14 09:31:05 [2025-04-14 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905337', 'tblTempUsageDetail_20' ) start [2025-04-14 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905337', 'tblTempUsageDetail_20' ) end [2025-04-14 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905337', 'tblTempVendorCDR_20' ) start [2025-04-14 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905337', 'tblTempVendorCDR_20' ) end [2025-04-14 09:31:18] Production.INFO: ProcessCDR(1,14905337,1,1,2) [2025-04-14 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905337', 'tblTempUsageDetail_20' ) start [2025-04-14 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905337', 'tblTempUsageDetail_20' ) end [2025-04-14 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:31:23] Production.INFO: ==31353== Releasing lock... [2025-04-14 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:31:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-14 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:32:05 [end_date_ymd] => 2025-04-14 09:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:32:05' and `end` < '2025-04-14 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-04-14 09:32:18] Production.INFO: count ==1488 [2025-04-14 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:32:05 - End Time 2025-04-14 09:32:05 [2025-04-14 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905342', 'tblTempUsageDetail_20' ) start [2025-04-14 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905342', 'tblTempUsageDetail_20' ) end [2025-04-14 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905342', 'tblTempVendorCDR_20' ) start [2025-04-14 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905342', 'tblTempVendorCDR_20' ) end [2025-04-14 09:32:19] Production.INFO: ProcessCDR(1,14905342,1,1,2) [2025-04-14 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905342', 'tblTempUsageDetail_20' ) start [2025-04-14 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905342', 'tblTempUsageDetail_20' ) end [2025-04-14 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:32:24] Production.INFO: ==31432== Releasing lock... [2025-04-14 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:32:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-14 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:33:06 [end_date_ymd] => 2025-04-14 09:33:06 [RateCDR] => 1 ) [2025-04-14 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:33:06' and `end` < '2025-04-14 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:33:19] Production.INFO: count ==1503 [2025-04-14 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:33:06 - End Time 2025-04-14 09:33:06 [2025-04-14 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905347', 'tblTempUsageDetail_20' ) start [2025-04-14 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905347', 'tblTempUsageDetail_20' ) end [2025-04-14 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905347', 'tblTempVendorCDR_20' ) start [2025-04-14 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905347', 'tblTempVendorCDR_20' ) end [2025-04-14 09:33:19] Production.INFO: ProcessCDR(1,14905347,1,1,2) [2025-04-14 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905347', 'tblTempUsageDetail_20' ) start [2025-04-14 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905347', 'tblTempUsageDetail_20' ) end [2025-04-14 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:33:24] Production.INFO: ==31504== Releasing lock... [2025-04-14 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:33:24] Production.INFO: 39 MB #Memory Used# [2025-04-14 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:34:05 [end_date_ymd] => 2025-04-14 09:34:05 [RateCDR] => 1 ) [2025-04-14 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:34:05' and `end` < '2025-04-14 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:34:18] Production.INFO: count ==1507 [2025-04-14 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:34:05 - End Time 2025-04-14 09:34:05 [2025-04-14 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905352', 'tblTempUsageDetail_20' ) start [2025-04-14 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905352', 'tblTempUsageDetail_20' ) end [2025-04-14 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905352', 'tblTempVendorCDR_20' ) start [2025-04-14 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905352', 'tblTempVendorCDR_20' ) end [2025-04-14 09:34:19] Production.INFO: ProcessCDR(1,14905352,1,1,2) [2025-04-14 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905352', 'tblTempUsageDetail_20' ) start [2025-04-14 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905352', 'tblTempUsageDetail_20' ) end [2025-04-14 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:34:24] Production.INFO: ==31573== Releasing lock... [2025-04-14 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:34:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-14 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:35:05 [end_date_ymd] => 2025-04-14 09:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:35:05' and `end` < '2025-04-14 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-04-14 09:35:19] Production.INFO: count ==1519 [2025-04-14 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:35:05 - End Time 2025-04-14 09:35:05 [2025-04-14 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905357', 'tblTempUsageDetail_20' ) start [2025-04-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905357', 'tblTempUsageDetail_20' ) end [2025-04-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905357', 'tblTempVendorCDR_20' ) start [2025-04-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905357', 'tblTempVendorCDR_20' ) end [2025-04-14 09:35:19] Production.INFO: ProcessCDR(1,14905357,1,1,2) [2025-04-14 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905357', 'tblTempUsageDetail_20' ) start [2025-04-14 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905357', 'tblTempUsageDetail_20' ) end [2025-04-14 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:35:24] Production.INFO: ==31653== Releasing lock... [2025-04-14 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:35:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-14 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:36:05 [end_date_ymd] => 2025-04-14 09:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:36:05' and `end` < '2025-04-14 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-04-14 09:36:18] Production.INFO: count ==1549 [2025-04-14 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:36:05 - End Time 2025-04-14 09:36:05 [2025-04-14 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905362', 'tblTempUsageDetail_20' ) start [2025-04-14 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905362', 'tblTempUsageDetail_20' ) end [2025-04-14 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905362', 'tblTempVendorCDR_20' ) start [2025-04-14 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905362', 'tblTempVendorCDR_20' ) end [2025-04-14 09:36:19] Production.INFO: ProcessCDR(1,14905362,1,1,2) [2025-04-14 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905362', 'tblTempUsageDetail_20' ) start [2025-04-14 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905362', 'tblTempUsageDetail_20' ) end [2025-04-14 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:36:24] Production.INFO: ==31771== Releasing lock... [2025-04-14 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:36:24] Production.INFO: 40 MB #Memory Used# [2025-04-14 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:37:05 [end_date_ymd] => 2025-04-14 09:37:05 [RateCDR] => 1 ) [2025-04-14 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:37:05' and `end` < '2025-04-14 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:37:18] Production.INFO: count ==1553 [2025-04-14 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:37:05 - End Time 2025-04-14 09:37:05 [2025-04-14 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905367', 'tblTempUsageDetail_20' ) start [2025-04-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905367', 'tblTempUsageDetail_20' ) end [2025-04-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905367', 'tblTempVendorCDR_20' ) start [2025-04-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905367', 'tblTempVendorCDR_20' ) end [2025-04-14 09:37:19] Production.INFO: ProcessCDR(1,14905367,1,1,2) [2025-04-14 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905367', 'tblTempUsageDetail_20' ) start [2025-04-14 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905367', 'tblTempUsageDetail_20' ) end [2025-04-14 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:37:24] Production.INFO: ==31845== Releasing lock... [2025-04-14 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:37:24] Production.INFO: 40 MB #Memory Used# [2025-04-14 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:38:05 [end_date_ymd] => 2025-04-14 09:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:38:05' and `end` < '2025-04-14 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-04-14 09:38:18] Production.INFO: count ==1560 [2025-04-14 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:38:05 - End Time 2025-04-14 09:38:05 [2025-04-14 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905372', 'tblTempUsageDetail_20' ) start [2025-04-14 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905372', 'tblTempUsageDetail_20' ) end [2025-04-14 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905372', 'tblTempVendorCDR_20' ) start [2025-04-14 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905372', 'tblTempVendorCDR_20' ) end [2025-04-14 09:38:19] Production.INFO: ProcessCDR(1,14905372,1,1,2) [2025-04-14 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905372', 'tblTempUsageDetail_20' ) start [2025-04-14 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905372', 'tblTempUsageDetail_20' ) end [2025-04-14 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:38:24] Production.INFO: ==31922== Releasing lock... [2025-04-14 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:38:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-14 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:39:06 [end_date_ymd] => 2025-04-14 09:39:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:39:06' and `end` < '2025-04-14 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-04-14 09:39:19] Production.INFO: count ==1592 [2025-04-14 09:39:20] Production.ERROR: pbx CDR StartTime 2025-04-14 06:39:06 - End Time 2025-04-14 09:39:06 [2025-04-14 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905377', 'tblTempUsageDetail_20' ) start [2025-04-14 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905377', 'tblTempUsageDetail_20' ) end [2025-04-14 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905377', 'tblTempVendorCDR_20' ) start [2025-04-14 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905377', 'tblTempVendorCDR_20' ) end [2025-04-14 09:39:20] Production.INFO: ProcessCDR(1,14905377,1,1,2) [2025-04-14 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905377', 'tblTempUsageDetail_20' ) start [2025-04-14 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905377', 'tblTempUsageDetail_20' ) end [2025-04-14 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:39:24] Production.INFO: ==31998== Releasing lock... [2025-04-14 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:39:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-14 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:40:05 [end_date_ymd] => 2025-04-14 09:40:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:40:05' and `end` < '2025-04-14 09: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-04-14 09:40:19] Production.INFO: count ==1610 [2025-04-14 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-14 06:40:05 - End Time 2025-04-14 09:40:05 [2025-04-14 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905382', 'tblTempUsageDetail_20' ) start [2025-04-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905382', 'tblTempUsageDetail_20' ) end [2025-04-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905382', 'tblTempVendorCDR_20' ) start [2025-04-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905382', 'tblTempVendorCDR_20' ) end [2025-04-14 09:40:20] Production.INFO: ProcessCDR(1,14905382,1,1,2) [2025-04-14 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905382', 'tblTempUsageDetail_20' ) start [2025-04-14 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905382', 'tblTempUsageDetail_20' ) end [2025-04-14 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:40:25] Production.INFO: ==32071== Releasing lock... [2025-04-14 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:40:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-14 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:41:05 [end_date_ymd] => 2025-04-14 09:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:41:05' and `end` < '2025-04-14 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-04-14 09:41:19] Production.INFO: count ==1741 [2025-04-14 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:41:05 - End Time 2025-04-14 09:41:05 [2025-04-14 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905388', 'tblTempUsageDetail_20' ) start [2025-04-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905388', 'tblTempUsageDetail_20' ) end [2025-04-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905388', 'tblTempVendorCDR_20' ) start [2025-04-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905388', 'tblTempVendorCDR_20' ) end [2025-04-14 09:41:19] Production.INFO: ProcessCDR(1,14905388,1,1,2) [2025-04-14 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905388', 'tblTempUsageDetail_20' ) start [2025-04-14 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905388', 'tblTempUsageDetail_20' ) end [2025-04-14 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:41:24] Production.INFO: ==32148== Releasing lock... [2025-04-14 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:41:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-14 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:42:05 [end_date_ymd] => 2025-04-14 09:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:42:05' and `end` < '2025-04-14 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-04-14 09:42:18] Production.INFO: count ==1775 [2025-04-14 09:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:42:05 - End Time 2025-04-14 09:42:05 [2025-04-14 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905393', 'tblTempUsageDetail_20' ) start [2025-04-14 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905393', 'tblTempUsageDetail_20' ) end [2025-04-14 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905393', 'tblTempVendorCDR_20' ) start [2025-04-14 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905393', 'tblTempVendorCDR_20' ) end [2025-04-14 09:42:18] Production.INFO: ProcessCDR(1,14905393,1,1,2) [2025-04-14 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905393', 'tblTempUsageDetail_20' ) start [2025-04-14 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905393', 'tblTempUsageDetail_20' ) end [2025-04-14 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:42:24] Production.INFO: ==32217== Releasing lock... [2025-04-14 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:42:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-14 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:43:05 [end_date_ymd] => 2025-04-14 09:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:43:05' and `end` < '2025-04-14 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-04-14 09:43:18] Production.INFO: count ==1786 [2025-04-14 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:43:05 - End Time 2025-04-14 09:43:05 [2025-04-14 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905398', 'tblTempUsageDetail_20' ) start [2025-04-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905398', 'tblTempUsageDetail_20' ) end [2025-04-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905398', 'tblTempVendorCDR_20' ) start [2025-04-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905398', 'tblTempVendorCDR_20' ) end [2025-04-14 09:43:19] Production.INFO: ProcessCDR(1,14905398,1,1,2) [2025-04-14 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905398', 'tblTempUsageDetail_20' ) start [2025-04-14 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905398', 'tblTempUsageDetail_20' ) end [2025-04-14 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:43:24] Production.INFO: ==32294== Releasing lock... [2025-04-14 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:43:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-14 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:44:05 [end_date_ymd] => 2025-04-14 09:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:44:05' and `end` < '2025-04-14 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-04-14 09:44:19] Production.INFO: count ==1794 [2025-04-14 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:44:05 - End Time 2025-04-14 09:44:05 [2025-04-14 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905403', 'tblTempUsageDetail_20' ) start [2025-04-14 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905403', 'tblTempUsageDetail_20' ) end [2025-04-14 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905403', 'tblTempVendorCDR_20' ) start [2025-04-14 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905403', 'tblTempVendorCDR_20' ) end [2025-04-14 09:44:19] Production.INFO: ProcessCDR(1,14905403,1,1,2) [2025-04-14 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905403', 'tblTempUsageDetail_20' ) start [2025-04-14 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905403', 'tblTempUsageDetail_20' ) end [2025-04-14 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:44:24] Production.INFO: ==32371== Releasing lock... [2025-04-14 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:44:24] Production.INFO: 42 MB #Memory Used# [2025-04-14 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:45:05 [end_date_ymd] => 2025-04-14 09:45:05 [RateCDR] => 1 ) [2025-04-14 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:45:05' and `end` < '2025-04-14 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:45:18] Production.INFO: count ==1809 [2025-04-14 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:45:05 - End Time 2025-04-14 09:45:05 [2025-04-14 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905408', 'tblTempUsageDetail_20' ) start [2025-04-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905408', 'tblTempUsageDetail_20' ) end [2025-04-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905408', 'tblTempVendorCDR_20' ) start [2025-04-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905408', 'tblTempVendorCDR_20' ) end [2025-04-14 09:45:19] Production.INFO: ProcessCDR(1,14905408,1,1,2) [2025-04-14 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905408', 'tblTempUsageDetail_20' ) start [2025-04-14 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905408', 'tblTempUsageDetail_20' ) end [2025-04-14 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:45:24] Production.INFO: ==32450== Releasing lock... [2025-04-14 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:45:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-14 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:46:06 [end_date_ymd] => 2025-04-14 09:46:06 [RateCDR] => 1 ) [2025-04-14 09:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:46:06' and `end` < '2025-04-14 09:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:46:19] Production.INFO: count ==1838 [2025-04-14 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:46:06 - End Time 2025-04-14 09:46:06 [2025-04-14 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905413', 'tblTempUsageDetail_20' ) start [2025-04-14 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905413', 'tblTempUsageDetail_20' ) end [2025-04-14 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905413', 'tblTempVendorCDR_20' ) start [2025-04-14 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905413', 'tblTempVendorCDR_20' ) end [2025-04-14 09:46:20] Production.INFO: ProcessCDR(1,14905413,1,1,2) [2025-04-14 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905413', 'tblTempUsageDetail_20' ) start [2025-04-14 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905413', 'tblTempUsageDetail_20' ) end [2025-04-14 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:46:24] Production.INFO: ==32528== Releasing lock... [2025-04-14 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:46:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-14 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:47:05 [end_date_ymd] => 2025-04-14 09:47:05 [RateCDR] => 1 ) [2025-04-14 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:47:05' and `end` < '2025-04-14 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:47:18] Production.INFO: count ==1849 [2025-04-14 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:47:05 - End Time 2025-04-14 09:47:05 [2025-04-14 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905418', 'tblTempUsageDetail_20' ) start [2025-04-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905418', 'tblTempUsageDetail_20' ) end [2025-04-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905418', 'tblTempVendorCDR_20' ) start [2025-04-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905418', 'tblTempVendorCDR_20' ) end [2025-04-14 09:47:19] Production.INFO: ProcessCDR(1,14905418,1,1,2) [2025-04-14 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905418', 'tblTempUsageDetail_20' ) start [2025-04-14 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905418', 'tblTempUsageDetail_20' ) end [2025-04-14 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:47:24] Production.INFO: ==32599== Releasing lock... [2025-04-14 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:47:24] Production.INFO: 42 MB #Memory Used# [2025-04-14 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:48:05 [end_date_ymd] => 2025-04-14 09:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:48:05' and `end` < '2025-04-14 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-04-14 09:48:18] Production.INFO: count ==1867 [2025-04-14 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:48:05 - End Time 2025-04-14 09:48:05 [2025-04-14 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905423', 'tblTempUsageDetail_20' ) start [2025-04-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905423', 'tblTempUsageDetail_20' ) end [2025-04-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905423', 'tblTempVendorCDR_20' ) start [2025-04-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905423', 'tblTempVendorCDR_20' ) end [2025-04-14 09:48:19] Production.INFO: ProcessCDR(1,14905423,1,1,2) [2025-04-14 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905423', 'tblTempUsageDetail_20' ) start [2025-04-14 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905423', 'tblTempUsageDetail_20' ) end [2025-04-14 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:48:23] Production.INFO: ==32676== Releasing lock... [2025-04-14 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:48:23] Production.INFO: 42 MB #Memory Used# [2025-04-14 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:49:04 [end_date_ymd] => 2025-04-14 09:49:04 [RateCDR] => 1 ) [2025-04-14 09: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-04-14 06:49:04' and `end` < '2025-04-14 09: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-04-14 09:49:17] Production.INFO: count ==1881 [2025-04-14 09:49:18] Production.ERROR: pbx CDR StartTime 2025-04-14 06:49:04 - End Time 2025-04-14 09:49:04 [2025-04-14 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905428', 'tblTempUsageDetail_20' ) start [2025-04-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905428', 'tblTempUsageDetail_20' ) end [2025-04-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905428', 'tblTempVendorCDR_20' ) start [2025-04-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905428', 'tblTempVendorCDR_20' ) end [2025-04-14 09:49:18] Production.INFO: ProcessCDR(1,14905428,1,1,2) [2025-04-14 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905428', 'tblTempUsageDetail_20' ) start [2025-04-14 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905428', 'tblTempUsageDetail_20' ) end [2025-04-14 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:49:23] Production.INFO: ==32750== Releasing lock... [2025-04-14 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:49:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-14 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:50:06 [end_date_ymd] => 2025-04-14 09:50:06 [RateCDR] => 1 ) [2025-04-14 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:50:06' and `end` < '2025-04-14 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:50:19] Production.INFO: count ==1901 [2025-04-14 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:50:06 - End Time 2025-04-14 09:50:06 [2025-04-14 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905433', 'tblTempUsageDetail_20' ) start [2025-04-14 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905433', 'tblTempUsageDetail_20' ) end [2025-04-14 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905433', 'tblTempVendorCDR_20' ) start [2025-04-14 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905433', 'tblTempVendorCDR_20' ) end [2025-04-14 09:50:19] Production.INFO: ProcessCDR(1,14905433,1,1,2) [2025-04-14 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905433', 'tblTempUsageDetail_20' ) start [2025-04-14 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905433', 'tblTempUsageDetail_20' ) end [2025-04-14 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:50:24] Production.INFO: ==377== Releasing lock... [2025-04-14 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:50:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-14 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:51:05 [end_date_ymd] => 2025-04-14 09:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:51:05' and `end` < '2025-04-14 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-04-14 09:51:19] Production.INFO: count ==1987 [2025-04-14 09:51:20] Production.ERROR: pbx CDR StartTime 2025-04-14 06:51:05 - End Time 2025-04-14 09:51:05 [2025-04-14 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905439', 'tblTempUsageDetail_20' ) start [2025-04-14 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905439', 'tblTempUsageDetail_20' ) end [2025-04-14 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905439', 'tblTempVendorCDR_20' ) start [2025-04-14 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905439', 'tblTempVendorCDR_20' ) end [2025-04-14 09:51:20] Production.INFO: ProcessCDR(1,14905439,1,1,2) [2025-04-14 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905439', 'tblTempUsageDetail_20' ) start [2025-04-14 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905439', 'tblTempUsageDetail_20' ) end [2025-04-14 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:51:24] Production.INFO: ==495== Releasing lock... [2025-04-14 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:51:24] Production.INFO: 43 MB #Memory Used# [2025-04-14 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:52:05 [end_date_ymd] => 2025-04-14 09:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:52:05' and `end` < '2025-04-14 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-04-14 09:52:18] Production.INFO: count ==2015 [2025-04-14 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:52:05 - End Time 2025-04-14 09:52:05 [2025-04-14 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905444', 'tblTempUsageDetail_20' ) start [2025-04-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905444', 'tblTempUsageDetail_20' ) end [2025-04-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905444', 'tblTempVendorCDR_20' ) start [2025-04-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905444', 'tblTempVendorCDR_20' ) end [2025-04-14 09:52:19] Production.INFO: ProcessCDR(1,14905444,1,1,2) [2025-04-14 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905444', 'tblTempUsageDetail_20' ) start [2025-04-14 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905444', 'tblTempUsageDetail_20' ) end [2025-04-14 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:52:24] Production.INFO: ==566== Releasing lock... [2025-04-14 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:52:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-14 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:53:05 [end_date_ymd] => 2025-04-14 09:53:05 [RateCDR] => 1 ) [2025-04-14 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:53:05' and `end` < '2025-04-14 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:53:19] Production.INFO: count ==2031 [2025-04-14 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:53:05 - End Time 2025-04-14 09:53:05 [2025-04-14 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905449', 'tblTempUsageDetail_20' ) start [2025-04-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905449', 'tblTempUsageDetail_20' ) end [2025-04-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905449', 'tblTempVendorCDR_20' ) start [2025-04-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905449', 'tblTempVendorCDR_20' ) end [2025-04-14 09:53:19] Production.INFO: ProcessCDR(1,14905449,1,1,2) [2025-04-14 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905449', 'tblTempUsageDetail_20' ) start [2025-04-14 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905449', 'tblTempUsageDetail_20' ) end [2025-04-14 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:53:24] Production.INFO: ==654== Releasing lock... [2025-04-14 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:53:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-14 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:54:05 [end_date_ymd] => 2025-04-14 09:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:54:05' and `end` < '2025-04-14 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-04-14 09:54:18] Production.INFO: count ==2040 [2025-04-14 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:54:05 - End Time 2025-04-14 09:54:05 [2025-04-14 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905454', 'tblTempUsageDetail_20' ) start [2025-04-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905454', 'tblTempUsageDetail_20' ) end [2025-04-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905454', 'tblTempVendorCDR_20' ) start [2025-04-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905454', 'tblTempVendorCDR_20' ) end [2025-04-14 09:54:19] Production.INFO: ProcessCDR(1,14905454,1,1,2) [2025-04-14 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905454', 'tblTempUsageDetail_20' ) start [2025-04-14 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905454', 'tblTempUsageDetail_20' ) end [2025-04-14 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:54:24] Production.INFO: ==748== Releasing lock... [2025-04-14 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:54:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-14 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:55:05 [end_date_ymd] => 2025-04-14 09:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:55:05' and `end` < '2025-04-14 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-04-14 09:55:19] Production.INFO: count ==2050 [2025-04-14 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:55:05 - End Time 2025-04-14 09:55:05 [2025-04-14 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905459', 'tblTempUsageDetail_20' ) start [2025-04-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905459', 'tblTempUsageDetail_20' ) end [2025-04-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905459', 'tblTempVendorCDR_20' ) start [2025-04-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905459', 'tblTempVendorCDR_20' ) end [2025-04-14 09:55:19] Production.INFO: ProcessCDR(1,14905459,1,1,2) [2025-04-14 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905459', 'tblTempUsageDetail_20' ) start [2025-04-14 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905459', 'tblTempUsageDetail_20' ) end [2025-04-14 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:55:25] Production.INFO: ==822== Releasing lock... [2025-04-14 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:55:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-14 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:56:05 [end_date_ymd] => 2025-04-14 09:56:05 [RateCDR] => 1 ) [2025-04-14 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 06:56:05' and `end` < '2025-04-14 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 09:56:18] Production.INFO: count ==2060 [2025-04-14 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:56:05 - End Time 2025-04-14 09:56:05 [2025-04-14 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905464', 'tblTempUsageDetail_20' ) start [2025-04-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905464', 'tblTempUsageDetail_20' ) end [2025-04-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905464', 'tblTempVendorCDR_20' ) start [2025-04-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905464', 'tblTempVendorCDR_20' ) end [2025-04-14 09:56:19] Production.INFO: ProcessCDR(1,14905464,1,1,2) [2025-04-14 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905464', 'tblTempUsageDetail_20' ) start [2025-04-14 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905464', 'tblTempUsageDetail_20' ) end [2025-04-14 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:56:24] Production.INFO: ==895== Releasing lock... [2025-04-14 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:56:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-14 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:57:05 [end_date_ymd] => 2025-04-14 09:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:57:05' and `end` < '2025-04-14 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-04-14 09:57:19] Production.INFO: count ==2093 [2025-04-14 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:57:05 - End Time 2025-04-14 09:57:05 [2025-04-14 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905469', 'tblTempUsageDetail_20' ) start [2025-04-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905469', 'tblTempUsageDetail_20' ) end [2025-04-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905469', 'tblTempVendorCDR_20' ) start [2025-04-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905469', 'tblTempVendorCDR_20' ) end [2025-04-14 09:57:20] Production.INFO: ProcessCDR(1,14905469,1,1,2) [2025-04-14 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905469', 'tblTempUsageDetail_20' ) start [2025-04-14 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905469', 'tblTempUsageDetail_20' ) end [2025-04-14 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:57:25] Production.INFO: ==974== Releasing lock... [2025-04-14 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:57:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-14 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:58:05 [end_date_ymd] => 2025-04-14 09:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:58:05' and `end` < '2025-04-14 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-04-14 09:58:19] Production.INFO: count ==2113 [2025-04-14 09:58:20] Production.ERROR: pbx CDR StartTime 2025-04-14 06:58:05 - End Time 2025-04-14 09:58:05 [2025-04-14 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905474', 'tblTempUsageDetail_20' ) start [2025-04-14 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905474', 'tblTempUsageDetail_20' ) end [2025-04-14 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905474', 'tblTempVendorCDR_20' ) start [2025-04-14 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905474', 'tblTempVendorCDR_20' ) end [2025-04-14 09:58:20] Production.INFO: ProcessCDR(1,14905474,1,1,2) [2025-04-14 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905474', 'tblTempUsageDetail_20' ) start [2025-04-14 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905474', 'tblTempUsageDetail_20' ) end [2025-04-14 09:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:58:26] Production.INFO: ==1053== Releasing lock... [2025-04-14 09:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:58:26] Production.INFO: 44.25 MB #Memory Used# [2025-04-14 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 06:59:05 [end_date_ymd] => 2025-04-14 09:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 06:59:05' and `end` < '2025-04-14 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-04-14 09:59:18] Production.INFO: count ==2136 [2025-04-14 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-14 06:59:05 - End Time 2025-04-14 09:59:05 [2025-04-14 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905479', 'tblTempUsageDetail_20' ) start [2025-04-14 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905479', 'tblTempUsageDetail_20' ) end [2025-04-14 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905479', 'tblTempVendorCDR_20' ) start [2025-04-14 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905479', 'tblTempVendorCDR_20' ) end [2025-04-14 09:59:19] Production.INFO: ProcessCDR(1,14905479,1,1,2) [2025-04-14 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905479', 'tblTempUsageDetail_20' ) start [2025-04-14 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905479', 'tblTempUsageDetail_20' ) end [2025-04-14 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 09:59:24] Production.INFO: ==1129== Releasing lock... [2025-04-14 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 09:59:24] Production.INFO: 44 MB #Memory Used# [2025-04-14 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:00:05 [end_date_ymd] => 2025-04-14 10:00:05 [RateCDR] => 1 ) [2025-04-14 10: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-04-14 07:00:05' and `end` < '2025-04-14 10: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-04-14 10:00:18] Production.INFO: count ==2154 [2025-04-14 10:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:00:05 - End Time 2025-04-14 10:00:05 [2025-04-14 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905484', 'tblTempUsageDetail_20' ) start [2025-04-14 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905484', 'tblTempUsageDetail_20' ) end [2025-04-14 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905484', 'tblTempVendorCDR_20' ) start [2025-04-14 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905484', 'tblTempVendorCDR_20' ) end [2025-04-14 10:00:19] Production.INFO: ProcessCDR(1,14905484,1,1,2) [2025-04-14 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905484', 'tblTempUsageDetail_20' ) start [2025-04-14 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905484', 'tblTempUsageDetail_20' ) end [2025-04-14 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:00:24] Production.INFO: ==1213== Releasing lock... [2025-04-14 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:00:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-14 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:01:05 [end_date_ymd] => 2025-04-14 10:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:01:05' and `end` < '2025-04-14 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-04-14 10:01:18] Production.INFO: count ==2268 [2025-04-14 10:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 07:01:05 - End Time 2025-04-14 10:01:05 [2025-04-14 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905490', 'tblTempUsageDetail_20' ) start [2025-04-14 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905490', 'tblTempUsageDetail_20' ) end [2025-04-14 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905490', 'tblTempVendorCDR_20' ) start [2025-04-14 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905490', 'tblTempVendorCDR_20' ) end [2025-04-14 10:01:18] Production.INFO: ProcessCDR(1,14905490,1,1,2) [2025-04-14 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905490', 'tblTempUsageDetail_20' ) start [2025-04-14 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905490', 'tblTempUsageDetail_20' ) end [2025-04-14 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:01:23] Production.INFO: ==1310== Releasing lock... [2025-04-14 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:01:23] Production.INFO: 45 MB #Memory Used# [2025-04-14 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:02:05 [end_date_ymd] => 2025-04-14 10:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:02:05' and `end` < '2025-04-14 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-04-14 10:02:18] Production.INFO: count ==2281 [2025-04-14 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:02:05 - End Time 2025-04-14 10:02:05 [2025-04-14 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905495', 'tblTempUsageDetail_20' ) start [2025-04-14 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905495', 'tblTempUsageDetail_20' ) end [2025-04-14 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905495', 'tblTempVendorCDR_20' ) start [2025-04-14 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905495', 'tblTempVendorCDR_20' ) end [2025-04-14 10:02:19] Production.INFO: ProcessCDR(1,14905495,1,1,2) [2025-04-14 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905495', 'tblTempUsageDetail_20' ) start [2025-04-14 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905495', 'tblTempUsageDetail_20' ) end [2025-04-14 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:02:24] Production.INFO: ==1385== Releasing lock... [2025-04-14 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:02:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-14 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:03:04 [end_date_ymd] => 2025-04-14 10:03:04 [RateCDR] => 1 ) [2025-04-14 10: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-04-14 07:03:04' and `end` < '2025-04-14 10: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-04-14 10:03:18] Production.INFO: count ==2297 [2025-04-14 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:03:04 - End Time 2025-04-14 10:03:04 [2025-04-14 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905500', 'tblTempUsageDetail_20' ) start [2025-04-14 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905500', 'tblTempUsageDetail_20' ) end [2025-04-14 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905500', 'tblTempVendorCDR_20' ) start [2025-04-14 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905500', 'tblTempVendorCDR_20' ) end [2025-04-14 10:03:19] Production.INFO: ProcessCDR(1,14905500,1,1,2) [2025-04-14 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905500', 'tblTempUsageDetail_20' ) start [2025-04-14 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905500', 'tblTempUsageDetail_20' ) end [2025-04-14 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:03:24] Production.INFO: ==1460== Releasing lock... [2025-04-14 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:03:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-14 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:04:05 [end_date_ymd] => 2025-04-14 10:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:04:05' and `end` < '2025-04-14 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-04-14 10:04:19] Production.INFO: count ==2350 [2025-04-14 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:04:05 - End Time 2025-04-14 10:04:05 [2025-04-14 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905505', 'tblTempUsageDetail_20' ) start [2025-04-14 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905505', 'tblTempUsageDetail_20' ) end [2025-04-14 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905505', 'tblTempVendorCDR_20' ) start [2025-04-14 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905505', 'tblTempVendorCDR_20' ) end [2025-04-14 10:04:20] Production.INFO: ProcessCDR(1,14905505,1,1,2) [2025-04-14 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905505', 'tblTempUsageDetail_20' ) start [2025-04-14 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905505', 'tblTempUsageDetail_20' ) end [2025-04-14 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:04:25] Production.INFO: ==1573== Releasing lock... [2025-04-14 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:04:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-14 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:05:06 [end_date_ymd] => 2025-04-14 10:05:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:05:06' and `end` < '2025-04-14 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-04-14 10:05:19] Production.INFO: count ==2383 [2025-04-14 10:05:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:05:06 - End Time 2025-04-14 10:05:06 [2025-04-14 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905510', 'tblTempUsageDetail_20' ) start [2025-04-14 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905510', 'tblTempUsageDetail_20' ) end [2025-04-14 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905510', 'tblTempVendorCDR_20' ) start [2025-04-14 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905510', 'tblTempVendorCDR_20' ) end [2025-04-14 10:05:20] Production.INFO: ProcessCDR(1,14905510,1,1,2) [2025-04-14 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905510', 'tblTempUsageDetail_20' ) start [2025-04-14 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905510', 'tblTempUsageDetail_20' ) end [2025-04-14 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:05:23] Production.INFO: ==1648== Releasing lock... [2025-04-14 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:05:23] Production.INFO: 46 MB #Memory Used# [2025-04-14 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:06:05 [end_date_ymd] => 2025-04-14 10:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:06:05' and `end` < '2025-04-14 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-04-14 10:06:18] Production.INFO: count ==2396 [2025-04-14 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:06:05 - End Time 2025-04-14 10:06:05 [2025-04-14 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905515', 'tblTempUsageDetail_20' ) start [2025-04-14 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905515', 'tblTempUsageDetail_20' ) end [2025-04-14 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905515', 'tblTempVendorCDR_20' ) start [2025-04-14 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905515', 'tblTempVendorCDR_20' ) end [2025-04-14 10:06:19] Production.INFO: ProcessCDR(1,14905515,1,1,2) [2025-04-14 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905515', 'tblTempUsageDetail_20' ) start [2025-04-14 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905515', 'tblTempUsageDetail_20' ) end [2025-04-14 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:06:24] Production.INFO: ==1717== Releasing lock... [2025-04-14 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:06:24] Production.INFO: 46 MB #Memory Used# [2025-04-14 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:07:05 [end_date_ymd] => 2025-04-14 10:07:05 [RateCDR] => 1 ) [2025-04-14 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:07:05' and `end` < '2025-04-14 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-04-14 10:07:19] Production.INFO: count ==2408 [2025-04-14 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:07:05 - End Time 2025-04-14 10:07:05 [2025-04-14 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905520', 'tblTempUsageDetail_20' ) start [2025-04-14 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905520', 'tblTempUsageDetail_20' ) end [2025-04-14 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905520', 'tblTempVendorCDR_20' ) start [2025-04-14 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905520', 'tblTempVendorCDR_20' ) end [2025-04-14 10:07:19] Production.INFO: ProcessCDR(1,14905520,1,1,2) [2025-04-14 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905520', 'tblTempUsageDetail_20' ) start [2025-04-14 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905520', 'tblTempUsageDetail_20' ) end [2025-04-14 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:07:25] Production.INFO: ==1832== Releasing lock... [2025-04-14 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:07:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-14 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:08:05 [end_date_ymd] => 2025-04-14 10:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:08:05' and `end` < '2025-04-14 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-04-14 10:08:18] Production.INFO: count ==2419 [2025-04-14 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:08:05 - End Time 2025-04-14 10:08:05 [2025-04-14 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905525', 'tblTempUsageDetail_20' ) start [2025-04-14 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905525', 'tblTempUsageDetail_20' ) end [2025-04-14 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905525', 'tblTempVendorCDR_20' ) start [2025-04-14 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905525', 'tblTempVendorCDR_20' ) end [2025-04-14 10:08:19] Production.INFO: ProcessCDR(1,14905525,1,1,2) [2025-04-14 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905525', 'tblTempUsageDetail_20' ) start [2025-04-14 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905525', 'tblTempUsageDetail_20' ) end [2025-04-14 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:08:24] Production.INFO: ==1906== Releasing lock... [2025-04-14 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:08:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-14 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:09:05 [end_date_ymd] => 2025-04-14 10:09:05 [RateCDR] => 1 ) [2025-04-14 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:09:05' and `end` < '2025-04-14 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:09:18] Production.INFO: count ==2441 [2025-04-14 10:09:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:09:05 - End Time 2025-04-14 10:09:05 [2025-04-14 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905530', 'tblTempUsageDetail_20' ) start [2025-04-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905530', 'tblTempUsageDetail_20' ) end [2025-04-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905530', 'tblTempVendorCDR_20' ) start [2025-04-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905530', 'tblTempVendorCDR_20' ) end [2025-04-14 10:09:19] Production.INFO: ProcessCDR(1,14905530,1,1,2) [2025-04-14 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905530', 'tblTempUsageDetail_20' ) start [2025-04-14 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905530', 'tblTempUsageDetail_20' ) end [2025-04-14 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:09:24] Production.INFO: ==1983== Releasing lock... [2025-04-14 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:09:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-14 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:10:05 [end_date_ymd] => 2025-04-14 10:10:05 [RateCDR] => 1 ) [2025-04-14 10: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-04-14 07:10:05' and `end` < '2025-04-14 10: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-04-14 10:10:19] Production.INFO: count ==2466 [2025-04-14 10:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:10:05 - End Time 2025-04-14 10:10:05 [2025-04-14 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905535', 'tblTempUsageDetail_20' ) start [2025-04-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905535', 'tblTempUsageDetail_20' ) end [2025-04-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905535', 'tblTempVendorCDR_20' ) start [2025-04-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905535', 'tblTempVendorCDR_20' ) end [2025-04-14 10:10:19] Production.INFO: ProcessCDR(1,14905535,1,1,2) [2025-04-14 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905535', 'tblTempUsageDetail_20' ) start [2025-04-14 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905535', 'tblTempUsageDetail_20' ) end [2025-04-14 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:10:25] Production.INFO: ==2061== Releasing lock... [2025-04-14 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:10:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-14 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:11:05 [end_date_ymd] => 2025-04-14 10:11:05 [RateCDR] => 1 ) [2025-04-14 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:11:05' and `end` < '2025-04-14 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:11:18] Production.INFO: count ==2579 [2025-04-14 10:11:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:11:05 - End Time 2025-04-14 10:11:05 [2025-04-14 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905541', 'tblTempUsageDetail_20' ) start [2025-04-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905541', 'tblTempUsageDetail_20' ) end [2025-04-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905541', 'tblTempVendorCDR_20' ) start [2025-04-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905541', 'tblTempVendorCDR_20' ) end [2025-04-14 10:11:19] Production.INFO: ProcessCDR(1,14905541,1,1,2) [2025-04-14 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905541', 'tblTempUsageDetail_20' ) start [2025-04-14 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905541', 'tblTempUsageDetail_20' ) end [2025-04-14 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:11:25] Production.INFO: ==2136== Releasing lock... [2025-04-14 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:11:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-14 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:12:06 [end_date_ymd] => 2025-04-14 10:12:06 [RateCDR] => 1 ) [2025-04-14 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:12:06' and `end` < '2025-04-14 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:12:19] Production.INFO: count ==2585 [2025-04-14 10:12:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:12:06 - End Time 2025-04-14 10:12:06 [2025-04-14 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905546', 'tblTempUsageDetail_20' ) start [2025-04-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905546', 'tblTempUsageDetail_20' ) end [2025-04-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905546', 'tblTempVendorCDR_20' ) start [2025-04-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905546', 'tblTempVendorCDR_20' ) end [2025-04-14 10:12:20] Production.INFO: ProcessCDR(1,14905546,1,1,2) [2025-04-14 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905546', 'tblTempUsageDetail_20' ) start [2025-04-14 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905546', 'tblTempUsageDetail_20' ) end [2025-04-14 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:12:24] Production.INFO: ==2212== Releasing lock... [2025-04-14 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:12:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-14 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:13:05 [end_date_ymd] => 2025-04-14 10:13:05 [RateCDR] => 1 ) [2025-04-14 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:13:05' and `end` < '2025-04-14 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:13:18] Production.INFO: count ==2595 [2025-04-14 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:13:05 - End Time 2025-04-14 10:13:05 [2025-04-14 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905551', 'tblTempUsageDetail_20' ) start [2025-04-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905551', 'tblTempUsageDetail_20' ) end [2025-04-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905551', 'tblTempVendorCDR_20' ) start [2025-04-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905551', 'tblTempVendorCDR_20' ) end [2025-04-14 10:13:19] Production.INFO: ProcessCDR(1,14905551,1,1,2) [2025-04-14 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905551', 'tblTempUsageDetail_20' ) start [2025-04-14 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905551', 'tblTempUsageDetail_20' ) end [2025-04-14 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:13:24] Production.INFO: ==2287== Releasing lock... [2025-04-14 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:13:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-14 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:14:05 [end_date_ymd] => 2025-04-14 10:14:05 [RateCDR] => 1 ) [2025-04-14 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:14:05' and `end` < '2025-04-14 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:14:19] Production.INFO: count ==2631 [2025-04-14 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:14:05 - End Time 2025-04-14 10:14:05 [2025-04-14 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905556', 'tblTempUsageDetail_20' ) start [2025-04-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905556', 'tblTempUsageDetail_20' ) end [2025-04-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905556', 'tblTempVendorCDR_20' ) start [2025-04-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905556', 'tblTempVendorCDR_20' ) end [2025-04-14 10:14:20] Production.INFO: ProcessCDR(1,14905556,1,1,2) [2025-04-14 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905556', 'tblTempUsageDetail_20' ) start [2025-04-14 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905556', 'tblTempUsageDetail_20' ) end [2025-04-14 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:14:25] Production.INFO: ==2359== Releasing lock... [2025-04-14 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:14:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-14 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:15:05 [end_date_ymd] => 2025-04-14 10:15:05 [RateCDR] => 1 ) [2025-04-14 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:15:05' and `end` < '2025-04-14 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:15:18] Production.INFO: count ==2659 [2025-04-14 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:15:05 - End Time 2025-04-14 10:15:05 [2025-04-14 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905561', 'tblTempUsageDetail_20' ) start [2025-04-14 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905561', 'tblTempUsageDetail_20' ) end [2025-04-14 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905561', 'tblTempVendorCDR_20' ) start [2025-04-14 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905561', 'tblTempVendorCDR_20' ) end [2025-04-14 10:15:19] Production.INFO: ProcessCDR(1,14905561,1,1,2) [2025-04-14 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905561', 'tblTempUsageDetail_20' ) start [2025-04-14 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905561', 'tblTempUsageDetail_20' ) end [2025-04-14 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:15:24] Production.INFO: ==2434== Releasing lock... [2025-04-14 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:15:24] Production.INFO: 48 MB #Memory Used# [2025-04-14 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:16:05 [end_date_ymd] => 2025-04-14 10:16:05 [RateCDR] => 1 ) [2025-04-14 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:16:05' and `end` < '2025-04-14 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:16:19] Production.INFO: count ==2673 [2025-04-14 10:16:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:16:05 - End Time 2025-04-14 10:16:05 [2025-04-14 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905566', 'tblTempUsageDetail_20' ) start [2025-04-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905566', 'tblTempUsageDetail_20' ) end [2025-04-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905566', 'tblTempVendorCDR_20' ) start [2025-04-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905566', 'tblTempVendorCDR_20' ) end [2025-04-14 10:16:20] Production.INFO: ProcessCDR(1,14905566,1,1,2) [2025-04-14 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905566', 'tblTempUsageDetail_20' ) start [2025-04-14 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905566', 'tblTempUsageDetail_20' ) end [2025-04-14 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:16:25] Production.INFO: ==2508== Releasing lock... [2025-04-14 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:16:25] Production.INFO: 48 MB #Memory Used# [2025-04-14 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:17:04 [end_date_ymd] => 2025-04-14 10:17:04 [RateCDR] => 1 ) [2025-04-14 10: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-04-14 07:17:04' and `end` < '2025-04-14 10: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-04-14 10:17:17] Production.INFO: count ==2685 [2025-04-14 10:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 07:17:04 - End Time 2025-04-14 10:17:04 [2025-04-14 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905571', 'tblTempUsageDetail_20' ) start [2025-04-14 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905571', 'tblTempUsageDetail_20' ) end [2025-04-14 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905571', 'tblTempVendorCDR_20' ) start [2025-04-14 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905571', 'tblTempVendorCDR_20' ) end [2025-04-14 10:17:18] Production.INFO: ProcessCDR(1,14905571,1,1,2) [2025-04-14 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905571', 'tblTempUsageDetail_20' ) start [2025-04-14 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905571', 'tblTempUsageDetail_20' ) end [2025-04-14 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:17:23] Production.INFO: ==2584== Releasing lock... [2025-04-14 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:17:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-14 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:18:05 [end_date_ymd] => 2025-04-14 10:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:18:05' and `end` < '2025-04-14 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-04-14 10:18:18] Production.INFO: count ==2689 [2025-04-14 10:18:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:18:05 - End Time 2025-04-14 10:18:05 [2025-04-14 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905576', 'tblTempUsageDetail_20' ) start [2025-04-14 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905576', 'tblTempUsageDetail_20' ) end [2025-04-14 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905576', 'tblTempVendorCDR_20' ) start [2025-04-14 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905576', 'tblTempVendorCDR_20' ) end [2025-04-14 10:18:19] Production.INFO: ProcessCDR(1,14905576,1,1,2) [2025-04-14 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905576', 'tblTempUsageDetail_20' ) start [2025-04-14 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905576', 'tblTempUsageDetail_20' ) end [2025-04-14 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:18:24] Production.INFO: ==2654== Releasing lock... [2025-04-14 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:18:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-14 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:19:05 [end_date_ymd] => 2025-04-14 10:19:05 [RateCDR] => 1 ) [2025-04-14 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:19:05' and `end` < '2025-04-14 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:19:18] Production.INFO: count ==2697 [2025-04-14 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:19:05 - End Time 2025-04-14 10:19:05 [2025-04-14 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905581', 'tblTempUsageDetail_20' ) start [2025-04-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905581', 'tblTempUsageDetail_20' ) end [2025-04-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905581', 'tblTempVendorCDR_20' ) start [2025-04-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905581', 'tblTempVendorCDR_20' ) end [2025-04-14 10:19:19] Production.INFO: ProcessCDR(1,14905581,1,1,2) [2025-04-14 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905581', 'tblTempUsageDetail_20' ) start [2025-04-14 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905581', 'tblTempUsageDetail_20' ) end [2025-04-14 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:19:24] Production.INFO: ==2725== Releasing lock... [2025-04-14 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:19:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-14 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:20:05 [end_date_ymd] => 2025-04-14 10:20:05 [RateCDR] => 1 ) [2025-04-14 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:20:05' and `end` < '2025-04-14 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:20:19] Production.INFO: count ==2729 [2025-04-14 10:20:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:20:05 - End Time 2025-04-14 10:20:05 [2025-04-14 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905587', 'tblTempUsageDetail_20' ) start [2025-04-14 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905587', 'tblTempUsageDetail_20' ) end [2025-04-14 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905587', 'tblTempVendorCDR_20' ) start [2025-04-14 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905587', 'tblTempVendorCDR_20' ) end [2025-04-14 10:20:20] Production.INFO: ProcessCDR(1,14905587,1,1,2) [2025-04-14 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905587', 'tblTempUsageDetail_20' ) start [2025-04-14 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905587', 'tblTempUsageDetail_20' ) end [2025-04-14 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:20:25] Production.INFO: ==2804== Releasing lock... [2025-04-14 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:20:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-14 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:21:04 [end_date_ymd] => 2025-04-14 10:21:04 [RateCDR] => 1 ) [2025-04-14 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:21:04' and `end` < '2025-04-14 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:21:17] Production.INFO: count ==2862 [2025-04-14 10:21:18] Production.ERROR: pbx CDR StartTime 2025-04-14 07:21:04 - End Time 2025-04-14 10:21:04 [2025-04-14 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905592', 'tblTempUsageDetail_20' ) start [2025-04-14 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905592', 'tblTempUsageDetail_20' ) end [2025-04-14 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905592', 'tblTempVendorCDR_20' ) start [2025-04-14 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905592', 'tblTempVendorCDR_20' ) end [2025-04-14 10:21:18] Production.INFO: ProcessCDR(1,14905592,1,1,2) [2025-04-14 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905592', 'tblTempUsageDetail_20' ) start [2025-04-14 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905592', 'tblTempUsageDetail_20' ) end [2025-04-14 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:21:23] Production.INFO: ==2875== Releasing lock... [2025-04-14 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:21:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-14 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:22:05 [end_date_ymd] => 2025-04-14 10:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:22:05' and `end` < '2025-04-14 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-04-14 10:22:18] Production.INFO: count ==2898 [2025-04-14 10:22:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:22:05 - End Time 2025-04-14 10:22:05 [2025-04-14 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905597', 'tblTempUsageDetail_20' ) start [2025-04-14 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905597', 'tblTempUsageDetail_20' ) end [2025-04-14 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905597', 'tblTempVendorCDR_20' ) start [2025-04-14 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905597', 'tblTempVendorCDR_20' ) end [2025-04-14 10:22:20] Production.INFO: ProcessCDR(1,14905597,1,1,2) [2025-04-14 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905597', 'tblTempUsageDetail_20' ) start [2025-04-14 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905597', 'tblTempUsageDetail_20' ) end [2025-04-14 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:22:24] Production.INFO: ==2996== Releasing lock... [2025-04-14 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:22:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-14 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:23:05 [end_date_ymd] => 2025-04-14 10:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:23:05' and `end` < '2025-04-14 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-04-14 10:23:19] Production.INFO: count ==2916 [2025-04-14 10:23:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:23:05 - End Time 2025-04-14 10:23:05 [2025-04-14 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905602', 'tblTempUsageDetail_20' ) start [2025-04-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905602', 'tblTempUsageDetail_20' ) end [2025-04-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905602', 'tblTempVendorCDR_20' ) start [2025-04-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905602', 'tblTempVendorCDR_20' ) end [2025-04-14 10:23:20] Production.INFO: ProcessCDR(1,14905602,1,1,2) [2025-04-14 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905602', 'tblTempUsageDetail_20' ) start [2025-04-14 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905602', 'tblTempUsageDetail_20' ) end [2025-04-14 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:23:25] Production.INFO: ==3076== Releasing lock... [2025-04-14 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:23:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-14 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:24:05 [end_date_ymd] => 2025-04-14 10:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:24:05' and `end` < '2025-04-14 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-04-14 10:24:18] Production.INFO: count ==2942 [2025-04-14 10:24:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:24:05 - End Time 2025-04-14 10:24:05 [2025-04-14 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905607', 'tblTempUsageDetail_20' ) start [2025-04-14 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905607', 'tblTempUsageDetail_20' ) end [2025-04-14 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905607', 'tblTempVendorCDR_20' ) start [2025-04-14 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905607', 'tblTempVendorCDR_20' ) end [2025-04-14 10:24:19] Production.INFO: ProcessCDR(1,14905607,1,1,2) [2025-04-14 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905607', 'tblTempUsageDetail_20' ) start [2025-04-14 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905607', 'tblTempUsageDetail_20' ) end [2025-04-14 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:24:24] Production.INFO: ==3147== Releasing lock... [2025-04-14 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:24:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-14 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:25:05 [end_date_ymd] => 2025-04-14 10:25:05 [RateCDR] => 1 ) [2025-04-14 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:25:05' and `end` < '2025-04-14 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:25:19] Production.INFO: count ==2955 [2025-04-14 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:25:05 - End Time 2025-04-14 10:25:05 [2025-04-14 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905612', 'tblTempUsageDetail_20' ) start [2025-04-14 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905612', 'tblTempUsageDetail_20' ) end [2025-04-14 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905612', 'tblTempVendorCDR_20' ) start [2025-04-14 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905612', 'tblTempVendorCDR_20' ) end [2025-04-14 10:25:20] Production.INFO: ProcessCDR(1,14905612,1,1,2) [2025-04-14 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905612', 'tblTempUsageDetail_20' ) start [2025-04-14 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905612', 'tblTempUsageDetail_20' ) end [2025-04-14 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:25:25] Production.INFO: ==3220== Releasing lock... [2025-04-14 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:25:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-14 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:26:05 [end_date_ymd] => 2025-04-14 10:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:26:05' and `end` < '2025-04-14 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-04-14 10:26:18] Production.INFO: count ==2973 [2025-04-14 10:26:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:26:05 - End Time 2025-04-14 10:26:05 [2025-04-14 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905617', 'tblTempUsageDetail_20' ) start [2025-04-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905617', 'tblTempUsageDetail_20' ) end [2025-04-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905617', 'tblTempVendorCDR_20' ) start [2025-04-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905617', 'tblTempVendorCDR_20' ) end [2025-04-14 10:26:20] Production.INFO: ProcessCDR(1,14905617,1,1,2) [2025-04-14 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905617', 'tblTempUsageDetail_20' ) start [2025-04-14 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905617', 'tblTempUsageDetail_20' ) end [2025-04-14 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:26:24] Production.INFO: ==3299== Releasing lock... [2025-04-14 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:26:24] Production.INFO: 50 MB #Memory Used# [2025-04-14 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:27:05 [end_date_ymd] => 2025-04-14 10:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:27:05' and `end` < '2025-04-14 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-04-14 10:27:18] Production.INFO: count ==2987 [2025-04-14 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:27:05 - End Time 2025-04-14 10:27:05 [2025-04-14 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905622', 'tblTempUsageDetail_20' ) start [2025-04-14 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905622', 'tblTempUsageDetail_20' ) end [2025-04-14 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905622', 'tblTempVendorCDR_20' ) start [2025-04-14 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905622', 'tblTempVendorCDR_20' ) end [2025-04-14 10:27:20] Production.INFO: ProcessCDR(1,14905622,1,1,2) [2025-04-14 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905622', 'tblTempUsageDetail_20' ) start [2025-04-14 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905622', 'tblTempUsageDetail_20' ) end [2025-04-14 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:27:24] Production.INFO: ==3371== Releasing lock... [2025-04-14 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:27:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-14 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:28:04 [end_date_ymd] => 2025-04-14 10:28:04 [RateCDR] => 1 ) [2025-04-14 10:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:28:04' and `end` < '2025-04-14 10:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:28:18] Production.INFO: count ==3006 [2025-04-14 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:28:04 - End Time 2025-04-14 10:28:04 [2025-04-14 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905627', 'tblTempUsageDetail_20' ) start [2025-04-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905627', 'tblTempUsageDetail_20' ) end [2025-04-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905627', 'tblTempVendorCDR_20' ) start [2025-04-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905627', 'tblTempVendorCDR_20' ) end [2025-04-14 10:28:20] Production.INFO: ProcessCDR(1,14905627,1,1,2) [2025-04-14 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905627', 'tblTempUsageDetail_20' ) start [2025-04-14 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905627', 'tblTempUsageDetail_20' ) end [2025-04-14 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:28:25] Production.INFO: ==3444== Releasing lock... [2025-04-14 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:28:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-14 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:29:05 [end_date_ymd] => 2025-04-14 10:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:29:05' and `end` < '2025-04-14 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-04-14 10:29:19] Production.INFO: count ==3036 [2025-04-14 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:29:05 - End Time 2025-04-14 10:29:05 [2025-04-14 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905632', 'tblTempUsageDetail_20' ) start [2025-04-14 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905632', 'tblTempUsageDetail_20' ) end [2025-04-14 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905632', 'tblTempVendorCDR_20' ) start [2025-04-14 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905632', 'tblTempVendorCDR_20' ) end [2025-04-14 10:29:20] Production.INFO: ProcessCDR(1,14905632,1,1,2) [2025-04-14 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905632', 'tblTempUsageDetail_20' ) start [2025-04-14 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905632', 'tblTempUsageDetail_20' ) end [2025-04-14 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:29:25] Production.INFO: ==3518== Releasing lock... [2025-04-14 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:29:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-14 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:30:06 [end_date_ymd] => 2025-04-14 10:30:06 [RateCDR] => 1 ) [2025-04-14 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:30:06' and `end` < '2025-04-14 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:30:19] Production.INFO: count ==3082 [2025-04-14 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-14 07:30:06 - End Time 2025-04-14 10:30:06 [2025-04-14 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905637', 'tblTempUsageDetail_20' ) start [2025-04-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905637', 'tblTempUsageDetail_20' ) end [2025-04-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905637', 'tblTempVendorCDR_20' ) start [2025-04-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905637', 'tblTempVendorCDR_20' ) end [2025-04-14 10:30:21] Production.INFO: ProcessCDR(1,14905637,1,1,2) [2025-04-14 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905637', 'tblTempUsageDetail_20' ) start [2025-04-14 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905637', 'tblTempUsageDetail_20' ) end [2025-04-14 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:30:26] Production.INFO: ==3594== Releasing lock... [2025-04-14 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:30:26] Production.INFO: 51 MB #Memory Used# [2025-04-14 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:31:04 [end_date_ymd] => 2025-04-14 10:31:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:31:04' and `end` < '2025-04-14 10:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:31:18] Production.INFO: count ==3217 [2025-04-14 10:31:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:31:04 - End Time 2025-04-14 10:31:04 [2025-04-14 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905643', 'tblTempUsageDetail_20' ) start [2025-04-14 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905643', 'tblTempUsageDetail_20' ) end [2025-04-14 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905643', 'tblTempVendorCDR_20' ) start [2025-04-14 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905643', 'tblTempVendorCDR_20' ) end [2025-04-14 10:31:19] Production.INFO: ProcessCDR(1,14905643,1,1,2) [2025-04-14 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905643', 'tblTempUsageDetail_20' ) start [2025-04-14 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905643', 'tblTempUsageDetail_20' ) end [2025-04-14 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:31:24] Production.INFO: ==3672== Releasing lock... [2025-04-14 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:31:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-14 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:32:05 [end_date_ymd] => 2025-04-14 10:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:32:05' and `end` < '2025-04-14 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-04-14 10:32:19] Production.INFO: count ==3266 [2025-04-14 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:32:05 - End Time 2025-04-14 10:32:05 [2025-04-14 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905648', 'tblTempUsageDetail_20' ) start [2025-04-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905648', 'tblTempUsageDetail_20' ) end [2025-04-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905648', 'tblTempVendorCDR_20' ) start [2025-04-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905648', 'tblTempVendorCDR_20' ) end [2025-04-14 10:32:20] Production.INFO: ProcessCDR(1,14905648,1,1,2) [2025-04-14 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905648', 'tblTempUsageDetail_20' ) start [2025-04-14 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905648', 'tblTempUsageDetail_20' ) end [2025-04-14 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:32:25] Production.INFO: ==3746== Releasing lock... [2025-04-14 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:32:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-14 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:33:05 [end_date_ymd] => 2025-04-14 10:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:33:05' and `end` < '2025-04-14 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-04-14 10:33:19] Production.INFO: count ==3279 [2025-04-14 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:33:05 - End Time 2025-04-14 10:33:05 [2025-04-14 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905653', 'tblTempUsageDetail_20' ) start [2025-04-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905653', 'tblTempUsageDetail_20' ) end [2025-04-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905653', 'tblTempVendorCDR_20' ) start [2025-04-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905653', 'tblTempVendorCDR_20' ) end [2025-04-14 10:33:20] Production.INFO: ProcessCDR(1,14905653,1,1,2) [2025-04-14 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905653', 'tblTempUsageDetail_20' ) start [2025-04-14 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905653', 'tblTempUsageDetail_20' ) end [2025-04-14 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:33:25] Production.INFO: ==3820== Releasing lock... [2025-04-14 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:33:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-14 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:34:05 [end_date_ymd] => 2025-04-14 10:34:05 [RateCDR] => 1 ) [2025-04-14 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:34:05' and `end` < '2025-04-14 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:34:19] Production.INFO: count ==3296 [2025-04-14 10:34:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:34:05 - End Time 2025-04-14 10:34:05 [2025-04-14 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905658', 'tblTempUsageDetail_20' ) start [2025-04-14 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905658', 'tblTempUsageDetail_20' ) end [2025-04-14 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905658', 'tblTempVendorCDR_20' ) start [2025-04-14 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905658', 'tblTempVendorCDR_20' ) end [2025-04-14 10:34:20] Production.INFO: ProcessCDR(1,14905658,1,1,2) [2025-04-14 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905658', 'tblTempUsageDetail_20' ) start [2025-04-14 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905658', 'tblTempUsageDetail_20' ) end [2025-04-14 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:34:25] Production.INFO: ==3891== Releasing lock... [2025-04-14 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:34:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-14 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:35:05 [end_date_ymd] => 2025-04-14 10:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:35:05' and `end` < '2025-04-14 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-04-14 10:35:18] Production.INFO: count ==3317 [2025-04-14 10:35:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:35:05 - End Time 2025-04-14 10:35:05 [2025-04-14 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905663', 'tblTempUsageDetail_20' ) start [2025-04-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905663', 'tblTempUsageDetail_20' ) end [2025-04-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905663', 'tblTempVendorCDR_20' ) start [2025-04-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905663', 'tblTempVendorCDR_20' ) end [2025-04-14 10:35:20] Production.INFO: ProcessCDR(1,14905663,1,1,2) [2025-04-14 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905663', 'tblTempUsageDetail_20' ) start [2025-04-14 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905663', 'tblTempUsageDetail_20' ) end [2025-04-14 10:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:35:23] Production.INFO: ==3966== Releasing lock... [2025-04-14 10:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:35:23] Production.INFO: 53 MB #Memory Used# [2025-04-14 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:36:05 [end_date_ymd] => 2025-04-14 10:36:05 [RateCDR] => 1 ) [2025-04-14 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:36:05' and `end` < '2025-04-14 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:36:18] Production.INFO: count ==3357 [2025-04-14 10:36:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:36:05 - End Time 2025-04-14 10:36:05 [2025-04-14 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905668', 'tblTempUsageDetail_20' ) start [2025-04-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905668', 'tblTempUsageDetail_20' ) end [2025-04-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905668', 'tblTempVendorCDR_20' ) start [2025-04-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905668', 'tblTempVendorCDR_20' ) end [2025-04-14 10:36:20] Production.INFO: ProcessCDR(1,14905668,1,1,2) [2025-04-14 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905668', 'tblTempUsageDetail_20' ) start [2025-04-14 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905668', 'tblTempUsageDetail_20' ) end [2025-04-14 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:36:25] Production.INFO: ==4045== Releasing lock... [2025-04-14 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:36:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:37:04 [end_date_ymd] => 2025-04-14 10:37:04 [RateCDR] => 1 ) [2025-04-14 10: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-04-14 07:37:04' and `end` < '2025-04-14 10: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-04-14 10:37:18] Production.INFO: count ==3368 [2025-04-14 10:37:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:37:04 - End Time 2025-04-14 10:37:04 [2025-04-14 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905673', 'tblTempUsageDetail_20' ) start [2025-04-14 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905673', 'tblTempUsageDetail_20' ) end [2025-04-14 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905673', 'tblTempVendorCDR_20' ) start [2025-04-14 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905673', 'tblTempVendorCDR_20' ) end [2025-04-14 10:37:19] Production.INFO: ProcessCDR(1,14905673,1,1,2) [2025-04-14 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905673', 'tblTempUsageDetail_20' ) start [2025-04-14 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905673', 'tblTempUsageDetail_20' ) end [2025-04-14 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:37:24] Production.INFO: ==4116== Releasing lock... [2025-04-14 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:37:24] Production.INFO: 53 MB #Memory Used# [2025-04-14 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:38:04 [end_date_ymd] => 2025-04-14 10:38:04 [RateCDR] => 1 ) [2025-04-14 10: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-04-14 07:38:04' and `end` < '2025-04-14 10: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-04-14 10:38:18] Production.INFO: count ==3396 [2025-04-14 10:38:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:38:04 - End Time 2025-04-14 10:38:04 [2025-04-14 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905678', 'tblTempUsageDetail_20' ) start [2025-04-14 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905678', 'tblTempUsageDetail_20' ) end [2025-04-14 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905678', 'tblTempVendorCDR_20' ) start [2025-04-14 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905678', 'tblTempVendorCDR_20' ) end [2025-04-14 10:38:20] Production.INFO: ProcessCDR(1,14905678,1,1,2) [2025-04-14 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905678', 'tblTempUsageDetail_20' ) start [2025-04-14 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905678', 'tblTempUsageDetail_20' ) end [2025-04-14 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:38:25] Production.INFO: ==4231== Releasing lock... [2025-04-14 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:38:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:39:05 [end_date_ymd] => 2025-04-14 10:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:39:05' and `end` < '2025-04-14 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-04-14 10:39:19] Production.INFO: count ==3407 [2025-04-14 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:39:05 - End Time 2025-04-14 10:39:05 [2025-04-14 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905683', 'tblTempUsageDetail_20' ) start [2025-04-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905683', 'tblTempUsageDetail_20' ) end [2025-04-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905683', 'tblTempVendorCDR_20' ) start [2025-04-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905683', 'tblTempVendorCDR_20' ) end [2025-04-14 10:39:20] Production.INFO: ProcessCDR(1,14905683,1,1,2) [2025-04-14 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905683', 'tblTempUsageDetail_20' ) start [2025-04-14 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905683', 'tblTempUsageDetail_20' ) end [2025-04-14 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:39:25] Production.INFO: ==4305== Releasing lock... [2025-04-14 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:39:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-14 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:40:05 [end_date_ymd] => 2025-04-14 10:40:05 [RateCDR] => 1 ) [2025-04-14 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:40:05' and `end` < '2025-04-14 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:40:19] Production.INFO: count ==3430 [2025-04-14 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:40:05 - End Time 2025-04-14 10:40:05 [2025-04-14 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905688', 'tblTempUsageDetail_20' ) start [2025-04-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905688', 'tblTempUsageDetail_20' ) end [2025-04-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905688', 'tblTempVendorCDR_20' ) start [2025-04-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905688', 'tblTempVendorCDR_20' ) end [2025-04-14 10:40:20] Production.INFO: ProcessCDR(1,14905688,1,1,2) [2025-04-14 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905688', 'tblTempUsageDetail_20' ) start [2025-04-14 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905688', 'tblTempUsageDetail_20' ) end [2025-04-14 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:40:25] Production.INFO: ==4381== Releasing lock... [2025-04-14 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:40:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-14 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:41:05 [end_date_ymd] => 2025-04-14 10:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:41:05' and `end` < '2025-04-14 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-04-14 10:41:19] Production.INFO: count ==3560 [2025-04-14 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:41:05 - End Time 2025-04-14 10:41:05 [2025-04-14 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905694', 'tblTempUsageDetail_20' ) start [2025-04-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905694', 'tblTempUsageDetail_20' ) end [2025-04-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905694', 'tblTempVendorCDR_20' ) start [2025-04-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905694', 'tblTempVendorCDR_20' ) end [2025-04-14 10:41:20] Production.INFO: ProcessCDR(1,14905694,1,1,2) [2025-04-14 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905694', 'tblTempUsageDetail_20' ) start [2025-04-14 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905694', 'tblTempUsageDetail_20' ) end [2025-04-14 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:41:25] Production.INFO: ==4455== Releasing lock... [2025-04-14 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:41:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-14 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:42:05 [end_date_ymd] => 2025-04-14 10:42:05 [RateCDR] => 1 ) [2025-04-14 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:42:05' and `end` < '2025-04-14 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:42:18] Production.INFO: count ==3602 [2025-04-14 10:42:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:42:05 - End Time 2025-04-14 10:42:05 [2025-04-14 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905699', 'tblTempUsageDetail_20' ) start [2025-04-14 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905699', 'tblTempUsageDetail_20' ) end [2025-04-14 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905699', 'tblTempVendorCDR_20' ) start [2025-04-14 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905699', 'tblTempVendorCDR_20' ) end [2025-04-14 10:42:20] Production.INFO: ProcessCDR(1,14905699,1,1,2) [2025-04-14 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905699', 'tblTempUsageDetail_20' ) start [2025-04-14 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905699', 'tblTempUsageDetail_20' ) end [2025-04-14 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:42:25] Production.INFO: ==4529== Releasing lock... [2025-04-14 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:42:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-14 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:43:05 [end_date_ymd] => 2025-04-14 10:43:05 [RateCDR] => 1 ) [2025-04-14 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:43:05' and `end` < '2025-04-14 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:43:19] Production.INFO: count ==3619 [2025-04-14 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:43:05 - End Time 2025-04-14 10:43:05 [2025-04-14 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905704', 'tblTempUsageDetail_20' ) start [2025-04-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905704', 'tblTempUsageDetail_20' ) end [2025-04-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905704', 'tblTempVendorCDR_20' ) start [2025-04-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905704', 'tblTempVendorCDR_20' ) end [2025-04-14 10:43:20] Production.INFO: ProcessCDR(1,14905704,1,1,2) [2025-04-14 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905704', 'tblTempUsageDetail_20' ) start [2025-04-14 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905704', 'tblTempUsageDetail_20' ) end [2025-04-14 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:43:26] Production.INFO: ==4607== Releasing lock... [2025-04-14 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:43:26] Production.INFO: 55 MB #Memory Used# [2025-04-14 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:44:05 [end_date_ymd] => 2025-04-14 10:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:44:05' and `end` < '2025-04-14 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-04-14 10:44:19] Production.INFO: count ==3633 [2025-04-14 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:44:05 - End Time 2025-04-14 10:44:05 [2025-04-14 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905709', 'tblTempUsageDetail_20' ) start [2025-04-14 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905709', 'tblTempUsageDetail_20' ) end [2025-04-14 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905709', 'tblTempVendorCDR_20' ) start [2025-04-14 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905709', 'tblTempVendorCDR_20' ) end [2025-04-14 10:44:20] Production.INFO: ProcessCDR(1,14905709,1,1,2) [2025-04-14 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905709', 'tblTempUsageDetail_20' ) start [2025-04-14 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905709', 'tblTempUsageDetail_20' ) end [2025-04-14 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:44:26] Production.INFO: ==4681== Releasing lock... [2025-04-14 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:44:26] Production.INFO: 55 MB #Memory Used# [2025-04-14 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:45:05 [end_date_ymd] => 2025-04-14 10:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:45:05' and `end` < '2025-04-14 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-04-14 10:45:19] Production.INFO: count ==3646 [2025-04-14 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:45:05 - End Time 2025-04-14 10:45:05 [2025-04-14 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905714', 'tblTempUsageDetail_20' ) start [2025-04-14 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905714', 'tblTempUsageDetail_20' ) end [2025-04-14 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905714', 'tblTempVendorCDR_20' ) start [2025-04-14 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905714', 'tblTempVendorCDR_20' ) end [2025-04-14 10:45:20] Production.INFO: ProcessCDR(1,14905714,1,1,2) [2025-04-14 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905714', 'tblTempUsageDetail_20' ) start [2025-04-14 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905714', 'tblTempUsageDetail_20' ) end [2025-04-14 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:45:25] Production.INFO: ==4751== Releasing lock... [2025-04-14 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:45:25] Production.INFO: 56 MB #Memory Used# [2025-04-14 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:46:05 [end_date_ymd] => 2025-04-14 10:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:46:05' and `end` < '2025-04-14 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-04-14 10:46:19] Production.INFO: count ==3662 [2025-04-14 10:46:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:46:05 - End Time 2025-04-14 10:46:05 [2025-04-14 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905719', 'tblTempUsageDetail_20' ) start [2025-04-14 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905719', 'tblTempUsageDetail_20' ) end [2025-04-14 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905719', 'tblTempVendorCDR_20' ) start [2025-04-14 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905719', 'tblTempVendorCDR_20' ) end [2025-04-14 10:46:20] Production.INFO: ProcessCDR(1,14905719,1,1,2) [2025-04-14 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905719', 'tblTempUsageDetail_20' ) start [2025-04-14 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905719', 'tblTempUsageDetail_20' ) end [2025-04-14 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:46:25] Production.INFO: ==4825== Releasing lock... [2025-04-14 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:46:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-14 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:47:04 [end_date_ymd] => 2025-04-14 10:47:04 [RateCDR] => 1 ) [2025-04-14 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:47:04' and `end` < '2025-04-14 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:47:18] Production.INFO: count ==3689 [2025-04-14 10:47:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:47:04 - End Time 2025-04-14 10:47:04 [2025-04-14 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905720', 'tblTempUsageDetail_20' ) start [2025-04-14 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905720', 'tblTempUsageDetail_20' ) end [2025-04-14 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905720', 'tblTempVendorCDR_20' ) start [2025-04-14 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905720', 'tblTempVendorCDR_20' ) end [2025-04-14 10:47:19] Production.INFO: ProcessCDR(1,14905720,1,1,2) [2025-04-14 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905720', 'tblTempUsageDetail_20' ) start [2025-04-14 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905720', 'tblTempUsageDetail_20' ) end [2025-04-14 10:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:47:24] Production.INFO: ==4897== Releasing lock... [2025-04-14 10:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:47:24] Production.INFO: 56 MB #Memory Used# [2025-04-14 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:48:05 [end_date_ymd] => 2025-04-14 10:48:05 [RateCDR] => 1 ) [2025-04-14 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:48:05' and `end` < '2025-04-14 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:48:18] Production.INFO: count ==3705 [2025-04-14 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:48:05 - End Time 2025-04-14 10:48:05 [2025-04-14 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905729', 'tblTempUsageDetail_20' ) start [2025-04-14 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905729', 'tblTempUsageDetail_20' ) end [2025-04-14 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905729', 'tblTempVendorCDR_20' ) start [2025-04-14 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905729', 'tblTempVendorCDR_20' ) end [2025-04-14 10:48:20] Production.INFO: ProcessCDR(1,14905729,1,1,2) [2025-04-14 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905729', 'tblTempUsageDetail_20' ) start [2025-04-14 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905729', 'tblTempUsageDetail_20' ) end [2025-04-14 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:48:25] Production.INFO: ==4975== Releasing lock... [2025-04-14 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:48:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-14 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:49:05 [end_date_ymd] => 2025-04-14 10:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:49:05' and `end` < '2025-04-14 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-04-14 10:49:18] Production.INFO: count ==3724 [2025-04-14 10:49:19] Production.ERROR: pbx CDR StartTime 2025-04-14 07:49:05 - End Time 2025-04-14 10:49:05 [2025-04-14 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905734', 'tblTempUsageDetail_20' ) start [2025-04-14 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905734', 'tblTempUsageDetail_20' ) end [2025-04-14 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905734', 'tblTempVendorCDR_20' ) start [2025-04-14 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905734', 'tblTempVendorCDR_20' ) end [2025-04-14 10:49:20] Production.INFO: ProcessCDR(1,14905734,1,1,2) [2025-04-14 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905734', 'tblTempUsageDetail_20' ) start [2025-04-14 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905734', 'tblTempUsageDetail_20' ) end [2025-04-14 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:49:25] Production.INFO: ==5054== Releasing lock... [2025-04-14 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:49:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-14 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:50:05 [end_date_ymd] => 2025-04-14 10:50:05 [RateCDR] => 1 ) [2025-04-14 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:50:05' and `end` < '2025-04-14 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:50:19] Production.INFO: count ==3743 [2025-04-14 10:50:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:50:05 - End Time 2025-04-14 10:50:05 [2025-04-14 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905740', 'tblTempUsageDetail_20' ) start [2025-04-14 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905740', 'tblTempUsageDetail_20' ) end [2025-04-14 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905740', 'tblTempVendorCDR_20' ) start [2025-04-14 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905740', 'tblTempVendorCDR_20' ) end [2025-04-14 10:50:20] Production.INFO: ProcessCDR(1,14905740,1,1,2) [2025-04-14 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905740', 'tblTempUsageDetail_20' ) start [2025-04-14 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905740', 'tblTempUsageDetail_20' ) end [2025-04-14 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:50:25] Production.INFO: ==5129== Releasing lock... [2025-04-14 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:50:25] Production.INFO: 56 MB #Memory Used# [2025-04-14 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:51:05 [end_date_ymd] => 2025-04-14 10:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:51:05' and `end` < '2025-04-14 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-04-14 10:51:19] Production.INFO: count ==3862 [2025-04-14 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:51:05 - End Time 2025-04-14 10:51:05 [2025-04-14 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905745', 'tblTempUsageDetail_20' ) start [2025-04-14 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905745', 'tblTempUsageDetail_20' ) end [2025-04-14 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905745', 'tblTempVendorCDR_20' ) start [2025-04-14 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905745', 'tblTempVendorCDR_20' ) end [2025-04-14 10:51:21] Production.INFO: ProcessCDR(1,14905745,1,1,2) [2025-04-14 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905745', 'tblTempUsageDetail_20' ) start [2025-04-14 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905745', 'tblTempUsageDetail_20' ) end [2025-04-14 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:51:25] Production.INFO: ==5209== Releasing lock... [2025-04-14 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:51:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-14 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:52:05 [end_date_ymd] => 2025-04-14 10:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:52:05' and `end` < '2025-04-14 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-04-14 10:52:19] Production.INFO: count ==3892 [2025-04-14 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:52:05 - End Time 2025-04-14 10:52:05 [2025-04-14 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905750', 'tblTempUsageDetail_20' ) start [2025-04-14 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905750', 'tblTempUsageDetail_20' ) end [2025-04-14 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905750', 'tblTempVendorCDR_20' ) start [2025-04-14 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905750', 'tblTempVendorCDR_20' ) end [2025-04-14 10:52:20] Production.INFO: ProcessCDR(1,14905750,1,1,2) [2025-04-14 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905750', 'tblTempUsageDetail_20' ) start [2025-04-14 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905750', 'tblTempUsageDetail_20' ) end [2025-04-14 10:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:52:23] Production.INFO: ==5281== Releasing lock... [2025-04-14 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:52:23] Production.INFO: 57 MB #Memory Used# [2025-04-14 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:53:05 [end_date_ymd] => 2025-04-14 10:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:53:05' and `end` < '2025-04-14 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-04-14 10:53:19] Production.INFO: count ==3896 [2025-04-14 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:53:05 - End Time 2025-04-14 10:53:05 [2025-04-14 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905755', 'tblTempUsageDetail_20' ) start [2025-04-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905755', 'tblTempUsageDetail_20' ) end [2025-04-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905755', 'tblTempVendorCDR_20' ) start [2025-04-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905755', 'tblTempVendorCDR_20' ) end [2025-04-14 10:53:20] Production.INFO: ProcessCDR(1,14905755,1,1,2) [2025-04-14 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905755', 'tblTempUsageDetail_20' ) start [2025-04-14 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905755', 'tblTempUsageDetail_20' ) end [2025-04-14 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:53:25] Production.INFO: ==5394== Releasing lock... [2025-04-14 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:53:25] Production.INFO: 57 MB #Memory Used# [2025-04-14 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:54:05 [end_date_ymd] => 2025-04-14 10:54:05 [RateCDR] => 1 ) [2025-04-14 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 07:54:05' and `end` < '2025-04-14 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 10:54:18] Production.INFO: count ==3903 [2025-04-14 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:54:05 - End Time 2025-04-14 10:54:05 [2025-04-14 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905760', 'tblTempUsageDetail_20' ) start [2025-04-14 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905760', 'tblTempUsageDetail_20' ) end [2025-04-14 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905760', 'tblTempVendorCDR_20' ) start [2025-04-14 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905760', 'tblTempVendorCDR_20' ) end [2025-04-14 10:54:20] Production.INFO: ProcessCDR(1,14905760,1,1,2) [2025-04-14 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905760', 'tblTempUsageDetail_20' ) start [2025-04-14 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905760', 'tblTempUsageDetail_20' ) end [2025-04-14 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:54:25] Production.INFO: ==5473== Releasing lock... [2025-04-14 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:54:25] Production.INFO: 57 MB #Memory Used# [2025-04-14 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:55:05 [end_date_ymd] => 2025-04-14 10:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:55:05' and `end` < '2025-04-14 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-04-14 10:55:19] Production.INFO: count ==3908 [2025-04-14 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:55:05 - End Time 2025-04-14 10:55:05 [2025-04-14 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905765', 'tblTempUsageDetail_20' ) start [2025-04-14 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905765', 'tblTempUsageDetail_20' ) end [2025-04-14 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905765', 'tblTempVendorCDR_20' ) start [2025-04-14 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905765', 'tblTempVendorCDR_20' ) end [2025-04-14 10:55:21] Production.INFO: ProcessCDR(1,14905765,1,1,2) [2025-04-14 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905765', 'tblTempUsageDetail_20' ) start [2025-04-14 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905765', 'tblTempUsageDetail_20' ) end [2025-04-14 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:55:26] Production.INFO: ==5548== Releasing lock... [2025-04-14 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:55:26] Production.INFO: 58 MB #Memory Used# [2025-04-14 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:56:05 [end_date_ymd] => 2025-04-14 10:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:56:05' and `end` < '2025-04-14 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-04-14 10:56:19] Production.INFO: count ==3916 [2025-04-14 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:56:05 - End Time 2025-04-14 10:56:05 [2025-04-14 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905770', 'tblTempUsageDetail_20' ) start [2025-04-14 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905770', 'tblTempUsageDetail_20' ) end [2025-04-14 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905770', 'tblTempVendorCDR_20' ) start [2025-04-14 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905770', 'tblTempVendorCDR_20' ) end [2025-04-14 10:56:20] Production.INFO: ProcessCDR(1,14905770,1,1,2) [2025-04-14 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905770', 'tblTempUsageDetail_20' ) start [2025-04-14 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905770', 'tblTempUsageDetail_20' ) end [2025-04-14 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:56:25] Production.INFO: ==5627== Releasing lock... [2025-04-14 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:56:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-14 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:57:05 [end_date_ymd] => 2025-04-14 10:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:57:05' and `end` < '2025-04-14 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-04-14 10:57:19] Production.INFO: count ==3931 [2025-04-14 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:57:05 - End Time 2025-04-14 10:57:05 [2025-04-14 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905775', 'tblTempUsageDetail_20' ) start [2025-04-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905775', 'tblTempUsageDetail_20' ) end [2025-04-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905775', 'tblTempVendorCDR_20' ) start [2025-04-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905775', 'tblTempVendorCDR_20' ) end [2025-04-14 10:57:20] Production.INFO: ProcessCDR(1,14905775,1,1,2) [2025-04-14 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905775', 'tblTempUsageDetail_20' ) start [2025-04-14 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905775', 'tblTempUsageDetail_20' ) end [2025-04-14 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:57:25] Production.INFO: ==5702== Releasing lock... [2025-04-14 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:57:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-14 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:58:05 [end_date_ymd] => 2025-04-14 10:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:58:05' and `end` < '2025-04-14 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-04-14 10:58:18] Production.INFO: count ==3945 [2025-04-14 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:58:05 - End Time 2025-04-14 10:58:05 [2025-04-14 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905780', 'tblTempUsageDetail_20' ) start [2025-04-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905780', 'tblTempUsageDetail_20' ) end [2025-04-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905780', 'tblTempVendorCDR_20' ) start [2025-04-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905780', 'tblTempVendorCDR_20' ) end [2025-04-14 10:58:20] Production.INFO: ProcessCDR(1,14905780,1,1,2) [2025-04-14 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905780', 'tblTempUsageDetail_20' ) start [2025-04-14 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905780', 'tblTempUsageDetail_20' ) end [2025-04-14 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:58:24] Production.INFO: ==5774== Releasing lock... [2025-04-14 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:58:24] Production.INFO: 57.5 MB #Memory Used# [2025-04-14 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 07:59:05 [end_date_ymd] => 2025-04-14 10:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 07:59:05' and `end` < '2025-04-14 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-04-14 10:59:18] Production.INFO: count ==3957 [2025-04-14 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-14 07:59:05 - End Time 2025-04-14 10:59:05 [2025-04-14 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905785', 'tblTempUsageDetail_20' ) start [2025-04-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905785', 'tblTempUsageDetail_20' ) end [2025-04-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905785', 'tblTempVendorCDR_20' ) start [2025-04-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905785', 'tblTempVendorCDR_20' ) end [2025-04-14 10:59:20] Production.INFO: ProcessCDR(1,14905785,1,1,2) [2025-04-14 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905785', 'tblTempUsageDetail_20' ) start [2025-04-14 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905785', 'tblTempUsageDetail_20' ) end [2025-04-14 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 10:59:25] Production.INFO: ==5850== Releasing lock... [2025-04-14 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 10:59:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-14 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:00:06 [end_date_ymd] => 2025-04-14 11:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:00:06' and `end` < '2025-04-14 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-04-14 11:00:20] Production.INFO: count ==3967 [2025-04-14 11:00:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:00:06 - End Time 2025-04-14 11:00:06 [2025-04-14 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905791', 'tblTempUsageDetail_20' ) start [2025-04-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905791', 'tblTempUsageDetail_20' ) end [2025-04-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905791', 'tblTempVendorCDR_20' ) start [2025-04-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905791', 'tblTempVendorCDR_20' ) end [2025-04-14 11:00:21] Production.INFO: ProcessCDR(1,14905791,1,1,2) [2025-04-14 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905791', 'tblTempUsageDetail_20' ) start [2025-04-14 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905791', 'tblTempUsageDetail_20' ) end [2025-04-14 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:00:26] Production.INFO: ==5927== Releasing lock... [2025-04-14 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:00:26] Production.INFO: 57.5 MB #Memory Used# [2025-04-14 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:01:05 [end_date_ymd] => 2025-04-14 11:01:05 [RateCDR] => 1 ) [2025-04-14 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:01:05' and `end` < '2025-04-14 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:01:18] Production.INFO: count ==4068 [2025-04-14 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:01:05 - End Time 2025-04-14 11:01:05 [2025-04-14 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905796', 'tblTempUsageDetail_20' ) start [2025-04-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905796', 'tblTempUsageDetail_20' ) end [2025-04-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905796', 'tblTempVendorCDR_20' ) start [2025-04-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905796', 'tblTempVendorCDR_20' ) end [2025-04-14 11:01:20] Production.INFO: ProcessCDR(1,14905796,1,1,2) [2025-04-14 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905796', 'tblTempUsageDetail_20' ) start [2025-04-14 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905796', 'tblTempUsageDetail_20' ) end [2025-04-14 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:01:25] Production.INFO: ==6020== Releasing lock... [2025-04-14 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:01:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-14 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:02:05 [end_date_ymd] => 2025-04-14 11:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:02:05' and `end` < '2025-04-14 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-04-14 11:02:18] Production.INFO: count ==4102 [2025-04-14 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:02:05 - End Time 2025-04-14 11:02:05 [2025-04-14 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905801', 'tblTempUsageDetail_20' ) start [2025-04-14 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905801', 'tblTempUsageDetail_20' ) end [2025-04-14 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905801', 'tblTempVendorCDR_20' ) start [2025-04-14 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905801', 'tblTempVendorCDR_20' ) end [2025-04-14 11:02:20] Production.INFO: ProcessCDR(1,14905801,1,1,2) [2025-04-14 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905801', 'tblTempUsageDetail_20' ) start [2025-04-14 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905801', 'tblTempUsageDetail_20' ) end [2025-04-14 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:02:25] Production.INFO: ==6173== Releasing lock... [2025-04-14 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:02:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-14 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:03:05 [end_date_ymd] => 2025-04-14 11:03:05 [RateCDR] => 1 ) [2025-04-14 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:03:05' and `end` < '2025-04-14 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:03:18] Production.INFO: count ==4097 [2025-04-14 11:03:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:03:05 - End Time 2025-04-14 11:03:05 [2025-04-14 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905806', 'tblTempUsageDetail_20' ) start [2025-04-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905806', 'tblTempUsageDetail_20' ) end [2025-04-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905806', 'tblTempVendorCDR_20' ) start [2025-04-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905806', 'tblTempVendorCDR_20' ) end [2025-04-14 11:03:20] Production.INFO: ProcessCDR(1,14905806,1,1,2) [2025-04-14 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905806', 'tblTempUsageDetail_20' ) start [2025-04-14 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905806', 'tblTempUsageDetail_20' ) end [2025-04-14 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:03:25] Production.INFO: ==6249== Releasing lock... [2025-04-14 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:03:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-14 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:04:05 [end_date_ymd] => 2025-04-14 11:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:04:05' and `end` < '2025-04-14 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-04-14 11:04:19] Production.INFO: count ==4123 [2025-04-14 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:04:05 - End Time 2025-04-14 11:04:05 [2025-04-14 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905808', 'tblTempUsageDetail_20' ) start [2025-04-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905808', 'tblTempUsageDetail_20' ) end [2025-04-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905808', 'tblTempVendorCDR_20' ) start [2025-04-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905808', 'tblTempVendorCDR_20' ) end [2025-04-14 11:04:20] Production.INFO: ProcessCDR(1,14905808,1,1,2) [2025-04-14 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905808', 'tblTempUsageDetail_20' ) start [2025-04-14 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905808', 'tblTempUsageDetail_20' ) end [2025-04-14 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:04:25] Production.INFO: ==6324== Releasing lock... [2025-04-14 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:04:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-14 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:05:04 [end_date_ymd] => 2025-04-14 11:05:04 [RateCDR] => 1 ) [2025-04-14 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:05:04' and `end` < '2025-04-14 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:05:18] Production.INFO: count ==4159 [2025-04-14 11:05:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:05:04 - End Time 2025-04-14 11:05:04 [2025-04-14 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905816', 'tblTempUsageDetail_20' ) start [2025-04-14 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905816', 'tblTempUsageDetail_20' ) end [2025-04-14 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905816', 'tblTempVendorCDR_20' ) start [2025-04-14 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905816', 'tblTempVendorCDR_20' ) end [2025-04-14 11:05:20] Production.INFO: ProcessCDR(1,14905816,1,1,2) [2025-04-14 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905816', 'tblTempUsageDetail_20' ) start [2025-04-14 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905816', 'tblTempUsageDetail_20' ) end [2025-04-14 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:05:25] Production.INFO: ==6476== Releasing lock... [2025-04-14 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:05:25] Production.INFO: 59 MB #Memory Used# [2025-04-14 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:06:05 [end_date_ymd] => 2025-04-14 11:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:06:05' and `end` < '2025-04-14 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-04-14 11:06:19] Production.INFO: count ==4166 [2025-04-14 11:06:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:06:05 - End Time 2025-04-14 11:06:05 [2025-04-14 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905821', 'tblTempUsageDetail_20' ) start [2025-04-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905821', 'tblTempUsageDetail_20' ) end [2025-04-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905821', 'tblTempVendorCDR_20' ) start [2025-04-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905821', 'tblTempVendorCDR_20' ) end [2025-04-14 11:06:20] Production.INFO: ProcessCDR(1,14905821,1,1,2) [2025-04-14 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905821', 'tblTempUsageDetail_20' ) start [2025-04-14 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905821', 'tblTempUsageDetail_20' ) end [2025-04-14 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:06:25] Production.INFO: ==6550== Releasing lock... [2025-04-14 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:06:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-14 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:07:04 [end_date_ymd] => 2025-04-14 11:07:04 [RateCDR] => 1 ) [2025-04-14 11: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-04-14 08:07:04' and `end` < '2025-04-14 11: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-04-14 11:07:18] Production.INFO: count ==4184 [2025-04-14 11:07:19] Production.ERROR: pbx CDR StartTime 2025-04-14 08:07:04 - End Time 2025-04-14 11:07:04 [2025-04-14 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905826', 'tblTempUsageDetail_20' ) start [2025-04-14 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905826', 'tblTempUsageDetail_20' ) end [2025-04-14 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905826', 'tblTempVendorCDR_20' ) start [2025-04-14 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905826', 'tblTempVendorCDR_20' ) end [2025-04-14 11:07:20] Production.INFO: ProcessCDR(1,14905826,1,1,2) [2025-04-14 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905826', 'tblTempUsageDetail_20' ) start [2025-04-14 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905826', 'tblTempUsageDetail_20' ) end [2025-04-14 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:07:24] Production.INFO: ==6627== Releasing lock... [2025-04-14 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:07:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-14 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:08:05 [end_date_ymd] => 2025-04-14 11:08:05 [RateCDR] => 1 ) [2025-04-14 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:08:05' and `end` < '2025-04-14 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:08:19] Production.INFO: count ==4198 [2025-04-14 11:08:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:08:05 - End Time 2025-04-14 11:08:05 [2025-04-14 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905831', 'tblTempUsageDetail_20' ) start [2025-04-14 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905831', 'tblTempUsageDetail_20' ) end [2025-04-14 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905831', 'tblTempVendorCDR_20' ) start [2025-04-14 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905831', 'tblTempVendorCDR_20' ) end [2025-04-14 11:08:21] Production.INFO: ProcessCDR(1,14905831,1,1,2) [2025-04-14 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905831', 'tblTempUsageDetail_20' ) start [2025-04-14 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905831', 'tblTempUsageDetail_20' ) end [2025-04-14 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:08:26] Production.INFO: ==6741== Releasing lock... [2025-04-14 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:08:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-14 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:09:06 [end_date_ymd] => 2025-04-14 11:09:06 [RateCDR] => 1 ) [2025-04-14 11: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-04-14 08:09:06' and `end` < '2025-04-14 11: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-04-14 11:09:19] Production.INFO: count ==4224 [2025-04-14 11:09:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:09:06 - End Time 2025-04-14 11:09:06 [2025-04-14 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905836', 'tblTempUsageDetail_20' ) start [2025-04-14 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905836', 'tblTempUsageDetail_20' ) end [2025-04-14 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905836', 'tblTempVendorCDR_20' ) start [2025-04-14 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905836', 'tblTempVendorCDR_20' ) end [2025-04-14 11:09:21] Production.INFO: ProcessCDR(1,14905836,1,1,2) [2025-04-14 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905836', 'tblTempUsageDetail_20' ) start [2025-04-14 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905836', 'tblTempUsageDetail_20' ) end [2025-04-14 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:09:25] Production.INFO: ==6892== Releasing lock... [2025-04-14 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:09:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-14 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:10:06 [end_date_ymd] => 2025-04-14 11:10:06 [RateCDR] => 1 ) [2025-04-14 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:10:06' and `end` < '2025-04-14 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:10:20] Production.INFO: count ==4228 [2025-04-14 11:10:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:10:06 - End Time 2025-04-14 11:10:06 [2025-04-14 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905842', 'tblTempUsageDetail_20' ) start [2025-04-14 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905842', 'tblTempUsageDetail_20' ) end [2025-04-14 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905842', 'tblTempVendorCDR_20' ) start [2025-04-14 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905842', 'tblTempVendorCDR_20' ) end [2025-04-14 11:10:21] Production.INFO: ProcessCDR(1,14905842,1,1,2) [2025-04-14 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905842', 'tblTempUsageDetail_20' ) start [2025-04-14 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905842', 'tblTempUsageDetail_20' ) end [2025-04-14 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:10:26] Production.INFO: ==6966== Releasing lock... [2025-04-14 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:10:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-14 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:11:06 [end_date_ymd] => 2025-04-14 11:11:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:11:06' and `end` < '2025-04-14 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-04-14 11:11:19] Production.INFO: count ==4340 [2025-04-14 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:11:06 - End Time 2025-04-14 11:11:06 [2025-04-14 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905847', 'tblTempUsageDetail_20' ) start [2025-04-14 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905847', 'tblTempUsageDetail_20' ) end [2025-04-14 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905847', 'tblTempVendorCDR_20' ) start [2025-04-14 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905847', 'tblTempVendorCDR_20' ) end [2025-04-14 11:11:21] Production.INFO: ProcessCDR(1,14905847,1,1,2) [2025-04-14 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905847', 'tblTempUsageDetail_20' ) start [2025-04-14 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905847', 'tblTempUsageDetail_20' ) end [2025-04-14 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:11:27] Production.INFO: ==7042== Releasing lock... [2025-04-14 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:11:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-14 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:12:05 [end_date_ymd] => 2025-04-14 11:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:12:05' and `end` < '2025-04-14 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-04-14 11:12:18] Production.INFO: count ==4364 [2025-04-14 11:12:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:12:05 - End Time 2025-04-14 11:12:05 [2025-04-14 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905852', 'tblTempUsageDetail_20' ) start [2025-04-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905852', 'tblTempUsageDetail_20' ) end [2025-04-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905852', 'tblTempVendorCDR_20' ) start [2025-04-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905852', 'tblTempVendorCDR_20' ) end [2025-04-14 11:12:20] Production.INFO: ProcessCDR(1,14905852,1,1,2) [2025-04-14 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905852', 'tblTempUsageDetail_20' ) start [2025-04-14 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905852', 'tblTempUsageDetail_20' ) end [2025-04-14 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:12:25] Production.INFO: ==7194== Releasing lock... [2025-04-14 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:12:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:13:05 [end_date_ymd] => 2025-04-14 11:13:05 [RateCDR] => 1 ) [2025-04-14 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:13:05' and `end` < '2025-04-14 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:13:19] Production.INFO: count ==4376 [2025-04-14 11:13:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:13:05 - End Time 2025-04-14 11:13:05 [2025-04-14 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905857', 'tblTempUsageDetail_20' ) start [2025-04-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905857', 'tblTempUsageDetail_20' ) end [2025-04-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905857', 'tblTempVendorCDR_20' ) start [2025-04-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905857', 'tblTempVendorCDR_20' ) end [2025-04-14 11:13:21] Production.INFO: ProcessCDR(1,14905857,1,1,2) [2025-04-14 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905857', 'tblTempUsageDetail_20' ) start [2025-04-14 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905857', 'tblTempUsageDetail_20' ) end [2025-04-14 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:13:26] Production.INFO: ==7270== Releasing lock... [2025-04-14 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:13:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:14:05 [end_date_ymd] => 2025-04-14 11:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:14:05' and `end` < '2025-04-14 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-04-14 11:14:19] Production.INFO: count ==4388 [2025-04-14 11:14:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:14:05 - End Time 2025-04-14 11:14:05 [2025-04-14 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905862', 'tblTempUsageDetail_20' ) start [2025-04-14 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905862', 'tblTempUsageDetail_20' ) end [2025-04-14 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905862', 'tblTempVendorCDR_20' ) start [2025-04-14 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905862', 'tblTempVendorCDR_20' ) end [2025-04-14 11:14:21] Production.INFO: ProcessCDR(1,14905862,1,1,2) [2025-04-14 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905862', 'tblTempUsageDetail_20' ) start [2025-04-14 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905862', 'tblTempUsageDetail_20' ) end [2025-04-14 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:14:26] Production.INFO: ==7344== Releasing lock... [2025-04-14 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:14:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:15:05 [end_date_ymd] => 2025-04-14 11:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:15:05' and `end` < '2025-04-14 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-04-14 11:15:19] Production.INFO: count ==4385 [2025-04-14 11:15:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:15:05 - End Time 2025-04-14 11:15:05 [2025-04-14 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905867', 'tblTempUsageDetail_20' ) start [2025-04-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905867', 'tblTempUsageDetail_20' ) end [2025-04-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905867', 'tblTempVendorCDR_20' ) start [2025-04-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905867', 'tblTempVendorCDR_20' ) end [2025-04-14 11:15:21] Production.INFO: ProcessCDR(1,14905867,1,1,2) [2025-04-14 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905867', 'tblTempUsageDetail_20' ) start [2025-04-14 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905867', 'tblTempUsageDetail_20' ) end [2025-04-14 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:15:26] Production.INFO: ==7455== Releasing lock... [2025-04-14 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:15:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:16:05 [end_date_ymd] => 2025-04-14 11:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:16:05' and `end` < '2025-04-14 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-04-14 11:16:19] Production.INFO: count ==4380 [2025-04-14 11:16:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:16:05 - End Time 2025-04-14 11:16:05 [2025-04-14 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905872', 'tblTempUsageDetail_20' ) start [2025-04-14 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905872', 'tblTempUsageDetail_20' ) end [2025-04-14 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905872', 'tblTempVendorCDR_20' ) start [2025-04-14 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905872', 'tblTempVendorCDR_20' ) end [2025-04-14 11:16:20] Production.INFO: ProcessCDR(1,14905872,1,1,2) [2025-04-14 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905872', 'tblTempUsageDetail_20' ) start [2025-04-14 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905872', 'tblTempUsageDetail_20' ) end [2025-04-14 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:16:25] Production.INFO: ==7567== Releasing lock... [2025-04-14 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:16:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:17:05 [end_date_ymd] => 2025-04-14 11:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:17:05' and `end` < '2025-04-14 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-04-14 11:17:19] Production.INFO: count ==4392 [2025-04-14 11:17:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:17:05 - End Time 2025-04-14 11:17:05 [2025-04-14 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905877', 'tblTempUsageDetail_20' ) start [2025-04-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905877', 'tblTempUsageDetail_20' ) end [2025-04-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905877', 'tblTempVendorCDR_20' ) start [2025-04-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905877', 'tblTempVendorCDR_20' ) end [2025-04-14 11:17:21] Production.INFO: ProcessCDR(1,14905877,1,1,2) [2025-04-14 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905877', 'tblTempUsageDetail_20' ) start [2025-04-14 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905877', 'tblTempUsageDetail_20' ) end [2025-04-14 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:17:26] Production.INFO: ==7639== Releasing lock... [2025-04-14 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:17:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:18:05 [end_date_ymd] => 2025-04-14 11:18:05 [RateCDR] => 1 ) [2025-04-14 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:18:05' and `end` < '2025-04-14 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:18:19] Production.INFO: count ==4411 [2025-04-14 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:18:05 - End Time 2025-04-14 11:18:05 [2025-04-14 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905882', 'tblTempUsageDetail_20' ) start [2025-04-14 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905882', 'tblTempUsageDetail_20' ) end [2025-04-14 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905882', 'tblTempVendorCDR_20' ) start [2025-04-14 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905882', 'tblTempVendorCDR_20' ) end [2025-04-14 11:18:21] Production.INFO: ProcessCDR(1,14905882,1,1,2) [2025-04-14 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905882', 'tblTempUsageDetail_20' ) start [2025-04-14 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905882', 'tblTempUsageDetail_20' ) end [2025-04-14 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:18:26] Production.INFO: ==7712== Releasing lock... [2025-04-14 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:18:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:19:05 [end_date_ymd] => 2025-04-14 11:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:19:05' and `end` < '2025-04-14 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-04-14 11:19:19] Production.INFO: count ==4423 [2025-04-14 11:19:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:19:05 - End Time 2025-04-14 11:19:05 [2025-04-14 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905887', 'tblTempUsageDetail_20' ) start [2025-04-14 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905887', 'tblTempUsageDetail_20' ) end [2025-04-14 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905887', 'tblTempVendorCDR_20' ) start [2025-04-14 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905887', 'tblTempVendorCDR_20' ) end [2025-04-14 11:19:20] Production.INFO: ProcessCDR(1,14905887,1,1,2) [2025-04-14 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905887', 'tblTempUsageDetail_20' ) start [2025-04-14 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905887', 'tblTempUsageDetail_20' ) end [2025-04-14 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:19:26] Production.INFO: ==7788== Releasing lock... [2025-04-14 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:19:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:20:05 [end_date_ymd] => 2025-04-14 11:20:05 [RateCDR] => 1 ) [2025-04-14 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:20:05' and `end` < '2025-04-14 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:20:19] Production.INFO: count ==4438 [2025-04-14 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:20:05 - End Time 2025-04-14 11:20:05 [2025-04-14 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905893', 'tblTempUsageDetail_20' ) start [2025-04-14 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905893', 'tblTempUsageDetail_20' ) end [2025-04-14 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905893', 'tblTempVendorCDR_20' ) start [2025-04-14 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905893', 'tblTempVendorCDR_20' ) end [2025-04-14 11:20:21] Production.INFO: ProcessCDR(1,14905893,1,1,2) [2025-04-14 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905893', 'tblTempUsageDetail_20' ) start [2025-04-14 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905893', 'tblTempUsageDetail_20' ) end [2025-04-14 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:20:26] Production.INFO: ==7863== Releasing lock... [2025-04-14 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:20:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:21:04 [end_date_ymd] => 2025-04-14 11:21:04 [RateCDR] => 1 ) [2025-04-14 11: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-04-14 08:21:04' and `end` < '2025-04-14 11: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-04-14 11:21:18] Production.INFO: count ==4553 [2025-04-14 11:21:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:21:04 - End Time 2025-04-14 11:21:04 [2025-04-14 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905898', 'tblTempUsageDetail_20' ) start [2025-04-14 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905898', 'tblTempUsageDetail_20' ) end [2025-04-14 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905898', 'tblTempVendorCDR_20' ) start [2025-04-14 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905898', 'tblTempVendorCDR_20' ) end [2025-04-14 11:21:20] Production.INFO: ProcessCDR(1,14905898,1,1,2) [2025-04-14 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905898', 'tblTempUsageDetail_20' ) start [2025-04-14 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905898', 'tblTempUsageDetail_20' ) end [2025-04-14 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:21:25] Production.INFO: ==7942== Releasing lock... [2025-04-14 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:21:25] Production.INFO: 62 MB #Memory Used# [2025-04-14 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:22:06 [end_date_ymd] => 2025-04-14 11:22:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:22:06' and `end` < '2025-04-14 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-04-14 11:22:19] Production.INFO: count ==4553 [2025-04-14 11:22:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:22:06 - End Time 2025-04-14 11:22:06 [2025-04-14 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905903', 'tblTempUsageDetail_20' ) start [2025-04-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905903', 'tblTempUsageDetail_20' ) end [2025-04-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905903', 'tblTempVendorCDR_20' ) start [2025-04-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905903', 'tblTempVendorCDR_20' ) end [2025-04-14 11:22:21] Production.INFO: ProcessCDR(1,14905903,1,1,2) [2025-04-14 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905903', 'tblTempUsageDetail_20' ) start [2025-04-14 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905903', 'tblTempUsageDetail_20' ) end [2025-04-14 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:22:26] Production.INFO: ==8013== Releasing lock... [2025-04-14 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:22:26] Production.INFO: 62 MB #Memory Used# [2025-04-14 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:23:05 [end_date_ymd] => 2025-04-14 11:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:23:05' and `end` < '2025-04-14 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-04-14 11:23:19] Production.INFO: count ==4557 [2025-04-14 11:23:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:23:05 - End Time 2025-04-14 11:23:05 [2025-04-14 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905908', 'tblTempUsageDetail_20' ) start [2025-04-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905908', 'tblTempUsageDetail_20' ) end [2025-04-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905908', 'tblTempVendorCDR_20' ) start [2025-04-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905908', 'tblTempVendorCDR_20' ) end [2025-04-14 11:23:20] Production.INFO: ProcessCDR(1,14905908,1,1,2) [2025-04-14 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905908', 'tblTempUsageDetail_20' ) start [2025-04-14 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905908', 'tblTempUsageDetail_20' ) end [2025-04-14 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:23:25] Production.INFO: ==8084== Releasing lock... [2025-04-14 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:23:25] Production.INFO: 62 MB #Memory Used# [2025-04-14 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:24:05 [end_date_ymd] => 2025-04-14 11:24:05 [RateCDR] => 1 ) [2025-04-14 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:24:05' and `end` < '2025-04-14 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:24:19] Production.INFO: count ==4580 [2025-04-14 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:24:05 - End Time 2025-04-14 11:24:05 [2025-04-14 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905913', 'tblTempUsageDetail_20' ) start [2025-04-14 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905913', 'tblTempUsageDetail_20' ) end [2025-04-14 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905913', 'tblTempVendorCDR_20' ) start [2025-04-14 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905913', 'tblTempVendorCDR_20' ) end [2025-04-14 11:24:21] Production.INFO: ProcessCDR(1,14905913,1,1,2) [2025-04-14 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905913', 'tblTempUsageDetail_20' ) start [2025-04-14 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905913', 'tblTempUsageDetail_20' ) end [2025-04-14 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:24:26] Production.INFO: ==8203== Releasing lock... [2025-04-14 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:24:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:25:05 [end_date_ymd] => 2025-04-14 11:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:25:05' and `end` < '2025-04-14 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-04-14 11:25:18] Production.INFO: count ==4581 [2025-04-14 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:25:05 - End Time 2025-04-14 11:25:05 [2025-04-14 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905918', 'tblTempUsageDetail_20' ) start [2025-04-14 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905918', 'tblTempUsageDetail_20' ) end [2025-04-14 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905918', 'tblTempVendorCDR_20' ) start [2025-04-14 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905918', 'tblTempVendorCDR_20' ) end [2025-04-14 11:25:20] Production.INFO: ProcessCDR(1,14905918,1,1,2) [2025-04-14 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905918', 'tblTempUsageDetail_20' ) start [2025-04-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905918', 'tblTempUsageDetail_20' ) end [2025-04-14 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:25:25] Production.INFO: ==8278== Releasing lock... [2025-04-14 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:25:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:26:06 [end_date_ymd] => 2025-04-14 11:26:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:26:06' and `end` < '2025-04-14 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-04-14 11:26:19] Production.INFO: count ==4585 [2025-04-14 11:26:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:26:06 - End Time 2025-04-14 11:26:06 [2025-04-14 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905923', 'tblTempUsageDetail_20' ) start [2025-04-14 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905923', 'tblTempUsageDetail_20' ) end [2025-04-14 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905923', 'tblTempVendorCDR_20' ) start [2025-04-14 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905923', 'tblTempVendorCDR_20' ) end [2025-04-14 11:26:21] Production.INFO: ProcessCDR(1,14905923,1,1,2) [2025-04-14 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905923', 'tblTempUsageDetail_20' ) start [2025-04-14 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905923', 'tblTempUsageDetail_20' ) end [2025-04-14 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:26:26] Production.INFO: ==8350== Releasing lock... [2025-04-14 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:26:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:27:05 [end_date_ymd] => 2025-04-14 11:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:27:05' and `end` < '2025-04-14 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-04-14 11:27:19] Production.INFO: count ==4592 [2025-04-14 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:27:05 - End Time 2025-04-14 11:27:05 [2025-04-14 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905928', 'tblTempUsageDetail_20' ) start [2025-04-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905928', 'tblTempUsageDetail_20' ) end [2025-04-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905928', 'tblTempVendorCDR_20' ) start [2025-04-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905928', 'tblTempVendorCDR_20' ) end [2025-04-14 11:27:20] Production.INFO: ProcessCDR(1,14905928,1,1,2) [2025-04-14 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905928', 'tblTempUsageDetail_20' ) start [2025-04-14 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905928', 'tblTempUsageDetail_20' ) end [2025-04-14 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:27:25] Production.INFO: ==8448== Releasing lock... [2025-04-14 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:27:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:28:05 [end_date_ymd] => 2025-04-14 11:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:28:05' and `end` < '2025-04-14 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-04-14 11:28:19] Production.INFO: count ==4603 [2025-04-14 11:28:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:28:05 - End Time 2025-04-14 11:28:05 [2025-04-14 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905933', 'tblTempUsageDetail_20' ) start [2025-04-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905933', 'tblTempUsageDetail_20' ) end [2025-04-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905933', 'tblTempVendorCDR_20' ) start [2025-04-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905933', 'tblTempVendorCDR_20' ) end [2025-04-14 11:28:21] Production.INFO: ProcessCDR(1,14905933,1,1,2) [2025-04-14 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905933', 'tblTempUsageDetail_20' ) start [2025-04-14 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905933', 'tblTempUsageDetail_20' ) end [2025-04-14 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:28:26] Production.INFO: ==8520== Releasing lock... [2025-04-14 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:28:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:29:05 [end_date_ymd] => 2025-04-14 11:29:05 [RateCDR] => 1 ) [2025-04-14 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:29:05' and `end` < '2025-04-14 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:29:18] Production.INFO: count ==4605 [2025-04-14 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:29:05 - End Time 2025-04-14 11:29:05 [2025-04-14 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905938', 'tblTempUsageDetail_20' ) start [2025-04-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905938', 'tblTempUsageDetail_20' ) end [2025-04-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905938', 'tblTempVendorCDR_20' ) start [2025-04-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905938', 'tblTempVendorCDR_20' ) end [2025-04-14 11:29:20] Production.INFO: ProcessCDR(1,14905938,1,1,2) [2025-04-14 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905938', 'tblTempUsageDetail_20' ) start [2025-04-14 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905938', 'tblTempUsageDetail_20' ) end [2025-04-14 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:29:25] Production.INFO: ==8594== Releasing lock... [2025-04-14 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:29:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:30:06 [end_date_ymd] => 2025-04-14 11:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:30:06' and `end` < '2025-04-14 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-04-14 11:30:20] Production.INFO: count ==4605 [2025-04-14 11:30:22] Production.ERROR: pbx CDR StartTime 2025-04-14 08:30:06 - End Time 2025-04-14 11:30:06 [2025-04-14 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905944', 'tblTempUsageDetail_20' ) start [2025-04-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905944', 'tblTempUsageDetail_20' ) end [2025-04-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905944', 'tblTempVendorCDR_20' ) start [2025-04-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905944', 'tblTempVendorCDR_20' ) end [2025-04-14 11:30:22] Production.INFO: ProcessCDR(1,14905944,1,1,2) [2025-04-14 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905944', 'tblTempUsageDetail_20' ) start [2025-04-14 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905944', 'tblTempUsageDetail_20' ) end [2025-04-14 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:30:27] Production.INFO: ==8673== Releasing lock... [2025-04-14 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:30:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:31:04 [end_date_ymd] => 2025-04-14 11:31:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:31:04' and `end` < '2025-04-14 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-04-14 11:31:18] Production.INFO: count ==4688 [2025-04-14 11:31:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:31:04 - End Time 2025-04-14 11:31:04 [2025-04-14 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905949', 'tblTempUsageDetail_20' ) start [2025-04-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905949', 'tblTempUsageDetail_20' ) end [2025-04-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905949', 'tblTempVendorCDR_20' ) start [2025-04-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905949', 'tblTempVendorCDR_20' ) end [2025-04-14 11:31:20] Production.INFO: ProcessCDR(1,14905949,1,1,2) [2025-04-14 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905949', 'tblTempUsageDetail_20' ) start [2025-04-14 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905949', 'tblTempUsageDetail_20' ) end [2025-04-14 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:31:25] Production.INFO: ==8744== Releasing lock... [2025-04-14 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:31:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:32:05 [end_date_ymd] => 2025-04-14 11:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:32:05' and `end` < '2025-04-14 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-04-14 11:32:18] Production.INFO: count ==4691 [2025-04-14 11:32:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:32:05 - End Time 2025-04-14 11:32:05 [2025-04-14 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905954', 'tblTempUsageDetail_20' ) start [2025-04-14 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905954', 'tblTempUsageDetail_20' ) end [2025-04-14 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905954', 'tblTempVendorCDR_20' ) start [2025-04-14 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905954', 'tblTempVendorCDR_20' ) end [2025-04-14 11:32:20] Production.INFO: ProcessCDR(1,14905954,1,1,2) [2025-04-14 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905954', 'tblTempUsageDetail_20' ) start [2025-04-14 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905954', 'tblTempUsageDetail_20' ) end [2025-04-14 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:32:25] Production.INFO: ==8816== Releasing lock... [2025-04-14 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:32:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:33:05 [end_date_ymd] => 2025-04-14 11:33:05 [RateCDR] => 1 ) [2025-04-14 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:33:05' and `end` < '2025-04-14 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:33:19] Production.INFO: count ==4742 [2025-04-14 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:33:05 - End Time 2025-04-14 11:33:05 [2025-04-14 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905959', 'tblTempUsageDetail_20' ) start [2025-04-14 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905959', 'tblTempUsageDetail_20' ) end [2025-04-14 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905959', 'tblTempVendorCDR_20' ) start [2025-04-14 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905959', 'tblTempVendorCDR_20' ) end [2025-04-14 11:33:21] Production.INFO: ProcessCDR(1,14905959,1,1,2) [2025-04-14 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905959', 'tblTempUsageDetail_20' ) start [2025-04-14 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905959', 'tblTempUsageDetail_20' ) end [2025-04-14 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:33:25] Production.INFO: ==8893== Releasing lock... [2025-04-14 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:33:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:34:04 [end_date_ymd] => 2025-04-14 11:34:04 [RateCDR] => 1 ) [2025-04-14 11: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-04-14 08:34:04' and `end` < '2025-04-14 11: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-04-14 11:34:18] Production.INFO: count ==4746 [2025-04-14 11:34:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:34:04 - End Time 2025-04-14 11:34:04 [2025-04-14 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905964', 'tblTempUsageDetail_20' ) start [2025-04-14 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905964', 'tblTempUsageDetail_20' ) end [2025-04-14 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905964', 'tblTempVendorCDR_20' ) start [2025-04-14 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905964', 'tblTempVendorCDR_20' ) end [2025-04-14 11:34:20] Production.INFO: ProcessCDR(1,14905964,1,1,2) [2025-04-14 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905964', 'tblTempUsageDetail_20' ) start [2025-04-14 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905964', 'tblTempUsageDetail_20' ) end [2025-04-14 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:34:25] Production.INFO: ==8975== Releasing lock... [2025-04-14 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:34:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:35:05 [end_date_ymd] => 2025-04-14 11:35:05 [RateCDR] => 1 ) [2025-04-14 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:35:05' and `end` < '2025-04-14 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:35:19] Production.INFO: count ==4797 [2025-04-14 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:35:05 - End Time 2025-04-14 11:35:05 [2025-04-14 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905969', 'tblTempUsageDetail_20' ) start [2025-04-14 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905969', 'tblTempUsageDetail_20' ) end [2025-04-14 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905969', 'tblTempVendorCDR_20' ) start [2025-04-14 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905969', 'tblTempVendorCDR_20' ) end [2025-04-14 11:35:21] Production.INFO: ProcessCDR(1,14905969,1,1,2) [2025-04-14 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905969', 'tblTempUsageDetail_20' ) start [2025-04-14 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905969', 'tblTempUsageDetail_20' ) end [2025-04-14 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:35:26] Production.INFO: ==9052== Releasing lock... [2025-04-14 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:35:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:36:05 [end_date_ymd] => 2025-04-14 11:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:36:05' and `end` < '2025-04-14 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-04-14 11:36:19] Production.INFO: count ==4808 [2025-04-14 11:36:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:36:05 - End Time 2025-04-14 11:36:05 [2025-04-14 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905974', 'tblTempUsageDetail_20' ) start [2025-04-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905974', 'tblTempUsageDetail_20' ) end [2025-04-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905974', 'tblTempVendorCDR_20' ) start [2025-04-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905974', 'tblTempVendorCDR_20' ) end [2025-04-14 11:36:21] Production.INFO: ProcessCDR(1,14905974,1,1,2) [2025-04-14 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905974', 'tblTempUsageDetail_20' ) start [2025-04-14 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905974', 'tblTempUsageDetail_20' ) end [2025-04-14 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:36:26] Production.INFO: ==9122== Releasing lock... [2025-04-14 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:36:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:37:05 [end_date_ymd] => 2025-04-14 11:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:37:05' and `end` < '2025-04-14 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-04-14 11:37:19] Production.INFO: count ==4815 [2025-04-14 11:37:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:37:05 - End Time 2025-04-14 11:37:05 [2025-04-14 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905979', 'tblTempUsageDetail_20' ) start [2025-04-14 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905979', 'tblTempUsageDetail_20' ) end [2025-04-14 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905979', 'tblTempVendorCDR_20' ) start [2025-04-14 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905979', 'tblTempVendorCDR_20' ) end [2025-04-14 11:37:21] Production.INFO: ProcessCDR(1,14905979,1,1,2) [2025-04-14 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905979', 'tblTempUsageDetail_20' ) start [2025-04-14 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905979', 'tblTempUsageDetail_20' ) end [2025-04-14 11:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:37:27] Production.INFO: ==9215== Releasing lock... [2025-04-14 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:37:27] Production.INFO: 64 MB #Memory Used# [2025-04-14 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:38:05 [end_date_ymd] => 2025-04-14 11:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:38:05' and `end` < '2025-04-14 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-04-14 11:38:19] Production.INFO: count ==4820 [2025-04-14 11:38:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:38:05 - End Time 2025-04-14 11:38:05 [2025-04-14 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905984', 'tblTempUsageDetail_20' ) start [2025-04-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905984', 'tblTempUsageDetail_20' ) end [2025-04-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905984', 'tblTempVendorCDR_20' ) start [2025-04-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905984', 'tblTempVendorCDR_20' ) end [2025-04-14 11:38:21] Production.INFO: ProcessCDR(1,14905984,1,1,2) [2025-04-14 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905984', 'tblTempUsageDetail_20' ) start [2025-04-14 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905984', 'tblTempUsageDetail_20' ) end [2025-04-14 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:38:26] Production.INFO: ==9290== Releasing lock... [2025-04-14 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:38:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:39:05 [end_date_ymd] => 2025-04-14 11:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:39:05' and `end` < '2025-04-14 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-04-14 11:39:19] Production.INFO: count ==4881 [2025-04-14 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:39:05 - End Time 2025-04-14 11:39:05 [2025-04-14 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905989', 'tblTempUsageDetail_20' ) start [2025-04-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905989', 'tblTempUsageDetail_20' ) end [2025-04-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905989', 'tblTempVendorCDR_20' ) start [2025-04-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905989', 'tblTempVendorCDR_20' ) end [2025-04-14 11:39:21] Production.INFO: ProcessCDR(1,14905989,1,1,2) [2025-04-14 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905989', 'tblTempUsageDetail_20' ) start [2025-04-14 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905989', 'tblTempUsageDetail_20' ) end [2025-04-14 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:39:26] Production.INFO: ==9412== Releasing lock... [2025-04-14 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:39:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:40:07 [end_date_ymd] => 2025-04-14 11:40:07 [RateCDR] => 1 ) [2025-04-14 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:40:07' and `end` < '2025-04-14 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:40:20] Production.INFO: count ==4900 [2025-04-14 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-14 08:40:07 - End Time 2025-04-14 11:40:07 [2025-04-14 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905995', 'tblTempUsageDetail_20' ) start [2025-04-14 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14905995', 'tblTempUsageDetail_20' ) end [2025-04-14 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905995', 'tblTempVendorCDR_20' ) start [2025-04-14 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14905995', 'tblTempVendorCDR_20' ) end [2025-04-14 11:40:23] Production.INFO: ProcessCDR(1,14905995,1,1,2) [2025-04-14 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14905995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14905995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14905995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14905995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905995', 'tblTempUsageDetail_20' ) start [2025-04-14 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14905995', 'tblTempUsageDetail_20' ) end [2025-04-14 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:40:28] Production.INFO: ==9488== Releasing lock... [2025-04-14 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:40:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:41:05 [end_date_ymd] => 2025-04-14 11:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:41:05' and `end` < '2025-04-14 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-04-14 11:41:19] Production.INFO: count ==4977 [2025-04-14 11:41:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:41:05 - End Time 2025-04-14 11:41:05 [2025-04-14 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906000', 'tblTempUsageDetail_20' ) start [2025-04-14 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906000', 'tblTempUsageDetail_20' ) end [2025-04-14 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906000', 'tblTempVendorCDR_20' ) start [2025-04-14 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906000', 'tblTempVendorCDR_20' ) end [2025-04-14 11:41:21] Production.INFO: ProcessCDR(1,14906000,1,1,2) [2025-04-14 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906000', 'tblTempUsageDetail_20' ) start [2025-04-14 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906000', 'tblTempUsageDetail_20' ) end [2025-04-14 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:41:26] Production.INFO: ==9560== Releasing lock... [2025-04-14 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:41:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:42:05 [end_date_ymd] => 2025-04-14 11:42:05 [RateCDR] => 1 ) [2025-04-14 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:42:05' and `end` < '2025-04-14 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:42:19] Production.INFO: count ==4993 [2025-04-14 11:42:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:42:05 - End Time 2025-04-14 11:42:05 [2025-04-14 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906005', 'tblTempUsageDetail_20' ) start [2025-04-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906005', 'tblTempUsageDetail_20' ) end [2025-04-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906005', 'tblTempVendorCDR_20' ) start [2025-04-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906005', 'tblTempVendorCDR_20' ) end [2025-04-14 11:42:21] Production.INFO: ProcessCDR(1,14906005,1,1,2) [2025-04-14 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906005', 'tblTempUsageDetail_20' ) start [2025-04-14 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906005', 'tblTempUsageDetail_20' ) end [2025-04-14 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:42:26] Production.INFO: ==9634== Releasing lock... [2025-04-14 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:42:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:43:05 [end_date_ymd] => 2025-04-14 11:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:43:05' and `end` < '2025-04-14 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-04-14 11:43:19] Production.INFO: count ==5010 [2025-04-14 11:43:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:43:05 - End Time 2025-04-14 11:43:05 [2025-04-14 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906010', 'tblTempUsageDetail_20' ) start [2025-04-14 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906010', 'tblTempUsageDetail_20' ) end [2025-04-14 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906010', 'tblTempVendorCDR_20' ) start [2025-04-14 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906010', 'tblTempVendorCDR_20' ) end [2025-04-14 11:43:21] Production.INFO: ProcessCDR(1,14906010,1,1,2) [2025-04-14 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906010', 'tblTempUsageDetail_20' ) start [2025-04-14 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906010', 'tblTempUsageDetail_20' ) end [2025-04-14 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:43:25] Production.INFO: ==9709== Releasing lock... [2025-04-14 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:43:25] Production.INFO: 65.5 MB #Memory Used# [2025-04-14 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:44:05 [end_date_ymd] => 2025-04-14 11:44:05 [RateCDR] => 1 ) [2025-04-14 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:44:05' and `end` < '2025-04-14 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:44:19] Production.INFO: count ==5027 [2025-04-14 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:44:05 - End Time 2025-04-14 11:44:05 [2025-04-14 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906015', 'tblTempUsageDetail_20' ) start [2025-04-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906015', 'tblTempUsageDetail_20' ) end [2025-04-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906015', 'tblTempVendorCDR_20' ) start [2025-04-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906015', 'tblTempVendorCDR_20' ) end [2025-04-14 11:44:21] Production.INFO: ProcessCDR(1,14906015,1,1,2) [2025-04-14 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906015', 'tblTempUsageDetail_20' ) start [2025-04-14 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906015', 'tblTempUsageDetail_20' ) end [2025-04-14 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:44:26] Production.INFO: ==9786== Releasing lock... [2025-04-14 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-14 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:45:05 [end_date_ymd] => 2025-04-14 11:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:45:05' and `end` < '2025-04-14 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-04-14 11:45:18] Production.INFO: count ==5042 [2025-04-14 11:45:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:45:05 - End Time 2025-04-14 11:45:05 [2025-04-14 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906020', 'tblTempUsageDetail_20' ) start [2025-04-14 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906020', 'tblTempUsageDetail_20' ) end [2025-04-14 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906020', 'tblTempVendorCDR_20' ) start [2025-04-14 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906020', 'tblTempVendorCDR_20' ) end [2025-04-14 11:45:21] Production.INFO: ProcessCDR(1,14906020,1,1,2) [2025-04-14 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906020', 'tblTempUsageDetail_20' ) start [2025-04-14 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906020', 'tblTempUsageDetail_20' ) end [2025-04-14 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:45:25] Production.INFO: ==9924== Releasing lock... [2025-04-14 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:45:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-14 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:46:05 [end_date_ymd] => 2025-04-14 11:46:05 [RateCDR] => 1 ) [2025-04-14 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:46:05' and `end` < '2025-04-14 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:46:19] Production.INFO: count ==5094 [2025-04-14 11:46:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:46:05 - End Time 2025-04-14 11:46:05 [2025-04-14 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906025', 'tblTempUsageDetail_20' ) start [2025-04-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906025', 'tblTempUsageDetail_20' ) end [2025-04-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906025', 'tblTempVendorCDR_20' ) start [2025-04-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906025', 'tblTempVendorCDR_20' ) end [2025-04-14 11:46:21] Production.INFO: ProcessCDR(1,14906025,1,1,2) [2025-04-14 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906025', 'tblTempUsageDetail_20' ) start [2025-04-14 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906025', 'tblTempUsageDetail_20' ) end [2025-04-14 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:46:26] Production.INFO: ==9996== Releasing lock... [2025-04-14 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:46:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:47:04 [end_date_ymd] => 2025-04-14 11:47:04 [RateCDR] => 1 ) [2025-04-14 11:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:47:04' and `end` < '2025-04-14 11:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:47:18] Production.INFO: count ==5103 [2025-04-14 11:47:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:47:04 - End Time 2025-04-14 11:47:04 [2025-04-14 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906030', 'tblTempUsageDetail_20' ) start [2025-04-14 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906030', 'tblTempUsageDetail_20' ) end [2025-04-14 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906030', 'tblTempVendorCDR_20' ) start [2025-04-14 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906030', 'tblTempVendorCDR_20' ) end [2025-04-14 11:47:20] Production.INFO: ProcessCDR(1,14906030,1,1,2) [2025-04-14 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906030', 'tblTempUsageDetail_20' ) start [2025-04-14 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906030', 'tblTempUsageDetail_20' ) end [2025-04-14 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:47:25] Production.INFO: ==10070== Releasing lock... [2025-04-14 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:47:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:48:05 [end_date_ymd] => 2025-04-14 11:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:48:05' and `end` < '2025-04-14 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-04-14 11:48:19] Production.INFO: count ==5108 [2025-04-14 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:48:05 - End Time 2025-04-14 11:48:05 [2025-04-14 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906035', 'tblTempUsageDetail_20' ) start [2025-04-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906035', 'tblTempUsageDetail_20' ) end [2025-04-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906035', 'tblTempVendorCDR_20' ) start [2025-04-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906035', 'tblTempVendorCDR_20' ) end [2025-04-14 11:48:21] Production.INFO: ProcessCDR(1,14906035,1,1,2) [2025-04-14 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906035', 'tblTempUsageDetail_20' ) start [2025-04-14 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906035', 'tblTempUsageDetail_20' ) end [2025-04-14 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:48:26] Production.INFO: ==10147== Releasing lock... [2025-04-14 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:48:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:49:05 [end_date_ymd] => 2025-04-14 11:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:49:05' and `end` < '2025-04-14 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-04-14 11:49:19] Production.INFO: count ==5132 [2025-04-14 11:49:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:49:05 - End Time 2025-04-14 11:49:05 [2025-04-14 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906040', 'tblTempUsageDetail_20' ) start [2025-04-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906040', 'tblTempUsageDetail_20' ) end [2025-04-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906040', 'tblTempVendorCDR_20' ) start [2025-04-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906040', 'tblTempVendorCDR_20' ) end [2025-04-14 11:49:21] Production.INFO: ProcessCDR(1,14906040,1,1,2) [2025-04-14 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906040', 'tblTempUsageDetail_20' ) start [2025-04-14 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906040', 'tblTempUsageDetail_20' ) end [2025-04-14 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:49:26] Production.INFO: ==10223== Releasing lock... [2025-04-14 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:49:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:50:05 [end_date_ymd] => 2025-04-14 11:50:05 [RateCDR] => 1 ) [2025-04-14 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:50:05' and `end` < '2025-04-14 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:50:20] Production.INFO: count ==5167 [2025-04-14 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-14 08:50:05 - End Time 2025-04-14 11:50:05 [2025-04-14 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906046', 'tblTempUsageDetail_20' ) start [2025-04-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906046', 'tblTempUsageDetail_20' ) end [2025-04-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906046', 'tblTempVendorCDR_20' ) start [2025-04-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906046', 'tblTempVendorCDR_20' ) end [2025-04-14 11:50:22] Production.INFO: ProcessCDR(1,14906046,1,1,2) [2025-04-14 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906046', 'tblTempUsageDetail_20' ) start [2025-04-14 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906046', 'tblTempUsageDetail_20' ) end [2025-04-14 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:50:27] Production.INFO: ==10300== Releasing lock... [2025-04-14 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:50:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-14 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:51:05 [end_date_ymd] => 2025-04-14 11:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:51:05' and `end` < '2025-04-14 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-04-14 11:51:19] Production.INFO: count ==5248 [2025-04-14 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:51:05 - End Time 2025-04-14 11:51:05 [2025-04-14 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906051', 'tblTempUsageDetail_20' ) start [2025-04-14 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906051', 'tblTempUsageDetail_20' ) end [2025-04-14 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906051', 'tblTempVendorCDR_20' ) start [2025-04-14 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906051', 'tblTempVendorCDR_20' ) end [2025-04-14 11:51:21] Production.INFO: ProcessCDR(1,14906051,1,1,2) [2025-04-14 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906051', 'tblTempUsageDetail_20' ) start [2025-04-14 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906051', 'tblTempUsageDetail_20' ) end [2025-04-14 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:51:26] Production.INFO: ==10382== Releasing lock... [2025-04-14 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:51:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:52:05 [end_date_ymd] => 2025-04-14 11:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:52:05' and `end` < '2025-04-14 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-04-14 11:52:18] Production.INFO: count ==5254 [2025-04-14 11:52:20] Production.ERROR: pbx CDR StartTime 2025-04-14 08:52:05 - End Time 2025-04-14 11:52:05 [2025-04-14 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906056', 'tblTempUsageDetail_20' ) start [2025-04-14 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906056', 'tblTempUsageDetail_20' ) end [2025-04-14 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906056', 'tblTempVendorCDR_20' ) start [2025-04-14 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906056', 'tblTempVendorCDR_20' ) end [2025-04-14 11:52:20] Production.INFO: ProcessCDR(1,14906056,1,1,2) [2025-04-14 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906056', 'tblTempUsageDetail_20' ) start [2025-04-14 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906056', 'tblTempUsageDetail_20' ) end [2025-04-14 11:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:52:25] Production.INFO: ==10460== Releasing lock... [2025-04-14 11:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:52:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:53:05 [end_date_ymd] => 2025-04-14 11:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:53:05' and `end` < '2025-04-14 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-04-14 11:53:19] Production.INFO: count ==5283 [2025-04-14 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:53:05 - End Time 2025-04-14 11:53:05 [2025-04-14 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906061', 'tblTempUsageDetail_20' ) start [2025-04-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906061', 'tblTempUsageDetail_20' ) end [2025-04-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906061', 'tblTempVendorCDR_20' ) start [2025-04-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906061', 'tblTempVendorCDR_20' ) end [2025-04-14 11:53:21] Production.INFO: ProcessCDR(1,14906061,1,1,2) [2025-04-14 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906061', 'tblTempUsageDetail_20' ) start [2025-04-14 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906061', 'tblTempUsageDetail_20' ) end [2025-04-14 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:53:26] Production.INFO: ==10536== Releasing lock... [2025-04-14 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:53:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:54:06 [end_date_ymd] => 2025-04-14 11:54:06 [RateCDR] => 1 ) [2025-04-14 11: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-04-14 08:54:06' and `end` < '2025-04-14 11: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-04-14 11:54:20] Production.INFO: count ==5281 [2025-04-14 11:54:22] Production.ERROR: pbx CDR StartTime 2025-04-14 08:54:06 - End Time 2025-04-14 11:54:06 [2025-04-14 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906066', 'tblTempUsageDetail_20' ) start [2025-04-14 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906066', 'tblTempUsageDetail_20' ) end [2025-04-14 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906066', 'tblTempVendorCDR_20' ) start [2025-04-14 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906066', 'tblTempVendorCDR_20' ) end [2025-04-14 11:54:22] Production.INFO: ProcessCDR(1,14906066,1,1,2) [2025-04-14 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906066', 'tblTempUsageDetail_20' ) start [2025-04-14 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906066', 'tblTempUsageDetail_20' ) end [2025-04-14 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:54:27] Production.INFO: ==10612== Releasing lock... [2025-04-14 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:54:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:55:05 [end_date_ymd] => 2025-04-14 11:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:55:05' and `end` < '2025-04-14 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-04-14 11:55:19] Production.INFO: count ==5277 [2025-04-14 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:55:05 - End Time 2025-04-14 11:55:05 [2025-04-14 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906071', 'tblTempUsageDetail_20' ) start [2025-04-14 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906071', 'tblTempUsageDetail_20' ) end [2025-04-14 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906071', 'tblTempVendorCDR_20' ) start [2025-04-14 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906071', 'tblTempVendorCDR_20' ) end [2025-04-14 11:55:22] Production.INFO: ProcessCDR(1,14906071,1,1,2) [2025-04-14 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906071', 'tblTempUsageDetail_20' ) start [2025-04-14 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906071', 'tblTempUsageDetail_20' ) end [2025-04-14 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:55:26] Production.INFO: ==10721== Releasing lock... [2025-04-14 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:55:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:56:06 [end_date_ymd] => 2025-04-14 11:56:06 [RateCDR] => 1 ) [2025-04-14 11: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-04-14 08:56:06' and `end` < '2025-04-14 11: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-04-14 11:56:20] Production.INFO: count ==5272 [2025-04-14 11:56:22] Production.ERROR: pbx CDR StartTime 2025-04-14 08:56:06 - End Time 2025-04-14 11:56:06 [2025-04-14 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906076', 'tblTempUsageDetail_20' ) start [2025-04-14 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906076', 'tblTempUsageDetail_20' ) end [2025-04-14 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906076', 'tblTempVendorCDR_20' ) start [2025-04-14 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906076', 'tblTempVendorCDR_20' ) end [2025-04-14 11:56:22] Production.INFO: ProcessCDR(1,14906076,1,1,2) [2025-04-14 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906076', 'tblTempUsageDetail_20' ) start [2025-04-14 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906076', 'tblTempUsageDetail_20' ) end [2025-04-14 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:56:27] Production.INFO: ==10799== Releasing lock... [2025-04-14 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:56:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:57:05 [end_date_ymd] => 2025-04-14 11:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:57:05' and `end` < '2025-04-14 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-04-14 11:57:19] Production.INFO: count ==5280 [2025-04-14 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:57:05 - End Time 2025-04-14 11:57:05 [2025-04-14 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906081', 'tblTempUsageDetail_20' ) start [2025-04-14 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906081', 'tblTempUsageDetail_20' ) end [2025-04-14 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906081', 'tblTempVendorCDR_20' ) start [2025-04-14 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906081', 'tblTempVendorCDR_20' ) end [2025-04-14 11:57:21] Production.INFO: ProcessCDR(1,14906081,1,1,2) [2025-04-14 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906081', 'tblTempUsageDetail_20' ) start [2025-04-14 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906081', 'tblTempUsageDetail_20' ) end [2025-04-14 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:57:26] Production.INFO: ==10870== Releasing lock... [2025-04-14 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:57:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:58:05 [end_date_ymd] => 2025-04-14 11:58:05 [RateCDR] => 1 ) [2025-04-14 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 08:58:05' and `end` < '2025-04-14 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 11:58:19] Production.INFO: count ==5305 [2025-04-14 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:58:05 - End Time 2025-04-14 11:58:05 [2025-04-14 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906086', 'tblTempUsageDetail_20' ) start [2025-04-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906086', 'tblTempUsageDetail_20' ) end [2025-04-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906086', 'tblTempVendorCDR_20' ) start [2025-04-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906086', 'tblTempVendorCDR_20' ) end [2025-04-14 11:58:21] Production.INFO: ProcessCDR(1,14906086,1,1,2) [2025-04-14 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906086', 'tblTempUsageDetail_20' ) start [2025-04-14 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906086', 'tblTempUsageDetail_20' ) end [2025-04-14 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:58:26] Production.INFO: ==10948== Releasing lock... [2025-04-14 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:58:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-14 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 08:59:05 [end_date_ymd] => 2025-04-14 11:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 08:59:05' and `end` < '2025-04-14 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-04-14 11:59:19] Production.INFO: count ==5313 [2025-04-14 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-14 08:59:05 - End Time 2025-04-14 11:59:05 [2025-04-14 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906091', 'tblTempUsageDetail_20' ) start [2025-04-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906091', 'tblTempUsageDetail_20' ) end [2025-04-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906091', 'tblTempVendorCDR_20' ) start [2025-04-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906091', 'tblTempVendorCDR_20' ) end [2025-04-14 11:59:21] Production.INFO: ProcessCDR(1,14906091,1,1,2) [2025-04-14 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906091', 'tblTempUsageDetail_20' ) start [2025-04-14 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906091', 'tblTempUsageDetail_20' ) end [2025-04-14 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 11:59:25] Production.INFO: ==11020== Releasing lock... [2025-04-14 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 11:59:25] Production.INFO: 67.75 MB #Memory Used# [2025-04-14 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:00:06 [end_date_ymd] => 2025-04-14 12:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:00:06' and `end` < '2025-04-14 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-04-14 12:00:20] Production.INFO: count ==5315 [2025-04-14 12:00:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:00:06 - End Time 2025-04-14 12:00:06 [2025-04-14 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906096', 'tblTempUsageDetail_20' ) start [2025-04-14 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906096', 'tblTempUsageDetail_20' ) end [2025-04-14 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906096', 'tblTempVendorCDR_20' ) start [2025-04-14 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906096', 'tblTempVendorCDR_20' ) end [2025-04-14 12:00:22] Production.INFO: ProcessCDR(1,14906096,1,1,2) [2025-04-14 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906096', 'tblTempUsageDetail_20' ) start [2025-04-14 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906096', 'tblTempUsageDetail_20' ) end [2025-04-14 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:00:26] Production.INFO: ==11093== Releasing lock... [2025-04-14 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:00:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-14 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:01:05 [end_date_ymd] => 2025-04-14 12:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:01:05' and `end` < '2025-04-14 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-04-14 12:01:19] Production.INFO: count ==5379 [2025-04-14 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:01:05 - End Time 2025-04-14 12:01:05 [2025-04-14 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906102', 'tblTempUsageDetail_20' ) start [2025-04-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906102', 'tblTempUsageDetail_20' ) end [2025-04-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906102', 'tblTempVendorCDR_20' ) start [2025-04-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906102', 'tblTempVendorCDR_20' ) end [2025-04-14 12:01:21] Production.INFO: ProcessCDR(1,14906102,1,1,2) [2025-04-14 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906102', 'tblTempUsageDetail_20' ) start [2025-04-14 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906102', 'tblTempUsageDetail_20' ) end [2025-04-14 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:01:25] Production.INFO: ==11182== Releasing lock... [2025-04-14 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:01:25] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:02:05 [end_date_ymd] => 2025-04-14 12:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:02:05' and `end` < '2025-04-14 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-04-14 12:02:19] Production.INFO: count ==5380 [2025-04-14 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:02:05 - End Time 2025-04-14 12:02:05 [2025-04-14 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906107', 'tblTempUsageDetail_20' ) start [2025-04-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906107', 'tblTempUsageDetail_20' ) end [2025-04-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906107', 'tblTempVendorCDR_20' ) start [2025-04-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906107', 'tblTempVendorCDR_20' ) end [2025-04-14 12:02:21] Production.INFO: ProcessCDR(1,14906107,1,1,2) [2025-04-14 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906107', 'tblTempUsageDetail_20' ) start [2025-04-14 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906107', 'tblTempUsageDetail_20' ) end [2025-04-14 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:02:26] Production.INFO: ==11264== Releasing lock... [2025-04-14 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:02:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:03:05 [end_date_ymd] => 2025-04-14 12:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:03:05' and `end` < '2025-04-14 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-04-14 12:03:18] Production.INFO: count ==5379 [2025-04-14 12:03:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:03:05 - End Time 2025-04-14 12:03:05 [2025-04-14 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906112', 'tblTempUsageDetail_20' ) start [2025-04-14 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906112', 'tblTempUsageDetail_20' ) end [2025-04-14 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906112', 'tblTempVendorCDR_20' ) start [2025-04-14 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906112', 'tblTempVendorCDR_20' ) end [2025-04-14 12:03:21] Production.INFO: ProcessCDR(1,14906112,1,1,2) [2025-04-14 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906112', 'tblTempUsageDetail_20' ) start [2025-04-14 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906112', 'tblTempUsageDetail_20' ) end [2025-04-14 12:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:03:25] Production.INFO: ==11337== Releasing lock... [2025-04-14 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:03:25] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:04:05 [end_date_ymd] => 2025-04-14 12:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:04:05' and `end` < '2025-04-14 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-04-14 12:04:19] Production.INFO: count ==5416 [2025-04-14 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:04:05 - End Time 2025-04-14 12:04:05 [2025-04-14 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906117', 'tblTempUsageDetail_20' ) start [2025-04-14 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906117', 'tblTempUsageDetail_20' ) end [2025-04-14 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906117', 'tblTempVendorCDR_20' ) start [2025-04-14 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906117', 'tblTempVendorCDR_20' ) end [2025-04-14 12:04:22] Production.INFO: ProcessCDR(1,14906117,1,1,2) [2025-04-14 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906117', 'tblTempUsageDetail_20' ) start [2025-04-14 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906117', 'tblTempUsageDetail_20' ) end [2025-04-14 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:04:27] Production.INFO: ==11408== Releasing lock... [2025-04-14 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:04:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:05:05 [end_date_ymd] => 2025-04-14 12:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:05:05' and `end` < '2025-04-14 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-04-14 12:05:19] Production.INFO: count ==5417 [2025-04-14 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:05:05 - End Time 2025-04-14 12:05:05 [2025-04-14 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906122', 'tblTempUsageDetail_20' ) start [2025-04-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906122', 'tblTempUsageDetail_20' ) end [2025-04-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906122', 'tblTempVendorCDR_20' ) start [2025-04-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906122', 'tblTempVendorCDR_20' ) end [2025-04-14 12:05:21] Production.INFO: ProcessCDR(1,14906122,1,1,2) [2025-04-14 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906122', 'tblTempUsageDetail_20' ) start [2025-04-14 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906122', 'tblTempUsageDetail_20' ) end [2025-04-14 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:05:26] Production.INFO: ==11480== Releasing lock... [2025-04-14 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:05:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:06:05 [end_date_ymd] => 2025-04-14 12:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:06:05' and `end` < '2025-04-14 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-04-14 12:06:19] Production.INFO: count ==5419 [2025-04-14 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:06:05 - End Time 2025-04-14 12:06:05 [2025-04-14 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906127', 'tblTempUsageDetail_20' ) start [2025-04-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906127', 'tblTempUsageDetail_20' ) end [2025-04-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906127', 'tblTempVendorCDR_20' ) start [2025-04-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906127', 'tblTempVendorCDR_20' ) end [2025-04-14 12:06:21] Production.INFO: ProcessCDR(1,14906127,1,1,2) [2025-04-14 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906127', 'tblTempUsageDetail_20' ) start [2025-04-14 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906127', 'tblTempUsageDetail_20' ) end [2025-04-14 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:06:26] Production.INFO: ==11561== Releasing lock... [2025-04-14 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:06:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:07:06 [end_date_ymd] => 2025-04-14 12:07:06 [RateCDR] => 1 ) [2025-04-14 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:07:06' and `end` < '2025-04-14 12: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-04-14 12:07:20] Production.INFO: count ==5405 [2025-04-14 12:07:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:07:06 - End Time 2025-04-14 12:07:06 [2025-04-14 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906132', 'tblTempUsageDetail_20' ) start [2025-04-14 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906132', 'tblTempUsageDetail_20' ) end [2025-04-14 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906132', 'tblTempVendorCDR_20' ) start [2025-04-14 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906132', 'tblTempVendorCDR_20' ) end [2025-04-14 12:07:22] Production.INFO: ProcessCDR(1,14906132,1,1,2) [2025-04-14 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906132', 'tblTempUsageDetail_20' ) start [2025-04-14 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906132', 'tblTempUsageDetail_20' ) end [2025-04-14 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:07:27] Production.INFO: ==11634== Releasing lock... [2025-04-14 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:07:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:08:05 [end_date_ymd] => 2025-04-14 12:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:08:05' and `end` < '2025-04-14 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-04-14 12:08:19] Production.INFO: count ==5402 [2025-04-14 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:08:05 - End Time 2025-04-14 12:08:05 [2025-04-14 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906137', 'tblTempUsageDetail_20' ) start [2025-04-14 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906137', 'tblTempUsageDetail_20' ) end [2025-04-14 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906137', 'tblTempVendorCDR_20' ) start [2025-04-14 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906137', 'tblTempVendorCDR_20' ) end [2025-04-14 12:08:21] Production.INFO: ProcessCDR(1,14906137,1,1,2) [2025-04-14 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906137', 'tblTempUsageDetail_20' ) start [2025-04-14 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906137', 'tblTempUsageDetail_20' ) end [2025-04-14 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:08:27] Production.INFO: ==11709== Releasing lock... [2025-04-14 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:08:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:09:05 [end_date_ymd] => 2025-04-14 12:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:09:05' and `end` < '2025-04-14 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-04-14 12:09:18] Production.INFO: count ==5390 [2025-04-14 12:09:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:09:05 - End Time 2025-04-14 12:09:05 [2025-04-14 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906142', 'tblTempUsageDetail_20' ) start [2025-04-14 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906142', 'tblTempUsageDetail_20' ) end [2025-04-14 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906142', 'tblTempVendorCDR_20' ) start [2025-04-14 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906142', 'tblTempVendorCDR_20' ) end [2025-04-14 12:09:21] Production.INFO: ProcessCDR(1,14906142,1,1,2) [2025-04-14 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906142', 'tblTempUsageDetail_20' ) start [2025-04-14 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906142', 'tblTempUsageDetail_20' ) end [2025-04-14 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:09:26] Production.INFO: ==11787== Releasing lock... [2025-04-14 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:09:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:10:05 [end_date_ymd] => 2025-04-14 12:10:05 [RateCDR] => 1 ) [2025-04-14 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:10:05' and `end` < '2025-04-14 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:10:19] Production.INFO: count ==5382 [2025-04-14 12:10:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:10:05 - End Time 2025-04-14 12:10:05 [2025-04-14 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906147', 'tblTempUsageDetail_20' ) start [2025-04-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906147', 'tblTempUsageDetail_20' ) end [2025-04-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906147', 'tblTempVendorCDR_20' ) start [2025-04-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906147', 'tblTempVendorCDR_20' ) end [2025-04-14 12:10:21] Production.INFO: ProcessCDR(1,14906147,1,1,2) [2025-04-14 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906147', 'tblTempUsageDetail_20' ) start [2025-04-14 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906147', 'tblTempUsageDetail_20' ) end [2025-04-14 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:10:27] Production.INFO: ==11899== Releasing lock... [2025-04-14 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:10:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:11:05 [end_date_ymd] => 2025-04-14 12:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:11:05' and `end` < '2025-04-14 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-04-14 12:11:18] Production.INFO: count ==5401 [2025-04-14 12:11:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:11:05 - End Time 2025-04-14 12:11:05 [2025-04-14 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906153', 'tblTempUsageDetail_20' ) start [2025-04-14 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906153', 'tblTempUsageDetail_20' ) end [2025-04-14 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906153', 'tblTempVendorCDR_20' ) start [2025-04-14 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906153', 'tblTempVendorCDR_20' ) end [2025-04-14 12:11:21] Production.INFO: ProcessCDR(1,14906153,1,1,2) [2025-04-14 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906153', 'tblTempUsageDetail_20' ) start [2025-04-14 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906153', 'tblTempUsageDetail_20' ) end [2025-04-14 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:11:25] Production.INFO: ==11973== Releasing lock... [2025-04-14 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:11:25] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:12:05 [end_date_ymd] => 2025-04-14 12:12:05 [RateCDR] => 1 ) [2025-04-14 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:12:05' and `end` < '2025-04-14 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:12:19] Production.INFO: count ==5414 [2025-04-14 12:12:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:12:05 - End Time 2025-04-14 12:12:05 [2025-04-14 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906158', 'tblTempUsageDetail_20' ) start [2025-04-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906158', 'tblTempUsageDetail_20' ) end [2025-04-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906158', 'tblTempVendorCDR_20' ) start [2025-04-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906158', 'tblTempVendorCDR_20' ) end [2025-04-14 12:12:21] Production.INFO: ProcessCDR(1,14906158,1,1,2) [2025-04-14 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906158', 'tblTempUsageDetail_20' ) start [2025-04-14 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906158', 'tblTempUsageDetail_20' ) end [2025-04-14 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:12:26] Production.INFO: ==12046== Releasing lock... [2025-04-14 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:12:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:13:05 [end_date_ymd] => 2025-04-14 12:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:13:05' and `end` < '2025-04-14 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-04-14 12:13:19] Production.INFO: count ==5415 [2025-04-14 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:13:05 - End Time 2025-04-14 12:13:05 [2025-04-14 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906163', 'tblTempUsageDetail_20' ) start [2025-04-14 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906163', 'tblTempUsageDetail_20' ) end [2025-04-14 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906163', 'tblTempVendorCDR_20' ) start [2025-04-14 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906163', 'tblTempVendorCDR_20' ) end [2025-04-14 12:13:22] Production.INFO: ProcessCDR(1,14906163,1,1,2) [2025-04-14 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906163', 'tblTempUsageDetail_20' ) start [2025-04-14 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906163', 'tblTempUsageDetail_20' ) end [2025-04-14 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:13:27] Production.INFO: ==12121== Releasing lock... [2025-04-14 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:13:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:14:05 [end_date_ymd] => 2025-04-14 12:14:05 [RateCDR] => 1 ) [2025-04-14 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:14:05' and `end` < '2025-04-14 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:14:18] Production.INFO: count ==5413 [2025-04-14 12:14:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:14:05 - End Time 2025-04-14 12:14:05 [2025-04-14 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906168', 'tblTempUsageDetail_20' ) start [2025-04-14 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906168', 'tblTempUsageDetail_20' ) end [2025-04-14 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906168', 'tblTempVendorCDR_20' ) start [2025-04-14 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906168', 'tblTempVendorCDR_20' ) end [2025-04-14 12:14:21] Production.INFO: ProcessCDR(1,14906168,1,1,2) [2025-04-14 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906168', 'tblTempUsageDetail_20' ) start [2025-04-14 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906168', 'tblTempUsageDetail_20' ) end [2025-04-14 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:14:25] Production.INFO: ==12191== Releasing lock... [2025-04-14 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:14:25] Production.INFO: 68.75 MB #Memory Used# [2025-04-14 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:15:05 [end_date_ymd] => 2025-04-14 12:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:15:05' and `end` < '2025-04-14 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-04-14 12:15:19] Production.INFO: count ==5400 [2025-04-14 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:15:05 - End Time 2025-04-14 12:15:05 [2025-04-14 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906173', 'tblTempUsageDetail_20' ) start [2025-04-14 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906173', 'tblTempUsageDetail_20' ) end [2025-04-14 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906173', 'tblTempVendorCDR_20' ) start [2025-04-14 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906173', 'tblTempVendorCDR_20' ) end [2025-04-14 12:15:21] Production.INFO: ProcessCDR(1,14906173,1,1,2) [2025-04-14 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906173', 'tblTempUsageDetail_20' ) start [2025-04-14 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906173', 'tblTempUsageDetail_20' ) end [2025-04-14 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:15:26] Production.INFO: ==12270== Releasing lock... [2025-04-14 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:15:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:16:05 [end_date_ymd] => 2025-04-14 12:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:16:05' and `end` < '2025-04-14 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-04-14 12:16:19] Production.INFO: count ==5406 [2025-04-14 12:16:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:16:05 - End Time 2025-04-14 12:16:05 [2025-04-14 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906178', 'tblTempUsageDetail_20' ) start [2025-04-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906178', 'tblTempUsageDetail_20' ) end [2025-04-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906178', 'tblTempVendorCDR_20' ) start [2025-04-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906178', 'tblTempVendorCDR_20' ) end [2025-04-14 12:16:21] Production.INFO: ProcessCDR(1,14906178,1,1,2) [2025-04-14 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906178', 'tblTempUsageDetail_20' ) start [2025-04-14 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906178', 'tblTempUsageDetail_20' ) end [2025-04-14 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:16:26] Production.INFO: ==12341== Releasing lock... [2025-04-14 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:16:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:17:05 [end_date_ymd] => 2025-04-14 12:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:17:05' and `end` < '2025-04-14 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-04-14 12:17:19] Production.INFO: count ==5398 [2025-04-14 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:17:05 - End Time 2025-04-14 12:17:05 [2025-04-14 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906183', 'tblTempUsageDetail_20' ) start [2025-04-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906183', 'tblTempUsageDetail_20' ) end [2025-04-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906183', 'tblTempVendorCDR_20' ) start [2025-04-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906183', 'tblTempVendorCDR_20' ) end [2025-04-14 12:17:21] Production.INFO: ProcessCDR(1,14906183,1,1,2) [2025-04-14 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906183', 'tblTempUsageDetail_20' ) start [2025-04-14 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906183', 'tblTempUsageDetail_20' ) end [2025-04-14 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:17:26] Production.INFO: ==12417== Releasing lock... [2025-04-14 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:17:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-14 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:18:05 [end_date_ymd] => 2025-04-14 12:18:05 [RateCDR] => 1 ) [2025-04-14 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:18:05' and `end` < '2025-04-14 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:18:19] Production.INFO: count ==5385 [2025-04-14 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:18:05 - End Time 2025-04-14 12:18:05 [2025-04-14 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906188', 'tblTempUsageDetail_20' ) start [2025-04-14 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906188', 'tblTempUsageDetail_20' ) end [2025-04-14 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906188', 'tblTempVendorCDR_20' ) start [2025-04-14 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906188', 'tblTempVendorCDR_20' ) end [2025-04-14 12:18:21] Production.INFO: ProcessCDR(1,14906188,1,1,2) [2025-04-14 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906188', 'tblTempUsageDetail_20' ) start [2025-04-14 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906188', 'tblTempUsageDetail_20' ) end [2025-04-14 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:18:27] Production.INFO: ==12494== Releasing lock... [2025-04-14 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:18:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:19:05 [end_date_ymd] => 2025-04-14 12:19:05 [RateCDR] => 1 ) [2025-04-14 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:19:05' and `end` < '2025-04-14 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:19:19] Production.INFO: count ==5355 [2025-04-14 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:19:05 - End Time 2025-04-14 12:19:05 [2025-04-14 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906193', 'tblTempUsageDetail_20' ) start [2025-04-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906193', 'tblTempUsageDetail_20' ) end [2025-04-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906193', 'tblTempVendorCDR_20' ) start [2025-04-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906193', 'tblTempVendorCDR_20' ) end [2025-04-14 12:19:21] Production.INFO: ProcessCDR(1,14906193,1,1,2) [2025-04-14 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906193', 'tblTempUsageDetail_20' ) start [2025-04-14 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906193', 'tblTempUsageDetail_20' ) end [2025-04-14 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:19:26] Production.INFO: ==12566== Releasing lock... [2025-04-14 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:19:26] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:20:05 [end_date_ymd] => 2025-04-14 12:20:05 [RateCDR] => 1 ) [2025-04-14 12: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-04-14 09:20:05' and `end` < '2025-04-14 12: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-04-14 12:20:19] Production.INFO: count ==5362 [2025-04-14 12:20:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:20:05 - End Time 2025-04-14 12:20:05 [2025-04-14 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906199', 'tblTempUsageDetail_20' ) start [2025-04-14 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906199', 'tblTempUsageDetail_20' ) end [2025-04-14 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906199', 'tblTempVendorCDR_20' ) start [2025-04-14 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906199', 'tblTempVendorCDR_20' ) end [2025-04-14 12:20:22] Production.INFO: ProcessCDR(1,14906199,1,1,2) [2025-04-14 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906199', 'tblTempUsageDetail_20' ) start [2025-04-14 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906199', 'tblTempUsageDetail_20' ) end [2025-04-14 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:20:27] Production.INFO: ==12639== Releasing lock... [2025-04-14 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:20:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:21:05 [end_date_ymd] => 2025-04-14 12:21:05 [RateCDR] => 1 ) [2025-04-14 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:21:05' and `end` < '2025-04-14 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:21:19] Production.INFO: count ==5361 [2025-04-14 12:21:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:21:05 - End Time 2025-04-14 12:21:05 [2025-04-14 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906204', 'tblTempUsageDetail_20' ) start [2025-04-14 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906204', 'tblTempUsageDetail_20' ) end [2025-04-14 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906204', 'tblTempVendorCDR_20' ) start [2025-04-14 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906204', 'tblTempVendorCDR_20' ) end [2025-04-14 12:21:22] Production.INFO: ProcessCDR(1,14906204,1,1,2) [2025-04-14 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906204', 'tblTempUsageDetail_20' ) start [2025-04-14 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906204', 'tblTempUsageDetail_20' ) end [2025-04-14 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:21:27] Production.INFO: ==12717== Releasing lock... [2025-04-14 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:21:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:22:06 [end_date_ymd] => 2025-04-14 12:22:06 [RateCDR] => 1 ) [2025-04-14 12: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-04-14 09:22:06' and `end` < '2025-04-14 12: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-04-14 12:22:20] Production.INFO: count ==5366 [2025-04-14 12:22:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:22:06 - End Time 2025-04-14 12:22:06 [2025-04-14 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906209', 'tblTempUsageDetail_20' ) start [2025-04-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906209', 'tblTempUsageDetail_20' ) end [2025-04-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906209', 'tblTempVendorCDR_20' ) start [2025-04-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906209', 'tblTempVendorCDR_20' ) end [2025-04-14 12:22:22] Production.INFO: ProcessCDR(1,14906209,1,1,2) [2025-04-14 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906209', 'tblTempUsageDetail_20' ) start [2025-04-14 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906209', 'tblTempUsageDetail_20' ) end [2025-04-14 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:22:27] Production.INFO: ==12794== Releasing lock... [2025-04-14 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:22:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:23:05 [end_date_ymd] => 2025-04-14 12:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:23:05' and `end` < '2025-04-14 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-04-14 12:23:19] Production.INFO: count ==5353 [2025-04-14 12:23:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:23:05 - End Time 2025-04-14 12:23:05 [2025-04-14 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906214', 'tblTempUsageDetail_20' ) start [2025-04-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906214', 'tblTempUsageDetail_20' ) end [2025-04-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906214', 'tblTempVendorCDR_20' ) start [2025-04-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906214', 'tblTempVendorCDR_20' ) end [2025-04-14 12:23:21] Production.INFO: ProcessCDR(1,14906214,1,1,2) [2025-04-14 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906214', 'tblTempUsageDetail_20' ) start [2025-04-14 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906214', 'tblTempUsageDetail_20' ) end [2025-04-14 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:23:26] Production.INFO: ==12866== Releasing lock... [2025-04-14 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:23:26] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:24:05 [end_date_ymd] => 2025-04-14 12:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:24:05' and `end` < '2025-04-14 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-04-14 12:24:18] Production.INFO: count ==5349 [2025-04-14 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:24:05 - End Time 2025-04-14 12:24:05 [2025-04-14 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906219', 'tblTempUsageDetail_20' ) start [2025-04-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906219', 'tblTempUsageDetail_20' ) end [2025-04-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906219', 'tblTempVendorCDR_20' ) start [2025-04-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906219', 'tblTempVendorCDR_20' ) end [2025-04-14 12:24:21] Production.INFO: ProcessCDR(1,14906219,1,1,2) [2025-04-14 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906219', 'tblTempUsageDetail_20' ) start [2025-04-14 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906219', 'tblTempUsageDetail_20' ) end [2025-04-14 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:24:26] Production.INFO: ==12941== Releasing lock... [2025-04-14 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:24:26] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:25:05 [end_date_ymd] => 2025-04-14 12:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:25:05' and `end` < '2025-04-14 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-04-14 12:25:18] Production.INFO: count ==5346 [2025-04-14 12:25:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:25:05 - End Time 2025-04-14 12:25:05 [2025-04-14 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906224', 'tblTempUsageDetail_20' ) start [2025-04-14 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906224', 'tblTempUsageDetail_20' ) end [2025-04-14 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906224', 'tblTempVendorCDR_20' ) start [2025-04-14 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906224', 'tblTempVendorCDR_20' ) end [2025-04-14 12:25:20] Production.INFO: ProcessCDR(1,14906224,1,1,2) [2025-04-14 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906224', 'tblTempUsageDetail_20' ) start [2025-04-14 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906224', 'tblTempUsageDetail_20' ) end [2025-04-14 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:25:26] Production.INFO: ==13016== Releasing lock... [2025-04-14 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:25:26] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:26:05 [end_date_ymd] => 2025-04-14 12:26:05 [RateCDR] => 1 ) [2025-04-14 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:26:05' and `end` < '2025-04-14 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:26:19] Production.INFO: count ==5361 [2025-04-14 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:26:05 - End Time 2025-04-14 12:26:05 [2025-04-14 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906229', 'tblTempUsageDetail_20' ) start [2025-04-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906229', 'tblTempUsageDetail_20' ) end [2025-04-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906229', 'tblTempVendorCDR_20' ) start [2025-04-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906229', 'tblTempVendorCDR_20' ) end [2025-04-14 12:26:21] Production.INFO: ProcessCDR(1,14906229,1,1,2) [2025-04-14 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906229', 'tblTempUsageDetail_20' ) start [2025-04-14 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906229', 'tblTempUsageDetail_20' ) end [2025-04-14 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:26:26] Production.INFO: ==13129== Releasing lock... [2025-04-14 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:26:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:27:05 [end_date_ymd] => 2025-04-14 12:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:27:05' and `end` < '2025-04-14 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-04-14 12:27:19] Production.INFO: count ==5356 [2025-04-14 12:27:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:27:05 - End Time 2025-04-14 12:27:05 [2025-04-14 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906234', 'tblTempUsageDetail_20' ) start [2025-04-14 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906234', 'tblTempUsageDetail_20' ) end [2025-04-14 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906234', 'tblTempVendorCDR_20' ) start [2025-04-14 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906234', 'tblTempVendorCDR_20' ) end [2025-04-14 12:27:21] Production.INFO: ProcessCDR(1,14906234,1,1,2) [2025-04-14 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906234', 'tblTempUsageDetail_20' ) start [2025-04-14 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906234', 'tblTempUsageDetail_20' ) end [2025-04-14 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:27:26] Production.INFO: ==13211== Releasing lock... [2025-04-14 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:27:26] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:28:06 [end_date_ymd] => 2025-04-14 12:28:06 [RateCDR] => 1 ) [2025-04-14 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:28:06' and `end` < '2025-04-14 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:28:20] Production.INFO: count ==5349 [2025-04-14 12:28:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:28:06 - End Time 2025-04-14 12:28:06 [2025-04-14 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906239', 'tblTempUsageDetail_20' ) start [2025-04-14 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906239', 'tblTempUsageDetail_20' ) end [2025-04-14 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906239', 'tblTempVendorCDR_20' ) start [2025-04-14 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906239', 'tblTempVendorCDR_20' ) end [2025-04-14 12:28:22] Production.INFO: ProcessCDR(1,14906239,1,1,2) [2025-04-14 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906239', 'tblTempUsageDetail_20' ) start [2025-04-14 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906239', 'tblTempUsageDetail_20' ) end [2025-04-14 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:28:27] Production.INFO: ==13284== Releasing lock... [2025-04-14 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:28:27] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:29:05 [end_date_ymd] => 2025-04-14 12:29:05 [RateCDR] => 1 ) [2025-04-14 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:29:05' and `end` < '2025-04-14 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:29:19] Production.INFO: count ==5349 [2025-04-14 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:29:05 - End Time 2025-04-14 12:29:05 [2025-04-14 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906244', 'tblTempUsageDetail_20' ) start [2025-04-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906244', 'tblTempUsageDetail_20' ) end [2025-04-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906244', 'tblTempVendorCDR_20' ) start [2025-04-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906244', 'tblTempVendorCDR_20' ) end [2025-04-14 12:29:21] Production.INFO: ProcessCDR(1,14906244,1,1,2) [2025-04-14 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906244', 'tblTempUsageDetail_20' ) start [2025-04-14 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906244', 'tblTempUsageDetail_20' ) end [2025-04-14 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:29:26] Production.INFO: ==13362== Releasing lock... [2025-04-14 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:29:26] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:30:06 [end_date_ymd] => 2025-04-14 12:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:30:06' and `end` < '2025-04-14 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-04-14 12:30:20] Production.INFO: count ==5363 [2025-04-14 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:30:06 - End Time 2025-04-14 12:30:06 [2025-04-14 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906250', 'tblTempUsageDetail_20' ) start [2025-04-14 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906250', 'tblTempUsageDetail_20' ) end [2025-04-14 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906250', 'tblTempVendorCDR_20' ) start [2025-04-14 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906250', 'tblTempVendorCDR_20' ) end [2025-04-14 12:30:22] Production.INFO: ProcessCDR(1,14906250,1,1,2) [2025-04-14 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906250', 'tblTempUsageDetail_20' ) start [2025-04-14 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906250', 'tblTempUsageDetail_20' ) end [2025-04-14 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:30:27] Production.INFO: ==13438== Releasing lock... [2025-04-14 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:30:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:31:05 [end_date_ymd] => 2025-04-14 12:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:31:05' and `end` < '2025-04-14 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-04-14 12:31:19] Production.INFO: count ==5380 [2025-04-14 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:31:05 - End Time 2025-04-14 12:31:05 [2025-04-14 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906255', 'tblTempUsageDetail_20' ) start [2025-04-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906255', 'tblTempUsageDetail_20' ) end [2025-04-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906255', 'tblTempVendorCDR_20' ) start [2025-04-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906255', 'tblTempVendorCDR_20' ) end [2025-04-14 12:31:21] Production.INFO: ProcessCDR(1,14906255,1,1,2) [2025-04-14 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906255', 'tblTempUsageDetail_20' ) start [2025-04-14 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906255', 'tblTempUsageDetail_20' ) end [2025-04-14 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:31:26] Production.INFO: ==13512== Releasing lock... [2025-04-14 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:31:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:32:05 [end_date_ymd] => 2025-04-14 12:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:32:05' and `end` < '2025-04-14 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-04-14 12:32:19] Production.INFO: count ==5373 [2025-04-14 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:32:05 - End Time 2025-04-14 12:32:05 [2025-04-14 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906260', 'tblTempUsageDetail_20' ) start [2025-04-14 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906260', 'tblTempUsageDetail_20' ) end [2025-04-14 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906260', 'tblTempVendorCDR_20' ) start [2025-04-14 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906260', 'tblTempVendorCDR_20' ) end [2025-04-14 12:32:22] Production.INFO: ProcessCDR(1,14906260,1,1,2) [2025-04-14 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906260', 'tblTempUsageDetail_20' ) start [2025-04-14 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906260', 'tblTempUsageDetail_20' ) end [2025-04-14 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:32:27] Production.INFO: ==13582== Releasing lock... [2025-04-14 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:32:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:33:05 [end_date_ymd] => 2025-04-14 12:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:33:05' and `end` < '2025-04-14 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-04-14 12:33:19] Production.INFO: count ==5365 [2025-04-14 12:33:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:33:05 - End Time 2025-04-14 12:33:05 [2025-04-14 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906265', 'tblTempUsageDetail_20' ) start [2025-04-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906265', 'tblTempUsageDetail_20' ) end [2025-04-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906265', 'tblTempVendorCDR_20' ) start [2025-04-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906265', 'tblTempVendorCDR_20' ) end [2025-04-14 12:33:21] Production.INFO: ProcessCDR(1,14906265,1,1,2) [2025-04-14 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906265', 'tblTempUsageDetail_20' ) start [2025-04-14 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906265', 'tblTempUsageDetail_20' ) end [2025-04-14 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:33:26] Production.INFO: ==13656== Releasing lock... [2025-04-14 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:33:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:34:06 [end_date_ymd] => 2025-04-14 12:34:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:34:06' and `end` < '2025-04-14 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-04-14 12:34:20] Production.INFO: count ==5372 [2025-04-14 12:34:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:34:06 - End Time 2025-04-14 12:34:06 [2025-04-14 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906270', 'tblTempUsageDetail_20' ) start [2025-04-14 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906270', 'tblTempUsageDetail_20' ) end [2025-04-14 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906270', 'tblTempVendorCDR_20' ) start [2025-04-14 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906270', 'tblTempVendorCDR_20' ) end [2025-04-14 12:34:22] Production.INFO: ProcessCDR(1,14906270,1,1,2) [2025-04-14 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906270', 'tblTempUsageDetail_20' ) start [2025-04-14 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906270', 'tblTempUsageDetail_20' ) end [2025-04-14 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:34:27] Production.INFO: ==13730== Releasing lock... [2025-04-14 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:34:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-14 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:35:05 [end_date_ymd] => 2025-04-14 12:35:05 [RateCDR] => 1 ) [2025-04-14 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:35:05' and `end` < '2025-04-14 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:35:19] Production.INFO: count ==5358 [2025-04-14 12:35:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:35:05 - End Time 2025-04-14 12:35:05 [2025-04-14 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906275', 'tblTempUsageDetail_20' ) start [2025-04-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906275', 'tblTempUsageDetail_20' ) end [2025-04-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906275', 'tblTempVendorCDR_20' ) start [2025-04-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906275', 'tblTempVendorCDR_20' ) end [2025-04-14 12:35:21] Production.INFO: ProcessCDR(1,14906275,1,1,2) [2025-04-14 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906275', 'tblTempUsageDetail_20' ) start [2025-04-14 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906275', 'tblTempUsageDetail_20' ) end [2025-04-14 12:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:35:25] Production.INFO: ==13806== Releasing lock... [2025-04-14 12:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:35:25] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:36:05 [end_date_ymd] => 2025-04-14 12:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:36:05' and `end` < '2025-04-14 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-04-14 12:36:19] Production.INFO: count ==5345 [2025-04-14 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:36:05 - End Time 2025-04-14 12:36:05 [2025-04-14 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906280', 'tblTempUsageDetail_20' ) start [2025-04-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906280', 'tblTempUsageDetail_20' ) end [2025-04-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906280', 'tblTempVendorCDR_20' ) start [2025-04-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906280', 'tblTempVendorCDR_20' ) end [2025-04-14 12:36:21] Production.INFO: ProcessCDR(1,14906280,1,1,2) [2025-04-14 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906280', 'tblTempUsageDetail_20' ) start [2025-04-14 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906280', 'tblTempUsageDetail_20' ) end [2025-04-14 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:36:26] Production.INFO: ==13881== Releasing lock... [2025-04-14 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:36:26] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:37:04 [end_date_ymd] => 2025-04-14 12:37:04 [RateCDR] => 1 ) [2025-04-14 12:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:37:04' and `end` < '2025-04-14 12:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:37:18] Production.INFO: count ==5342 [2025-04-14 12:37:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:37:04 - End Time 2025-04-14 12:37:04 [2025-04-14 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906285', 'tblTempUsageDetail_20' ) start [2025-04-14 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906285', 'tblTempUsageDetail_20' ) end [2025-04-14 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906285', 'tblTempVendorCDR_20' ) start [2025-04-14 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906285', 'tblTempVendorCDR_20' ) end [2025-04-14 12:37:20] Production.INFO: ProcessCDR(1,14906285,1,1,2) [2025-04-14 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906285', 'tblTempUsageDetail_20' ) start [2025-04-14 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906285', 'tblTempUsageDetail_20' ) end [2025-04-14 12:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:37:25] Production.INFO: ==13955== Releasing lock... [2025-04-14 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:37:25] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:38:06 [end_date_ymd] => 2025-04-14 12:38:06 [RateCDR] => 1 ) [2025-04-14 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:38:06' and `end` < '2025-04-14 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:38:20] Production.INFO: count ==5331 [2025-04-14 12:38:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:38:06 - End Time 2025-04-14 12:38:06 [2025-04-14 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906290', 'tblTempUsageDetail_20' ) start [2025-04-14 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906290', 'tblTempUsageDetail_20' ) end [2025-04-14 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906290', 'tblTempVendorCDR_20' ) start [2025-04-14 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906290', 'tblTempVendorCDR_20' ) end [2025-04-14 12:38:22] Production.INFO: ProcessCDR(1,14906290,1,1,2) [2025-04-14 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906290', 'tblTempUsageDetail_20' ) start [2025-04-14 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906290', 'tblTempUsageDetail_20' ) end [2025-04-14 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:38:27] Production.INFO: ==14027== Releasing lock... [2025-04-14 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:38:27] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:39:04 [end_date_ymd] => 2025-04-14 12:39:04 [RateCDR] => 1 ) [2025-04-14 12:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:39:04' and `end` < '2025-04-14 12:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:39:18] Production.INFO: count ==5326 [2025-04-14 12:39:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:39:04 - End Time 2025-04-14 12:39:04 [2025-04-14 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906291', 'tblTempUsageDetail_20' ) start [2025-04-14 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906291', 'tblTempUsageDetail_20' ) end [2025-04-14 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906291', 'tblTempVendorCDR_20' ) start [2025-04-14 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906291', 'tblTempVendorCDR_20' ) end [2025-04-14 12:39:20] Production.INFO: ProcessCDR(1,14906291,1,1,2) [2025-04-14 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906291', 'tblTempUsageDetail_20' ) start [2025-04-14 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906291', 'tblTempUsageDetail_20' ) end [2025-04-14 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:39:25] Production.INFO: ==14098== Releasing lock... [2025-04-14 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:39:25] Production.INFO: 68 MB #Memory Used# [2025-04-14 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:40:06 [end_date_ymd] => 2025-04-14 12:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:40:06' and `end` < '2025-04-14 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-04-14 12:40:20] Production.INFO: count ==5324 [2025-04-14 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:40:06 - End Time 2025-04-14 12:40:06 [2025-04-14 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906301', 'tblTempUsageDetail_20' ) start [2025-04-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906301', 'tblTempUsageDetail_20' ) end [2025-04-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906301', 'tblTempVendorCDR_20' ) start [2025-04-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906301', 'tblTempVendorCDR_20' ) end [2025-04-14 12:40:22] Production.INFO: ProcessCDR(1,14906301,1,1,2) [2025-04-14 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906301', 'tblTempUsageDetail_20' ) start [2025-04-14 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906301', 'tblTempUsageDetail_20' ) end [2025-04-14 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:40:26] Production.INFO: ==14187== Releasing lock... [2025-04-14 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:40:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-14 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:41:04 [end_date_ymd] => 2025-04-14 12:41:04 [RateCDR] => 1 ) [2025-04-14 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:41:04' and `end` < '2025-04-14 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:41:18] Production.INFO: count ==5298 [2025-04-14 12:41:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:41:04 - End Time 2025-04-14 12:41:04 [2025-04-14 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906306', 'tblTempUsageDetail_20' ) start [2025-04-14 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906306', 'tblTempUsageDetail_20' ) end [2025-04-14 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906306', 'tblTempVendorCDR_20' ) start [2025-04-14 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906306', 'tblTempVendorCDR_20' ) end [2025-04-14 12:41:20] Production.INFO: ProcessCDR(1,14906306,1,1,2) [2025-04-14 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906306', 'tblTempUsageDetail_20' ) start [2025-04-14 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906306', 'tblTempUsageDetail_20' ) end [2025-04-14 12:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:41:25] Production.INFO: ==14311== Releasing lock... [2025-04-14 12:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:41:25] Production.INFO: 67.75 MB #Memory Used# [2025-04-14 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:42:05 [end_date_ymd] => 2025-04-14 12:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:42:05' and `end` < '2025-04-14 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-04-14 12:42:19] Production.INFO: count ==5289 [2025-04-14 12:42:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:42:05 - End Time 2025-04-14 12:42:05 [2025-04-14 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906311', 'tblTempUsageDetail_20' ) start [2025-04-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906311', 'tblTempUsageDetail_20' ) end [2025-04-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906311', 'tblTempVendorCDR_20' ) start [2025-04-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906311', 'tblTempVendorCDR_20' ) end [2025-04-14 12:42:21] Production.INFO: ProcessCDR(1,14906311,1,1,2) [2025-04-14 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906311', 'tblTempUsageDetail_20' ) start [2025-04-14 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906311', 'tblTempUsageDetail_20' ) end [2025-04-14 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:42:26] Production.INFO: ==14408== Releasing lock... [2025-04-14 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:42:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:43:05 [end_date_ymd] => 2025-04-14 12:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:43:05' and `end` < '2025-04-14 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-04-14 12:43:19] Production.INFO: count ==5289 [2025-04-14 12:43:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:43:05 - End Time 2025-04-14 12:43:05 [2025-04-14 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906316', 'tblTempUsageDetail_20' ) start [2025-04-14 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906316', 'tblTempUsageDetail_20' ) end [2025-04-14 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906316', 'tblTempVendorCDR_20' ) start [2025-04-14 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906316', 'tblTempVendorCDR_20' ) end [2025-04-14 12:43:21] Production.INFO: ProcessCDR(1,14906316,1,1,2) [2025-04-14 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906316', 'tblTempUsageDetail_20' ) start [2025-04-14 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906316', 'tblTempUsageDetail_20' ) end [2025-04-14 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:43:26] Production.INFO: ==14494== Releasing lock... [2025-04-14 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:43:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:44:05 [end_date_ymd] => 2025-04-14 12:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:44:05' and `end` < '2025-04-14 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-04-14 12:44:19] Production.INFO: count ==5282 [2025-04-14 12:44:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:44:05 - End Time 2025-04-14 12:44:05 [2025-04-14 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906321', 'tblTempUsageDetail_20' ) start [2025-04-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906321', 'tblTempUsageDetail_20' ) end [2025-04-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906321', 'tblTempVendorCDR_20' ) start [2025-04-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906321', 'tblTempVendorCDR_20' ) end [2025-04-14 12:44:21] Production.INFO: ProcessCDR(1,14906321,1,1,2) [2025-04-14 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906321', 'tblTempUsageDetail_20' ) start [2025-04-14 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906321', 'tblTempUsageDetail_20' ) end [2025-04-14 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:44:26] Production.INFO: ==14585== Releasing lock... [2025-04-14 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:44:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:45:05 [end_date_ymd] => 2025-04-14 12:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:45:05' and `end` < '2025-04-14 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-04-14 12:45:19] Production.INFO: count ==5279 [2025-04-14 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:45:05 - End Time 2025-04-14 12:45:05 [2025-04-14 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906326', 'tblTempUsageDetail_20' ) start [2025-04-14 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906326', 'tblTempUsageDetail_20' ) end [2025-04-14 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906326', 'tblTempVendorCDR_20' ) start [2025-04-14 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906326', 'tblTempVendorCDR_20' ) end [2025-04-14 12:45:22] Production.INFO: ProcessCDR(1,14906326,1,1,2) [2025-04-14 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906326', 'tblTempUsageDetail_20' ) start [2025-04-14 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906326', 'tblTempUsageDetail_20' ) end [2025-04-14 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:45:27] Production.INFO: ==14672== Releasing lock... [2025-04-14 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:45:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:46:05 [end_date_ymd] => 2025-04-14 12:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:46:05' and `end` < '2025-04-14 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-04-14 12:46:19] Production.INFO: count ==5269 [2025-04-14 12:46:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:46:05 - End Time 2025-04-14 12:46:05 [2025-04-14 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906331', 'tblTempUsageDetail_20' ) start [2025-04-14 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906331', 'tblTempUsageDetail_20' ) end [2025-04-14 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906331', 'tblTempVendorCDR_20' ) start [2025-04-14 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906331', 'tblTempVendorCDR_20' ) end [2025-04-14 12:46:21] Production.INFO: ProcessCDR(1,14906331,1,1,2) [2025-04-14 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906331', 'tblTempUsageDetail_20' ) start [2025-04-14 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906331', 'tblTempUsageDetail_20' ) end [2025-04-14 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:46:26] Production.INFO: ==14744== Releasing lock... [2025-04-14 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:46:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:47:05 [end_date_ymd] => 2025-04-14 12:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:47:05' and `end` < '2025-04-14 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-04-14 12:47:19] Production.INFO: count ==5274 [2025-04-14 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:47:05 - End Time 2025-04-14 12:47:05 [2025-04-14 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906336', 'tblTempUsageDetail_20' ) start [2025-04-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906336', 'tblTempUsageDetail_20' ) end [2025-04-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906336', 'tblTempVendorCDR_20' ) start [2025-04-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906336', 'tblTempVendorCDR_20' ) end [2025-04-14 12:47:21] Production.INFO: ProcessCDR(1,14906336,1,1,2) [2025-04-14 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906336', 'tblTempUsageDetail_20' ) start [2025-04-14 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906336', 'tblTempUsageDetail_20' ) end [2025-04-14 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:47:26] Production.INFO: ==14819== Releasing lock... [2025-04-14 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:47:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:48:05 [end_date_ymd] => 2025-04-14 12:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:48:05' and `end` < '2025-04-14 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-04-14 12:48:19] Production.INFO: count ==5280 [2025-04-14 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:48:05 - End Time 2025-04-14 12:48:05 [2025-04-14 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906341', 'tblTempUsageDetail_20' ) start [2025-04-14 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906341', 'tblTempUsageDetail_20' ) end [2025-04-14 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906341', 'tblTempVendorCDR_20' ) start [2025-04-14 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906341', 'tblTempVendorCDR_20' ) end [2025-04-14 12:48:21] Production.INFO: ProcessCDR(1,14906341,1,1,2) [2025-04-14 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906341', 'tblTempUsageDetail_20' ) start [2025-04-14 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906341', 'tblTempUsageDetail_20' ) end [2025-04-14 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:48:25] Production.INFO: ==14891== Releasing lock... [2025-04-14 12:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:48:25] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:49:05 [end_date_ymd] => 2025-04-14 12:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:49:05' and `end` < '2025-04-14 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-04-14 12:49:19] Production.INFO: count ==5286 [2025-04-14 12:49:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:49:05 - End Time 2025-04-14 12:49:05 [2025-04-14 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906346', 'tblTempUsageDetail_20' ) start [2025-04-14 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906346', 'tblTempUsageDetail_20' ) end [2025-04-14 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906346', 'tblTempVendorCDR_20' ) start [2025-04-14 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906346', 'tblTempVendorCDR_20' ) end [2025-04-14 12:49:21] Production.INFO: ProcessCDR(1,14906346,1,1,2) [2025-04-14 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906346', 'tblTempUsageDetail_20' ) start [2025-04-14 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906346', 'tblTempUsageDetail_20' ) end [2025-04-14 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:49:26] Production.INFO: ==14964== Releasing lock... [2025-04-14 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:49:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:50:06 [end_date_ymd] => 2025-04-14 12:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:50:06' and `end` < '2025-04-14 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-04-14 12:50:19] Production.INFO: count ==5289 [2025-04-14 12:50:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:50:06 - End Time 2025-04-14 12:50:06 [2025-04-14 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906352', 'tblTempUsageDetail_20' ) start [2025-04-14 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906352', 'tblTempUsageDetail_20' ) end [2025-04-14 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906352', 'tblTempVendorCDR_20' ) start [2025-04-14 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906352', 'tblTempVendorCDR_20' ) end [2025-04-14 12:50:22] Production.INFO: ProcessCDR(1,14906352,1,1,2) [2025-04-14 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906352', 'tblTempUsageDetail_20' ) start [2025-04-14 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906352', 'tblTempUsageDetail_20' ) end [2025-04-14 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:50:26] Production.INFO: ==15035== Releasing lock... [2025-04-14 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:50:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:51:05 [end_date_ymd] => 2025-04-14 12:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:51:05' and `end` < '2025-04-14 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-04-14 12:51:19] Production.INFO: count ==5259 [2025-04-14 12:51:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:51:05 - End Time 2025-04-14 12:51:05 [2025-04-14 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906357', 'tblTempUsageDetail_20' ) start [2025-04-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906357', 'tblTempUsageDetail_20' ) end [2025-04-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906357', 'tblTempVendorCDR_20' ) start [2025-04-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906357', 'tblTempVendorCDR_20' ) end [2025-04-14 12:51:21] Production.INFO: ProcessCDR(1,14906357,1,1,2) [2025-04-14 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906357', 'tblTempUsageDetail_20' ) start [2025-04-14 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906357', 'tblTempUsageDetail_20' ) end [2025-04-14 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:51:26] Production.INFO: ==15113== Releasing lock... [2025-04-14 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:51:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:52:05 [end_date_ymd] => 2025-04-14 12:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:52:05' and `end` < '2025-04-14 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-04-14 12:52:20] Production.INFO: count ==5249 [2025-04-14 12:52:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:52:05 - End Time 2025-04-14 12:52:05 [2025-04-14 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906362', 'tblTempUsageDetail_20' ) start [2025-04-14 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906362', 'tblTempUsageDetail_20' ) end [2025-04-14 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906362', 'tblTempVendorCDR_20' ) start [2025-04-14 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906362', 'tblTempVendorCDR_20' ) end [2025-04-14 12:52:22] Production.INFO: ProcessCDR(1,14906362,1,1,2) [2025-04-14 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906362', 'tblTempUsageDetail_20' ) start [2025-04-14 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906362', 'tblTempUsageDetail_20' ) end [2025-04-14 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:52:27] Production.INFO: ==15184== Releasing lock... [2025-04-14 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:52:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:53:05 [end_date_ymd] => 2025-04-14 12:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:53:05' and `end` < '2025-04-14 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-04-14 12:53:19] Production.INFO: count ==5237 [2025-04-14 12:53:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:53:05 - End Time 2025-04-14 12:53:05 [2025-04-14 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906367', 'tblTempUsageDetail_20' ) start [2025-04-14 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906367', 'tblTempUsageDetail_20' ) end [2025-04-14 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906367', 'tblTempVendorCDR_20' ) start [2025-04-14 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906367', 'tblTempVendorCDR_20' ) end [2025-04-14 12:53:21] Production.INFO: ProcessCDR(1,14906367,1,1,2) [2025-04-14 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906367', 'tblTempUsageDetail_20' ) start [2025-04-14 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906367', 'tblTempUsageDetail_20' ) end [2025-04-14 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:53:25] Production.INFO: ==15267== Releasing lock... [2025-04-14 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:53:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:54:05 [end_date_ymd] => 2025-04-14 12:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:54:05' and `end` < '2025-04-14 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-04-14 12:54:19] Production.INFO: count ==5246 [2025-04-14 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:54:05 - End Time 2025-04-14 12:54:05 [2025-04-14 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906372', 'tblTempUsageDetail_20' ) start [2025-04-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906372', 'tblTempUsageDetail_20' ) end [2025-04-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906372', 'tblTempVendorCDR_20' ) start [2025-04-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906372', 'tblTempVendorCDR_20' ) end [2025-04-14 12:54:21] Production.INFO: ProcessCDR(1,14906372,1,1,2) [2025-04-14 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906372', 'tblTempUsageDetail_20' ) start [2025-04-14 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906372', 'tblTempUsageDetail_20' ) end [2025-04-14 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:54:26] Production.INFO: ==15346== Releasing lock... [2025-04-14 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:54:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 12:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:55:04 [end_date_ymd] => 2025-04-14 12:55:04 [RateCDR] => 1 ) [2025-04-14 12:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 09:55:04' and `end` < '2025-04-14 12:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 12:55:18] Production.INFO: count ==5245 [2025-04-14 12:55:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:55:04 - End Time 2025-04-14 12:55:04 [2025-04-14 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906377', 'tblTempUsageDetail_20' ) start [2025-04-14 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906377', 'tblTempUsageDetail_20' ) end [2025-04-14 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906377', 'tblTempVendorCDR_20' ) start [2025-04-14 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906377', 'tblTempVendorCDR_20' ) end [2025-04-14 12:55:20] Production.INFO: ProcessCDR(1,14906377,1,1,2) [2025-04-14 12:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906377', 'tblTempUsageDetail_20' ) start [2025-04-14 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906377', 'tblTempUsageDetail_20' ) end [2025-04-14 12:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:55:25] Production.INFO: ==15421== Releasing lock... [2025-04-14 12:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:55:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:56:05 [end_date_ymd] => 2025-04-14 12:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:56:05' and `end` < '2025-04-14 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-04-14 12:56:18] Production.INFO: count ==5239 [2025-04-14 12:56:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:56:05 - End Time 2025-04-14 12:56:05 [2025-04-14 12:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906382', 'tblTempUsageDetail_20' ) start [2025-04-14 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906382', 'tblTempUsageDetail_20' ) end [2025-04-14 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906382', 'tblTempVendorCDR_20' ) start [2025-04-14 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906382', 'tblTempVendorCDR_20' ) end [2025-04-14 12:56:21] Production.INFO: ProcessCDR(1,14906382,1,1,2) [2025-04-14 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906382', 'tblTempUsageDetail_20' ) start [2025-04-14 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906382', 'tblTempUsageDetail_20' ) end [2025-04-14 12:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:56:25] Production.INFO: ==15499== Releasing lock... [2025-04-14 12:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:56:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:57:04 [end_date_ymd] => 2025-04-14 12:57:04 [RateCDR] => 1 ) [2025-04-14 12: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-04-14 09:57:04' and `end` < '2025-04-14 12: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-04-14 12:57:18] Production.INFO: count ==5235 [2025-04-14 12:57:20] Production.ERROR: pbx CDR StartTime 2025-04-14 09:57:04 - End Time 2025-04-14 12:57:04 [2025-04-14 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906387', 'tblTempUsageDetail_20' ) start [2025-04-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906387', 'tblTempUsageDetail_20' ) end [2025-04-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906387', 'tblTempVendorCDR_20' ) start [2025-04-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906387', 'tblTempVendorCDR_20' ) end [2025-04-14 12:57:20] Production.INFO: ProcessCDR(1,14906387,1,1,2) [2025-04-14 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906387', 'tblTempUsageDetail_20' ) start [2025-04-14 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906387', 'tblTempUsageDetail_20' ) end [2025-04-14 12:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:57:25] Production.INFO: ==15610== Releasing lock... [2025-04-14 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:57:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:58:05 [end_date_ymd] => 2025-04-14 12:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 09:58:05' and `end` < '2025-04-14 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-04-14 12:58:19] Production.INFO: count ==5266 [2025-04-14 12:58:21] Production.ERROR: pbx CDR StartTime 2025-04-14 09:58:05 - End Time 2025-04-14 12:58:05 [2025-04-14 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906392', 'tblTempUsageDetail_20' ) start [2025-04-14 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906392', 'tblTempUsageDetail_20' ) end [2025-04-14 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906392', 'tblTempVendorCDR_20' ) start [2025-04-14 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906392', 'tblTempVendorCDR_20' ) end [2025-04-14 12:58:21] Production.INFO: ProcessCDR(1,14906392,1,1,2) [2025-04-14 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906392', 'tblTempUsageDetail_20' ) start [2025-04-14 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906392', 'tblTempUsageDetail_20' ) end [2025-04-14 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:58:26] Production.INFO: ==15684== Releasing lock... [2025-04-14 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:58:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 09:59:06 [end_date_ymd] => 2025-04-14 12:59:06 [RateCDR] => 1 ) [2025-04-14 12: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-04-14 09:59:06' and `end` < '2025-04-14 12: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-04-14 12:59:20] Production.INFO: count ==5273 [2025-04-14 12:59:22] Production.ERROR: pbx CDR StartTime 2025-04-14 09:59:06 - End Time 2025-04-14 12:59:06 [2025-04-14 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906397', 'tblTempUsageDetail_20' ) start [2025-04-14 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906397', 'tblTempUsageDetail_20' ) end [2025-04-14 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906397', 'tblTempVendorCDR_20' ) start [2025-04-14 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906397', 'tblTempVendorCDR_20' ) end [2025-04-14 12:59:22] Production.INFO: ProcessCDR(1,14906397,1,1,2) [2025-04-14 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906397', 'tblTempUsageDetail_20' ) start [2025-04-14 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906397', 'tblTempUsageDetail_20' ) end [2025-04-14 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 12:59:27] Production.INFO: ==15765== Releasing lock... [2025-04-14 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 12:59:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:00:05 [end_date_ymd] => 2025-04-14 13:00:05 [RateCDR] => 1 ) [2025-04-14 13: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-04-14 10:00:05' and `end` < '2025-04-14 13: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-04-14 13:00:19] Production.INFO: count ==5280 [2025-04-14 13:00:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:00:05 - End Time 2025-04-14 13:00:05 [2025-04-14 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906403', 'tblTempUsageDetail_20' ) start [2025-04-14 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906403', 'tblTempUsageDetail_20' ) end [2025-04-14 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906403', 'tblTempVendorCDR_20' ) start [2025-04-14 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906403', 'tblTempVendorCDR_20' ) end [2025-04-14 13:00:21] Production.INFO: ProcessCDR(1,14906403,1,1,2) [2025-04-14 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906403', 'tblTempUsageDetail_20' ) start [2025-04-14 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906403', 'tblTempUsageDetail_20' ) end [2025-04-14 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:00:26] Production.INFO: ==15837== Releasing lock... [2025-04-14 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:00:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-14 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:01:05 [end_date_ymd] => 2025-04-14 13:01:05 [RateCDR] => 1 ) [2025-04-14 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:01:05' and `end` < '2025-04-14 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:01:19] Production.INFO: count ==5242 [2025-04-14 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:01:05 - End Time 2025-04-14 13:01:05 [2025-04-14 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906408', 'tblTempUsageDetail_20' ) start [2025-04-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906408', 'tblTempUsageDetail_20' ) end [2025-04-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906408', 'tblTempVendorCDR_20' ) start [2025-04-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906408', 'tblTempVendorCDR_20' ) end [2025-04-14 13:01:21] Production.INFO: ProcessCDR(1,14906408,1,1,2) [2025-04-14 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906408', 'tblTempUsageDetail_20' ) start [2025-04-14 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906408', 'tblTempUsageDetail_20' ) end [2025-04-14 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:01:26] Production.INFO: ==15932== Releasing lock... [2025-04-14 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:01:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:02:05 [end_date_ymd] => 2025-04-14 13:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:02:05' and `end` < '2025-04-14 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-04-14 13:02:18] Production.INFO: count ==5234 [2025-04-14 13:02:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:02:05 - End Time 2025-04-14 13:02:05 [2025-04-14 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906413', 'tblTempUsageDetail_20' ) start [2025-04-14 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906413', 'tblTempUsageDetail_20' ) end [2025-04-14 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906413', 'tblTempVendorCDR_20' ) start [2025-04-14 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906413', 'tblTempVendorCDR_20' ) end [2025-04-14 13:02:20] Production.INFO: ProcessCDR(1,14906413,1,1,2) [2025-04-14 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906413', 'tblTempUsageDetail_20' ) start [2025-04-14 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906413', 'tblTempUsageDetail_20' ) end [2025-04-14 13:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:02:25] Production.INFO: ==16001== Releasing lock... [2025-04-14 13:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:02:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-14 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:03:05 [end_date_ymd] => 2025-04-14 13:03:05 [RateCDR] => 1 ) [2025-04-14 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:03:05' and `end` < '2025-04-14 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:03:19] Production.INFO: count ==5206 [2025-04-14 13:03:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:03:05 - End Time 2025-04-14 13:03:05 [2025-04-14 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906418', 'tblTempUsageDetail_20' ) start [2025-04-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906418', 'tblTempUsageDetail_20' ) end [2025-04-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906418', 'tblTempVendorCDR_20' ) start [2025-04-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906418', 'tblTempVendorCDR_20' ) end [2025-04-14 13:03:21] Production.INFO: ProcessCDR(1,14906418,1,1,2) [2025-04-14 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906418', 'tblTempUsageDetail_20' ) start [2025-04-14 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906418', 'tblTempUsageDetail_20' ) end [2025-04-14 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:03:26] Production.INFO: ==16076== Releasing lock... [2025-04-14 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:03:26] Production.INFO: 67 MB #Memory Used# [2025-04-14 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:04:05 [end_date_ymd] => 2025-04-14 13:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:04:05' and `end` < '2025-04-14 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-04-14 13:04:18] Production.INFO: count ==5156 [2025-04-14 13:04:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:04:05 - End Time 2025-04-14 13:04:05 [2025-04-14 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906423', 'tblTempUsageDetail_20' ) start [2025-04-14 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906423', 'tblTempUsageDetail_20' ) end [2025-04-14 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906423', 'tblTempVendorCDR_20' ) start [2025-04-14 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906423', 'tblTempVendorCDR_20' ) end [2025-04-14 13:04:20] Production.INFO: ProcessCDR(1,14906423,1,1,2) [2025-04-14 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906423', 'tblTempUsageDetail_20' ) start [2025-04-14 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906423', 'tblTempUsageDetail_20' ) end [2025-04-14 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:04:26] Production.INFO: ==16145== Releasing lock... [2025-04-14 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:04:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:05:05 [end_date_ymd] => 2025-04-14 13:05:05 [RateCDR] => 1 ) [2025-04-14 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:05:05' and `end` < '2025-04-14 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:05:19] Production.INFO: count ==5161 [2025-04-14 13:05:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:05:05 - End Time 2025-04-14 13:05:05 [2025-04-14 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906428', 'tblTempUsageDetail_20' ) start [2025-04-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906428', 'tblTempUsageDetail_20' ) end [2025-04-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906428', 'tblTempVendorCDR_20' ) start [2025-04-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906428', 'tblTempVendorCDR_20' ) end [2025-04-14 13:05:21] Production.INFO: ProcessCDR(1,14906428,1,1,2) [2025-04-14 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906428', 'tblTempUsageDetail_20' ) start [2025-04-14 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906428', 'tblTempUsageDetail_20' ) end [2025-04-14 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:05:26] Production.INFO: ==16221== Releasing lock... [2025-04-14 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:05:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-14 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:06:05 [end_date_ymd] => 2025-04-14 13:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:06:05' and `end` < '2025-04-14 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-04-14 13:06:19] Production.INFO: count ==5150 [2025-04-14 13:06:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:06:05 - End Time 2025-04-14 13:06:05 [2025-04-14 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906433', 'tblTempUsageDetail_20' ) start [2025-04-14 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906433', 'tblTempUsageDetail_20' ) end [2025-04-14 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906433', 'tblTempVendorCDR_20' ) start [2025-04-14 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906433', 'tblTempVendorCDR_20' ) end [2025-04-14 13:06:21] Production.INFO: ProcessCDR(1,14906433,1,1,2) [2025-04-14 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906433', 'tblTempUsageDetail_20' ) start [2025-04-14 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906433', 'tblTempUsageDetail_20' ) end [2025-04-14 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:06:26] Production.INFO: ==16291== Releasing lock... [2025-04-14 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:06:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:07:05 [end_date_ymd] => 2025-04-14 13:07:05 [RateCDR] => 1 ) [2025-04-14 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:07:05' and `end` < '2025-04-14 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:07:19] Production.INFO: count ==5140 [2025-04-14 13:07:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:07:05 - End Time 2025-04-14 13:07:05 [2025-04-14 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906438', 'tblTempUsageDetail_20' ) start [2025-04-14 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906438', 'tblTempUsageDetail_20' ) end [2025-04-14 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906438', 'tblTempVendorCDR_20' ) start [2025-04-14 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906438', 'tblTempVendorCDR_20' ) end [2025-04-14 13:07:21] Production.INFO: ProcessCDR(1,14906438,1,1,2) [2025-04-14 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906438', 'tblTempUsageDetail_20' ) start [2025-04-14 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906438', 'tblTempUsageDetail_20' ) end [2025-04-14 13:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:07:25] Production.INFO: ==16366== Releasing lock... [2025-04-14 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:07:25] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:08:05 [end_date_ymd] => 2025-04-14 13:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:08:05' and `end` < '2025-04-14 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-04-14 13:08:19] Production.INFO: count ==5150 [2025-04-14 13:08:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:08:05 - End Time 2025-04-14 13:08:05 [2025-04-14 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906443', 'tblTempUsageDetail_20' ) start [2025-04-14 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906443', 'tblTempUsageDetail_20' ) end [2025-04-14 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906443', 'tblTempVendorCDR_20' ) start [2025-04-14 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906443', 'tblTempVendorCDR_20' ) end [2025-04-14 13:08:21] Production.INFO: ProcessCDR(1,14906443,1,1,2) [2025-04-14 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906443', 'tblTempUsageDetail_20' ) start [2025-04-14 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906443', 'tblTempUsageDetail_20' ) end [2025-04-14 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:08:26] Production.INFO: ==16446== Releasing lock... [2025-04-14 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:08:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:09:04 [end_date_ymd] => 2025-04-14 13:09:04 [RateCDR] => 1 ) [2025-04-14 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:09:04' and `end` < '2025-04-14 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:09:18] Production.INFO: count ==5135 [2025-04-14 13:09:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:09:04 - End Time 2025-04-14 13:09:04 [2025-04-14 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906448', 'tblTempUsageDetail_20' ) start [2025-04-14 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906448', 'tblTempUsageDetail_20' ) end [2025-04-14 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906448', 'tblTempVendorCDR_20' ) start [2025-04-14 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906448', 'tblTempVendorCDR_20' ) end [2025-04-14 13:09:20] Production.INFO: ProcessCDR(1,14906448,1,1,2) [2025-04-14 13:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906448', 'tblTempUsageDetail_20' ) start [2025-04-14 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906448', 'tblTempUsageDetail_20' ) end [2025-04-14 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:09:25] Production.INFO: ==16519== Releasing lock... [2025-04-14 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:09:25] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:10:06 [end_date_ymd] => 2025-04-14 13:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:10:06' and `end` < '2025-04-14 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-04-14 13:10:19] Production.INFO: count ==5149 [2025-04-14 13:10:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:10:06 - End Time 2025-04-14 13:10:06 [2025-04-14 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906454', 'tblTempUsageDetail_20' ) start [2025-04-14 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906454', 'tblTempUsageDetail_20' ) end [2025-04-14 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906454', 'tblTempVendorCDR_20' ) start [2025-04-14 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906454', 'tblTempVendorCDR_20' ) end [2025-04-14 13:10:21] Production.INFO: ProcessCDR(1,14906454,1,1,2) [2025-04-14 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906454', 'tblTempUsageDetail_20' ) start [2025-04-14 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906454', 'tblTempUsageDetail_20' ) end [2025-04-14 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:10:26] Production.INFO: ==16597== Releasing lock... [2025-04-14 13:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:10:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:11:05 [end_date_ymd] => 2025-04-14 13:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:11:05' and `end` < '2025-04-14 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-04-14 13:11:19] Production.INFO: count ==5137 [2025-04-14 13:11:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:11:05 - End Time 2025-04-14 13:11:05 [2025-04-14 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906459', 'tblTempUsageDetail_20' ) start [2025-04-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906459', 'tblTempUsageDetail_20' ) end [2025-04-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906459', 'tblTempVendorCDR_20' ) start [2025-04-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906459', 'tblTempVendorCDR_20' ) end [2025-04-14 13:11:21] Production.INFO: ProcessCDR(1,14906459,1,1,2) [2025-04-14 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906459', 'tblTempUsageDetail_20' ) start [2025-04-14 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906459', 'tblTempUsageDetail_20' ) end [2025-04-14 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:11:26] Production.INFO: ==16670== Releasing lock... [2025-04-14 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:11:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:12:05 [end_date_ymd] => 2025-04-14 13:12:05 [RateCDR] => 1 ) [2025-04-14 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:12:05' and `end` < '2025-04-14 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:12:19] Production.INFO: count ==5138 [2025-04-14 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:12:05 - End Time 2025-04-14 13:12:05 [2025-04-14 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906464', 'tblTempUsageDetail_20' ) start [2025-04-14 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906464', 'tblTempUsageDetail_20' ) end [2025-04-14 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906464', 'tblTempVendorCDR_20' ) start [2025-04-14 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906464', 'tblTempVendorCDR_20' ) end [2025-04-14 13:12:21] Production.INFO: ProcessCDR(1,14906464,1,1,2) [2025-04-14 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906464', 'tblTempUsageDetail_20' ) start [2025-04-14 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906464', 'tblTempUsageDetail_20' ) end [2025-04-14 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:12:26] Production.INFO: ==16785== Releasing lock... [2025-04-14 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:12:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:13:05 [end_date_ymd] => 2025-04-14 13:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:13:05' and `end` < '2025-04-14 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-04-14 13:13:19] Production.INFO: count ==5138 [2025-04-14 13:13:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:13:05 - End Time 2025-04-14 13:13:05 [2025-04-14 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906469', 'tblTempUsageDetail_20' ) start [2025-04-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906469', 'tblTempUsageDetail_20' ) end [2025-04-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906469', 'tblTempVendorCDR_20' ) start [2025-04-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906469', 'tblTempVendorCDR_20' ) end [2025-04-14 13:13:21] Production.INFO: ProcessCDR(1,14906469,1,1,2) [2025-04-14 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906469', 'tblTempUsageDetail_20' ) start [2025-04-14 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906469', 'tblTempUsageDetail_20' ) end [2025-04-14 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:13:26] Production.INFO: ==16858== Releasing lock... [2025-04-14 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:13:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-14 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:14:04 [end_date_ymd] => 2025-04-14 13:14:04 [RateCDR] => 1 ) [2025-04-14 13:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:14:04' and `end` < '2025-04-14 13:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:14:18] Production.INFO: count ==5118 [2025-04-14 13:14:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:14:04 - End Time 2025-04-14 13:14:04 [2025-04-14 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906474', 'tblTempUsageDetail_20' ) start [2025-04-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906474', 'tblTempUsageDetail_20' ) end [2025-04-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906474', 'tblTempVendorCDR_20' ) start [2025-04-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906474', 'tblTempVendorCDR_20' ) end [2025-04-14 13:14:20] Production.INFO: ProcessCDR(1,14906474,1,1,2) [2025-04-14 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906474', 'tblTempUsageDetail_20' ) start [2025-04-14 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906474', 'tblTempUsageDetail_20' ) end [2025-04-14 13:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:14:25] Production.INFO: ==16933== Releasing lock... [2025-04-14 13:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:14:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:15:05 [end_date_ymd] => 2025-04-14 13:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:15:05' and `end` < '2025-04-14 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-04-14 13:15:19] Production.INFO: count ==5104 [2025-04-14 13:15:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:15:05 - End Time 2025-04-14 13:15:05 [2025-04-14 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906479', 'tblTempUsageDetail_20' ) start [2025-04-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906479', 'tblTempUsageDetail_20' ) end [2025-04-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906479', 'tblTempVendorCDR_20' ) start [2025-04-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906479', 'tblTempVendorCDR_20' ) end [2025-04-14 13:15:21] Production.INFO: ProcessCDR(1,14906479,1,1,2) [2025-04-14 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906479', 'tblTempUsageDetail_20' ) start [2025-04-14 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906479', 'tblTempUsageDetail_20' ) end [2025-04-14 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:15:26] Production.INFO: ==17004== Releasing lock... [2025-04-14 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:15:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:16:05 [end_date_ymd] => 2025-04-14 13:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:16:05' and `end` < '2025-04-14 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-04-14 13:16:19] Production.INFO: count ==5098 [2025-04-14 13:16:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:16:05 - End Time 2025-04-14 13:16:05 [2025-04-14 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906484', 'tblTempUsageDetail_20' ) start [2025-04-14 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906484', 'tblTempUsageDetail_20' ) end [2025-04-14 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906484', 'tblTempVendorCDR_20' ) start [2025-04-14 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906484', 'tblTempVendorCDR_20' ) end [2025-04-14 13:16:21] Production.INFO: ProcessCDR(1,14906484,1,1,2) [2025-04-14 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906484', 'tblTempUsageDetail_20' ) start [2025-04-14 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906484', 'tblTempUsageDetail_20' ) end [2025-04-14 13:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:16:25] Production.INFO: ==17077== Releasing lock... [2025-04-14 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:16:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:17:05 [end_date_ymd] => 2025-04-14 13:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:17:05' and `end` < '2025-04-14 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-04-14 13:17:19] Production.INFO: count ==5101 [2025-04-14 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:17:05 - End Time 2025-04-14 13:17:05 [2025-04-14 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906489', 'tblTempUsageDetail_20' ) start [2025-04-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906489', 'tblTempUsageDetail_20' ) end [2025-04-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906489', 'tblTempVendorCDR_20' ) start [2025-04-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906489', 'tblTempVendorCDR_20' ) end [2025-04-14 13:17:21] Production.INFO: ProcessCDR(1,14906489,1,1,2) [2025-04-14 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906489', 'tblTempUsageDetail_20' ) start [2025-04-14 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906489', 'tblTempUsageDetail_20' ) end [2025-04-14 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:17:27] Production.INFO: ==17151== Releasing lock... [2025-04-14 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:17:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:18:05 [end_date_ymd] => 2025-04-14 13:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:18:05' and `end` < '2025-04-14 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-04-14 13:18:19] Production.INFO: count ==5101 [2025-04-14 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:18:05 - End Time 2025-04-14 13:18:05 [2025-04-14 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906494', 'tblTempUsageDetail_20' ) start [2025-04-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906494', 'tblTempUsageDetail_20' ) end [2025-04-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906494', 'tblTempVendorCDR_20' ) start [2025-04-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906494', 'tblTempVendorCDR_20' ) end [2025-04-14 13:18:21] Production.INFO: ProcessCDR(1,14906494,1,1,2) [2025-04-14 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906494', 'tblTempUsageDetail_20' ) start [2025-04-14 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906494', 'tblTempUsageDetail_20' ) end [2025-04-14 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:18:26] Production.INFO: ==17236== Releasing lock... [2025-04-14 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:18:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:19:04 [end_date_ymd] => 2025-04-14 13:19:04 [RateCDR] => 1 ) [2025-04-14 13: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-04-14 10:19:04' and `end` < '2025-04-14 13: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-04-14 13:19:18] Production.INFO: count ==5110 [2025-04-14 13:19:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:19:04 - End Time 2025-04-14 13:19:04 [2025-04-14 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906499', 'tblTempUsageDetail_20' ) start [2025-04-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906499', 'tblTempUsageDetail_20' ) end [2025-04-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906499', 'tblTempVendorCDR_20' ) start [2025-04-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906499', 'tblTempVendorCDR_20' ) end [2025-04-14 13:19:20] Production.INFO: ProcessCDR(1,14906499,1,1,2) [2025-04-14 13:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906499', 'tblTempUsageDetail_20' ) start [2025-04-14 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906499', 'tblTempUsageDetail_20' ) end [2025-04-14 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:19:25] Production.INFO: ==17307== Releasing lock... [2025-04-14 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:19:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:20:06 [end_date_ymd] => 2025-04-14 13:20:06 [RateCDR] => 1 ) [2025-04-14 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:20:06' and `end` < '2025-04-14 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:20:20] Production.INFO: count ==5123 [2025-04-14 13:20:22] Production.ERROR: pbx CDR StartTime 2025-04-14 10:20:06 - End Time 2025-04-14 13:20:06 [2025-04-14 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906505', 'tblTempUsageDetail_20' ) start [2025-04-14 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906505', 'tblTempUsageDetail_20' ) end [2025-04-14 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906505', 'tblTempVendorCDR_20' ) start [2025-04-14 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906505', 'tblTempVendorCDR_20' ) end [2025-04-14 13:20:22] Production.INFO: ProcessCDR(1,14906505,1,1,2) [2025-04-14 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906505', 'tblTempUsageDetail_20' ) start [2025-04-14 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906505', 'tblTempUsageDetail_20' ) end [2025-04-14 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:20:27] Production.INFO: ==17385== Releasing lock... [2025-04-14 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:20:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:21:05 [end_date_ymd] => 2025-04-14 13:21:05 [RateCDR] => 1 ) [2025-04-14 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:21:05' and `end` < '2025-04-14 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:21:19] Production.INFO: count ==5103 [2025-04-14 13:21:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:21:05 - End Time 2025-04-14 13:21:05 [2025-04-14 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906510', 'tblTempUsageDetail_20' ) start [2025-04-14 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906510', 'tblTempUsageDetail_20' ) end [2025-04-14 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906510', 'tblTempVendorCDR_20' ) start [2025-04-14 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906510', 'tblTempVendorCDR_20' ) end [2025-04-14 13:21:21] Production.INFO: ProcessCDR(1,14906510,1,1,2) [2025-04-14 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906510', 'tblTempUsageDetail_20' ) start [2025-04-14 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906510', 'tblTempUsageDetail_20' ) end [2025-04-14 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:21:26] Production.INFO: ==17459== Releasing lock... [2025-04-14 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:21:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-14 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:22:05 [end_date_ymd] => 2025-04-14 13:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:22:05' and `end` < '2025-04-14 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-04-14 13:22:19] Production.INFO: count ==5090 [2025-04-14 13:22:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:22:05 - End Time 2025-04-14 13:22:05 [2025-04-14 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906515', 'tblTempUsageDetail_20' ) start [2025-04-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906515', 'tblTempUsageDetail_20' ) end [2025-04-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906515', 'tblTempVendorCDR_20' ) start [2025-04-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906515', 'tblTempVendorCDR_20' ) end [2025-04-14 13:22:21] Production.INFO: ProcessCDR(1,14906515,1,1,2) [2025-04-14 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906515', 'tblTempUsageDetail_20' ) start [2025-04-14 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906515', 'tblTempUsageDetail_20' ) end [2025-04-14 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:22:26] Production.INFO: ==17535== Releasing lock... [2025-04-14 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:22:26] Production.INFO: 66 MB #Memory Used# [2025-04-14 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:23:04 [end_date_ymd] => 2025-04-14 13:23:04 [RateCDR] => 1 ) [2025-04-14 13:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:23:04' and `end` < '2025-04-14 13:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:23:18] Production.INFO: count ==5075 [2025-04-14 13:23:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:23:04 - End Time 2025-04-14 13:23:04 [2025-04-14 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906520', 'tblTempUsageDetail_20' ) start [2025-04-14 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906520', 'tblTempUsageDetail_20' ) end [2025-04-14 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906520', 'tblTempVendorCDR_20' ) start [2025-04-14 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906520', 'tblTempVendorCDR_20' ) end [2025-04-14 13:23:20] Production.INFO: ProcessCDR(1,14906520,1,1,2) [2025-04-14 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906520', 'tblTempUsageDetail_20' ) start [2025-04-14 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906520', 'tblTempUsageDetail_20' ) end [2025-04-14 13:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:23:25] Production.INFO: ==17616== Releasing lock... [2025-04-14 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:23:25] Production.INFO: 66 MB #Memory Used# [2025-04-14 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:24:05 [end_date_ymd] => 2025-04-14 13:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:24:05' and `end` < '2025-04-14 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-04-14 13:24:19] Production.INFO: count ==5058 [2025-04-14 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:24:05 - End Time 2025-04-14 13:24:05 [2025-04-14 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906525', 'tblTempUsageDetail_20' ) start [2025-04-14 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906525', 'tblTempUsageDetail_20' ) end [2025-04-14 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906525', 'tblTempVendorCDR_20' ) start [2025-04-14 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906525', 'tblTempVendorCDR_20' ) end [2025-04-14 13:24:21] Production.INFO: ProcessCDR(1,14906525,1,1,2) [2025-04-14 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906525', 'tblTempUsageDetail_20' ) start [2025-04-14 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906525', 'tblTempUsageDetail_20' ) end [2025-04-14 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:24:26] Production.INFO: ==17693== Releasing lock... [2025-04-14 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:24:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-14 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:25:05 [end_date_ymd] => 2025-04-14 13:25:05 [RateCDR] => 1 ) [2025-04-14 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:25:05' and `end` < '2025-04-14 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:25:19] Production.INFO: count ==5057 [2025-04-14 13:25:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:25:05 - End Time 2025-04-14 13:25:05 [2025-04-14 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906530', 'tblTempUsageDetail_20' ) start [2025-04-14 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906530', 'tblTempUsageDetail_20' ) end [2025-04-14 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906530', 'tblTempVendorCDR_20' ) start [2025-04-14 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906530', 'tblTempVendorCDR_20' ) end [2025-04-14 13:25:21] Production.INFO: ProcessCDR(1,14906530,1,1,2) [2025-04-14 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906530', 'tblTempUsageDetail_20' ) start [2025-04-14 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906530', 'tblTempUsageDetail_20' ) end [2025-04-14 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:25:27] Production.INFO: ==17770== Releasing lock... [2025-04-14 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:25:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-14 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:26:05 [end_date_ymd] => 2025-04-14 13:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:26:05' and `end` < '2025-04-14 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-04-14 13:26:18] Production.INFO: count ==5030 [2025-04-14 13:26:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:26:05 - End Time 2025-04-14 13:26:05 [2025-04-14 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906534', 'tblTempUsageDetail_20' ) start [2025-04-14 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906534', 'tblTempUsageDetail_20' ) end [2025-04-14 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906534', 'tblTempVendorCDR_20' ) start [2025-04-14 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906534', 'tblTempVendorCDR_20' ) end [2025-04-14 13:26:20] Production.INFO: ProcessCDR(1,14906534,1,1,2) [2025-04-14 13:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906534', 'tblTempUsageDetail_20' ) start [2025-04-14 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906534', 'tblTempUsageDetail_20' ) end [2025-04-14 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:26:25] Production.INFO: ==17849== Releasing lock... [2025-04-14 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:26:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-14 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:27:06 [end_date_ymd] => 2025-04-14 13:27:06 [RateCDR] => 1 ) [2025-04-14 13: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-04-14 10:27:06' and `end` < '2025-04-14 13: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-04-14 13:27:19] Production.INFO: count ==5013 [2025-04-14 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:27:06 - End Time 2025-04-14 13:27:06 [2025-04-14 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906540', 'tblTempUsageDetail_20' ) start [2025-04-14 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906540', 'tblTempUsageDetail_20' ) end [2025-04-14 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906540', 'tblTempVendorCDR_20' ) start [2025-04-14 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906540', 'tblTempVendorCDR_20' ) end [2025-04-14 13:27:21] Production.INFO: ProcessCDR(1,14906540,1,1,2) [2025-04-14 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906540', 'tblTempUsageDetail_20' ) start [2025-04-14 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906540', 'tblTempUsageDetail_20' ) end [2025-04-14 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:27:26] Production.INFO: ==17927== Releasing lock... [2025-04-14 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:27:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-14 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:28:05 [end_date_ymd] => 2025-04-14 13:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:28:05' and `end` < '2025-04-14 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-04-14 13:28:18] Production.INFO: count ==5000 [2025-04-14 13:28:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:28:05 - End Time 2025-04-14 13:28:05 [2025-04-14 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906545', 'tblTempUsageDetail_20' ) start [2025-04-14 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906545', 'tblTempUsageDetail_20' ) end [2025-04-14 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906545', 'tblTempVendorCDR_20' ) start [2025-04-14 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906545', 'tblTempVendorCDR_20' ) end [2025-04-14 13:28:21] Production.INFO: ProcessCDR(1,14906545,1,1,2) [2025-04-14 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906545', 'tblTempUsageDetail_20' ) start [2025-04-14 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906545', 'tblTempUsageDetail_20' ) end [2025-04-14 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:28:26] Production.INFO: ==18042== Releasing lock... [2025-04-14 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:28:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-14 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:29:05 [end_date_ymd] => 2025-04-14 13:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:29:05' and `end` < '2025-04-14 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-04-14 13:29:18] Production.INFO: count ==5013 [2025-04-14 13:29:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:29:05 - End Time 2025-04-14 13:29:05 [2025-04-14 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906549', 'tblTempUsageDetail_20' ) start [2025-04-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906549', 'tblTempUsageDetail_20' ) end [2025-04-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906549', 'tblTempVendorCDR_20' ) start [2025-04-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906549', 'tblTempVendorCDR_20' ) end [2025-04-14 13:29:20] Production.INFO: ProcessCDR(1,14906549,1,1,2) [2025-04-14 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906549', 'tblTempUsageDetail_20' ) start [2025-04-14 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906549', 'tblTempUsageDetail_20' ) end [2025-04-14 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:29:25] Production.INFO: ==18116== Releasing lock... [2025-04-14 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:29:25] Production.INFO: 65.5 MB #Memory Used# [2025-04-14 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:30:06 [end_date_ymd] => 2025-04-14 13:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:30:06' and `end` < '2025-04-14 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-04-14 13:30:19] Production.INFO: count ==4996 [2025-04-14 13:30:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:30:06 - End Time 2025-04-14 13:30:06 [2025-04-14 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906555', 'tblTempUsageDetail_20' ) start [2025-04-14 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906555', 'tblTempUsageDetail_20' ) end [2025-04-14 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906555', 'tblTempVendorCDR_20' ) start [2025-04-14 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906555', 'tblTempVendorCDR_20' ) end [2025-04-14 13:30:21] Production.INFO: ProcessCDR(1,14906555,1,1,2) [2025-04-14 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906555', 'tblTempUsageDetail_20' ) start [2025-04-14 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906555', 'tblTempUsageDetail_20' ) end [2025-04-14 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:30:26] Production.INFO: ==18197== Releasing lock... [2025-04-14 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:30:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-14 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:31:05 [end_date_ymd] => 2025-04-14 13:31:05 [RateCDR] => 1 ) [2025-04-14 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:31:05' and `end` < '2025-04-14 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:31:18] Production.INFO: count ==4995 [2025-04-14 13:31:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:31:05 - End Time 2025-04-14 13:31:05 [2025-04-14 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906561', 'tblTempUsageDetail_20' ) start [2025-04-14 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906561', 'tblTempUsageDetail_20' ) end [2025-04-14 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906561', 'tblTempVendorCDR_20' ) start [2025-04-14 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906561', 'tblTempVendorCDR_20' ) end [2025-04-14 13:31:21] Production.INFO: ProcessCDR(1,14906561,1,1,2) [2025-04-14 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906561', 'tblTempUsageDetail_20' ) start [2025-04-14 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906561', 'tblTempUsageDetail_20' ) end [2025-04-14 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:31:26] Production.INFO: ==18275== Releasing lock... [2025-04-14 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:31:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-14 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:32:05 [end_date_ymd] => 2025-04-14 13:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:32:05' and `end` < '2025-04-14 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-04-14 13:32:19] Production.INFO: count ==4989 [2025-04-14 13:32:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:32:05 - End Time 2025-04-14 13:32:05 [2025-04-14 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906566', 'tblTempUsageDetail_20' ) start [2025-04-14 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906566', 'tblTempUsageDetail_20' ) end [2025-04-14 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906566', 'tblTempVendorCDR_20' ) start [2025-04-14 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906566', 'tblTempVendorCDR_20' ) end [2025-04-14 13:32:21] Production.INFO: ProcessCDR(1,14906566,1,1,2) [2025-04-14 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906566', 'tblTempUsageDetail_20' ) start [2025-04-14 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906566', 'tblTempUsageDetail_20' ) end [2025-04-14 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:32:26] Production.INFO: ==18350== Releasing lock... [2025-04-14 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:32:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:33:05 [end_date_ymd] => 2025-04-14 13:33:05 [RateCDR] => 1 ) [2025-04-14 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:33:05' and `end` < '2025-04-14 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:33:18] Production.INFO: count ==4997 [2025-04-14 13:33:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:33:05 - End Time 2025-04-14 13:33:05 [2025-04-14 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906571', 'tblTempUsageDetail_20' ) start [2025-04-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906571', 'tblTempUsageDetail_20' ) end [2025-04-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906571', 'tblTempVendorCDR_20' ) start [2025-04-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906571', 'tblTempVendorCDR_20' ) end [2025-04-14 13:33:20] Production.INFO: ProcessCDR(1,14906571,1,1,2) [2025-04-14 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906571', 'tblTempUsageDetail_20' ) start [2025-04-14 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906571', 'tblTempUsageDetail_20' ) end [2025-04-14 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:33:25] Production.INFO: ==18434== Releasing lock... [2025-04-14 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:33:25] Production.INFO: 65.5 MB #Memory Used# [2025-04-14 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:34:05 [end_date_ymd] => 2025-04-14 13:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:34:05' and `end` < '2025-04-14 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-04-14 13:34:19] Production.INFO: count ==4983 [2025-04-14 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:34:05 - End Time 2025-04-14 13:34:05 [2025-04-14 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906576', 'tblTempUsageDetail_20' ) start [2025-04-14 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906576', 'tblTempUsageDetail_20' ) end [2025-04-14 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906576', 'tblTempVendorCDR_20' ) start [2025-04-14 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906576', 'tblTempVendorCDR_20' ) end [2025-04-14 13:34:21] Production.INFO: ProcessCDR(1,14906576,1,1,2) [2025-04-14 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906576', 'tblTempUsageDetail_20' ) start [2025-04-14 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906576', 'tblTempUsageDetail_20' ) end [2025-04-14 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:34:26] Production.INFO: ==18515== Releasing lock... [2025-04-14 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:34:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:35:04 [end_date_ymd] => 2025-04-14 13:35:04 [RateCDR] => 1 ) [2025-04-14 13: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-04-14 10:35:04' and `end` < '2025-04-14 13: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-04-14 13:35:18] Production.INFO: count ==4970 [2025-04-14 13:35:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:35:04 - End Time 2025-04-14 13:35:04 [2025-04-14 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906581', 'tblTempUsageDetail_20' ) start [2025-04-14 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906581', 'tblTempUsageDetail_20' ) end [2025-04-14 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906581', 'tblTempVendorCDR_20' ) start [2025-04-14 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906581', 'tblTempVendorCDR_20' ) end [2025-04-14 13:35:20] Production.INFO: ProcessCDR(1,14906581,1,1,2) [2025-04-14 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906581', 'tblTempUsageDetail_20' ) start [2025-04-14 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906581', 'tblTempUsageDetail_20' ) end [2025-04-14 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:35:25] Production.INFO: ==18587== Releasing lock... [2025-04-14 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:35:25] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:36:05 [end_date_ymd] => 2025-04-14 13:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:36:05' and `end` < '2025-04-14 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-04-14 13:36:18] Production.INFO: count ==4962 [2025-04-14 13:36:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:36:05 - End Time 2025-04-14 13:36:05 [2025-04-14 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906586', 'tblTempUsageDetail_20' ) start [2025-04-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906586', 'tblTempUsageDetail_20' ) end [2025-04-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906586', 'tblTempVendorCDR_20' ) start [2025-04-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906586', 'tblTempVendorCDR_20' ) end [2025-04-14 13:36:20] Production.INFO: ProcessCDR(1,14906586,1,1,2) [2025-04-14 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906586', 'tblTempUsageDetail_20' ) start [2025-04-14 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906586', 'tblTempUsageDetail_20' ) end [2025-04-14 13:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:36:25] Production.INFO: ==18664== Releasing lock... [2025-04-14 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:36:25] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:37:05 [end_date_ymd] => 2025-04-14 13:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:37:05' and `end` < '2025-04-14 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-04-14 13:37:19] Production.INFO: count ==4954 [2025-04-14 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:37:05 - End Time 2025-04-14 13:37:05 [2025-04-14 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906591', 'tblTempUsageDetail_20' ) start [2025-04-14 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906591', 'tblTempUsageDetail_20' ) end [2025-04-14 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906591', 'tblTempVendorCDR_20' ) start [2025-04-14 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906591', 'tblTempVendorCDR_20' ) end [2025-04-14 13:37:21] Production.INFO: ProcessCDR(1,14906591,1,1,2) [2025-04-14 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906591', 'tblTempUsageDetail_20' ) start [2025-04-14 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906591', 'tblTempUsageDetail_20' ) end [2025-04-14 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:37:26] Production.INFO: ==18746== Releasing lock... [2025-04-14 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:37:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:38:05 [end_date_ymd] => 2025-04-14 13:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:38:05' and `end` < '2025-04-14 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-04-14 13:38:18] Production.INFO: count ==4969 [2025-04-14 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:38:05 - End Time 2025-04-14 13:38:05 [2025-04-14 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906596', 'tblTempUsageDetail_20' ) start [2025-04-14 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906596', 'tblTempUsageDetail_20' ) end [2025-04-14 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906596', 'tblTempVendorCDR_20' ) start [2025-04-14 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906596', 'tblTempVendorCDR_20' ) end [2025-04-14 13:38:21] Production.INFO: ProcessCDR(1,14906596,1,1,2) [2025-04-14 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906596', 'tblTempUsageDetail_20' ) start [2025-04-14 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906596', 'tblTempUsageDetail_20' ) end [2025-04-14 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:38:26] Production.INFO: ==18831== Releasing lock... [2025-04-14 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:38:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:39:05 [end_date_ymd] => 2025-04-14 13:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:39:05' and `end` < '2025-04-14 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-04-14 13:39:19] Production.INFO: count ==4956 [2025-04-14 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:39:05 - End Time 2025-04-14 13:39:05 [2025-04-14 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906601', 'tblTempUsageDetail_20' ) start [2025-04-14 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906601', 'tblTempUsageDetail_20' ) end [2025-04-14 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906601', 'tblTempVendorCDR_20' ) start [2025-04-14 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906601', 'tblTempVendorCDR_20' ) end [2025-04-14 13:39:21] Production.INFO: ProcessCDR(1,14906601,1,1,2) [2025-04-14 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906601', 'tblTempUsageDetail_20' ) start [2025-04-14 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906601', 'tblTempUsageDetail_20' ) end [2025-04-14 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:39:26] Production.INFO: ==18909== Releasing lock... [2025-04-14 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:39:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:40:05 [end_date_ymd] => 2025-04-14 13:40:05 [RateCDR] => 1 ) [2025-04-14 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:40:05' and `end` < '2025-04-14 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:40:19] Production.INFO: count ==4956 [2025-04-14 13:40:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:40:05 - End Time 2025-04-14 13:40:05 [2025-04-14 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906607', 'tblTempUsageDetail_20' ) start [2025-04-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906607', 'tblTempUsageDetail_20' ) end [2025-04-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906607', 'tblTempVendorCDR_20' ) start [2025-04-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906607', 'tblTempVendorCDR_20' ) end [2025-04-14 13:40:21] Production.INFO: ProcessCDR(1,14906607,1,1,2) [2025-04-14 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906607', 'tblTempUsageDetail_20' ) start [2025-04-14 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906607', 'tblTempUsageDetail_20' ) end [2025-04-14 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:40:26] Production.INFO: ==18987== Releasing lock... [2025-04-14 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:40:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:41:05 [end_date_ymd] => 2025-04-14 13:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:41:05' and `end` < '2025-04-14 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-04-14 13:41:19] Production.INFO: count ==4912 [2025-04-14 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:41:05 - End Time 2025-04-14 13:41:05 [2025-04-14 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906612', 'tblTempUsageDetail_20' ) start [2025-04-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906612', 'tblTempUsageDetail_20' ) end [2025-04-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906612', 'tblTempVendorCDR_20' ) start [2025-04-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906612', 'tblTempVendorCDR_20' ) end [2025-04-14 13:41:21] Production.INFO: ProcessCDR(1,14906612,1,1,2) [2025-04-14 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906612', 'tblTempUsageDetail_20' ) start [2025-04-14 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906612', 'tblTempUsageDetail_20' ) end [2025-04-14 13:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:41:24] Production.INFO: ==19070== Releasing lock... [2025-04-14 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:41:24] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:42:05 [end_date_ymd] => 2025-04-14 13:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:42:05' and `end` < '2025-04-14 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:42:19] Production.INFO: count ==4907 [2025-04-14 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:42:05 - End Time 2025-04-14 13:42:05 [2025-04-14 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906617', 'tblTempUsageDetail_20' ) start [2025-04-14 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906617', 'tblTempUsageDetail_20' ) end [2025-04-14 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906617', 'tblTempVendorCDR_20' ) start [2025-04-14 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906617', 'tblTempVendorCDR_20' ) end [2025-04-14 13:42:21] Production.INFO: ProcessCDR(1,14906617,1,1,2) [2025-04-14 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906617', 'tblTempUsageDetail_20' ) start [2025-04-14 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906617', 'tblTempUsageDetail_20' ) end [2025-04-14 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:42:26] Production.INFO: ==19147== Releasing lock... [2025-04-14 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:42:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:43:05 [end_date_ymd] => 2025-04-14 13:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:43:05' and `end` < '2025-04-14 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-04-14 13:43:19] Production.INFO: count ==4924 [2025-04-14 13:43:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:43:05 - End Time 2025-04-14 13:43:05 [2025-04-14 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906622', 'tblTempUsageDetail_20' ) start [2025-04-14 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906622', 'tblTempUsageDetail_20' ) end [2025-04-14 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906622', 'tblTempVendorCDR_20' ) start [2025-04-14 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906622', 'tblTempVendorCDR_20' ) end [2025-04-14 13:43:21] Production.INFO: ProcessCDR(1,14906622,1,1,2) [2025-04-14 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906622', 'tblTempUsageDetail_20' ) start [2025-04-14 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906622', 'tblTempUsageDetail_20' ) end [2025-04-14 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:43:26] Production.INFO: ==19269== Releasing lock... [2025-04-14 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:43:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:44:05 [end_date_ymd] => 2025-04-14 13:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:44:05' and `end` < '2025-04-14 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-04-14 13:44:19] Production.INFO: count ==4929 [2025-04-14 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:44:05 - End Time 2025-04-14 13:44:05 [2025-04-14 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906627', 'tblTempUsageDetail_20' ) start [2025-04-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906627', 'tblTempUsageDetail_20' ) end [2025-04-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906627', 'tblTempVendorCDR_20' ) start [2025-04-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906627', 'tblTempVendorCDR_20' ) end [2025-04-14 13:44:21] Production.INFO: ProcessCDR(1,14906627,1,1,2) [2025-04-14 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906627', 'tblTempUsageDetail_20' ) start [2025-04-14 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906627', 'tblTempUsageDetail_20' ) end [2025-04-14 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:44:26] Production.INFO: ==19344== Releasing lock... [2025-04-14 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:44:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:45:05 [end_date_ymd] => 2025-04-14 13:45:05 [RateCDR] => 1 ) [2025-04-14 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:45:05' and `end` < '2025-04-14 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:45:18] Production.INFO: count ==4944 [2025-04-14 13:45:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:45:05 - End Time 2025-04-14 13:45:05 [2025-04-14 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906632', 'tblTempUsageDetail_20' ) start [2025-04-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906632', 'tblTempUsageDetail_20' ) end [2025-04-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906632', 'tblTempVendorCDR_20' ) start [2025-04-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906632', 'tblTempVendorCDR_20' ) end [2025-04-14 13:45:20] Production.INFO: ProcessCDR(1,14906632,1,1,2) [2025-04-14 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906632', 'tblTempUsageDetail_20' ) start [2025-04-14 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906632', 'tblTempUsageDetail_20' ) end [2025-04-14 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:45:25] Production.INFO: ==19426== Releasing lock... [2025-04-14 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:45:25] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:46:05 [end_date_ymd] => 2025-04-14 13:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:46:05' and `end` < '2025-04-14 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-04-14 13:46:19] Production.INFO: count ==4933 [2025-04-14 13:46:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:46:05 - End Time 2025-04-14 13:46:05 [2025-04-14 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906636', 'tblTempUsageDetail_20' ) start [2025-04-14 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906636', 'tblTempUsageDetail_20' ) end [2025-04-14 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906636', 'tblTempVendorCDR_20' ) start [2025-04-14 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906636', 'tblTempVendorCDR_20' ) end [2025-04-14 13:46:21] Production.INFO: ProcessCDR(1,14906636,1,1,2) [2025-04-14 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906636', 'tblTempUsageDetail_20' ) start [2025-04-14 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906636', 'tblTempUsageDetail_20' ) end [2025-04-14 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:46:25] Production.INFO: ==19506== Releasing lock... [2025-04-14 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:46:25] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:47:05 [end_date_ymd] => 2025-04-14 13:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:47:05' and `end` < '2025-04-14 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-04-14 13:47:19] Production.INFO: count ==4945 [2025-04-14 13:47:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:47:05 - End Time 2025-04-14 13:47:05 [2025-04-14 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906642', 'tblTempUsageDetail_20' ) start [2025-04-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906642', 'tblTempUsageDetail_20' ) end [2025-04-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906642', 'tblTempVendorCDR_20' ) start [2025-04-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906642', 'tblTempVendorCDR_20' ) end [2025-04-14 13:47:21] Production.INFO: ProcessCDR(1,14906642,1,1,2) [2025-04-14 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906642', 'tblTempUsageDetail_20' ) start [2025-04-14 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906642', 'tblTempUsageDetail_20' ) end [2025-04-14 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:47:26] Production.INFO: ==19588== Releasing lock... [2025-04-14 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:47:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:48:05 [end_date_ymd] => 2025-04-14 13:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:48:05' and `end` < '2025-04-14 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-04-14 13:48:19] Production.INFO: count ==4949 [2025-04-14 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:48:05 - End Time 2025-04-14 13:48:05 [2025-04-14 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906647', 'tblTempUsageDetail_20' ) start [2025-04-14 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906647', 'tblTempUsageDetail_20' ) end [2025-04-14 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906647', 'tblTempVendorCDR_20' ) start [2025-04-14 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906647', 'tblTempVendorCDR_20' ) end [2025-04-14 13:48:21] Production.INFO: ProcessCDR(1,14906647,1,1,2) [2025-04-14 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906647', 'tblTempUsageDetail_20' ) start [2025-04-14 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906647', 'tblTempUsageDetail_20' ) end [2025-04-14 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:48:24] Production.INFO: ==19664== Releasing lock... [2025-04-14 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:48:24] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:49:05 [end_date_ymd] => 2025-04-14 13:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:49:05' and `end` < '2025-04-14 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-04-14 13:49:19] Production.INFO: count ==4943 [2025-04-14 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:49:05 - End Time 2025-04-14 13:49:05 [2025-04-14 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906652', 'tblTempUsageDetail_20' ) start [2025-04-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906652', 'tblTempUsageDetail_20' ) end [2025-04-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906652', 'tblTempVendorCDR_20' ) start [2025-04-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906652', 'tblTempVendorCDR_20' ) end [2025-04-14 13:49:21] Production.INFO: ProcessCDR(1,14906652,1,1,2) [2025-04-14 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906652', 'tblTempUsageDetail_20' ) start [2025-04-14 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906652', 'tblTempUsageDetail_20' ) end [2025-04-14 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:49:26] Production.INFO: ==19747== Releasing lock... [2025-04-14 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:49:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:50:05 [end_date_ymd] => 2025-04-14 13:50:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:50:05' and `end` < '2025-04-14 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-04-14 13:50:19] Production.INFO: count ==4949 [2025-04-14 13:50:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:50:05 - End Time 2025-04-14 13:50:05 [2025-04-14 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906658', 'tblTempUsageDetail_20' ) start [2025-04-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906658', 'tblTempUsageDetail_20' ) end [2025-04-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906658', 'tblTempVendorCDR_20' ) start [2025-04-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906658', 'tblTempVendorCDR_20' ) end [2025-04-14 13:50:21] Production.INFO: ProcessCDR(1,14906658,1,1,2) [2025-04-14 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906658', 'tblTempUsageDetail_20' ) start [2025-04-14 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906658', 'tblTempUsageDetail_20' ) end [2025-04-14 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:50:26] Production.INFO: ==19823== Releasing lock... [2025-04-14 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:50:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:51:05 [end_date_ymd] => 2025-04-14 13:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:51:05' and `end` < '2025-04-14 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-04-14 13:51:19] Production.INFO: count ==4957 [2025-04-14 13:51:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:51:05 - End Time 2025-04-14 13:51:05 [2025-04-14 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906663', 'tblTempUsageDetail_20' ) start [2025-04-14 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906663', 'tblTempUsageDetail_20' ) end [2025-04-14 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906663', 'tblTempVendorCDR_20' ) start [2025-04-14 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906663', 'tblTempVendorCDR_20' ) end [2025-04-14 13:51:21] Production.INFO: ProcessCDR(1,14906663,1,1,2) [2025-04-14 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906663', 'tblTempUsageDetail_20' ) start [2025-04-14 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906663', 'tblTempUsageDetail_20' ) end [2025-04-14 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:51:26] Production.INFO: ==19912== Releasing lock... [2025-04-14 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:51:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:52:05 [end_date_ymd] => 2025-04-14 13:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:52:05' and `end` < '2025-04-14 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-04-14 13:52:19] Production.INFO: count ==4957 [2025-04-14 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:52:05 - End Time 2025-04-14 13:52:05 [2025-04-14 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906668', 'tblTempUsageDetail_20' ) start [2025-04-14 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906668', 'tblTempUsageDetail_20' ) end [2025-04-14 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906668', 'tblTempVendorCDR_20' ) start [2025-04-14 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906668', 'tblTempVendorCDR_20' ) end [2025-04-14 13:52:21] Production.INFO: ProcessCDR(1,14906668,1,1,2) [2025-04-14 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906668', 'tblTempUsageDetail_20' ) start [2025-04-14 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906668', 'tblTempUsageDetail_20' ) end [2025-04-14 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:52:26] Production.INFO: ==19990== Releasing lock... [2025-04-14 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:52:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:53:04 [end_date_ymd] => 2025-04-14 13:53:04 [RateCDR] => 1 ) [2025-04-14 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:53:04' and `end` < '2025-04-14 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:53:18] Production.INFO: count ==4965 [2025-04-14 13:53:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:53:04 - End Time 2025-04-14 13:53:04 [2025-04-14 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906673', 'tblTempUsageDetail_20' ) start [2025-04-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906673', 'tblTempUsageDetail_20' ) end [2025-04-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906673', 'tblTempVendorCDR_20' ) start [2025-04-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906673', 'tblTempVendorCDR_20' ) end [2025-04-14 13:53:20] Production.INFO: ProcessCDR(1,14906673,1,1,2) [2025-04-14 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906673', 'tblTempUsageDetail_20' ) start [2025-04-14 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906673', 'tblTempUsageDetail_20' ) end [2025-04-14 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:53:25] Production.INFO: ==20070== Releasing lock... [2025-04-14 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:53:25] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:54:05 [end_date_ymd] => 2025-04-14 13:54:05 [RateCDR] => 1 ) [2025-04-14 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:54:05' and `end` < '2025-04-14 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:54:18] Production.INFO: count ==4962 [2025-04-14 13:54:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:54:05 - End Time 2025-04-14 13:54:05 [2025-04-14 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906678', 'tblTempUsageDetail_20' ) start [2025-04-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906678', 'tblTempUsageDetail_20' ) end [2025-04-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906678', 'tblTempVendorCDR_20' ) start [2025-04-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906678', 'tblTempVendorCDR_20' ) end [2025-04-14 13:54:20] Production.INFO: ProcessCDR(1,14906678,1,1,2) [2025-04-14 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906678', 'tblTempUsageDetail_20' ) start [2025-04-14 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906678', 'tblTempUsageDetail_20' ) end [2025-04-14 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:54:25] Production.INFO: ==20149== Releasing lock... [2025-04-14 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:54:25] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:55:05 [end_date_ymd] => 2025-04-14 13:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 10:55:05' and `end` < '2025-04-14 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-04-14 13:55:19] Production.INFO: count ==4978 [2025-04-14 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:55:05 - End Time 2025-04-14 13:55:05 [2025-04-14 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906683', 'tblTempUsageDetail_20' ) start [2025-04-14 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906683', 'tblTempUsageDetail_20' ) end [2025-04-14 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906683', 'tblTempVendorCDR_20' ) start [2025-04-14 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906683', 'tblTempVendorCDR_20' ) end [2025-04-14 13:55:21] Production.INFO: ProcessCDR(1,14906683,1,1,2) [2025-04-14 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906683', 'tblTempUsageDetail_20' ) start [2025-04-14 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906683', 'tblTempUsageDetail_20' ) end [2025-04-14 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:55:26] Production.INFO: ==20229== Releasing lock... [2025-04-14 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:55:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:56:05 [end_date_ymd] => 2025-04-14 13:56:05 [RateCDR] => 1 ) [2025-04-14 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:56:05' and `end` < '2025-04-14 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:56:19] Production.INFO: count ==4964 [2025-04-14 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:56:05 - End Time 2025-04-14 13:56:05 [2025-04-14 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906688', 'tblTempUsageDetail_20' ) start [2025-04-14 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906688', 'tblTempUsageDetail_20' ) end [2025-04-14 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906688', 'tblTempVendorCDR_20' ) start [2025-04-14 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906688', 'tblTempVendorCDR_20' ) end [2025-04-14 13:56:21] Production.INFO: ProcessCDR(1,14906688,1,1,2) [2025-04-14 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906688', 'tblTempUsageDetail_20' ) start [2025-04-14 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906688', 'tblTempUsageDetail_20' ) end [2025-04-14 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:56:26] Production.INFO: ==20310== Releasing lock... [2025-04-14 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:56:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-14 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:57:04 [end_date_ymd] => 2025-04-14 13:57:04 [RateCDR] => 1 ) [2025-04-14 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:57:04' and `end` < '2025-04-14 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:57:18] Production.INFO: count ==4942 [2025-04-14 13:57:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:57:04 - End Time 2025-04-14 13:57:04 [2025-04-14 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906693', 'tblTempUsageDetail_20' ) start [2025-04-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906693', 'tblTempUsageDetail_20' ) end [2025-04-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906693', 'tblTempVendorCDR_20' ) start [2025-04-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906693', 'tblTempVendorCDR_20' ) end [2025-04-14 13:57:20] Production.INFO: ProcessCDR(1,14906693,1,1,2) [2025-04-14 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906693', 'tblTempUsageDetail_20' ) start [2025-04-14 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906693', 'tblTempUsageDetail_20' ) end [2025-04-14 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:57:25] Production.INFO: ==20392== Releasing lock... [2025-04-14 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:57:25] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:58:05 [end_date_ymd] => 2025-04-14 13:58:05 [RateCDR] => 1 ) [2025-04-14 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 10:58:05' and `end` < '2025-04-14 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 13:58:19] Production.INFO: count ==4943 [2025-04-14 13:58:21] Production.ERROR: pbx CDR StartTime 2025-04-14 10:58:05 - End Time 2025-04-14 13:58:05 [2025-04-14 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906698', 'tblTempUsageDetail_20' ) start [2025-04-14 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906698', 'tblTempUsageDetail_20' ) end [2025-04-14 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906698', 'tblTempVendorCDR_20' ) start [2025-04-14 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906698', 'tblTempVendorCDR_20' ) end [2025-04-14 13:58:21] Production.INFO: ProcessCDR(1,14906698,1,1,2) [2025-04-14 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906698', 'tblTempUsageDetail_20' ) start [2025-04-14 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906698', 'tblTempUsageDetail_20' ) end [2025-04-14 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:58:26] Production.INFO: ==20469== Releasing lock... [2025-04-14 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:58:26] Production.INFO: 65 MB #Memory Used# [2025-04-14 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 10:59:04 [end_date_ymd] => 2025-04-14 13:59:04 [RateCDR] => 1 ) [2025-04-14 13: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-04-14 10:59:04' and `end` < '2025-04-14 13: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-04-14 13:59:18] Production.INFO: count ==4940 [2025-04-14 13:59:20] Production.ERROR: pbx CDR StartTime 2025-04-14 10:59:04 - End Time 2025-04-14 13:59:04 [2025-04-14 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906703', 'tblTempUsageDetail_20' ) start [2025-04-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906703', 'tblTempUsageDetail_20' ) end [2025-04-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906703', 'tblTempVendorCDR_20' ) start [2025-04-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906703', 'tblTempVendorCDR_20' ) end [2025-04-14 13:59:20] Production.INFO: ProcessCDR(1,14906703,1,1,2) [2025-04-14 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906703', 'tblTempUsageDetail_20' ) start [2025-04-14 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906703', 'tblTempUsageDetail_20' ) end [2025-04-14 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 13:59:25] Production.INFO: ==20587== Releasing lock... [2025-04-14 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 13:59:25] Production.INFO: 65 MB #Memory Used# [2025-04-14 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:00:06 [end_date_ymd] => 2025-04-14 14:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:00:06' and `end` < '2025-04-14 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-04-14 14:00:20] Production.INFO: count ==4937 [2025-04-14 14:00:22] Production.ERROR: pbx CDR StartTime 2025-04-14 11:00:06 - End Time 2025-04-14 14:00:06 [2025-04-14 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906708', 'tblTempUsageDetail_20' ) start [2025-04-14 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906708', 'tblTempUsageDetail_20' ) end [2025-04-14 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906708', 'tblTempVendorCDR_20' ) start [2025-04-14 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906708', 'tblTempVendorCDR_20' ) end [2025-04-14 14:00:22] Production.INFO: ProcessCDR(1,14906708,1,1,2) [2025-04-14 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906708', 'tblTempUsageDetail_20' ) start [2025-04-14 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906708', 'tblTempUsageDetail_20' ) end [2025-04-14 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:00:27] Production.INFO: ==20667== Releasing lock... [2025-04-14 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:00:27] Production.INFO: 65 MB #Memory Used# [2025-04-14 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:01:05 [end_date_ymd] => 2025-04-14 14:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:01:05' and `end` < '2025-04-14 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-04-14 14:01:19] Production.INFO: count ==4872 [2025-04-14 14:01:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:01:05 - End Time 2025-04-14 14:01:05 [2025-04-14 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906714', 'tblTempUsageDetail_20' ) start [2025-04-14 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906714', 'tblTempUsageDetail_20' ) end [2025-04-14 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906714', 'tblTempVendorCDR_20' ) start [2025-04-14 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906714', 'tblTempVendorCDR_20' ) end [2025-04-14 14:01:21] Production.INFO: ProcessCDR(1,14906714,1,1,2) [2025-04-14 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906714', 'tblTempUsageDetail_20' ) start [2025-04-14 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906714', 'tblTempUsageDetail_20' ) end [2025-04-14 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:01:26] Production.INFO: ==20763== Releasing lock... [2025-04-14 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:01:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:02:05 [end_date_ymd] => 2025-04-14 14:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:02:05' and `end` < '2025-04-14 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-04-14 14:02:19] Production.INFO: count ==4843 [2025-04-14 14:02:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:02:05 - End Time 2025-04-14 14:02:05 [2025-04-14 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906719', 'tblTempUsageDetail_20' ) start [2025-04-14 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906719', 'tblTempUsageDetail_20' ) end [2025-04-14 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906719', 'tblTempVendorCDR_20' ) start [2025-04-14 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906719', 'tblTempVendorCDR_20' ) end [2025-04-14 14:02:21] Production.INFO: ProcessCDR(1,14906719,1,1,2) [2025-04-14 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906719', 'tblTempUsageDetail_20' ) start [2025-04-14 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906719', 'tblTempUsageDetail_20' ) end [2025-04-14 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:02:26] Production.INFO: ==20839== Releasing lock... [2025-04-14 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:02:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:03:05 [end_date_ymd] => 2025-04-14 14:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:03:05' and `end` < '2025-04-14 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-04-14 14:03:19] Production.INFO: count ==4837 [2025-04-14 14:03:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:03:05 - End Time 2025-04-14 14:03:05 [2025-04-14 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906724', 'tblTempUsageDetail_20' ) start [2025-04-14 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906724', 'tblTempUsageDetail_20' ) end [2025-04-14 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906724', 'tblTempVendorCDR_20' ) start [2025-04-14 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906724', 'tblTempVendorCDR_20' ) end [2025-04-14 14:03:21] Production.INFO: ProcessCDR(1,14906724,1,1,2) [2025-04-14 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906724', 'tblTempUsageDetail_20' ) start [2025-04-14 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906724', 'tblTempUsageDetail_20' ) end [2025-04-14 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:03:26] Production.INFO: ==20919== Releasing lock... [2025-04-14 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:03:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:04:04 [end_date_ymd] => 2025-04-14 14:04:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:04:04' and `end` < '2025-04-14 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-04-14 14:04:18] Production.INFO: count ==4839 [2025-04-14 14:04:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:04:04 - End Time 2025-04-14 14:04:04 [2025-04-14 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906729', 'tblTempUsageDetail_20' ) start [2025-04-14 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906729', 'tblTempUsageDetail_20' ) end [2025-04-14 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906729', 'tblTempVendorCDR_20' ) start [2025-04-14 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906729', 'tblTempVendorCDR_20' ) end [2025-04-14 14:04:20] Production.INFO: ProcessCDR(1,14906729,1,1,2) [2025-04-14 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906729', 'tblTempUsageDetail_20' ) start [2025-04-14 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906729', 'tblTempUsageDetail_20' ) end [2025-04-14 14:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:04:25] Production.INFO: ==21004== Releasing lock... [2025-04-14 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:04:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:05:04 [end_date_ymd] => 2025-04-14 14:05:04 [RateCDR] => 1 ) [2025-04-14 14: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-04-14 11:05:04' and `end` < '2025-04-14 14: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-04-14 14:05:18] Production.INFO: count ==4839 [2025-04-14 14:05:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:05:04 - End Time 2025-04-14 14:05:04 [2025-04-14 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906734', 'tblTempUsageDetail_20' ) start [2025-04-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906734', 'tblTempUsageDetail_20' ) end [2025-04-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906734', 'tblTempVendorCDR_20' ) start [2025-04-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906734', 'tblTempVendorCDR_20' ) end [2025-04-14 14:05:20] Production.INFO: ProcessCDR(1,14906734,1,1,2) [2025-04-14 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906734', 'tblTempUsageDetail_20' ) start [2025-04-14 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906734', 'tblTempUsageDetail_20' ) end [2025-04-14 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:05:25] Production.INFO: ==21078== Releasing lock... [2025-04-14 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:05:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:06:06 [end_date_ymd] => 2025-04-14 14:06:06 [RateCDR] => 1 ) [2025-04-14 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:06:06' and `end` < '2025-04-14 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:06:19] Production.INFO: count ==4823 [2025-04-14 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:06:06 - End Time 2025-04-14 14:06:06 [2025-04-14 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906739', 'tblTempUsageDetail_20' ) start [2025-04-14 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906739', 'tblTempUsageDetail_20' ) end [2025-04-14 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906739', 'tblTempVendorCDR_20' ) start [2025-04-14 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906739', 'tblTempVendorCDR_20' ) end [2025-04-14 14:06:21] Production.INFO: ProcessCDR(1,14906739,1,1,2) [2025-04-14 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906739', 'tblTempUsageDetail_20' ) start [2025-04-14 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906739', 'tblTempUsageDetail_20' ) end [2025-04-14 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:06:26] Production.INFO: ==21161== Releasing lock... [2025-04-14 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:06:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:07:05 [end_date_ymd] => 2025-04-14 14:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:07:05' and `end` < '2025-04-14 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-04-14 14:07:18] Production.INFO: count ==4801 [2025-04-14 14:07:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:07:05 - End Time 2025-04-14 14:07:05 [2025-04-14 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906744', 'tblTempUsageDetail_20' ) start [2025-04-14 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906744', 'tblTempUsageDetail_20' ) end [2025-04-14 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906744', 'tblTempVendorCDR_20' ) start [2025-04-14 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906744', 'tblTempVendorCDR_20' ) end [2025-04-14 14:07:20] Production.INFO: ProcessCDR(1,14906744,1,1,2) [2025-04-14 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906744', 'tblTempUsageDetail_20' ) start [2025-04-14 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906744', 'tblTempUsageDetail_20' ) end [2025-04-14 14:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:07:25] Production.INFO: ==21241== Releasing lock... [2025-04-14 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:07:25] Production.INFO: 64 MB #Memory Used# [2025-04-14 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:08:05 [end_date_ymd] => 2025-04-14 14:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:08:05' and `end` < '2025-04-14 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-04-14 14:08:19] Production.INFO: count ==4769 [2025-04-14 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:08:05 - End Time 2025-04-14 14:08:05 [2025-04-14 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906749', 'tblTempUsageDetail_20' ) start [2025-04-14 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906749', 'tblTempUsageDetail_20' ) end [2025-04-14 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906749', 'tblTempVendorCDR_20' ) start [2025-04-14 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906749', 'tblTempVendorCDR_20' ) end [2025-04-14 14:08:21] Production.INFO: ProcessCDR(1,14906749,1,1,2) [2025-04-14 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906749', 'tblTempUsageDetail_20' ) start [2025-04-14 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906749', 'tblTempUsageDetail_20' ) end [2025-04-14 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:08:26] Production.INFO: ==21320== Releasing lock... [2025-04-14 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:08:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:09:05 [end_date_ymd] => 2025-04-14 14:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:09:05' and `end` < '2025-04-14 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-04-14 14:09:18] Production.INFO: count ==4764 [2025-04-14 14:09:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:09:05 - End Time 2025-04-14 14:09:05 [2025-04-14 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906754', 'tblTempUsageDetail_20' ) start [2025-04-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906754', 'tblTempUsageDetail_20' ) end [2025-04-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906754', 'tblTempVendorCDR_20' ) start [2025-04-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906754', 'tblTempVendorCDR_20' ) end [2025-04-14 14:09:20] Production.INFO: ProcessCDR(1,14906754,1,1,2) [2025-04-14 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906754', 'tblTempUsageDetail_20' ) start [2025-04-14 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906754', 'tblTempUsageDetail_20' ) end [2025-04-14 14:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:09:25] Production.INFO: ==21398== Releasing lock... [2025-04-14 14:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:09:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:10:06 [end_date_ymd] => 2025-04-14 14:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:10:06' and `end` < '2025-04-14 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-04-14 14:10:19] Production.INFO: count ==4771 [2025-04-14 14:10:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:10:06 - End Time 2025-04-14 14:10:06 [2025-04-14 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906760', 'tblTempUsageDetail_20' ) start [2025-04-14 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906760', 'tblTempUsageDetail_20' ) end [2025-04-14 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906760', 'tblTempVendorCDR_20' ) start [2025-04-14 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906760', 'tblTempVendorCDR_20' ) end [2025-04-14 14:10:21] Production.INFO: ProcessCDR(1,14906760,1,1,2) [2025-04-14 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906760', 'tblTempUsageDetail_20' ) start [2025-04-14 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906760', 'tblTempUsageDetail_20' ) end [2025-04-14 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:10:26] Production.INFO: ==21473== Releasing lock... [2025-04-14 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:10:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:11:04 [end_date_ymd] => 2025-04-14 14:11:04 [RateCDR] => 1 ) [2025-04-14 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:11:04' and `end` < '2025-04-14 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:11:18] Production.INFO: count ==4776 [2025-04-14 14:11:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:11:04 - End Time 2025-04-14 14:11:04 [2025-04-14 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906765', 'tblTempUsageDetail_20' ) start [2025-04-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906765', 'tblTempUsageDetail_20' ) end [2025-04-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906765', 'tblTempVendorCDR_20' ) start [2025-04-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906765', 'tblTempVendorCDR_20' ) end [2025-04-14 14:11:20] Production.INFO: ProcessCDR(1,14906765,1,1,2) [2025-04-14 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906765', 'tblTempUsageDetail_20' ) start [2025-04-14 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906765', 'tblTempUsageDetail_20' ) end [2025-04-14 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:11:25] Production.INFO: ==21549== Releasing lock... [2025-04-14 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:11:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:12:05 [end_date_ymd] => 2025-04-14 14:12:05 [RateCDR] => 1 ) [2025-04-14 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:12:05' and `end` < '2025-04-14 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-04-14 14:12:19] Production.INFO: count ==4776 [2025-04-14 14:12:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:12:05 - End Time 2025-04-14 14:12:05 [2025-04-14 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906770', 'tblTempUsageDetail_20' ) start [2025-04-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906770', 'tblTempUsageDetail_20' ) end [2025-04-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906770', 'tblTempVendorCDR_20' ) start [2025-04-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906770', 'tblTempVendorCDR_20' ) end [2025-04-14 14:12:21] Production.INFO: ProcessCDR(1,14906770,1,1,2) [2025-04-14 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906770', 'tblTempUsageDetail_20' ) start [2025-04-14 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906770', 'tblTempUsageDetail_20' ) end [2025-04-14 14:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:12:25] Production.INFO: ==21622== Releasing lock... [2025-04-14 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:12:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:13:05 [end_date_ymd] => 2025-04-14 14:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:13:05' and `end` < '2025-04-14 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-04-14 14:13:19] Production.INFO: count ==4774 [2025-04-14 14:13:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:13:05 - End Time 2025-04-14 14:13:05 [2025-04-14 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906775', 'tblTempUsageDetail_20' ) start [2025-04-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906775', 'tblTempUsageDetail_20' ) end [2025-04-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906775', 'tblTempVendorCDR_20' ) start [2025-04-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906775', 'tblTempVendorCDR_20' ) end [2025-04-14 14:13:21] Production.INFO: ProcessCDR(1,14906775,1,1,2) [2025-04-14 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906775', 'tblTempUsageDetail_20' ) start [2025-04-14 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906775', 'tblTempUsageDetail_20' ) end [2025-04-14 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:13:26] Production.INFO: ==21696== Releasing lock... [2025-04-14 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:13:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:14:04 [end_date_ymd] => 2025-04-14 14:14:04 [RateCDR] => 1 ) [2025-04-14 14:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:14:04' and `end` < '2025-04-14 14:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:14:18] Production.INFO: count ==4770 [2025-04-14 14:14:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:14:04 - End Time 2025-04-14 14:14:04 [2025-04-14 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906780', 'tblTempUsageDetail_20' ) start [2025-04-14 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906780', 'tblTempUsageDetail_20' ) end [2025-04-14 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906780', 'tblTempVendorCDR_20' ) start [2025-04-14 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906780', 'tblTempVendorCDR_20' ) end [2025-04-14 14:14:20] Production.INFO: ProcessCDR(1,14906780,1,1,2) [2025-04-14 14:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906780', 'tblTempUsageDetail_20' ) start [2025-04-14 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906780', 'tblTempUsageDetail_20' ) end [2025-04-14 14:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:14:25] Production.INFO: ==21813== Releasing lock... [2025-04-14 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:14:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:15:05 [end_date_ymd] => 2025-04-14 14:15:05 [RateCDR] => 1 ) [2025-04-14 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:15:05' and `end` < '2025-04-14 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:15:19] Production.INFO: count ==4766 [2025-04-14 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:15:05 - End Time 2025-04-14 14:15:05 [2025-04-14 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906785', 'tblTempUsageDetail_20' ) start [2025-04-14 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906785', 'tblTempUsageDetail_20' ) end [2025-04-14 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906785', 'tblTempVendorCDR_20' ) start [2025-04-14 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906785', 'tblTempVendorCDR_20' ) end [2025-04-14 14:15:21] Production.INFO: ProcessCDR(1,14906785,1,1,2) [2025-04-14 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906785', 'tblTempUsageDetail_20' ) start [2025-04-14 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906785', 'tblTempUsageDetail_20' ) end [2025-04-14 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:15:26] Production.INFO: ==21889== Releasing lock... [2025-04-14 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:15:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:16:05 [end_date_ymd] => 2025-04-14 14:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:16:05' and `end` < '2025-04-14 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-04-14 14:16:19] Production.INFO: count ==4772 [2025-04-14 14:16:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:16:05 - End Time 2025-04-14 14:16:05 [2025-04-14 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906790', 'tblTempUsageDetail_20' ) start [2025-04-14 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906790', 'tblTempUsageDetail_20' ) end [2025-04-14 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906790', 'tblTempVendorCDR_20' ) start [2025-04-14 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906790', 'tblTempVendorCDR_20' ) end [2025-04-14 14:16:21] Production.INFO: ProcessCDR(1,14906790,1,1,2) [2025-04-14 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906790', 'tblTempUsageDetail_20' ) start [2025-04-14 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906790', 'tblTempUsageDetail_20' ) end [2025-04-14 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:16:25] Production.INFO: ==21960== Releasing lock... [2025-04-14 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:16:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:17:05 [end_date_ymd] => 2025-04-14 14:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:17:05' and `end` < '2025-04-14 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-04-14 14:17:19] Production.INFO: count ==4777 [2025-04-14 14:17:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:17:05 - End Time 2025-04-14 14:17:05 [2025-04-14 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906795', 'tblTempUsageDetail_20' ) start [2025-04-14 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906795', 'tblTempUsageDetail_20' ) end [2025-04-14 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906795', 'tblTempVendorCDR_20' ) start [2025-04-14 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906795', 'tblTempVendorCDR_20' ) end [2025-04-14 14:17:21] Production.INFO: ProcessCDR(1,14906795,1,1,2) [2025-04-14 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906795', 'tblTempUsageDetail_20' ) start [2025-04-14 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906795', 'tblTempUsageDetail_20' ) end [2025-04-14 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:17:26] Production.INFO: ==22033== Releasing lock... [2025-04-14 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:17:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:18:05 [end_date_ymd] => 2025-04-14 14:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:18:05' and `end` < '2025-04-14 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-04-14 14:18:19] Production.INFO: count ==4777 [2025-04-14 14:18:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:18:05 - End Time 2025-04-14 14:18:05 [2025-04-14 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906800', 'tblTempUsageDetail_20' ) start [2025-04-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906800', 'tblTempUsageDetail_20' ) end [2025-04-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906800', 'tblTempVendorCDR_20' ) start [2025-04-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906800', 'tblTempVendorCDR_20' ) end [2025-04-14 14:18:21] Production.INFO: ProcessCDR(1,14906800,1,1,2) [2025-04-14 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906800', 'tblTempUsageDetail_20' ) start [2025-04-14 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906800', 'tblTempUsageDetail_20' ) end [2025-04-14 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:18:26] Production.INFO: ==22107== Releasing lock... [2025-04-14 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:18:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:19:05 [end_date_ymd] => 2025-04-14 14:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:19:05' and `end` < '2025-04-14 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-04-14 14:19:19] Production.INFO: count ==4775 [2025-04-14 14:19:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:19:05 - End Time 2025-04-14 14:19:05 [2025-04-14 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906805', 'tblTempUsageDetail_20' ) start [2025-04-14 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906805', 'tblTempUsageDetail_20' ) end [2025-04-14 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906805', 'tblTempVendorCDR_20' ) start [2025-04-14 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906805', 'tblTempVendorCDR_20' ) end [2025-04-14 14:19:21] Production.INFO: ProcessCDR(1,14906805,1,1,2) [2025-04-14 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906805', 'tblTempUsageDetail_20' ) start [2025-04-14 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906805', 'tblTempUsageDetail_20' ) end [2025-04-14 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:19:26] Production.INFO: ==22185== Releasing lock... [2025-04-14 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:19:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:20:06 [end_date_ymd] => 2025-04-14 14:20:06 [RateCDR] => 1 ) [2025-04-14 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:20:06' and `end` < '2025-04-14 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:20:20] Production.INFO: count ==4764 [2025-04-14 14:20:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:20:06 - End Time 2025-04-14 14:20:06 [2025-04-14 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906810', 'tblTempUsageDetail_20' ) start [2025-04-14 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906810', 'tblTempUsageDetail_20' ) end [2025-04-14 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906810', 'tblTempVendorCDR_20' ) start [2025-04-14 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906810', 'tblTempVendorCDR_20' ) end [2025-04-14 14:20:22] Production.INFO: ProcessCDR(1,14906810,1,1,2) [2025-04-14 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906810', 'tblTempUsageDetail_20' ) start [2025-04-14 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906810', 'tblTempUsageDetail_20' ) end [2025-04-14 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:20:27] Production.INFO: ==22269== Releasing lock... [2025-04-14 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:20:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:21:05 [end_date_ymd] => 2025-04-14 14:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:21:05' and `end` < '2025-04-14 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-04-14 14:21:19] Production.INFO: count ==4735 [2025-04-14 14:21:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:21:05 - End Time 2025-04-14 14:21:05 [2025-04-14 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906816', 'tblTempUsageDetail_20' ) start [2025-04-14 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906816', 'tblTempUsageDetail_20' ) end [2025-04-14 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906816', 'tblTempVendorCDR_20' ) start [2025-04-14 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906816', 'tblTempVendorCDR_20' ) end [2025-04-14 14:21:21] Production.INFO: ProcessCDR(1,14906816,1,1,2) [2025-04-14 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906816', 'tblTempUsageDetail_20' ) start [2025-04-14 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906816', 'tblTempUsageDetail_20' ) end [2025-04-14 14:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:21:26] Production.INFO: ==22347== Releasing lock... [2025-04-14 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:21:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:22:05 [end_date_ymd] => 2025-04-14 14:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:22:05' and `end` < '2025-04-14 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-04-14 14:22:19] Production.INFO: count ==4739 [2025-04-14 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:22:05 - End Time 2025-04-14 14:22:05 [2025-04-14 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906821', 'tblTempUsageDetail_20' ) start [2025-04-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906821', 'tblTempUsageDetail_20' ) end [2025-04-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906821', 'tblTempVendorCDR_20' ) start [2025-04-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906821', 'tblTempVendorCDR_20' ) end [2025-04-14 14:22:21] Production.INFO: ProcessCDR(1,14906821,1,1,2) [2025-04-14 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906821', 'tblTempUsageDetail_20' ) start [2025-04-14 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906821', 'tblTempUsageDetail_20' ) end [2025-04-14 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:22:26] Production.INFO: ==22419== Releasing lock... [2025-04-14 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:22:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:23:05 [end_date_ymd] => 2025-04-14 14:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:23:05' and `end` < '2025-04-14 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-04-14 14:23:19] Production.INFO: count ==4723 [2025-04-14 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:23:05 - End Time 2025-04-14 14:23:05 [2025-04-14 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906826', 'tblTempUsageDetail_20' ) start [2025-04-14 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906826', 'tblTempUsageDetail_20' ) end [2025-04-14 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906826', 'tblTempVendorCDR_20' ) start [2025-04-14 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906826', 'tblTempVendorCDR_20' ) end [2025-04-14 14:23:21] Production.INFO: ProcessCDR(1,14906826,1,1,2) [2025-04-14 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906826', 'tblTempUsageDetail_20' ) start [2025-04-14 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906826', 'tblTempUsageDetail_20' ) end [2025-04-14 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:23:26] Production.INFO: ==22492== Releasing lock... [2025-04-14 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-14 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:24:05 [end_date_ymd] => 2025-04-14 14:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:24:05' and `end` < '2025-04-14 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-04-14 14:24:19] Production.INFO: count ==4739 [2025-04-14 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:24:05 - End Time 2025-04-14 14:24:05 [2025-04-14 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906831', 'tblTempUsageDetail_20' ) start [2025-04-14 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906831', 'tblTempUsageDetail_20' ) end [2025-04-14 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906831', 'tblTempVendorCDR_20' ) start [2025-04-14 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906831', 'tblTempVendorCDR_20' ) end [2025-04-14 14:24:21] Production.INFO: ProcessCDR(1,14906831,1,1,2) [2025-04-14 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906831', 'tblTempUsageDetail_20' ) start [2025-04-14 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906831', 'tblTempUsageDetail_20' ) end [2025-04-14 14:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:24:25] Production.INFO: ==22567== Releasing lock... [2025-04-14 14:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:24:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:25:04 [end_date_ymd] => 2025-04-14 14:25:04 [RateCDR] => 1 ) [2025-04-14 14:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:25:04' and `end` < '2025-04-14 14:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:25:18] Production.INFO: count ==4770 [2025-04-14 14:25:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:25:04 - End Time 2025-04-14 14:25:04 [2025-04-14 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906833', 'tblTempUsageDetail_20' ) start [2025-04-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906833', 'tblTempUsageDetail_20' ) end [2025-04-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906833', 'tblTempVendorCDR_20' ) start [2025-04-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906833', 'tblTempVendorCDR_20' ) end [2025-04-14 14:25:20] Production.INFO: ProcessCDR(1,14906833,1,1,2) [2025-04-14 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906833', 'tblTempUsageDetail_20' ) start [2025-04-14 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906833', 'tblTempUsageDetail_20' ) end [2025-04-14 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:25:25] Production.INFO: ==22638== Releasing lock... [2025-04-14 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:25:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:26:05 [end_date_ymd] => 2025-04-14 14:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:26:05' and `end` < '2025-04-14 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-04-14 14:26:19] Production.INFO: count ==4773 [2025-04-14 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:26:05 - End Time 2025-04-14 14:26:05 [2025-04-14 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906841', 'tblTempUsageDetail_20' ) start [2025-04-14 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906841', 'tblTempUsageDetail_20' ) end [2025-04-14 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906841', 'tblTempVendorCDR_20' ) start [2025-04-14 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906841', 'tblTempVendorCDR_20' ) end [2025-04-14 14:26:21] Production.INFO: ProcessCDR(1,14906841,1,1,2) [2025-04-14 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906841', 'tblTempUsageDetail_20' ) start [2025-04-14 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906841', 'tblTempUsageDetail_20' ) end [2025-04-14 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:26:26] Production.INFO: ==22719== Releasing lock... [2025-04-14 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:26:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:27:05 [end_date_ymd] => 2025-04-14 14:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:27:05' and `end` < '2025-04-14 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-04-14 14:27:19] Production.INFO: count ==4761 [2025-04-14 14:27:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:27:05 - End Time 2025-04-14 14:27:05 [2025-04-14 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906846', 'tblTempUsageDetail_20' ) start [2025-04-14 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906846', 'tblTempUsageDetail_20' ) end [2025-04-14 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906846', 'tblTempVendorCDR_20' ) start [2025-04-14 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906846', 'tblTempVendorCDR_20' ) end [2025-04-14 14:27:20] Production.INFO: ProcessCDR(1,14906846,1,1,2) [2025-04-14 14:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906846', 'tblTempUsageDetail_20' ) start [2025-04-14 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906846', 'tblTempUsageDetail_20' ) end [2025-04-14 14:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:27:25] Production.INFO: ==22796== Releasing lock... [2025-04-14 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:27:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:28:05 [end_date_ymd] => 2025-04-14 14:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:28:05' and `end` < '2025-04-14 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-04-14 14:28:19] Production.INFO: count ==4755 [2025-04-14 14:28:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:28:05 - End Time 2025-04-14 14:28:05 [2025-04-14 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906851', 'tblTempUsageDetail_20' ) start [2025-04-14 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906851', 'tblTempUsageDetail_20' ) end [2025-04-14 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906851', 'tblTempVendorCDR_20' ) start [2025-04-14 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906851', 'tblTempVendorCDR_20' ) end [2025-04-14 14:28:20] Production.INFO: ProcessCDR(1,14906851,1,1,2) [2025-04-14 14:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906851', 'tblTempUsageDetail_20' ) start [2025-04-14 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906851', 'tblTempUsageDetail_20' ) end [2025-04-14 14:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:28:25] Production.INFO: ==22868== Releasing lock... [2025-04-14 14:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:28:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:29:05 [end_date_ymd] => 2025-04-14 14:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:29:05' and `end` < '2025-04-14 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-04-14 14:29:19] Production.INFO: count ==4751 [2025-04-14 14:29:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:29:05 - End Time 2025-04-14 14:29:05 [2025-04-14 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906856', 'tblTempUsageDetail_20' ) start [2025-04-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906856', 'tblTempUsageDetail_20' ) end [2025-04-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906856', 'tblTempVendorCDR_20' ) start [2025-04-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906856', 'tblTempVendorCDR_20' ) end [2025-04-14 14:29:21] Production.INFO: ProcessCDR(1,14906856,1,1,2) [2025-04-14 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906856', 'tblTempUsageDetail_20' ) start [2025-04-14 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906856', 'tblTempUsageDetail_20' ) end [2025-04-14 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:29:26] Production.INFO: ==22945== Releasing lock... [2025-04-14 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:30:06 [end_date_ymd] => 2025-04-14 14:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:30:06' and `end` < '2025-04-14 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-04-14 14:30:19] Production.INFO: count ==4732 [2025-04-14 14:30:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:30:06 - End Time 2025-04-14 14:30:06 [2025-04-14 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906862', 'tblTempUsageDetail_20' ) start [2025-04-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906862', 'tblTempUsageDetail_20' ) end [2025-04-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906862', 'tblTempVendorCDR_20' ) start [2025-04-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906862', 'tblTempVendorCDR_20' ) end [2025-04-14 14:30:21] Production.INFO: ProcessCDR(1,14906862,1,1,2) [2025-04-14 14:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906862', 'tblTempUsageDetail_20' ) start [2025-04-14 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906862', 'tblTempUsageDetail_20' ) end [2025-04-14 14:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:30:26] Production.INFO: ==23057== Releasing lock... [2025-04-14 14:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:30:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:31:05 [end_date_ymd] => 2025-04-14 14:31:05 [RateCDR] => 1 ) [2025-04-14 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:31:05' and `end` < '2025-04-14 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:31:19] Production.INFO: count ==4684 [2025-04-14 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:31:05 - End Time 2025-04-14 14:31:05 [2025-04-14 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906867', 'tblTempUsageDetail_20' ) start [2025-04-14 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906867', 'tblTempUsageDetail_20' ) end [2025-04-14 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906867', 'tblTempVendorCDR_20' ) start [2025-04-14 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906867', 'tblTempVendorCDR_20' ) end [2025-04-14 14:31:21] Production.INFO: ProcessCDR(1,14906867,1,1,2) [2025-04-14 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906867', 'tblTempUsageDetail_20' ) start [2025-04-14 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906867', 'tblTempUsageDetail_20' ) end [2025-04-14 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:31:26] Production.INFO: ==23138== Releasing lock... [2025-04-14 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:31:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:32:05 [end_date_ymd] => 2025-04-14 14:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:32:05' and `end` < '2025-04-14 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-04-14 14:32:19] Production.INFO: count ==4689 [2025-04-14 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:32:05 - End Time 2025-04-14 14:32:05 [2025-04-14 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906872', 'tblTempUsageDetail_20' ) start [2025-04-14 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906872', 'tblTempUsageDetail_20' ) end [2025-04-14 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906872', 'tblTempVendorCDR_20' ) start [2025-04-14 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906872', 'tblTempVendorCDR_20' ) end [2025-04-14 14:32:21] Production.INFO: ProcessCDR(1,14906872,1,1,2) [2025-04-14 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906872', 'tblTempUsageDetail_20' ) start [2025-04-14 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906872', 'tblTempUsageDetail_20' ) end [2025-04-14 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:32:26] Production.INFO: ==23214== Releasing lock... [2025-04-14 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:32:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:33:05 [end_date_ymd] => 2025-04-14 14:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:33:05' and `end` < '2025-04-14 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-04-14 14:33:19] Production.INFO: count ==4679 [2025-04-14 14:33:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:33:05 - End Time 2025-04-14 14:33:05 [2025-04-14 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906877', 'tblTempUsageDetail_20' ) start [2025-04-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906877', 'tblTempUsageDetail_20' ) end [2025-04-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906877', 'tblTempVendorCDR_20' ) start [2025-04-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906877', 'tblTempVendorCDR_20' ) end [2025-04-14 14:33:21] Production.INFO: ProcessCDR(1,14906877,1,1,2) [2025-04-14 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906877', 'tblTempUsageDetail_20' ) start [2025-04-14 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906877', 'tblTempUsageDetail_20' ) end [2025-04-14 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:33:26] Production.INFO: ==23295== Releasing lock... [2025-04-14 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:33:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:34:05 [end_date_ymd] => 2025-04-14 14:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:34:05' and `end` < '2025-04-14 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-04-14 14:34:19] Production.INFO: count ==4680 [2025-04-14 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:34:05 - End Time 2025-04-14 14:34:05 [2025-04-14 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906882', 'tblTempUsageDetail_20' ) start [2025-04-14 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906882', 'tblTempUsageDetail_20' ) end [2025-04-14 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906882', 'tblTempVendorCDR_20' ) start [2025-04-14 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906882', 'tblTempVendorCDR_20' ) end [2025-04-14 14:34:21] Production.INFO: ProcessCDR(1,14906882,1,1,2) [2025-04-14 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906882', 'tblTempUsageDetail_20' ) start [2025-04-14 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906882', 'tblTempUsageDetail_20' ) end [2025-04-14 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:34:26] Production.INFO: ==23368== Releasing lock... [2025-04-14 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:34:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:35:05 [end_date_ymd] => 2025-04-14 14:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:35:05' and `end` < '2025-04-14 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-04-14 14:35:19] Production.INFO: count ==4670 [2025-04-14 14:35:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:35:05 - End Time 2025-04-14 14:35:05 [2025-04-14 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906887', 'tblTempUsageDetail_20' ) start [2025-04-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906887', 'tblTempUsageDetail_20' ) end [2025-04-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906887', 'tblTempVendorCDR_20' ) start [2025-04-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906887', 'tblTempVendorCDR_20' ) end [2025-04-14 14:35:20] Production.INFO: ProcessCDR(1,14906887,1,1,2) [2025-04-14 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906887', 'tblTempUsageDetail_20' ) start [2025-04-14 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906887', 'tblTempUsageDetail_20' ) end [2025-04-14 14:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:35:25] Production.INFO: ==23439== Releasing lock... [2025-04-14 14:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:35:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 14:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:36:04 [end_date_ymd] => 2025-04-14 14:36:04 [RateCDR] => 1 ) [2025-04-14 14:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:36:04' and `end` < '2025-04-14 14:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:36:18] Production.INFO: count ==4659 [2025-04-14 14:36:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:36:04 - End Time 2025-04-14 14:36:04 [2025-04-14 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906892', 'tblTempUsageDetail_20' ) start [2025-04-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906892', 'tblTempUsageDetail_20' ) end [2025-04-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906892', 'tblTempVendorCDR_20' ) start [2025-04-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906892', 'tblTempVendorCDR_20' ) end [2025-04-14 14:36:20] Production.INFO: ProcessCDR(1,14906892,1,1,2) [2025-04-14 14:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906892', 'tblTempUsageDetail_20' ) start [2025-04-14 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906892', 'tblTempUsageDetail_20' ) end [2025-04-14 14:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:36:25] Production.INFO: ==23517== Releasing lock... [2025-04-14 14:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:36:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:37:05 [end_date_ymd] => 2025-04-14 14:37:05 [RateCDR] => 1 ) [2025-04-14 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:37:05' and `end` < '2025-04-14 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:37:19] Production.INFO: count ==4631 [2025-04-14 14:37:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:37:05 - End Time 2025-04-14 14:37:05 [2025-04-14 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906897', 'tblTempUsageDetail_20' ) start [2025-04-14 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906897', 'tblTempUsageDetail_20' ) end [2025-04-14 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906897', 'tblTempVendorCDR_20' ) start [2025-04-14 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906897', 'tblTempVendorCDR_20' ) end [2025-04-14 14:37:21] Production.INFO: ProcessCDR(1,14906897,1,1,2) [2025-04-14 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906897', 'tblTempUsageDetail_20' ) start [2025-04-14 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906897', 'tblTempUsageDetail_20' ) end [2025-04-14 14:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:37:25] Production.INFO: ==23588== Releasing lock... [2025-04-14 14:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:37:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:38:05 [end_date_ymd] => 2025-04-14 14:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:38:05' and `end` < '2025-04-14 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-04-14 14:38:19] Production.INFO: count ==4613 [2025-04-14 14:38:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:38:05 - End Time 2025-04-14 14:38:05 [2025-04-14 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906902', 'tblTempUsageDetail_20' ) start [2025-04-14 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906902', 'tblTempUsageDetail_20' ) end [2025-04-14 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906902', 'tblTempVendorCDR_20' ) start [2025-04-14 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906902', 'tblTempVendorCDR_20' ) end [2025-04-14 14:38:21] Production.INFO: ProcessCDR(1,14906902,1,1,2) [2025-04-14 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906902', 'tblTempUsageDetail_20' ) start [2025-04-14 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906902', 'tblTempUsageDetail_20' ) end [2025-04-14 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:38:26] Production.INFO: ==23661== Releasing lock... [2025-04-14 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:38:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:39:04 [end_date_ymd] => 2025-04-14 14:39:04 [RateCDR] => 1 ) [2025-04-14 14:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:39:04' and `end` < '2025-04-14 14:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:39:18] Production.INFO: count ==4601 [2025-04-14 14:39:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:39:04 - End Time 2025-04-14 14:39:04 [2025-04-14 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906907', 'tblTempUsageDetail_20' ) start [2025-04-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906907', 'tblTempUsageDetail_20' ) end [2025-04-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906907', 'tblTempVendorCDR_20' ) start [2025-04-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906907', 'tblTempVendorCDR_20' ) end [2025-04-14 14:39:20] Production.INFO: ProcessCDR(1,14906907,1,1,2) [2025-04-14 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906907', 'tblTempUsageDetail_20' ) start [2025-04-14 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906907', 'tblTempUsageDetail_20' ) end [2025-04-14 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:39:25] Production.INFO: ==23737== Releasing lock... [2025-04-14 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:39:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:40:06 [end_date_ymd] => 2025-04-14 14:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:40:06' and `end` < '2025-04-14 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-04-14 14:40:20] Production.INFO: count ==4601 [2025-04-14 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-14 11:40:06 - End Time 2025-04-14 14:40:06 [2025-04-14 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906913', 'tblTempUsageDetail_20' ) start [2025-04-14 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906913', 'tblTempUsageDetail_20' ) end [2025-04-14 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906913', 'tblTempVendorCDR_20' ) start [2025-04-14 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906913', 'tblTempVendorCDR_20' ) end [2025-04-14 14:40:22] Production.INFO: ProcessCDR(1,14906913,1,1,2) [2025-04-14 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906913', 'tblTempUsageDetail_20' ) start [2025-04-14 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906913', 'tblTempUsageDetail_20' ) end [2025-04-14 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:40:27] Production.INFO: ==23814== Releasing lock... [2025-04-14 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:40:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:41:05 [end_date_ymd] => 2025-04-14 14:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:41:05' and `end` < '2025-04-14 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-04-14 14:41:18] Production.INFO: count ==4550 [2025-04-14 14:41:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:41:05 - End Time 2025-04-14 14:41:05 [2025-04-14 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906918', 'tblTempUsageDetail_20' ) start [2025-04-14 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906918', 'tblTempUsageDetail_20' ) end [2025-04-14 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906918', 'tblTempVendorCDR_20' ) start [2025-04-14 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906918', 'tblTempVendorCDR_20' ) end [2025-04-14 14:41:20] Production.INFO: ProcessCDR(1,14906918,1,1,2) [2025-04-14 14:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906918', 'tblTempUsageDetail_20' ) start [2025-04-14 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906918', 'tblTempUsageDetail_20' ) end [2025-04-14 14:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:41:25] Production.INFO: ==23888== Releasing lock... [2025-04-14 14:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:41:25] Production.INFO: 62 MB #Memory Used# [2025-04-14 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:42:05 [end_date_ymd] => 2025-04-14 14:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:42:05' and `end` < '2025-04-14 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-04-14 14:42:19] Production.INFO: count ==4537 [2025-04-14 14:42:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:42:05 - End Time 2025-04-14 14:42:05 [2025-04-14 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906923', 'tblTempUsageDetail_20' ) start [2025-04-14 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906923', 'tblTempUsageDetail_20' ) end [2025-04-14 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906923', 'tblTempVendorCDR_20' ) start [2025-04-14 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906923', 'tblTempVendorCDR_20' ) end [2025-04-14 14:42:21] Production.INFO: ProcessCDR(1,14906923,1,1,2) [2025-04-14 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906923', 'tblTempUsageDetail_20' ) start [2025-04-14 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906923', 'tblTempUsageDetail_20' ) end [2025-04-14 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:42:26] Production.INFO: ==23963== Releasing lock... [2025-04-14 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:42:26] Production.INFO: 62 MB #Memory Used# [2025-04-14 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:43:05 [end_date_ymd] => 2025-04-14 14:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:43:05' and `end` < '2025-04-14 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-04-14 14:43:18] Production.INFO: count ==4537 [2025-04-14 14:43:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:43:05 - End Time 2025-04-14 14:43:05 [2025-04-14 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906928', 'tblTempUsageDetail_20' ) start [2025-04-14 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906928', 'tblTempUsageDetail_20' ) end [2025-04-14 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906928', 'tblTempVendorCDR_20' ) start [2025-04-14 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906928', 'tblTempVendorCDR_20' ) end [2025-04-14 14:43:20] Production.INFO: ProcessCDR(1,14906928,1,1,2) [2025-04-14 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906928', 'tblTempUsageDetail_20' ) start [2025-04-14 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906928', 'tblTempUsageDetail_20' ) end [2025-04-14 14:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:43:25] Production.INFO: ==24032== Releasing lock... [2025-04-14 14:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:43:25] Production.INFO: 62 MB #Memory Used# [2025-04-14 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:44:05 [end_date_ymd] => 2025-04-14 14:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:44:05' and `end` < '2025-04-14 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-04-14 14:44:19] Production.INFO: count ==4501 [2025-04-14 14:44:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:44:05 - End Time 2025-04-14 14:44:05 [2025-04-14 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906933', 'tblTempUsageDetail_20' ) start [2025-04-14 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906933', 'tblTempUsageDetail_20' ) end [2025-04-14 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906933', 'tblTempVendorCDR_20' ) start [2025-04-14 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906933', 'tblTempVendorCDR_20' ) end [2025-04-14 14:44:21] Production.INFO: ProcessCDR(1,14906933,1,1,2) [2025-04-14 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906933', 'tblTempUsageDetail_20' ) start [2025-04-14 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906933', 'tblTempUsageDetail_20' ) end [2025-04-14 14:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:44:24] Production.INFO: ==24104== Releasing lock... [2025-04-14 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:44:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-14 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:45:05 [end_date_ymd] => 2025-04-14 14:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:45:05' and `end` < '2025-04-14 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-04-14 14:45:19] Production.INFO: count ==4479 [2025-04-14 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:45:05 - End Time 2025-04-14 14:45:05 [2025-04-14 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906938', 'tblTempUsageDetail_20' ) start [2025-04-14 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906938', 'tblTempUsageDetail_20' ) end [2025-04-14 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906938', 'tblTempVendorCDR_20' ) start [2025-04-14 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906938', 'tblTempVendorCDR_20' ) end [2025-04-14 14:45:21] Production.INFO: ProcessCDR(1,14906938,1,1,2) [2025-04-14 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906938', 'tblTempUsageDetail_20' ) start [2025-04-14 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906938', 'tblTempUsageDetail_20' ) end [2025-04-14 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:45:26] Production.INFO: ==24226== Releasing lock... [2025-04-14 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:45:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-14 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:46:05 [end_date_ymd] => 2025-04-14 14:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:46:05' and `end` < '2025-04-14 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-04-14 14:46:19] Production.INFO: count ==4455 [2025-04-14 14:46:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:46:05 - End Time 2025-04-14 14:46:05 [2025-04-14 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906943', 'tblTempUsageDetail_20' ) start [2025-04-14 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906943', 'tblTempUsageDetail_20' ) end [2025-04-14 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906943', 'tblTempVendorCDR_20' ) start [2025-04-14 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906943', 'tblTempVendorCDR_20' ) end [2025-04-14 14:46:20] Production.INFO: ProcessCDR(1,14906943,1,1,2) [2025-04-14 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906943', 'tblTempUsageDetail_20' ) start [2025-04-14 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906943', 'tblTempUsageDetail_20' ) end [2025-04-14 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:46:25] Production.INFO: ==24299== Releasing lock... [2025-04-14 14:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:46:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:47:05 [end_date_ymd] => 2025-04-14 14:47:05 [RateCDR] => 1 ) [2025-04-14 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:47:05' and `end` < '2025-04-14 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:47:19] Production.INFO: count ==4442 [2025-04-14 14:47:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:47:05 - End Time 2025-04-14 14:47:05 [2025-04-14 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906948', 'tblTempUsageDetail_20' ) start [2025-04-14 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906948', 'tblTempUsageDetail_20' ) end [2025-04-14 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906948', 'tblTempVendorCDR_20' ) start [2025-04-14 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906948', 'tblTempVendorCDR_20' ) end [2025-04-14 14:47:20] Production.INFO: ProcessCDR(1,14906948,1,1,2) [2025-04-14 14:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906948', 'tblTempUsageDetail_20' ) start [2025-04-14 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906948', 'tblTempUsageDetail_20' ) end [2025-04-14 14:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:47:25] Production.INFO: ==24369== Releasing lock... [2025-04-14 14:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:47:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:48:04 [end_date_ymd] => 2025-04-14 14:48:04 [RateCDR] => 1 ) [2025-04-14 14:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:48:04' and `end` < '2025-04-14 14:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:48:18] Production.INFO: count ==4431 [2025-04-14 14:48:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:48:04 - End Time 2025-04-14 14:48:04 [2025-04-14 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906953', 'tblTempUsageDetail_20' ) start [2025-04-14 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906953', 'tblTempUsageDetail_20' ) end [2025-04-14 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906953', 'tblTempVendorCDR_20' ) start [2025-04-14 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906953', 'tblTempVendorCDR_20' ) end [2025-04-14 14:48:20] Production.INFO: ProcessCDR(1,14906953,1,1,2) [2025-04-14 14:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906953', 'tblTempUsageDetail_20' ) start [2025-04-14 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906953', 'tblTempUsageDetail_20' ) end [2025-04-14 14:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:48:25] Production.INFO: ==24445== Releasing lock... [2025-04-14 14:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:48:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:49:05 [end_date_ymd] => 2025-04-14 14:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:49:05' and `end` < '2025-04-14 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-04-14 14:49:20] Production.INFO: count ==4443 [2025-04-14 14:49:22] Production.ERROR: pbx CDR StartTime 2025-04-14 11:49:05 - End Time 2025-04-14 14:49:05 [2025-04-14 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906958', 'tblTempUsageDetail_20' ) start [2025-04-14 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906958', 'tblTempUsageDetail_20' ) end [2025-04-14 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906958', 'tblTempVendorCDR_20' ) start [2025-04-14 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906958', 'tblTempVendorCDR_20' ) end [2025-04-14 14:49:22] Production.INFO: ProcessCDR(1,14906958,1,1,2) [2025-04-14 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906958', 'tblTempUsageDetail_20' ) start [2025-04-14 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906958', 'tblTempUsageDetail_20' ) end [2025-04-14 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:49:26] Production.INFO: ==24529== Releasing lock... [2025-04-14 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:49:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:50:05 [end_date_ymd] => 2025-04-14 14:50:05 [RateCDR] => 1 ) [2025-04-14 14: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-04-14 11:50:05' and `end` < '2025-04-14 14: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-04-14 14:50:19] Production.INFO: count ==4438 [2025-04-14 14:50:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:50:05 - End Time 2025-04-14 14:50:05 [2025-04-14 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906964', 'tblTempUsageDetail_20' ) start [2025-04-14 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906964', 'tblTempUsageDetail_20' ) end [2025-04-14 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906964', 'tblTempVendorCDR_20' ) start [2025-04-14 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906964', 'tblTempVendorCDR_20' ) end [2025-04-14 14:50:21] Production.INFO: ProcessCDR(1,14906964,1,1,2) [2025-04-14 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906964', 'tblTempUsageDetail_20' ) start [2025-04-14 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906964', 'tblTempUsageDetail_20' ) end [2025-04-14 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:50:26] Production.INFO: ==24615== Releasing lock... [2025-04-14 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:50:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:51:05 [end_date_ymd] => 2025-04-14 14:51:05 [RateCDR] => 1 ) [2025-04-14 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:51:05' and `end` < '2025-04-14 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-04-14 14:51:19] Production.INFO: count ==4401 [2025-04-14 14:51:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:51:05 - End Time 2025-04-14 14:51:05 [2025-04-14 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906969', 'tblTempUsageDetail_20' ) start [2025-04-14 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906969', 'tblTempUsageDetail_20' ) end [2025-04-14 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906969', 'tblTempVendorCDR_20' ) start [2025-04-14 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906969', 'tblTempVendorCDR_20' ) end [2025-04-14 14:51:20] Production.INFO: ProcessCDR(1,14906969,1,1,2) [2025-04-14 14:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906969', 'tblTempUsageDetail_20' ) start [2025-04-14 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906969', 'tblTempUsageDetail_20' ) end [2025-04-14 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:51:24] Production.INFO: ==24705== Releasing lock... [2025-04-14 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:51:24] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:52:05 [end_date_ymd] => 2025-04-14 14:52:05 [RateCDR] => 1 ) [2025-04-14 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:52:05' and `end` < '2025-04-14 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:52:19] Production.INFO: count ==4414 [2025-04-14 14:52:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:52:05 - End Time 2025-04-14 14:52:05 [2025-04-14 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906974', 'tblTempUsageDetail_20' ) start [2025-04-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906974', 'tblTempUsageDetail_20' ) end [2025-04-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906974', 'tblTempVendorCDR_20' ) start [2025-04-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906974', 'tblTempVendorCDR_20' ) end [2025-04-14 14:52:21] Production.INFO: ProcessCDR(1,14906974,1,1,2) [2025-04-14 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906974', 'tblTempUsageDetail_20' ) start [2025-04-14 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906974', 'tblTempUsageDetail_20' ) end [2025-04-14 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:52:26] Production.INFO: ==24790== Releasing lock... [2025-04-14 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:52:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:53:04 [end_date_ymd] => 2025-04-14 14:53:04 [RateCDR] => 1 ) [2025-04-14 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:53:04' and `end` < '2025-04-14 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:53:18] Production.INFO: count ==4407 [2025-04-14 14:53:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:53:04 - End Time 2025-04-14 14:53:04 [2025-04-14 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906979', 'tblTempUsageDetail_20' ) start [2025-04-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906979', 'tblTempUsageDetail_20' ) end [2025-04-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906979', 'tblTempVendorCDR_20' ) start [2025-04-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906979', 'tblTempVendorCDR_20' ) end [2025-04-14 14:53:20] Production.INFO: ProcessCDR(1,14906979,1,1,2) [2025-04-14 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906979', 'tblTempUsageDetail_20' ) start [2025-04-14 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906979', 'tblTempUsageDetail_20' ) end [2025-04-14 14:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:53:25] Production.INFO: ==24875== Releasing lock... [2025-04-14 14:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:53:25] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:54:05 [end_date_ymd] => 2025-04-14 14:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:54:05' and `end` < '2025-04-14 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-04-14 14:54:19] Production.INFO: count ==4405 [2025-04-14 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:54:05 - End Time 2025-04-14 14:54:05 [2025-04-14 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906984', 'tblTempUsageDetail_20' ) start [2025-04-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906984', 'tblTempUsageDetail_20' ) end [2025-04-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906984', 'tblTempVendorCDR_20' ) start [2025-04-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906984', 'tblTempVendorCDR_20' ) end [2025-04-14 14:54:21] Production.INFO: ProcessCDR(1,14906984,1,1,2) [2025-04-14 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906984', 'tblTempUsageDetail_20' ) start [2025-04-14 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906984', 'tblTempUsageDetail_20' ) end [2025-04-14 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:54:26] Production.INFO: ==24947== Releasing lock... [2025-04-14 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:54:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:55:04 [end_date_ymd] => 2025-04-14 14:55:04 [RateCDR] => 1 ) [2025-04-14 14:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:55:04' and `end` < '2025-04-14 14:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:55:18] Production.INFO: count ==4405 [2025-04-14 14:55:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:55:04 - End Time 2025-04-14 14:55:04 [2025-04-14 14:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906989', 'tblTempUsageDetail_20' ) start [2025-04-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906989', 'tblTempUsageDetail_20' ) end [2025-04-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906989', 'tblTempVendorCDR_20' ) start [2025-04-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906989', 'tblTempVendorCDR_20' ) end [2025-04-14 14:55:20] Production.INFO: ProcessCDR(1,14906989,1,1,2) [2025-04-14 14:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906989', 'tblTempUsageDetail_20' ) start [2025-04-14 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906989', 'tblTempUsageDetail_20' ) end [2025-04-14 14:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:55:25] Production.INFO: ==25019== Releasing lock... [2025-04-14 14:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:55:25] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:56:05 [end_date_ymd] => 2025-04-14 14:56:05 [RateCDR] => 1 ) [2025-04-14 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:56:05' and `end` < '2025-04-14 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:56:19] Production.INFO: count ==4402 [2025-04-14 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:56:05 - End Time 2025-04-14 14:56:05 [2025-04-14 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906994', 'tblTempUsageDetail_20' ) start [2025-04-14 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906994', 'tblTempUsageDetail_20' ) end [2025-04-14 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906994', 'tblTempVendorCDR_20' ) start [2025-04-14 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906994', 'tblTempVendorCDR_20' ) end [2025-04-14 14:56:21] Production.INFO: ProcessCDR(1,14906994,1,1,2) [2025-04-14 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906994', 'tblTempUsageDetail_20' ) start [2025-04-14 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906994', 'tblTempUsageDetail_20' ) end [2025-04-14 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:56:26] Production.INFO: ==25094== Releasing lock... [2025-04-14 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:56:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:57:06 [end_date_ymd] => 2025-04-14 14:57:06 [RateCDR] => 1 ) [2025-04-14 14: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-04-14 11:57:06' and `end` < '2025-04-14 14: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-04-14 14:57:20] Production.INFO: count ==4399 [2025-04-14 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:57:06 - End Time 2025-04-14 14:57:06 [2025-04-14 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906999', 'tblTempUsageDetail_20' ) start [2025-04-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14906999', 'tblTempUsageDetail_20' ) end [2025-04-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906999', 'tblTempVendorCDR_20' ) start [2025-04-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14906999', 'tblTempVendorCDR_20' ) end [2025-04-14 14:57:21] Production.INFO: ProcessCDR(1,14906999,1,1,2) [2025-04-14 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14906999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14906999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14906999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14906999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906999', 'tblTempUsageDetail_20' ) start [2025-04-14 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14906999', 'tblTempUsageDetail_20' ) end [2025-04-14 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:57:26] Production.INFO: ==25176== Releasing lock... [2025-04-14 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:57:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:58:04 [end_date_ymd] => 2025-04-14 14:58:04 [RateCDR] => 1 ) [2025-04-14 14:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 11:58:04' and `end` < '2025-04-14 14:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 14:58:19] Production.INFO: count ==4396 [2025-04-14 14:58:20] Production.ERROR: pbx CDR StartTime 2025-04-14 11:58:04 - End Time 2025-04-14 14:58:04 [2025-04-14 14:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907004', 'tblTempUsageDetail_20' ) start [2025-04-14 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907004', 'tblTempUsageDetail_20' ) end [2025-04-14 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907004', 'tblTempVendorCDR_20' ) start [2025-04-14 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907004', 'tblTempVendorCDR_20' ) end [2025-04-14 14:58:20] Production.INFO: ProcessCDR(1,14907004,1,1,2) [2025-04-14 14:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907004', 'tblTempUsageDetail_20' ) start [2025-04-14 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907004', 'tblTempUsageDetail_20' ) end [2025-04-14 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:58:26] Production.INFO: ==25251== Releasing lock... [2025-04-14 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:58:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 11:59:05 [end_date_ymd] => 2025-04-14 14:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 11:59:05' and `end` < '2025-04-14 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-04-14 14:59:19] Production.INFO: count ==4399 [2025-04-14 14:59:21] Production.ERROR: pbx CDR StartTime 2025-04-14 11:59:05 - End Time 2025-04-14 14:59:05 [2025-04-14 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907009', 'tblTempUsageDetail_20' ) start [2025-04-14 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907009', 'tblTempUsageDetail_20' ) end [2025-04-14 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907009', 'tblTempVendorCDR_20' ) start [2025-04-14 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907009', 'tblTempVendorCDR_20' ) end [2025-04-14 14:59:21] Production.INFO: ProcessCDR(1,14907009,1,1,2) [2025-04-14 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907009', 'tblTempUsageDetail_20' ) start [2025-04-14 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907009', 'tblTempUsageDetail_20' ) end [2025-04-14 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 14:59:26] Production.INFO: ==25329== Releasing lock... [2025-04-14 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 14:59:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:00:06 [end_date_ymd] => 2025-04-14 15:00:06 [RateCDR] => 1 ) [2025-04-14 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:00:06' and `end` < '2025-04-14 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:00:20] Production.INFO: count ==4408 [2025-04-14 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-14 12:00:06 - End Time 2025-04-14 15:00:06 [2025-04-14 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907015', 'tblTempUsageDetail_20' ) start [2025-04-14 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907015', 'tblTempUsageDetail_20' ) end [2025-04-14 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907015', 'tblTempVendorCDR_20' ) start [2025-04-14 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907015', 'tblTempVendorCDR_20' ) end [2025-04-14 15:00:22] Production.INFO: ProcessCDR(1,14907015,1,1,2) [2025-04-14 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907015', 'tblTempUsageDetail_20' ) start [2025-04-14 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907015', 'tblTempUsageDetail_20' ) end [2025-04-14 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:00:27] Production.INFO: ==25440== Releasing lock... [2025-04-14 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:00:27] Production.INFO: 61 MB #Memory Used# [2025-04-14 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:01:06 [end_date_ymd] => 2025-04-14 15:01:06 [RateCDR] => 1 ) [2025-04-14 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:01:06' and `end` < '2025-04-14 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:01:19] Production.INFO: count ==4391 [2025-04-14 15:01:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:01:06 - End Time 2025-04-14 15:01:06 [2025-04-14 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907020', 'tblTempUsageDetail_20' ) start [2025-04-14 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907020', 'tblTempUsageDetail_20' ) end [2025-04-14 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907020', 'tblTempVendorCDR_20' ) start [2025-04-14 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907020', 'tblTempVendorCDR_20' ) end [2025-04-14 15:01:21] Production.INFO: ProcessCDR(1,14907020,1,1,2) [2025-04-14 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907020', 'tblTempUsageDetail_20' ) start [2025-04-14 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907020', 'tblTempUsageDetail_20' ) end [2025-04-14 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:01:26] Production.INFO: ==25529== Releasing lock... [2025-04-14 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:01:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:02:05 [end_date_ymd] => 2025-04-14 15:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:02:05' and `end` < '2025-04-14 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-04-14 15:02:19] Production.INFO: count ==4375 [2025-04-14 15:02:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:02:05 - End Time 2025-04-14 15:02:05 [2025-04-14 15:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907025', 'tblTempUsageDetail_20' ) start [2025-04-14 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907025', 'tblTempUsageDetail_20' ) end [2025-04-14 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907025', 'tblTempVendorCDR_20' ) start [2025-04-14 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907025', 'tblTempVendorCDR_20' ) end [2025-04-14 15:02:21] Production.INFO: ProcessCDR(1,14907025,1,1,2) [2025-04-14 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907025', 'tblTempUsageDetail_20' ) start [2025-04-14 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907025', 'tblTempUsageDetail_20' ) end [2025-04-14 15:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:02:26] Production.INFO: ==25679== Releasing lock... [2025-04-14 15:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:02:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:03:05 [end_date_ymd] => 2025-04-14 15:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:03:05' and `end` < '2025-04-14 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-04-14 15:03:19] Production.INFO: count ==4356 [2025-04-14 15:03:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:03:05 - End Time 2025-04-14 15:03:05 [2025-04-14 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907030', 'tblTempUsageDetail_20' ) start [2025-04-14 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907030', 'tblTempUsageDetail_20' ) end [2025-04-14 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907030', 'tblTempVendorCDR_20' ) start [2025-04-14 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907030', 'tblTempVendorCDR_20' ) end [2025-04-14 15:03:20] Production.INFO: ProcessCDR(1,14907030,1,1,2) [2025-04-14 15:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907030', 'tblTempUsageDetail_20' ) start [2025-04-14 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907030', 'tblTempUsageDetail_20' ) end [2025-04-14 15:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:03:25] Production.INFO: ==25752== Releasing lock... [2025-04-14 15:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:03:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-14 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:04:05 [end_date_ymd] => 2025-04-14 15:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:04:05' and `end` < '2025-04-14 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-04-14 15:04:19] Production.INFO: count ==4375 [2025-04-14 15:04:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:04:05 - End Time 2025-04-14 15:04:05 [2025-04-14 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907035', 'tblTempUsageDetail_20' ) start [2025-04-14 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907035', 'tblTempUsageDetail_20' ) end [2025-04-14 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907035', 'tblTempVendorCDR_20' ) start [2025-04-14 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907035', 'tblTempVendorCDR_20' ) end [2025-04-14 15:04:20] Production.INFO: ProcessCDR(1,14907035,1,1,2) [2025-04-14 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907035', 'tblTempUsageDetail_20' ) start [2025-04-14 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907035', 'tblTempUsageDetail_20' ) end [2025-04-14 15:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:04:25] Production.INFO: ==25832== Releasing lock... [2025-04-14 15:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:04:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:05:05 [end_date_ymd] => 2025-04-14 15:05:05 [RateCDR] => 1 ) [2025-04-14 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:05:05' and `end` < '2025-04-14 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:05:20] Production.INFO: count ==4386 [2025-04-14 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:05:05 - End Time 2025-04-14 15:05:05 [2025-04-14 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907040', 'tblTempUsageDetail_20' ) start [2025-04-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907040', 'tblTempUsageDetail_20' ) end [2025-04-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907040', 'tblTempVendorCDR_20' ) start [2025-04-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907040', 'tblTempVendorCDR_20' ) end [2025-04-14 15:05:21] Production.INFO: ProcessCDR(1,14907040,1,1,2) [2025-04-14 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907040', 'tblTempUsageDetail_20' ) start [2025-04-14 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907040', 'tblTempUsageDetail_20' ) end [2025-04-14 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:05:26] Production.INFO: ==25986== Releasing lock... [2025-04-14 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:05:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:06:05 [end_date_ymd] => 2025-04-14 15:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:06:05' and `end` < '2025-04-14 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-04-14 15:06:19] Production.INFO: count ==4390 [2025-04-14 15:06:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:06:05 - End Time 2025-04-14 15:06:05 [2025-04-14 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907045', 'tblTempUsageDetail_20' ) start [2025-04-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907045', 'tblTempUsageDetail_20' ) end [2025-04-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907045', 'tblTempVendorCDR_20' ) start [2025-04-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907045', 'tblTempVendorCDR_20' ) end [2025-04-14 15:06:21] Production.INFO: ProcessCDR(1,14907045,1,1,2) [2025-04-14 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907045', 'tblTempUsageDetail_20' ) start [2025-04-14 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907045', 'tblTempUsageDetail_20' ) end [2025-04-14 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:06:26] Production.INFO: ==26056== Releasing lock... [2025-04-14 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:06:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:07:05 [end_date_ymd] => 2025-04-14 15:07:05 [RateCDR] => 1 ) [2025-04-14 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:07:05' and `end` < '2025-04-14 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:07:19] Production.INFO: count ==4418 [2025-04-14 15:07:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:07:05 - End Time 2025-04-14 15:07:05 [2025-04-14 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907050', 'tblTempUsageDetail_20' ) start [2025-04-14 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907050', 'tblTempUsageDetail_20' ) end [2025-04-14 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907050', 'tblTempVendorCDR_20' ) start [2025-04-14 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907050', 'tblTempVendorCDR_20' ) end [2025-04-14 15:07:20] Production.INFO: ProcessCDR(1,14907050,1,1,2) [2025-04-14 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907050', 'tblTempUsageDetail_20' ) start [2025-04-14 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907050', 'tblTempUsageDetail_20' ) end [2025-04-14 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:07:26] Production.INFO: ==26133== Releasing lock... [2025-04-14 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:07:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:08:05 [end_date_ymd] => 2025-04-14 15:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:08:05' and `end` < '2025-04-14 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-04-14 15:08:19] Production.INFO: count ==4433 [2025-04-14 15:08:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:08:05 - End Time 2025-04-14 15:08:05 [2025-04-14 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907055', 'tblTempUsageDetail_20' ) start [2025-04-14 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907055', 'tblTempUsageDetail_20' ) end [2025-04-14 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907055', 'tblTempVendorCDR_20' ) start [2025-04-14 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907055', 'tblTempVendorCDR_20' ) end [2025-04-14 15:08:21] Production.INFO: ProcessCDR(1,14907055,1,1,2) [2025-04-14 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907055', 'tblTempUsageDetail_20' ) start [2025-04-14 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907055', 'tblTempUsageDetail_20' ) end [2025-04-14 15:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:08:25] Production.INFO: ==26284== Releasing lock... [2025-04-14 15:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:08:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:09:05 [end_date_ymd] => 2025-04-14 15:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:09:05' and `end` < '2025-04-14 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-04-14 15:09:19] Production.INFO: count ==4446 [2025-04-14 15:09:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:09:05 - End Time 2025-04-14 15:09:05 [2025-04-14 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907060', 'tblTempUsageDetail_20' ) start [2025-04-14 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907060', 'tblTempUsageDetail_20' ) end [2025-04-14 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907060', 'tblTempVendorCDR_20' ) start [2025-04-14 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907060', 'tblTempVendorCDR_20' ) end [2025-04-14 15:09:20] Production.INFO: ProcessCDR(1,14907060,1,1,2) [2025-04-14 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907060', 'tblTempUsageDetail_20' ) start [2025-04-14 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907060', 'tblTempUsageDetail_20' ) end [2025-04-14 15:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:09:25] Production.INFO: ==26356== Releasing lock... [2025-04-14 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:09:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:10:06 [end_date_ymd] => 2025-04-14 15:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:10:06' and `end` < '2025-04-14 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-04-14 15:10:20] Production.INFO: count ==4500 [2025-04-14 15:10:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:10:06 - End Time 2025-04-14 15:10:06 [2025-04-14 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907066', 'tblTempUsageDetail_20' ) start [2025-04-14 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907066', 'tblTempUsageDetail_20' ) end [2025-04-14 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907066', 'tblTempVendorCDR_20' ) start [2025-04-14 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907066', 'tblTempVendorCDR_20' ) end [2025-04-14 15:10:22] Production.INFO: ProcessCDR(1,14907066,1,1,2) [2025-04-14 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907066', 'tblTempUsageDetail_20' ) start [2025-04-14 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907066', 'tblTempUsageDetail_20' ) end [2025-04-14 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:10:27] Production.INFO: ==26431== Releasing lock... [2025-04-14 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:10:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-14 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:11:04 [end_date_ymd] => 2025-04-14 15:11:04 [RateCDR] => 1 ) [2025-04-14 15: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-04-14 12:11:04' and `end` < '2025-04-14 15: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-04-14 15:11:18] Production.INFO: count ==4559 [2025-04-14 15:11:19] Production.ERROR: pbx CDR StartTime 2025-04-14 12:11:04 - End Time 2025-04-14 15:11:04 [2025-04-14 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907071', 'tblTempUsageDetail_20' ) start [2025-04-14 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907071', 'tblTempUsageDetail_20' ) end [2025-04-14 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907071', 'tblTempVendorCDR_20' ) start [2025-04-14 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907071', 'tblTempVendorCDR_20' ) end [2025-04-14 15:11:20] Production.INFO: ProcessCDR(1,14907071,1,1,2) [2025-04-14 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907071', 'tblTempUsageDetail_20' ) start [2025-04-14 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907071', 'tblTempUsageDetail_20' ) end [2025-04-14 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:11:24] Production.INFO: ==26507== Releasing lock... [2025-04-14 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:11:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:12:05 [end_date_ymd] => 2025-04-14 15:12:05 [RateCDR] => 1 ) [2025-04-14 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:12:05' and `end` < '2025-04-14 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:12:19] Production.INFO: count ==4597 [2025-04-14 15:12:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:12:05 - End Time 2025-04-14 15:12:05 [2025-04-14 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907076', 'tblTempUsageDetail_20' ) start [2025-04-14 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907076', 'tblTempUsageDetail_20' ) end [2025-04-14 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907076', 'tblTempVendorCDR_20' ) start [2025-04-14 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907076', 'tblTempVendorCDR_20' ) end [2025-04-14 15:12:21] Production.INFO: ProcessCDR(1,14907076,1,1,2) [2025-04-14 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907076', 'tblTempUsageDetail_20' ) start [2025-04-14 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907076', 'tblTempUsageDetail_20' ) end [2025-04-14 15:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:12:25] Production.INFO: ==26664== Releasing lock... [2025-04-14 15:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:12:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:13:05 [end_date_ymd] => 2025-04-14 15:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:13:05' and `end` < '2025-04-14 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-04-14 15:13:19] Production.INFO: count ==4624 [2025-04-14 15:13:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:13:05 - End Time 2025-04-14 15:13:05 [2025-04-14 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907081', 'tblTempUsageDetail_20' ) start [2025-04-14 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907081', 'tblTempUsageDetail_20' ) end [2025-04-14 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907081', 'tblTempVendorCDR_20' ) start [2025-04-14 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907081', 'tblTempVendorCDR_20' ) end [2025-04-14 15:13:20] Production.INFO: ProcessCDR(1,14907081,1,1,2) [2025-04-14 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907081', 'tblTempUsageDetail_20' ) start [2025-04-14 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907081', 'tblTempUsageDetail_20' ) end [2025-04-14 15:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:13:25] Production.INFO: ==26738== Releasing lock... [2025-04-14 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:13:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:14:05 [end_date_ymd] => 2025-04-14 15:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:14:05' and `end` < '2025-04-14 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-04-14 15:14:19] Production.INFO: count ==4629 [2025-04-14 15:14:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:14:05 - End Time 2025-04-14 15:14:05 [2025-04-14 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907086', 'tblTempUsageDetail_20' ) start [2025-04-14 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907086', 'tblTempUsageDetail_20' ) end [2025-04-14 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907086', 'tblTempVendorCDR_20' ) start [2025-04-14 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907086', 'tblTempVendorCDR_20' ) end [2025-04-14 15:14:21] Production.INFO: ProcessCDR(1,14907086,1,1,2) [2025-04-14 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907086', 'tblTempUsageDetail_20' ) start [2025-04-14 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907086', 'tblTempUsageDetail_20' ) end [2025-04-14 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:14:25] Production.INFO: ==26812== Releasing lock... [2025-04-14 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:14:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:15:05 [end_date_ymd] => 2025-04-14 15:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:15:05' and `end` < '2025-04-14 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-04-14 15:15:18] Production.INFO: count ==4621 [2025-04-14 15:15:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:15:05 - End Time 2025-04-14 15:15:05 [2025-04-14 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907091', 'tblTempUsageDetail_20' ) start [2025-04-14 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907091', 'tblTempUsageDetail_20' ) end [2025-04-14 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907091', 'tblTempVendorCDR_20' ) start [2025-04-14 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907091', 'tblTempVendorCDR_20' ) end [2025-04-14 15:15:20] Production.INFO: ProcessCDR(1,14907091,1,1,2) [2025-04-14 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907091', 'tblTempUsageDetail_20' ) start [2025-04-14 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907091', 'tblTempUsageDetail_20' ) end [2025-04-14 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:15:26] Production.INFO: ==26961== Releasing lock... [2025-04-14 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:15:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:16:04 [end_date_ymd] => 2025-04-14 15:16:04 [RateCDR] => 1 ) [2025-04-14 15:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:16:04' and `end` < '2025-04-14 15:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:16:18] Production.INFO: count ==4617 [2025-04-14 15:16:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:16:04 - End Time 2025-04-14 15:16:04 [2025-04-14 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907096', 'tblTempUsageDetail_20' ) start [2025-04-14 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907096', 'tblTempUsageDetail_20' ) end [2025-04-14 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907096', 'tblTempVendorCDR_20' ) start [2025-04-14 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907096', 'tblTempVendorCDR_20' ) end [2025-04-14 15:16:20] Production.INFO: ProcessCDR(1,14907096,1,1,2) [2025-04-14 15:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907096', 'tblTempUsageDetail_20' ) start [2025-04-14 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907096', 'tblTempUsageDetail_20' ) end [2025-04-14 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:16:25] Production.INFO: ==27073== Releasing lock... [2025-04-14 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:16:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:17:05 [end_date_ymd] => 2025-04-14 15:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:17:05' and `end` < '2025-04-14 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-04-14 15:17:19] Production.INFO: count ==4618 [2025-04-14 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:17:05 - End Time 2025-04-14 15:17:05 [2025-04-14 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907101', 'tblTempUsageDetail_20' ) start [2025-04-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907101', 'tblTempUsageDetail_20' ) end [2025-04-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907101', 'tblTempVendorCDR_20' ) start [2025-04-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907101', 'tblTempVendorCDR_20' ) end [2025-04-14 15:17:21] Production.INFO: ProcessCDR(1,14907101,1,1,2) [2025-04-14 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907101', 'tblTempUsageDetail_20' ) start [2025-04-14 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907101', 'tblTempUsageDetail_20' ) end [2025-04-14 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:17:26] Production.INFO: ==27149== Releasing lock... [2025-04-14 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:17:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:18:05 [end_date_ymd] => 2025-04-14 15:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:18:05' and `end` < '2025-04-14 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-04-14 15:18:19] Production.INFO: count ==4608 [2025-04-14 15:18:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:18:05 - End Time 2025-04-14 15:18:05 [2025-04-14 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907106', 'tblTempUsageDetail_20' ) start [2025-04-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907106', 'tblTempUsageDetail_20' ) end [2025-04-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907106', 'tblTempVendorCDR_20' ) start [2025-04-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907106', 'tblTempVendorCDR_20' ) end [2025-04-14 15:18:21] Production.INFO: ProcessCDR(1,14907106,1,1,2) [2025-04-14 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907106', 'tblTempUsageDetail_20' ) start [2025-04-14 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907106', 'tblTempUsageDetail_20' ) end [2025-04-14 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:18:26] Production.INFO: ==27222== Releasing lock... [2025-04-14 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:18:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:19:04 [end_date_ymd] => 2025-04-14 15:19:04 [RateCDR] => 1 ) [2025-04-14 15:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:19:04' and `end` < '2025-04-14 15:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:19:19] Production.INFO: count ==4602 [2025-04-14 15:19:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:19:04 - End Time 2025-04-14 15:19:04 [2025-04-14 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907111', 'tblTempUsageDetail_20' ) start [2025-04-14 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907111', 'tblTempUsageDetail_20' ) end [2025-04-14 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907111', 'tblTempVendorCDR_20' ) start [2025-04-14 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907111', 'tblTempVendorCDR_20' ) end [2025-04-14 15:19:20] Production.INFO: ProcessCDR(1,14907111,1,1,2) [2025-04-14 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907111', 'tblTempUsageDetail_20' ) start [2025-04-14 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907111', 'tblTempUsageDetail_20' ) end [2025-04-14 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:19:25] Production.INFO: ==27301== Releasing lock... [2025-04-14 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:19:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:20:06 [end_date_ymd] => 2025-04-14 15:20:06 [RateCDR] => 1 ) [2025-04-14 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:20:06' and `end` < '2025-04-14 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:20:20] Production.INFO: count ==4605 [2025-04-14 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-14 12:20:06 - End Time 2025-04-14 15:20:06 [2025-04-14 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907117', 'tblTempUsageDetail_20' ) start [2025-04-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907117', 'tblTempUsageDetail_20' ) end [2025-04-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907117', 'tblTempVendorCDR_20' ) start [2025-04-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907117', 'tblTempVendorCDR_20' ) end [2025-04-14 15:20:22] Production.INFO: ProcessCDR(1,14907117,1,1,2) [2025-04-14 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907117', 'tblTempUsageDetail_20' ) start [2025-04-14 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907117', 'tblTempUsageDetail_20' ) end [2025-04-14 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:20:27] Production.INFO: ==27377== Releasing lock... [2025-04-14 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:20:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:21:04 [end_date_ymd] => 2025-04-14 15:21:04 [RateCDR] => 1 ) [2025-04-14 15: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-04-14 12:21:04' and `end` < '2025-04-14 15: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-04-14 15:21:18] Production.INFO: count ==4604 [2025-04-14 15:21:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:21:04 - End Time 2025-04-14 15:21:04 [2025-04-14 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907122', 'tblTempUsageDetail_20' ) start [2025-04-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907122', 'tblTempUsageDetail_20' ) end [2025-04-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907122', 'tblTempVendorCDR_20' ) start [2025-04-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907122', 'tblTempVendorCDR_20' ) end [2025-04-14 15:21:20] Production.INFO: ProcessCDR(1,14907122,1,1,2) [2025-04-14 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907122', 'tblTempUsageDetail_20' ) start [2025-04-14 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907122', 'tblTempUsageDetail_20' ) end [2025-04-14 15:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:21:23] Production.INFO: ==27448== Releasing lock... [2025-04-14 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:21:23] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:22:05 [end_date_ymd] => 2025-04-14 15:22:05 [RateCDR] => 1 ) [2025-04-14 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:22:05' and `end` < '2025-04-14 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:22:18] Production.INFO: count ==4678 [2025-04-14 15:22:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:22:05 - End Time 2025-04-14 15:22:05 [2025-04-14 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907127', 'tblTempUsageDetail_20' ) start [2025-04-14 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907127', 'tblTempUsageDetail_20' ) end [2025-04-14 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907127', 'tblTempVendorCDR_20' ) start [2025-04-14 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907127', 'tblTempVendorCDR_20' ) end [2025-04-14 15:22:20] Production.INFO: ProcessCDR(1,14907127,1,1,2) [2025-04-14 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907127', 'tblTempUsageDetail_20' ) start [2025-04-14 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907127', 'tblTempUsageDetail_20' ) end [2025-04-14 15:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:22:25] Production.INFO: ==27525== Releasing lock... [2025-04-14 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:22:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:23:05 [end_date_ymd] => 2025-04-14 15:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:23:05' and `end` < '2025-04-14 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-04-14 15:23:19] Production.INFO: count ==4686 [2025-04-14 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:23:05 - End Time 2025-04-14 15:23:05 [2025-04-14 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907132', 'tblTempUsageDetail_20' ) start [2025-04-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907132', 'tblTempUsageDetail_20' ) end [2025-04-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907132', 'tblTempVendorCDR_20' ) start [2025-04-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907132', 'tblTempVendorCDR_20' ) end [2025-04-14 15:23:21] Production.INFO: ProcessCDR(1,14907132,1,1,2) [2025-04-14 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907132', 'tblTempUsageDetail_20' ) start [2025-04-14 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907132', 'tblTempUsageDetail_20' ) end [2025-04-14 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:23:26] Production.INFO: ==27596== Releasing lock... [2025-04-14 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:23:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:24:05 [end_date_ymd] => 2025-04-14 15:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:24:05' and `end` < '2025-04-14 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-04-14 15:24:18] Production.INFO: count ==4680 [2025-04-14 15:24:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:24:05 - End Time 2025-04-14 15:24:05 [2025-04-14 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907137', 'tblTempUsageDetail_20' ) start [2025-04-14 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907137', 'tblTempUsageDetail_20' ) end [2025-04-14 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907137', 'tblTempVendorCDR_20' ) start [2025-04-14 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907137', 'tblTempVendorCDR_20' ) end [2025-04-14 15:24:20] Production.INFO: ProcessCDR(1,14907137,1,1,2) [2025-04-14 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907137', 'tblTempUsageDetail_20' ) start [2025-04-14 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907137', 'tblTempUsageDetail_20' ) end [2025-04-14 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:24:25] Production.INFO: ==27671== Releasing lock... [2025-04-14 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:24:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:25:05 [end_date_ymd] => 2025-04-14 15:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:25:05' and `end` < '2025-04-14 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-04-14 15:25:20] Production.INFO: count ==4686 [2025-04-14 15:25:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:25:05 - End Time 2025-04-14 15:25:05 [2025-04-14 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907142', 'tblTempUsageDetail_20' ) start [2025-04-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907142', 'tblTempUsageDetail_20' ) end [2025-04-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907142', 'tblTempVendorCDR_20' ) start [2025-04-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907142', 'tblTempVendorCDR_20' ) end [2025-04-14 15:25:21] Production.INFO: ProcessCDR(1,14907142,1,1,2) [2025-04-14 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907142', 'tblTempUsageDetail_20' ) start [2025-04-14 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907142', 'tblTempUsageDetail_20' ) end [2025-04-14 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:25:26] Production.INFO: ==27740== Releasing lock... [2025-04-14 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:25:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:26:05 [end_date_ymd] => 2025-04-14 15:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:26:05' and `end` < '2025-04-14 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-04-14 15:26:19] Production.INFO: count ==4700 [2025-04-14 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:26:05 - End Time 2025-04-14 15:26:05 [2025-04-14 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907147', 'tblTempUsageDetail_20' ) start [2025-04-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907147', 'tblTempUsageDetail_20' ) end [2025-04-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907147', 'tblTempVendorCDR_20' ) start [2025-04-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907147', 'tblTempVendorCDR_20' ) end [2025-04-14 15:26:21] Production.INFO: ProcessCDR(1,14907147,1,1,2) [2025-04-14 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907147', 'tblTempUsageDetail_20' ) start [2025-04-14 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907147', 'tblTempUsageDetail_20' ) end [2025-04-14 15:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:26:25] Production.INFO: ==27818== Releasing lock... [2025-04-14 15:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:26:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-14 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:27:05 [end_date_ymd] => 2025-04-14 15:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:27:05' and `end` < '2025-04-14 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-04-14 15:27:19] Production.INFO: count ==4701 [2025-04-14 15:27:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:27:05 - End Time 2025-04-14 15:27:05 [2025-04-14 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907152', 'tblTempUsageDetail_20' ) start [2025-04-14 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907152', 'tblTempUsageDetail_20' ) end [2025-04-14 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907152', 'tblTempVendorCDR_20' ) start [2025-04-14 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907152', 'tblTempVendorCDR_20' ) end [2025-04-14 15:27:21] Production.INFO: ProcessCDR(1,14907152,1,1,2) [2025-04-14 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907152', 'tblTempUsageDetail_20' ) start [2025-04-14 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907152', 'tblTempUsageDetail_20' ) end [2025-04-14 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:27:25] Production.INFO: ==27891== Releasing lock... [2025-04-14 15:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:27:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-14 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:28:05 [end_date_ymd] => 2025-04-14 15:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:28:05' and `end` < '2025-04-14 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-04-14 15:28:19] Production.INFO: count ==4779 [2025-04-14 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:28:05 - End Time 2025-04-14 15:28:05 [2025-04-14 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907157', 'tblTempUsageDetail_20' ) start [2025-04-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907157', 'tblTempUsageDetail_20' ) end [2025-04-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907157', 'tblTempVendorCDR_20' ) start [2025-04-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907157', 'tblTempVendorCDR_20' ) end [2025-04-14 15:28:21] Production.INFO: ProcessCDR(1,14907157,1,1,2) [2025-04-14 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907157', 'tblTempUsageDetail_20' ) start [2025-04-14 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907157', 'tblTempUsageDetail_20' ) end [2025-04-14 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:28:26] Production.INFO: ==27969== Releasing lock... [2025-04-14 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:28:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:29:05 [end_date_ymd] => 2025-04-14 15:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:29:05' and `end` < '2025-04-14 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-04-14 15:29:19] Production.INFO: count ==4777 [2025-04-14 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:29:05 - End Time 2025-04-14 15:29:05 [2025-04-14 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907162', 'tblTempUsageDetail_20' ) start [2025-04-14 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907162', 'tblTempUsageDetail_20' ) end [2025-04-14 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907162', 'tblTempVendorCDR_20' ) start [2025-04-14 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907162', 'tblTempVendorCDR_20' ) end [2025-04-14 15:29:21] Production.INFO: ProcessCDR(1,14907162,1,1,2) [2025-04-14 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907162', 'tblTempUsageDetail_20' ) start [2025-04-14 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907162', 'tblTempUsageDetail_20' ) end [2025-04-14 15:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:29:26] Production.INFO: ==28040== Releasing lock... [2025-04-14 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:29:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:30:06 [end_date_ymd] => 2025-04-14 15:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:30:06' and `end` < '2025-04-14 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-04-14 15:30:20] Production.INFO: count ==4780 [2025-04-14 15:30:22] Production.ERROR: pbx CDR StartTime 2025-04-14 12:30:06 - End Time 2025-04-14 15:30:06 [2025-04-14 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907167', 'tblTempUsageDetail_20' ) start [2025-04-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907167', 'tblTempUsageDetail_20' ) end [2025-04-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907167', 'tblTempVendorCDR_20' ) start [2025-04-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907167', 'tblTempVendorCDR_20' ) end [2025-04-14 15:30:22] Production.INFO: ProcessCDR(1,14907167,1,1,2) [2025-04-14 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907167', 'tblTempUsageDetail_20' ) start [2025-04-14 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907167', 'tblTempUsageDetail_20' ) end [2025-04-14 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:30:27] Production.INFO: ==28119== Releasing lock... [2025-04-14 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:30:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:31:05 [end_date_ymd] => 2025-04-14 15:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:31:05' and `end` < '2025-04-14 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-04-14 15:31:19] Production.INFO: count ==4808 [2025-04-14 15:31:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:31:05 - End Time 2025-04-14 15:31:05 [2025-04-14 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907173', 'tblTempUsageDetail_20' ) start [2025-04-14 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907173', 'tblTempUsageDetail_20' ) end [2025-04-14 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907173', 'tblTempVendorCDR_20' ) start [2025-04-14 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907173', 'tblTempVendorCDR_20' ) end [2025-04-14 15:31:21] Production.INFO: ProcessCDR(1,14907173,1,1,2) [2025-04-14 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907173', 'tblTempUsageDetail_20' ) start [2025-04-14 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907173', 'tblTempUsageDetail_20' ) end [2025-04-14 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:31:26] Production.INFO: ==28229== Releasing lock... [2025-04-14 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:31:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:32:05 [end_date_ymd] => 2025-04-14 15:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:32:05' and `end` < '2025-04-14 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-04-14 15:32:19] Production.INFO: count ==4810 [2025-04-14 15:32:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:32:05 - End Time 2025-04-14 15:32:05 [2025-04-14 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907178', 'tblTempUsageDetail_20' ) start [2025-04-14 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907178', 'tblTempUsageDetail_20' ) end [2025-04-14 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907178', 'tblTempVendorCDR_20' ) start [2025-04-14 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907178', 'tblTempVendorCDR_20' ) end [2025-04-14 15:32:20] Production.INFO: ProcessCDR(1,14907178,1,1,2) [2025-04-14 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907178', 'tblTempUsageDetail_20' ) start [2025-04-14 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907178', 'tblTempUsageDetail_20' ) end [2025-04-14 15:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:32:25] Production.INFO: ==28302== Releasing lock... [2025-04-14 15:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:32:25] Production.INFO: 64 MB #Memory Used# [2025-04-14 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:33:05 [end_date_ymd] => 2025-04-14 15:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:33:05' and `end` < '2025-04-14 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-04-14 15:33:19] Production.INFO: count ==4869 [2025-04-14 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:33:05 - End Time 2025-04-14 15:33:05 [2025-04-14 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907183', 'tblTempUsageDetail_20' ) start [2025-04-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907183', 'tblTempUsageDetail_20' ) end [2025-04-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907183', 'tblTempVendorCDR_20' ) start [2025-04-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907183', 'tblTempVendorCDR_20' ) end [2025-04-14 15:33:21] Production.INFO: ProcessCDR(1,14907183,1,1,2) [2025-04-14 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907183', 'tblTempUsageDetail_20' ) start [2025-04-14 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907183', 'tblTempUsageDetail_20' ) end [2025-04-14 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:33:26] Production.INFO: ==28377== Releasing lock... [2025-04-14 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:33:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:34:05 [end_date_ymd] => 2025-04-14 15:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:34:05' and `end` < '2025-04-14 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-04-14 15:34:18] Production.INFO: count ==4868 [2025-04-14 15:34:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:34:05 - End Time 2025-04-14 15:34:05 [2025-04-14 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907188', 'tblTempUsageDetail_20' ) start [2025-04-14 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907188', 'tblTempUsageDetail_20' ) end [2025-04-14 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907188', 'tblTempVendorCDR_20' ) start [2025-04-14 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907188', 'tblTempVendorCDR_20' ) end [2025-04-14 15:34:20] Production.INFO: ProcessCDR(1,14907188,1,1,2) [2025-04-14 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907188', 'tblTempUsageDetail_20' ) start [2025-04-14 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907188', 'tblTempUsageDetail_20' ) end [2025-04-14 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:34:25] Production.INFO: ==28456== Releasing lock... [2025-04-14 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:34:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:35:06 [end_date_ymd] => 2025-04-14 15:35:06 [RateCDR] => 1 ) [2025-04-14 15: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-04-14 12:35:06' and `end` < '2025-04-14 15: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-04-14 15:35:19] Production.INFO: count ==4873 [2025-04-14 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:35:06 - End Time 2025-04-14 15:35:06 [2025-04-14 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907193', 'tblTempUsageDetail_20' ) start [2025-04-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907193', 'tblTempUsageDetail_20' ) end [2025-04-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907193', 'tblTempVendorCDR_20' ) start [2025-04-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907193', 'tblTempVendorCDR_20' ) end [2025-04-14 15:35:21] Production.INFO: ProcessCDR(1,14907193,1,1,2) [2025-04-14 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907193', 'tblTempUsageDetail_20' ) start [2025-04-14 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907193', 'tblTempUsageDetail_20' ) end [2025-04-14 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:35:26] Production.INFO: ==28540== Releasing lock... [2025-04-14 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:35:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:36:05 [end_date_ymd] => 2025-04-14 15:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:36:05' and `end` < '2025-04-14 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-04-14 15:36:18] Production.INFO: count ==4865 [2025-04-14 15:36:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:36:05 - End Time 2025-04-14 15:36:05 [2025-04-14 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907198', 'tblTempUsageDetail_20' ) start [2025-04-14 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907198', 'tblTempUsageDetail_20' ) end [2025-04-14 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907198', 'tblTempVendorCDR_20' ) start [2025-04-14 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907198', 'tblTempVendorCDR_20' ) end [2025-04-14 15:36:21] Production.INFO: ProcessCDR(1,14907198,1,1,2) [2025-04-14 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907198', 'tblTempUsageDetail_20' ) start [2025-04-14 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907198', 'tblTempUsageDetail_20' ) end [2025-04-14 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:36:26] Production.INFO: ==28609== Releasing lock... [2025-04-14 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:36:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:37:05 [end_date_ymd] => 2025-04-14 15:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:37:05' and `end` < '2025-04-14 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-04-14 15:37:19] Production.INFO: count ==4867 [2025-04-14 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:37:05 - End Time 2025-04-14 15:37:05 [2025-04-14 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907203', 'tblTempUsageDetail_20' ) start [2025-04-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907203', 'tblTempUsageDetail_20' ) end [2025-04-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907203', 'tblTempVendorCDR_20' ) start [2025-04-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907203', 'tblTempVendorCDR_20' ) end [2025-04-14 15:37:21] Production.INFO: ProcessCDR(1,14907203,1,1,2) [2025-04-14 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907203', 'tblTempUsageDetail_20' ) start [2025-04-14 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907203', 'tblTempUsageDetail_20' ) end [2025-04-14 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:37:26] Production.INFO: ==28683== Releasing lock... [2025-04-14 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:37:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:38:04 [end_date_ymd] => 2025-04-14 15:38:04 [RateCDR] => 1 ) [2025-04-14 15: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-04-14 12:38:04' and `end` < '2025-04-14 15: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-04-14 15:38:18] Production.INFO: count ==4857 [2025-04-14 15:38:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:38:04 - End Time 2025-04-14 15:38:04 [2025-04-14 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907208', 'tblTempUsageDetail_20' ) start [2025-04-14 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907208', 'tblTempUsageDetail_20' ) end [2025-04-14 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907208', 'tblTempVendorCDR_20' ) start [2025-04-14 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907208', 'tblTempVendorCDR_20' ) end [2025-04-14 15:38:20] Production.INFO: ProcessCDR(1,14907208,1,1,2) [2025-04-14 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907208', 'tblTempUsageDetail_20' ) start [2025-04-14 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907208', 'tblTempUsageDetail_20' ) end [2025-04-14 15:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:38:25] Production.INFO: ==28758== Releasing lock... [2025-04-14 15:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:38:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:39:05 [end_date_ymd] => 2025-04-14 15:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:39:05' and `end` < '2025-04-14 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-04-14 15:39:19] Production.INFO: count ==4844 [2025-04-14 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:39:05 - End Time 2025-04-14 15:39:05 [2025-04-14 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907213', 'tblTempUsageDetail_20' ) start [2025-04-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907213', 'tblTempUsageDetail_20' ) end [2025-04-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907213', 'tblTempVendorCDR_20' ) start [2025-04-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907213', 'tblTempVendorCDR_20' ) end [2025-04-14 15:39:21] Production.INFO: ProcessCDR(1,14907213,1,1,2) [2025-04-14 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907213', 'tblTempUsageDetail_20' ) start [2025-04-14 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907213', 'tblTempUsageDetail_20' ) end [2025-04-14 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:39:27] Production.INFO: ==28831== Releasing lock... [2025-04-14 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:39:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:40:06 [end_date_ymd] => 2025-04-14 15:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:40:06' and `end` < '2025-04-14 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-04-14 15:40:20] Production.INFO: count ==4838 [2025-04-14 15:40:22] Production.ERROR: pbx CDR StartTime 2025-04-14 12:40:06 - End Time 2025-04-14 15:40:06 [2025-04-14 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907218', 'tblTempUsageDetail_20' ) start [2025-04-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907218', 'tblTempUsageDetail_20' ) end [2025-04-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907218', 'tblTempVendorCDR_20' ) start [2025-04-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907218', 'tblTempVendorCDR_20' ) end [2025-04-14 15:40:22] Production.INFO: ProcessCDR(1,14907218,1,1,2) [2025-04-14 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907218', 'tblTempUsageDetail_20' ) start [2025-04-14 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907218', 'tblTempUsageDetail_20' ) end [2025-04-14 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:40:27] Production.INFO: ==28911== Releasing lock... [2025-04-14 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:40:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:41:05 [end_date_ymd] => 2025-04-14 15:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:41:05' and `end` < '2025-04-14 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-04-14 15:41:19] Production.INFO: count ==4827 [2025-04-14 15:41:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:41:05 - End Time 2025-04-14 15:41:05 [2025-04-14 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907224', 'tblTempUsageDetail_20' ) start [2025-04-14 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907224', 'tblTempUsageDetail_20' ) end [2025-04-14 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907224', 'tblTempVendorCDR_20' ) start [2025-04-14 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907224', 'tblTempVendorCDR_20' ) end [2025-04-14 15:41:20] Production.INFO: ProcessCDR(1,14907224,1,1,2) [2025-04-14 15:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907224', 'tblTempUsageDetail_20' ) start [2025-04-14 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907224', 'tblTempUsageDetail_20' ) end [2025-04-14 15:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:41:25] Production.INFO: ==28985== Releasing lock... [2025-04-14 15:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:41:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:42:05 [end_date_ymd] => 2025-04-14 15:42:05 [RateCDR] => 1 ) [2025-04-14 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:42:05' and `end` < '2025-04-14 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:42:19] Production.INFO: count ==4826 [2025-04-14 15:42:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:42:05 - End Time 2025-04-14 15:42:05 [2025-04-14 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907229', 'tblTempUsageDetail_20' ) start [2025-04-14 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907229', 'tblTempUsageDetail_20' ) end [2025-04-14 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907229', 'tblTempVendorCDR_20' ) start [2025-04-14 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907229', 'tblTempVendorCDR_20' ) end [2025-04-14 15:42:21] Production.INFO: ProcessCDR(1,14907229,1,1,2) [2025-04-14 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907229', 'tblTempUsageDetail_20' ) start [2025-04-14 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907229', 'tblTempUsageDetail_20' ) end [2025-04-14 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:42:26] Production.INFO: ==29058== Releasing lock... [2025-04-14 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:42:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:43:05 [end_date_ymd] => 2025-04-14 15:43:05 [RateCDR] => 1 ) [2025-04-14 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:43:05' and `end` < '2025-04-14 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:43:19] Production.INFO: count ==4825 [2025-04-14 15:43:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:43:05 - End Time 2025-04-14 15:43:05 [2025-04-14 15:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907234', 'tblTempUsageDetail_20' ) start [2025-04-14 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907234', 'tblTempUsageDetail_20' ) end [2025-04-14 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907234', 'tblTempVendorCDR_20' ) start [2025-04-14 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907234', 'tblTempVendorCDR_20' ) end [2025-04-14 15:43:20] Production.INFO: ProcessCDR(1,14907234,1,1,2) [2025-04-14 15:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907234', 'tblTempUsageDetail_20' ) start [2025-04-14 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907234', 'tblTempUsageDetail_20' ) end [2025-04-14 15:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:43:25] Production.INFO: ==29136== Releasing lock... [2025-04-14 15:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:43:25] Production.INFO: 64 MB #Memory Used# [2025-04-14 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:44:05 [end_date_ymd] => 2025-04-14 15:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:44:05' and `end` < '2025-04-14 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-04-14 15:44:19] Production.INFO: count ==4835 [2025-04-14 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:44:05 - End Time 2025-04-14 15:44:05 [2025-04-14 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907239', 'tblTempUsageDetail_20' ) start [2025-04-14 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907239', 'tblTempUsageDetail_20' ) end [2025-04-14 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907239', 'tblTempVendorCDR_20' ) start [2025-04-14 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907239', 'tblTempVendorCDR_20' ) end [2025-04-14 15:44:21] Production.INFO: ProcessCDR(1,14907239,1,1,2) [2025-04-14 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907239', 'tblTempUsageDetail_20' ) start [2025-04-14 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907239', 'tblTempUsageDetail_20' ) end [2025-04-14 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:44:26] Production.INFO: ==29211== Releasing lock... [2025-04-14 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:44:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:45:04 [end_date_ymd] => 2025-04-14 15:45:04 [RateCDR] => 1 ) [2025-04-14 15: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-04-14 12:45:04' and `end` < '2025-04-14 15: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-04-14 15:45:18] Production.INFO: count ==4835 [2025-04-14 15:45:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:45:04 - End Time 2025-04-14 15:45:04 [2025-04-14 15:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907244', 'tblTempUsageDetail_20' ) start [2025-04-14 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907244', 'tblTempUsageDetail_20' ) end [2025-04-14 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907244', 'tblTempVendorCDR_20' ) start [2025-04-14 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907244', 'tblTempVendorCDR_20' ) end [2025-04-14 15:45:20] Production.INFO: ProcessCDR(1,14907244,1,1,2) [2025-04-14 15:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907244', 'tblTempUsageDetail_20' ) start [2025-04-14 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907244', 'tblTempUsageDetail_20' ) end [2025-04-14 15:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:45:25] Production.INFO: ==29283== Releasing lock... [2025-04-14 15:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:45:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:46:05 [end_date_ymd] => 2025-04-14 15:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:46:05' and `end` < '2025-04-14 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-04-14 15:46:19] Production.INFO: count ==4822 [2025-04-14 15:46:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:46:05 - End Time 2025-04-14 15:46:05 [2025-04-14 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907249', 'tblTempUsageDetail_20' ) start [2025-04-14 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907249', 'tblTempUsageDetail_20' ) end [2025-04-14 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907249', 'tblTempVendorCDR_20' ) start [2025-04-14 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907249', 'tblTempVendorCDR_20' ) end [2025-04-14 15:46:21] Production.INFO: ProcessCDR(1,14907249,1,1,2) [2025-04-14 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907249', 'tblTempUsageDetail_20' ) start [2025-04-14 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907249', 'tblTempUsageDetail_20' ) end [2025-04-14 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:46:26] Production.INFO: ==29357== Releasing lock... [2025-04-14 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:46:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:47:05 [end_date_ymd] => 2025-04-14 15:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:47:05' and `end` < '2025-04-14 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-04-14 15:47:18] Production.INFO: count ==4824 [2025-04-14 15:47:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:47:05 - End Time 2025-04-14 15:47:05 [2025-04-14 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907254', 'tblTempUsageDetail_20' ) start [2025-04-14 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907254', 'tblTempUsageDetail_20' ) end [2025-04-14 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907254', 'tblTempVendorCDR_20' ) start [2025-04-14 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907254', 'tblTempVendorCDR_20' ) end [2025-04-14 15:47:20] Production.INFO: ProcessCDR(1,14907254,1,1,2) [2025-04-14 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907254', 'tblTempUsageDetail_20' ) start [2025-04-14 15:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907254', 'tblTempUsageDetail_20' ) end [2025-04-14 15:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:47:25] Production.INFO: ==29470== Releasing lock... [2025-04-14 15:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:47:25] Production.INFO: 64 MB #Memory Used# [2025-04-14 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:48:05 [end_date_ymd] => 2025-04-14 15:48:05 [RateCDR] => 1 ) [2025-04-14 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:48:05' and `end` < '2025-04-14 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:48:19] Production.INFO: count ==4827 [2025-04-14 15:48:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:48:05 - End Time 2025-04-14 15:48:05 [2025-04-14 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907259', 'tblTempUsageDetail_20' ) start [2025-04-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907259', 'tblTempUsageDetail_20' ) end [2025-04-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907259', 'tblTempVendorCDR_20' ) start [2025-04-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907259', 'tblTempVendorCDR_20' ) end [2025-04-14 15:48:21] Production.INFO: ProcessCDR(1,14907259,1,1,2) [2025-04-14 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907259', 'tblTempUsageDetail_20' ) start [2025-04-14 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907259', 'tblTempUsageDetail_20' ) end [2025-04-14 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:48:26] Production.INFO: ==29549== Releasing lock... [2025-04-14 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:48:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:49:05 [end_date_ymd] => 2025-04-14 15:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:49:05' and `end` < '2025-04-14 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-04-14 15:49:19] Production.INFO: count ==4840 [2025-04-14 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:49:05 - End Time 2025-04-14 15:49:05 [2025-04-14 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907264', 'tblTempUsageDetail_20' ) start [2025-04-14 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907264', 'tblTempUsageDetail_20' ) end [2025-04-14 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907264', 'tblTempVendorCDR_20' ) start [2025-04-14 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907264', 'tblTempVendorCDR_20' ) end [2025-04-14 15:49:21] Production.INFO: ProcessCDR(1,14907264,1,1,2) [2025-04-14 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907264', 'tblTempUsageDetail_20' ) start [2025-04-14 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907264', 'tblTempUsageDetail_20' ) end [2025-04-14 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:49:26] Production.INFO: ==29627== Releasing lock... [2025-04-14 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:49:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:50:06 [end_date_ymd] => 2025-04-14 15:50:06 [RateCDR] => 1 ) [2025-04-14 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:50:06' and `end` < '2025-04-14 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:50:20] Production.INFO: count ==4854 [2025-04-14 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-14 12:50:06 - End Time 2025-04-14 15:50:06 [2025-04-14 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907270', 'tblTempUsageDetail_20' ) start [2025-04-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907270', 'tblTempUsageDetail_20' ) end [2025-04-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907270', 'tblTempVendorCDR_20' ) start [2025-04-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907270', 'tblTempVendorCDR_20' ) end [2025-04-14 15:50:22] Production.INFO: ProcessCDR(1,14907270,1,1,2) [2025-04-14 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907270', 'tblTempUsageDetail_20' ) start [2025-04-14 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907270', 'tblTempUsageDetail_20' ) end [2025-04-14 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:50:28] Production.INFO: ==29704== Releasing lock... [2025-04-14 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:50:28] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:51:06 [end_date_ymd] => 2025-04-14 15:51:06 [RateCDR] => 1 ) [2025-04-14 15: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-04-14 12:51:06' and `end` < '2025-04-14 15: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-04-14 15:51:19] Production.INFO: count ==4893 [2025-04-14 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:51:06 - End Time 2025-04-14 15:51:06 [2025-04-14 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907275', 'tblTempUsageDetail_20' ) start [2025-04-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907275', 'tblTempUsageDetail_20' ) end [2025-04-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907275', 'tblTempVendorCDR_20' ) start [2025-04-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907275', 'tblTempVendorCDR_20' ) end [2025-04-14 15:51:21] Production.INFO: ProcessCDR(1,14907275,1,1,2) [2025-04-14 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907275', 'tblTempUsageDetail_20' ) start [2025-04-14 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907275', 'tblTempUsageDetail_20' ) end [2025-04-14 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:51:26] Production.INFO: ==29777== Releasing lock... [2025-04-14 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:51:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:52:05 [end_date_ymd] => 2025-04-14 15:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:52:05' and `end` < '2025-04-14 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-04-14 15:52:19] Production.INFO: count ==4893 [2025-04-14 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:52:05 - End Time 2025-04-14 15:52:05 [2025-04-14 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907280', 'tblTempUsageDetail_20' ) start [2025-04-14 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907280', 'tblTempUsageDetail_20' ) end [2025-04-14 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907280', 'tblTempVendorCDR_20' ) start [2025-04-14 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907280', 'tblTempVendorCDR_20' ) end [2025-04-14 15:52:21] Production.INFO: ProcessCDR(1,14907280,1,1,2) [2025-04-14 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907280', 'tblTempUsageDetail_20' ) start [2025-04-14 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907280', 'tblTempUsageDetail_20' ) end [2025-04-14 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:52:26] Production.INFO: ==29855== Releasing lock... [2025-04-14 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:52:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:53:05 [end_date_ymd] => 2025-04-14 15:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:53:05' and `end` < '2025-04-14 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-04-14 15:53:19] Production.INFO: count ==4877 [2025-04-14 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:53:05 - End Time 2025-04-14 15:53:05 [2025-04-14 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907285', 'tblTempUsageDetail_20' ) start [2025-04-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907285', 'tblTempUsageDetail_20' ) end [2025-04-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907285', 'tblTempVendorCDR_20' ) start [2025-04-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907285', 'tblTempVendorCDR_20' ) end [2025-04-14 15:53:21] Production.INFO: ProcessCDR(1,14907285,1,1,2) [2025-04-14 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907285', 'tblTempUsageDetail_20' ) start [2025-04-14 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907285', 'tblTempUsageDetail_20' ) end [2025-04-14 15:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:53:24] Production.INFO: ==29939== Releasing lock... [2025-04-14 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:53:24] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:54:05 [end_date_ymd] => 2025-04-14 15:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:54:05' and `end` < '2025-04-14 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-04-14 15:54:18] Production.INFO: count ==4869 [2025-04-14 15:54:20] Production.ERROR: pbx CDR StartTime 2025-04-14 12:54:05 - End Time 2025-04-14 15:54:05 [2025-04-14 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907290', 'tblTempUsageDetail_20' ) start [2025-04-14 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907290', 'tblTempUsageDetail_20' ) end [2025-04-14 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907290', 'tblTempVendorCDR_20' ) start [2025-04-14 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907290', 'tblTempVendorCDR_20' ) end [2025-04-14 15:54:20] Production.INFO: ProcessCDR(1,14907290,1,1,2) [2025-04-14 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907290', 'tblTempUsageDetail_20' ) start [2025-04-14 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907290', 'tblTempUsageDetail_20' ) end [2025-04-14 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:54:25] Production.INFO: ==30010== Releasing lock... [2025-04-14 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:54:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:55:05 [end_date_ymd] => 2025-04-14 15:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:55:05' and `end` < '2025-04-14 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-04-14 15:55:19] Production.INFO: count ==4880 [2025-04-14 15:55:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:55:05 - End Time 2025-04-14 15:55:05 [2025-04-14 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907295', 'tblTempUsageDetail_20' ) start [2025-04-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907295', 'tblTempUsageDetail_20' ) end [2025-04-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907295', 'tblTempVendorCDR_20' ) start [2025-04-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907295', 'tblTempVendorCDR_20' ) end [2025-04-14 15:55:21] Production.INFO: ProcessCDR(1,14907295,1,1,2) [2025-04-14 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907295', 'tblTempUsageDetail_20' ) start [2025-04-14 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907295', 'tblTempUsageDetail_20' ) end [2025-04-14 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:55:26] Production.INFO: ==30083== Releasing lock... [2025-04-14 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:56:05 [end_date_ymd] => 2025-04-14 15:56:05 [RateCDR] => 1 ) [2025-04-14 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 12:56:05' and `end` < '2025-04-14 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 15:56:19] Production.INFO: count ==4875 [2025-04-14 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:56:05 - End Time 2025-04-14 15:56:05 [2025-04-14 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907300', 'tblTempUsageDetail_20' ) start [2025-04-14 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907300', 'tblTempUsageDetail_20' ) end [2025-04-14 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907300', 'tblTempVendorCDR_20' ) start [2025-04-14 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907300', 'tblTempVendorCDR_20' ) end [2025-04-14 15:56:21] Production.INFO: ProcessCDR(1,14907300,1,1,2) [2025-04-14 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907300', 'tblTempUsageDetail_20' ) start [2025-04-14 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907300', 'tblTempUsageDetail_20' ) end [2025-04-14 15:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:56:24] Production.INFO: ==30160== Releasing lock... [2025-04-14 15:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:56:24] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:57:05 [end_date_ymd] => 2025-04-14 15:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:57:05' and `end` < '2025-04-14 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-04-14 15:57:19] Production.INFO: count ==4864 [2025-04-14 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:57:05 - End Time 2025-04-14 15:57:05 [2025-04-14 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907305', 'tblTempUsageDetail_20' ) start [2025-04-14 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907305', 'tblTempUsageDetail_20' ) end [2025-04-14 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907305', 'tblTempVendorCDR_20' ) start [2025-04-14 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907305', 'tblTempVendorCDR_20' ) end [2025-04-14 15:57:21] Production.INFO: ProcessCDR(1,14907305,1,1,2) [2025-04-14 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907305', 'tblTempUsageDetail_20' ) start [2025-04-14 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907305', 'tblTempUsageDetail_20' ) end [2025-04-14 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:57:26] Production.INFO: ==30237== Releasing lock... [2025-04-14 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:57:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:58:05 [end_date_ymd] => 2025-04-14 15:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:58:05' and `end` < '2025-04-14 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-04-14 15:58:19] Production.INFO: count ==4860 [2025-04-14 15:58:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:58:05 - End Time 2025-04-14 15:58:05 [2025-04-14 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907310', 'tblTempUsageDetail_20' ) start [2025-04-14 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907310', 'tblTempUsageDetail_20' ) end [2025-04-14 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907310', 'tblTempVendorCDR_20' ) start [2025-04-14 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907310', 'tblTempVendorCDR_20' ) end [2025-04-14 15:58:21] Production.INFO: ProcessCDR(1,14907310,1,1,2) [2025-04-14 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907310', 'tblTempUsageDetail_20' ) start [2025-04-14 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907310', 'tblTempUsageDetail_20' ) end [2025-04-14 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:58:26] Production.INFO: ==30315== Releasing lock... [2025-04-14 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:58:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 12:59:05 [end_date_ymd] => 2025-04-14 15:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 12:59:05' and `end` < '2025-04-14 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-04-14 15:59:19] Production.INFO: count ==4858 [2025-04-14 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-14 12:59:05 - End Time 2025-04-14 15:59:05 [2025-04-14 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907315', 'tblTempUsageDetail_20' ) start [2025-04-14 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907315', 'tblTempUsageDetail_20' ) end [2025-04-14 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907315', 'tblTempVendorCDR_20' ) start [2025-04-14 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907315', 'tblTempVendorCDR_20' ) end [2025-04-14 15:59:21] Production.INFO: ProcessCDR(1,14907315,1,1,2) [2025-04-14 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907315', 'tblTempUsageDetail_20' ) start [2025-04-14 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907315', 'tblTempUsageDetail_20' ) end [2025-04-14 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 15:59:26] Production.INFO: ==30392== Releasing lock... [2025-04-14 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 15:59:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:00:05 [end_date_ymd] => 2025-04-14 16:00:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:00:05' and `end` < '2025-04-14 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-04-14 16:00:19] Production.INFO: count ==4849 [2025-04-14 16:00:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:00:05 - End Time 2025-04-14 16:00:05 [2025-04-14 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907321', 'tblTempUsageDetail_20' ) start [2025-04-14 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907321', 'tblTempUsageDetail_20' ) end [2025-04-14 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907321', 'tblTempVendorCDR_20' ) start [2025-04-14 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907321', 'tblTempVendorCDR_20' ) end [2025-04-14 16:00:21] Production.INFO: ProcessCDR(1,14907321,1,1,2) [2025-04-14 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907321', 'tblTempUsageDetail_20' ) start [2025-04-14 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907321', 'tblTempUsageDetail_20' ) end [2025-04-14 16:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:00:26] Production.INFO: ==30465== Releasing lock... [2025-04-14 16:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:00:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:01:05 [end_date_ymd] => 2025-04-14 16:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:01:05' and `end` < '2025-04-14 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-04-14 16:01:19] Production.INFO: count ==4900 [2025-04-14 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:01:05 - End Time 2025-04-14 16:01:05 [2025-04-14 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907326', 'tblTempUsageDetail_20' ) start [2025-04-14 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907326', 'tblTempUsageDetail_20' ) end [2025-04-14 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907326', 'tblTempVendorCDR_20' ) start [2025-04-14 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907326', 'tblTempVendorCDR_20' ) end [2025-04-14 16:01:21] Production.INFO: ProcessCDR(1,14907326,1,1,2) [2025-04-14 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907326', 'tblTempUsageDetail_20' ) start [2025-04-14 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907326', 'tblTempUsageDetail_20' ) end [2025-04-14 16:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:01:26] Production.INFO: ==30548== Releasing lock... [2025-04-14 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:02:06 [end_date_ymd] => 2025-04-14 16:02:06 [RateCDR] => 1 ) [2025-04-14 16: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-04-14 13:02:06' and `end` < '2025-04-14 16: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-04-14 16:02:19] Production.INFO: count ==4922 [2025-04-14 16:02:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:02:06 - End Time 2025-04-14 16:02:06 [2025-04-14 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907331', 'tblTempUsageDetail_20' ) start [2025-04-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907331', 'tblTempUsageDetail_20' ) end [2025-04-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907331', 'tblTempVendorCDR_20' ) start [2025-04-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907331', 'tblTempVendorCDR_20' ) end [2025-04-14 16:02:21] Production.INFO: ProcessCDR(1,14907331,1,1,2) [2025-04-14 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907331', 'tblTempUsageDetail_20' ) start [2025-04-14 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907331', 'tblTempUsageDetail_20' ) end [2025-04-14 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:02:26] Production.INFO: ==30670== Releasing lock... [2025-04-14 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:02:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:03:05 [end_date_ymd] => 2025-04-14 16:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:03:05' and `end` < '2025-04-14 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-04-14 16:03:19] Production.INFO: count ==4908 [2025-04-14 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:03:05 - End Time 2025-04-14 16:03:05 [2025-04-14 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907336', 'tblTempUsageDetail_20' ) start [2025-04-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907336', 'tblTempUsageDetail_20' ) end [2025-04-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907336', 'tblTempVendorCDR_20' ) start [2025-04-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907336', 'tblTempVendorCDR_20' ) end [2025-04-14 16:03:21] Production.INFO: ProcessCDR(1,14907336,1,1,2) [2025-04-14 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907336', 'tblTempUsageDetail_20' ) start [2025-04-14 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907336', 'tblTempUsageDetail_20' ) end [2025-04-14 16:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:03:25] Production.INFO: ==30746== Releasing lock... [2025-04-14 16:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:03:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:04:05 [end_date_ymd] => 2025-04-14 16:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:04:05' and `end` < '2025-04-14 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-04-14 16:04:19] Production.INFO: count ==4900 [2025-04-14 16:04:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:04:05 - End Time 2025-04-14 16:04:05 [2025-04-14 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907341', 'tblTempUsageDetail_20' ) start [2025-04-14 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907341', 'tblTempUsageDetail_20' ) end [2025-04-14 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907341', 'tblTempVendorCDR_20' ) start [2025-04-14 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907341', 'tblTempVendorCDR_20' ) end [2025-04-14 16:04:20] Production.INFO: ProcessCDR(1,14907341,1,1,2) [2025-04-14 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907341', 'tblTempUsageDetail_20' ) start [2025-04-14 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907341', 'tblTempUsageDetail_20' ) end [2025-04-14 16:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:04:25] Production.INFO: ==30823== Releasing lock... [2025-04-14 16:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:04:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:05:05 [end_date_ymd] => 2025-04-14 16:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:05:05' and `end` < '2025-04-14 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-04-14 16:05:19] Production.INFO: count ==4902 [2025-04-14 16:05:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:05:05 - End Time 2025-04-14 16:05:05 [2025-04-14 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907346', 'tblTempUsageDetail_20' ) start [2025-04-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907346', 'tblTempUsageDetail_20' ) end [2025-04-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907346', 'tblTempVendorCDR_20' ) start [2025-04-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907346', 'tblTempVendorCDR_20' ) end [2025-04-14 16:05:21] Production.INFO: ProcessCDR(1,14907346,1,1,2) [2025-04-14 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907346', 'tblTempUsageDetail_20' ) start [2025-04-14 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907346', 'tblTempUsageDetail_20' ) end [2025-04-14 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:05:27] Production.INFO: ==30899== Releasing lock... [2025-04-14 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:05:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:06:05 [end_date_ymd] => 2025-04-14 16:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:06:05' and `end` < '2025-04-14 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-04-14 16:06:19] Production.INFO: count ==4904 [2025-04-14 16:06:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:06:05 - End Time 2025-04-14 16:06:05 [2025-04-14 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907351', 'tblTempUsageDetail_20' ) start [2025-04-14 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907351', 'tblTempUsageDetail_20' ) end [2025-04-14 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907351', 'tblTempVendorCDR_20' ) start [2025-04-14 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907351', 'tblTempVendorCDR_20' ) end [2025-04-14 16:06:21] Production.INFO: ProcessCDR(1,14907351,1,1,2) [2025-04-14 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907351', 'tblTempUsageDetail_20' ) start [2025-04-14 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907351', 'tblTempUsageDetail_20' ) end [2025-04-14 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:06:25] Production.INFO: ==30970== Releasing lock... [2025-04-14 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:06:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:07:06 [end_date_ymd] => 2025-04-14 16:07:06 [RateCDR] => 1 ) [2025-04-14 16: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-04-14 13:07:06' and `end` < '2025-04-14 16: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-04-14 16:07:20] Production.INFO: count ==4921 [2025-04-14 16:07:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:07:06 - End Time 2025-04-14 16:07:06 [2025-04-14 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907356', 'tblTempUsageDetail_20' ) start [2025-04-14 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907356', 'tblTempUsageDetail_20' ) end [2025-04-14 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907356', 'tblTempVendorCDR_20' ) start [2025-04-14 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907356', 'tblTempVendorCDR_20' ) end [2025-04-14 16:07:22] Production.INFO: ProcessCDR(1,14907356,1,1,2) [2025-04-14 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907356', 'tblTempUsageDetail_20' ) start [2025-04-14 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907356', 'tblTempUsageDetail_20' ) end [2025-04-14 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:07:28] Production.INFO: ==31047== Releasing lock... [2025-04-14 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:07:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:08:05 [end_date_ymd] => 2025-04-14 16:08:05 [RateCDR] => 1 ) [2025-04-14 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:08:05' and `end` < '2025-04-14 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:08:19] Production.INFO: count ==4900 [2025-04-14 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:08:05 - End Time 2025-04-14 16:08:05 [2025-04-14 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907361', 'tblTempUsageDetail_20' ) start [2025-04-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907361', 'tblTempUsageDetail_20' ) end [2025-04-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907361', 'tblTempVendorCDR_20' ) start [2025-04-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907361', 'tblTempVendorCDR_20' ) end [2025-04-14 16:08:21] Production.INFO: ProcessCDR(1,14907361,1,1,2) [2025-04-14 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907361', 'tblTempUsageDetail_20' ) start [2025-04-14 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907361', 'tblTempUsageDetail_20' ) end [2025-04-14 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:08:26] Production.INFO: ==31121== Releasing lock... [2025-04-14 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:08:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:09:05 [end_date_ymd] => 2025-04-14 16:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:09:05' and `end` < '2025-04-14 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-04-14 16:09:19] Production.INFO: count ==4893 [2025-04-14 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:09:05 - End Time 2025-04-14 16:09:05 [2025-04-14 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907366', 'tblTempUsageDetail_20' ) start [2025-04-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907366', 'tblTempUsageDetail_20' ) end [2025-04-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907366', 'tblTempVendorCDR_20' ) start [2025-04-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907366', 'tblTempVendorCDR_20' ) end [2025-04-14 16:09:21] Production.INFO: ProcessCDR(1,14907366,1,1,2) [2025-04-14 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907366', 'tblTempUsageDetail_20' ) start [2025-04-14 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907366', 'tblTempUsageDetail_20' ) end [2025-04-14 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:09:26] Production.INFO: ==31197== Releasing lock... [2025-04-14 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:09:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:10:07 [end_date_ymd] => 2025-04-14 16:10:07 [RateCDR] => 1 ) [2025-04-14 16: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-04-14 13:10:07' and `end` < '2025-04-14 16: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-04-14 16:10:21] Production.INFO: count ==4902 [2025-04-14 16:10:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:10:07 - End Time 2025-04-14 16:10:07 [2025-04-14 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907372', 'tblTempUsageDetail_20' ) start [2025-04-14 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907372', 'tblTempUsageDetail_20' ) end [2025-04-14 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907372', 'tblTempVendorCDR_20' ) start [2025-04-14 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907372', 'tblTempVendorCDR_20' ) end [2025-04-14 16:10:23] Production.INFO: ProcessCDR(1,14907372,1,1,2) [2025-04-14 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907372', 'tblTempUsageDetail_20' ) start [2025-04-14 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907372', 'tblTempUsageDetail_20' ) end [2025-04-14 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:10:28] Production.INFO: ==31272== Releasing lock... [2025-04-14 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:10:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-14 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:11:05 [end_date_ymd] => 2025-04-14 16:11:05 [RateCDR] => 1 ) [2025-04-14 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:11:05' and `end` < '2025-04-14 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:11:19] Production.INFO: count ==4890 [2025-04-14 16:11:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:11:05 - End Time 2025-04-14 16:11:05 [2025-04-14 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907377', 'tblTempUsageDetail_20' ) start [2025-04-14 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907377', 'tblTempUsageDetail_20' ) end [2025-04-14 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907377', 'tblTempVendorCDR_20' ) start [2025-04-14 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907377', 'tblTempVendorCDR_20' ) end [2025-04-14 16:11:21] Production.INFO: ProcessCDR(1,14907377,1,1,2) [2025-04-14 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907377', 'tblTempUsageDetail_20' ) start [2025-04-14 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907377', 'tblTempUsageDetail_20' ) end [2025-04-14 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:11:26] Production.INFO: ==31349== Releasing lock... [2025-04-14 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:11:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:12:05 [end_date_ymd] => 2025-04-14 16:12:05 [RateCDR] => 1 ) [2025-04-14 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:12:05' and `end` < '2025-04-14 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:12:19] Production.INFO: count ==4878 [2025-04-14 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:12:05 - End Time 2025-04-14 16:12:05 [2025-04-14 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907382', 'tblTempUsageDetail_20' ) start [2025-04-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907382', 'tblTempUsageDetail_20' ) end [2025-04-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907382', 'tblTempVendorCDR_20' ) start [2025-04-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907382', 'tblTempVendorCDR_20' ) end [2025-04-14 16:12:21] Production.INFO: ProcessCDR(1,14907382,1,1,2) [2025-04-14 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907382', 'tblTempUsageDetail_20' ) start [2025-04-14 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907382', 'tblTempUsageDetail_20' ) end [2025-04-14 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:12:26] Production.INFO: ==31422== Releasing lock... [2025-04-14 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:12:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:13:05 [end_date_ymd] => 2025-04-14 16:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:13:05' and `end` < '2025-04-14 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-04-14 16:13:19] Production.INFO: count ==4860 [2025-04-14 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:13:05 - End Time 2025-04-14 16:13:05 [2025-04-14 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907387', 'tblTempUsageDetail_20' ) start [2025-04-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907387', 'tblTempUsageDetail_20' ) end [2025-04-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907387', 'tblTempVendorCDR_20' ) start [2025-04-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907387', 'tblTempVendorCDR_20' ) end [2025-04-14 16:13:21] Production.INFO: ProcessCDR(1,14907387,1,1,2) [2025-04-14 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907387', 'tblTempUsageDetail_20' ) start [2025-04-14 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907387', 'tblTempUsageDetail_20' ) end [2025-04-14 16:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:13:26] Production.INFO: ==31491== Releasing lock... [2025-04-14 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:13:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:14:05 [end_date_ymd] => 2025-04-14 16:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:14:05' and `end` < '2025-04-14 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-04-14 16:14:19] Production.INFO: count ==4864 [2025-04-14 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:14:05 - End Time 2025-04-14 16:14:05 [2025-04-14 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907392', 'tblTempUsageDetail_20' ) start [2025-04-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907392', 'tblTempUsageDetail_20' ) end [2025-04-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907392', 'tblTempVendorCDR_20' ) start [2025-04-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907392', 'tblTempVendorCDR_20' ) end [2025-04-14 16:14:21] Production.INFO: ProcessCDR(1,14907392,1,1,2) [2025-04-14 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907392', 'tblTempUsageDetail_20' ) start [2025-04-14 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907392', 'tblTempUsageDetail_20' ) end [2025-04-14 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:14:26] Production.INFO: ==31570== Releasing lock... [2025-04-14 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:14:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:15:05 [end_date_ymd] => 2025-04-14 16:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:15:05' and `end` < '2025-04-14 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-04-14 16:15:19] Production.INFO: count ==4873 [2025-04-14 16:15:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:15:05 - End Time 2025-04-14 16:15:05 [2025-04-14 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907397', 'tblTempUsageDetail_20' ) start [2025-04-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907397', 'tblTempUsageDetail_20' ) end [2025-04-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907397', 'tblTempVendorCDR_20' ) start [2025-04-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907397', 'tblTempVendorCDR_20' ) end [2025-04-14 16:15:21] Production.INFO: ProcessCDR(1,14907397,1,1,2) [2025-04-14 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907397', 'tblTempUsageDetail_20' ) start [2025-04-14 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907397', 'tblTempUsageDetail_20' ) end [2025-04-14 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:15:26] Production.INFO: ==31660== Releasing lock... [2025-04-14 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:15:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:16:06 [end_date_ymd] => 2025-04-14 16:16:06 [RateCDR] => 1 ) [2025-04-14 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:16:06' and `end` < '2025-04-14 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:16:19] Production.INFO: count ==4873 [2025-04-14 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:16:06 - End Time 2025-04-14 16:16:06 [2025-04-14 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907402', 'tblTempUsageDetail_20' ) start [2025-04-14 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907402', 'tblTempUsageDetail_20' ) end [2025-04-14 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907402', 'tblTempVendorCDR_20' ) start [2025-04-14 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907402', 'tblTempVendorCDR_20' ) end [2025-04-14 16:16:21] Production.INFO: ProcessCDR(1,14907402,1,1,2) [2025-04-14 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907402', 'tblTempUsageDetail_20' ) start [2025-04-14 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907402', 'tblTempUsageDetail_20' ) end [2025-04-14 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:16:26] Production.INFO: ==31732== Releasing lock... [2025-04-14 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:16:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:17:05 [end_date_ymd] => 2025-04-14 16:17:05 [RateCDR] => 1 ) [2025-04-14 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:17:05' and `end` < '2025-04-14 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:17:19] Production.INFO: count ==4873 [2025-04-14 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:17:05 - End Time 2025-04-14 16:17:05 [2025-04-14 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907407', 'tblTempUsageDetail_20' ) start [2025-04-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907407', 'tblTempUsageDetail_20' ) end [2025-04-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907407', 'tblTempVendorCDR_20' ) start [2025-04-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907407', 'tblTempVendorCDR_20' ) end [2025-04-14 16:17:21] Production.INFO: ProcessCDR(1,14907407,1,1,2) [2025-04-14 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907407', 'tblTempUsageDetail_20' ) start [2025-04-14 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907407', 'tblTempUsageDetail_20' ) end [2025-04-14 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:17:26] Production.INFO: ==31815== Releasing lock... [2025-04-14 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:17:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:18:06 [end_date_ymd] => 2025-04-14 16:18:06 [RateCDR] => 1 ) [2025-04-14 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:18:06' and `end` < '2025-04-14 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:18:19] Production.INFO: count ==4865 [2025-04-14 16:18:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:18:06 - End Time 2025-04-14 16:18:06 [2025-04-14 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907412', 'tblTempUsageDetail_20' ) start [2025-04-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907412', 'tblTempUsageDetail_20' ) end [2025-04-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907412', 'tblTempVendorCDR_20' ) start [2025-04-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907412', 'tblTempVendorCDR_20' ) end [2025-04-14 16:18:22] Production.INFO: ProcessCDR(1,14907412,1,1,2) [2025-04-14 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907412', 'tblTempUsageDetail_20' ) start [2025-04-14 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907412', 'tblTempUsageDetail_20' ) end [2025-04-14 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:18:27] Production.INFO: ==31927== Releasing lock... [2025-04-14 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:18:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:19:05 [end_date_ymd] => 2025-04-14 16:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:19:05' and `end` < '2025-04-14 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-04-14 16:19:19] Production.INFO: count ==4874 [2025-04-14 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:19:05 - End Time 2025-04-14 16:19:05 [2025-04-14 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907417', 'tblTempUsageDetail_20' ) start [2025-04-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907417', 'tblTempUsageDetail_20' ) end [2025-04-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907417', 'tblTempVendorCDR_20' ) start [2025-04-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907417', 'tblTempVendorCDR_20' ) end [2025-04-14 16:19:21] Production.INFO: ProcessCDR(1,14907417,1,1,2) [2025-04-14 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907417', 'tblTempUsageDetail_20' ) start [2025-04-14 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907417', 'tblTempUsageDetail_20' ) end [2025-04-14 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:19:26] Production.INFO: ==32001== Releasing lock... [2025-04-14 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:19:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:20:06 [end_date_ymd] => 2025-04-14 16:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:20:06' and `end` < '2025-04-14 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-04-14 16:20:20] Production.INFO: count ==4881 [2025-04-14 16:20:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:20:06 - End Time 2025-04-14 16:20:06 [2025-04-14 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907423', 'tblTempUsageDetail_20' ) start [2025-04-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907423', 'tblTempUsageDetail_20' ) end [2025-04-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907423', 'tblTempVendorCDR_20' ) start [2025-04-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907423', 'tblTempVendorCDR_20' ) end [2025-04-14 16:20:22] Production.INFO: ProcessCDR(1,14907423,1,1,2) [2025-04-14 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907423', 'tblTempUsageDetail_20' ) start [2025-04-14 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907423', 'tblTempUsageDetail_20' ) end [2025-04-14 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:20:27] Production.INFO: ==32081== Releasing lock... [2025-04-14 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:20:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:21:05 [end_date_ymd] => 2025-04-14 16:21:05 [RateCDR] => 1 ) [2025-04-14 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:21:05' and `end` < '2025-04-14 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:21:19] Production.INFO: count ==4887 [2025-04-14 16:21:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:21:05 - End Time 2025-04-14 16:21:05 [2025-04-14 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907428', 'tblTempUsageDetail_20' ) start [2025-04-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907428', 'tblTempUsageDetail_20' ) end [2025-04-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907428', 'tblTempVendorCDR_20' ) start [2025-04-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907428', 'tblTempVendorCDR_20' ) end [2025-04-14 16:21:21] Production.INFO: ProcessCDR(1,14907428,1,1,2) [2025-04-14 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907428', 'tblTempUsageDetail_20' ) start [2025-04-14 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907428', 'tblTempUsageDetail_20' ) end [2025-04-14 16:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:21:26] Production.INFO: ==32155== Releasing lock... [2025-04-14 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:21:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:22:05 [end_date_ymd] => 2025-04-14 16:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:22:05' and `end` < '2025-04-14 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-04-14 16:22:19] Production.INFO: count ==4877 [2025-04-14 16:22:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:22:05 - End Time 2025-04-14 16:22:05 [2025-04-14 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907433', 'tblTempUsageDetail_20' ) start [2025-04-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907433', 'tblTempUsageDetail_20' ) end [2025-04-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907433', 'tblTempVendorCDR_20' ) start [2025-04-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907433', 'tblTempVendorCDR_20' ) end [2025-04-14 16:22:21] Production.INFO: ProcessCDR(1,14907433,1,1,2) [2025-04-14 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907433', 'tblTempUsageDetail_20' ) start [2025-04-14 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907433', 'tblTempUsageDetail_20' ) end [2025-04-14 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:22:26] Production.INFO: ==32226== Releasing lock... [2025-04-14 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:22:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:23:04 [end_date_ymd] => 2025-04-14 16:23:04 [RateCDR] => 1 ) [2025-04-14 16:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:23:04' and `end` < '2025-04-14 16:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:23:18] Production.INFO: count ==4881 [2025-04-14 16:23:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:23:04 - End Time 2025-04-14 16:23:04 [2025-04-14 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907438', 'tblTempUsageDetail_20' ) start [2025-04-14 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907438', 'tblTempUsageDetail_20' ) end [2025-04-14 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907438', 'tblTempVendorCDR_20' ) start [2025-04-14 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907438', 'tblTempVendorCDR_20' ) end [2025-04-14 16:23:20] Production.INFO: ProcessCDR(1,14907438,1,1,2) [2025-04-14 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907438', 'tblTempUsageDetail_20' ) start [2025-04-14 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907438', 'tblTempUsageDetail_20' ) end [2025-04-14 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:23:24] Production.INFO: ==32299== Releasing lock... [2025-04-14 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:23:24] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:24:05 [end_date_ymd] => 2025-04-14 16:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:24:05' and `end` < '2025-04-14 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-04-14 16:24:19] Production.INFO: count ==4875 [2025-04-14 16:24:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:24:05 - End Time 2025-04-14 16:24:05 [2025-04-14 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907443', 'tblTempUsageDetail_20' ) start [2025-04-14 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907443', 'tblTempUsageDetail_20' ) end [2025-04-14 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907443', 'tblTempVendorCDR_20' ) start [2025-04-14 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907443', 'tblTempVendorCDR_20' ) end [2025-04-14 16:24:21] Production.INFO: ProcessCDR(1,14907443,1,1,2) [2025-04-14 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907443', 'tblTempUsageDetail_20' ) start [2025-04-14 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907443', 'tblTempUsageDetail_20' ) end [2025-04-14 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:24:26] Production.INFO: ==32378== Releasing lock... [2025-04-14 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:24:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:25:05 [end_date_ymd] => 2025-04-14 16:25:05 [RateCDR] => 1 ) [2025-04-14 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:25:05' and `end` < '2025-04-14 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:25:19] Production.INFO: count ==4874 [2025-04-14 16:25:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:25:05 - End Time 2025-04-14 16:25:05 [2025-04-14 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907448', 'tblTempUsageDetail_20' ) start [2025-04-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907448', 'tblTempUsageDetail_20' ) end [2025-04-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907448', 'tblTempVendorCDR_20' ) start [2025-04-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907448', 'tblTempVendorCDR_20' ) end [2025-04-14 16:25:21] Production.INFO: ProcessCDR(1,14907448,1,1,2) [2025-04-14 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907448', 'tblTempUsageDetail_20' ) start [2025-04-14 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907448', 'tblTempUsageDetail_20' ) end [2025-04-14 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:25:26] Production.INFO: ==32448== Releasing lock... [2025-04-14 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:26:05 [end_date_ymd] => 2025-04-14 16:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:26:05' and `end` < '2025-04-14 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-04-14 16:26:19] Production.INFO: count ==4869 [2025-04-14 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:26:05 - End Time 2025-04-14 16:26:05 [2025-04-14 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907453', 'tblTempUsageDetail_20' ) start [2025-04-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907453', 'tblTempUsageDetail_20' ) end [2025-04-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907453', 'tblTempVendorCDR_20' ) start [2025-04-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907453', 'tblTempVendorCDR_20' ) end [2025-04-14 16:26:21] Production.INFO: ProcessCDR(1,14907453,1,1,2) [2025-04-14 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907453', 'tblTempUsageDetail_20' ) start [2025-04-14 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907453', 'tblTempUsageDetail_20' ) end [2025-04-14 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:26:25] Production.INFO: ==32522== Releasing lock... [2025-04-14 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:26:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:27:05 [end_date_ymd] => 2025-04-14 16:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:27:05' and `end` < '2025-04-14 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-04-14 16:27:19] Production.INFO: count ==4888 [2025-04-14 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:27:05 - End Time 2025-04-14 16:27:05 [2025-04-14 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907458', 'tblTempUsageDetail_20' ) start [2025-04-14 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907458', 'tblTempUsageDetail_20' ) end [2025-04-14 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907458', 'tblTempVendorCDR_20' ) start [2025-04-14 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907458', 'tblTempVendorCDR_20' ) end [2025-04-14 16:27:22] Production.INFO: ProcessCDR(1,14907458,1,1,2) [2025-04-14 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907458', 'tblTempUsageDetail_20' ) start [2025-04-14 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907458', 'tblTempUsageDetail_20' ) end [2025-04-14 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:27:27] Production.INFO: ==32597== Releasing lock... [2025-04-14 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:27:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:28:04 [end_date_ymd] => 2025-04-14 16:28:04 [RateCDR] => 1 ) [2025-04-14 16:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:28:04' and `end` < '2025-04-14 16:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:28:19] Production.INFO: count ==4883 [2025-04-14 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:28:04 - End Time 2025-04-14 16:28:04 [2025-04-14 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907463', 'tblTempUsageDetail_20' ) start [2025-04-14 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907463', 'tblTempUsageDetail_20' ) end [2025-04-14 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907463', 'tblTempVendorCDR_20' ) start [2025-04-14 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907463', 'tblTempVendorCDR_20' ) end [2025-04-14 16:28:21] Production.INFO: ProcessCDR(1,14907463,1,1,2) [2025-04-14 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907463', 'tblTempUsageDetail_20' ) start [2025-04-14 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907463', 'tblTempUsageDetail_20' ) end [2025-04-14 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:28:26] Production.INFO: ==32669== Releasing lock... [2025-04-14 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:28:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:29:06 [end_date_ymd] => 2025-04-14 16:29:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:29:06' and `end` < '2025-04-14 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-04-14 16:29:20] Production.INFO: count ==4891 [2025-04-14 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:29:06 - End Time 2025-04-14 16:29:06 [2025-04-14 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907468', 'tblTempUsageDetail_20' ) start [2025-04-14 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907468', 'tblTempUsageDetail_20' ) end [2025-04-14 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907468', 'tblTempVendorCDR_20' ) start [2025-04-14 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907468', 'tblTempVendorCDR_20' ) end [2025-04-14 16:29:22] Production.INFO: ProcessCDR(1,14907468,1,1,2) [2025-04-14 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907468', 'tblTempUsageDetail_20' ) start [2025-04-14 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907468', 'tblTempUsageDetail_20' ) end [2025-04-14 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:29:27] Production.INFO: ==32745== Releasing lock... [2025-04-14 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:29:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:30:06 [end_date_ymd] => 2025-04-14 16:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:30:06' and `end` < '2025-04-14 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-04-14 16:30:20] Production.INFO: count ==4870 [2025-04-14 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:30:06 - End Time 2025-04-14 16:30:06 [2025-04-14 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907474', 'tblTempUsageDetail_20' ) start [2025-04-14 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907474', 'tblTempUsageDetail_20' ) end [2025-04-14 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907474', 'tblTempVendorCDR_20' ) start [2025-04-14 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907474', 'tblTempVendorCDR_20' ) end [2025-04-14 16:30:22] Production.INFO: ProcessCDR(1,14907474,1,1,2) [2025-04-14 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907474', 'tblTempUsageDetail_20' ) start [2025-04-14 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907474', 'tblTempUsageDetail_20' ) end [2025-04-14 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:30:27] Production.INFO: ==374== Releasing lock... [2025-04-14 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:30:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:31:04 [end_date_ymd] => 2025-04-14 16:31:04 [RateCDR] => 1 ) [2025-04-14 16: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-04-14 13:31:04' and `end` < '2025-04-14 16: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-04-14 16:31:18] Production.INFO: count ==4856 [2025-04-14 16:31:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:31:04 - End Time 2025-04-14 16:31:04 [2025-04-14 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907479', 'tblTempUsageDetail_20' ) start [2025-04-14 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907479', 'tblTempUsageDetail_20' ) end [2025-04-14 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907479', 'tblTempVendorCDR_20' ) start [2025-04-14 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907479', 'tblTempVendorCDR_20' ) end [2025-04-14 16:31:20] Production.INFO: ProcessCDR(1,14907479,1,1,2) [2025-04-14 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907479', 'tblTempUsageDetail_20' ) start [2025-04-14 16:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907479', 'tblTempUsageDetail_20' ) end [2025-04-14 16:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:31:25] Production.INFO: ==452== Releasing lock... [2025-04-14 16:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:31:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:32:06 [end_date_ymd] => 2025-04-14 16:32:06 [RateCDR] => 1 ) [2025-04-14 16: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-04-14 13:32:06' and `end` < '2025-04-14 16: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-04-14 16:32:20] Production.INFO: count ==4849 [2025-04-14 16:32:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:32:06 - End Time 2025-04-14 16:32:06 [2025-04-14 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907484', 'tblTempUsageDetail_20' ) start [2025-04-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907484', 'tblTempUsageDetail_20' ) end [2025-04-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907484', 'tblTempVendorCDR_20' ) start [2025-04-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907484', 'tblTempVendorCDR_20' ) end [2025-04-14 16:32:22] Production.INFO: ProcessCDR(1,14907484,1,1,2) [2025-04-14 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907484', 'tblTempUsageDetail_20' ) start [2025-04-14 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907484', 'tblTempUsageDetail_20' ) end [2025-04-14 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:32:26] Production.INFO: ==530== Releasing lock... [2025-04-14 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:32:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:33:05 [end_date_ymd] => 2025-04-14 16:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:33:05' and `end` < '2025-04-14 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-04-14 16:33:19] Production.INFO: count ==4855 [2025-04-14 16:33:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:33:05 - End Time 2025-04-14 16:33:05 [2025-04-14 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907489', 'tblTempUsageDetail_20' ) start [2025-04-14 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907489', 'tblTempUsageDetail_20' ) end [2025-04-14 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907489', 'tblTempVendorCDR_20' ) start [2025-04-14 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907489', 'tblTempVendorCDR_20' ) end [2025-04-14 16:33:21] Production.INFO: ProcessCDR(1,14907489,1,1,2) [2025-04-14 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907489', 'tblTempUsageDetail_20' ) start [2025-04-14 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907489', 'tblTempUsageDetail_20' ) end [2025-04-14 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:33:26] Production.INFO: ==649== Releasing lock... [2025-04-14 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:33:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:34:05 [end_date_ymd] => 2025-04-14 16:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:34:05' and `end` < '2025-04-14 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-04-14 16:34:19] Production.INFO: count ==4844 [2025-04-14 16:34:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:34:05 - End Time 2025-04-14 16:34:05 [2025-04-14 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907494', 'tblTempUsageDetail_20' ) start [2025-04-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907494', 'tblTempUsageDetail_20' ) end [2025-04-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907494', 'tblTempVendorCDR_20' ) start [2025-04-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907494', 'tblTempVendorCDR_20' ) end [2025-04-14 16:34:21] Production.INFO: ProcessCDR(1,14907494,1,1,2) [2025-04-14 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907494', 'tblTempUsageDetail_20' ) start [2025-04-14 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907494', 'tblTempUsageDetail_20' ) end [2025-04-14 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:34:26] Production.INFO: ==757== Releasing lock... [2025-04-14 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:34:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:35:05 [end_date_ymd] => 2025-04-14 16:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:35:05' and `end` < '2025-04-14 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-04-14 16:35:20] Production.INFO: count ==4844 [2025-04-14 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:35:05 - End Time 2025-04-14 16:35:05 [2025-04-14 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907499', 'tblTempUsageDetail_20' ) start [2025-04-14 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907499', 'tblTempUsageDetail_20' ) end [2025-04-14 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907499', 'tblTempVendorCDR_20' ) start [2025-04-14 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907499', 'tblTempVendorCDR_20' ) end [2025-04-14 16:35:22] Production.INFO: ProcessCDR(1,14907499,1,1,2) [2025-04-14 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907499', 'tblTempUsageDetail_20' ) start [2025-04-14 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907499', 'tblTempUsageDetail_20' ) end [2025-04-14 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:35:27] Production.INFO: ==833== Releasing lock... [2025-04-14 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:35:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:36:04 [end_date_ymd] => 2025-04-14 16:36:04 [RateCDR] => 1 ) [2025-04-14 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:36:04' and `end` < '2025-04-14 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:36:19] Production.INFO: count ==4840 [2025-04-14 16:36:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:36:04 - End Time 2025-04-14 16:36:04 [2025-04-14 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907503', 'tblTempUsageDetail_20' ) start [2025-04-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907503', 'tblTempUsageDetail_20' ) end [2025-04-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907503', 'tblTempVendorCDR_20' ) start [2025-04-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907503', 'tblTempVendorCDR_20' ) end [2025-04-14 16:36:21] Production.INFO: ProcessCDR(1,14907503,1,1,2) [2025-04-14 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907503', 'tblTempUsageDetail_20' ) start [2025-04-14 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907503', 'tblTempUsageDetail_20' ) end [2025-04-14 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:36:26] Production.INFO: ==912== Releasing lock... [2025-04-14 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:36:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:37:05 [end_date_ymd] => 2025-04-14 16:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:37:05' and `end` < '2025-04-14 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-04-14 16:37:19] Production.INFO: count ==4844 [2025-04-14 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:37:05 - End Time 2025-04-14 16:37:05 [2025-04-14 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907509', 'tblTempUsageDetail_20' ) start [2025-04-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907509', 'tblTempUsageDetail_20' ) end [2025-04-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907509', 'tblTempVendorCDR_20' ) start [2025-04-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907509', 'tblTempVendorCDR_20' ) end [2025-04-14 16:37:21] Production.INFO: ProcessCDR(1,14907509,1,1,2) [2025-04-14 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907509', 'tblTempUsageDetail_20' ) start [2025-04-14 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907509', 'tblTempUsageDetail_20' ) end [2025-04-14 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:37:26] Production.INFO: ==986== Releasing lock... [2025-04-14 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:37:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:38:05 [end_date_ymd] => 2025-04-14 16:38:05 [RateCDR] => 1 ) [2025-04-14 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:38:05' and `end` < '2025-04-14 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:38:19] Production.INFO: count ==4863 [2025-04-14 16:38:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:38:05 - End Time 2025-04-14 16:38:05 [2025-04-14 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907514', 'tblTempUsageDetail_20' ) start [2025-04-14 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907514', 'tblTempUsageDetail_20' ) end [2025-04-14 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907514', 'tblTempVendorCDR_20' ) start [2025-04-14 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907514', 'tblTempVendorCDR_20' ) end [2025-04-14 16:38:21] Production.INFO: ProcessCDR(1,14907514,1,1,2) [2025-04-14 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907514', 'tblTempUsageDetail_20' ) start [2025-04-14 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907514', 'tblTempUsageDetail_20' ) end [2025-04-14 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:38:26] Production.INFO: ==1058== Releasing lock... [2025-04-14 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:38:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:39:05 [end_date_ymd] => 2025-04-14 16:39:05 [RateCDR] => 1 ) [2025-04-14 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:39:05' and `end` < '2025-04-14 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:39:19] Production.INFO: count ==4873 [2025-04-14 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:39:05 - End Time 2025-04-14 16:39:05 [2025-04-14 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907516', 'tblTempUsageDetail_20' ) start [2025-04-14 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907516', 'tblTempUsageDetail_20' ) end [2025-04-14 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907516', 'tblTempVendorCDR_20' ) start [2025-04-14 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907516', 'tblTempVendorCDR_20' ) end [2025-04-14 16:39:22] Production.INFO: ProcessCDR(1,14907516,1,1,2) [2025-04-14 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907516', 'tblTempUsageDetail_20' ) start [2025-04-14 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907516', 'tblTempUsageDetail_20' ) end [2025-04-14 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:39:26] Production.INFO: ==1133== Releasing lock... [2025-04-14 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:39:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-14 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:40:06 [end_date_ymd] => 2025-04-14 16:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:40:06' and `end` < '2025-04-14 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-04-14 16:40:20] Production.INFO: count ==4842 [2025-04-14 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:40:06 - End Time 2025-04-14 16:40:06 [2025-04-14 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907524', 'tblTempUsageDetail_20' ) start [2025-04-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907524', 'tblTempUsageDetail_20' ) end [2025-04-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907524', 'tblTempVendorCDR_20' ) start [2025-04-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907524', 'tblTempVendorCDR_20' ) end [2025-04-14 16:40:22] Production.INFO: ProcessCDR(1,14907524,1,1,2) [2025-04-14 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907524', 'tblTempUsageDetail_20' ) start [2025-04-14 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907524', 'tblTempUsageDetail_20' ) end [2025-04-14 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:40:26] Production.INFO: ==1220== Releasing lock... [2025-04-14 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:40:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:41:05 [end_date_ymd] => 2025-04-14 16:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:41:05' and `end` < '2025-04-14 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-04-14 16:41:19] Production.INFO: count ==4842 [2025-04-14 16:41:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:41:05 - End Time 2025-04-14 16:41:05 [2025-04-14 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907530', 'tblTempUsageDetail_20' ) start [2025-04-14 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907530', 'tblTempUsageDetail_20' ) end [2025-04-14 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907530', 'tblTempVendorCDR_20' ) start [2025-04-14 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907530', 'tblTempVendorCDR_20' ) end [2025-04-14 16:41:21] Production.INFO: ProcessCDR(1,14907530,1,1,2) [2025-04-14 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907530', 'tblTempUsageDetail_20' ) start [2025-04-14 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907530', 'tblTempUsageDetail_20' ) end [2025-04-14 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:41:25] Production.INFO: ==1307== Releasing lock... [2025-04-14 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:41:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:42:05 [end_date_ymd] => 2025-04-14 16:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:42:05' and `end` < '2025-04-14 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-04-14 16:42:20] Production.INFO: count ==4843 [2025-04-14 16:42:22] Production.ERROR: pbx CDR StartTime 2025-04-14 13:42:05 - End Time 2025-04-14 16:42:05 [2025-04-14 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907535', 'tblTempUsageDetail_20' ) start [2025-04-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907535', 'tblTempUsageDetail_20' ) end [2025-04-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907535', 'tblTempVendorCDR_20' ) start [2025-04-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907535', 'tblTempVendorCDR_20' ) end [2025-04-14 16:42:22] Production.INFO: ProcessCDR(1,14907535,1,1,2) [2025-04-14 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907535', 'tblTempUsageDetail_20' ) start [2025-04-14 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907535', 'tblTempUsageDetail_20' ) end [2025-04-14 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:42:27] Production.INFO: ==1384== Releasing lock... [2025-04-14 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:42:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:43:04 [end_date_ymd] => 2025-04-14 16:43:04 [RateCDR] => 1 ) [2025-04-14 16: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-04-14 13:43:04' and `end` < '2025-04-14 16: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-04-14 16:43:18] Production.INFO: count ==4850 [2025-04-14 16:43:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:43:04 - End Time 2025-04-14 16:43:04 [2025-04-14 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907540', 'tblTempUsageDetail_20' ) start [2025-04-14 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907540', 'tblTempUsageDetail_20' ) end [2025-04-14 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907540', 'tblTempVendorCDR_20' ) start [2025-04-14 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907540', 'tblTempVendorCDR_20' ) end [2025-04-14 16:43:20] Production.INFO: ProcessCDR(1,14907540,1,1,2) [2025-04-14 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907540', 'tblTempUsageDetail_20' ) start [2025-04-14 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907540', 'tblTempUsageDetail_20' ) end [2025-04-14 16:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:43:25] Production.INFO: ==1457== Releasing lock... [2025-04-14 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:43:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:44:05 [end_date_ymd] => 2025-04-14 16:44:05 [RateCDR] => 1 ) [2025-04-14 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:44:05' and `end` < '2025-04-14 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-04-14 16:44:20] Production.INFO: count ==4835 [2025-04-14 16:44:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:44:05 - End Time 2025-04-14 16:44:05 [2025-04-14 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907545', 'tblTempUsageDetail_20' ) start [2025-04-14 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907545', 'tblTempUsageDetail_20' ) end [2025-04-14 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907545', 'tblTempVendorCDR_20' ) start [2025-04-14 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907545', 'tblTempVendorCDR_20' ) end [2025-04-14 16:44:22] Production.INFO: ProcessCDR(1,14907545,1,1,2) [2025-04-14 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907545', 'tblTempUsageDetail_20' ) start [2025-04-14 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907545', 'tblTempUsageDetail_20' ) end [2025-04-14 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:44:27] Production.INFO: ==1565== Releasing lock... [2025-04-14 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:44:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-14 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:45:05 [end_date_ymd] => 2025-04-14 16:45:05 [RateCDR] => 1 ) [2025-04-14 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:45:05' and `end` < '2025-04-14 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:45:19] Production.INFO: count ==4825 [2025-04-14 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:45:05 - End Time 2025-04-14 16:45:05 [2025-04-14 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907550', 'tblTempUsageDetail_20' ) start [2025-04-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907550', 'tblTempUsageDetail_20' ) end [2025-04-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907550', 'tblTempVendorCDR_20' ) start [2025-04-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907550', 'tblTempVendorCDR_20' ) end [2025-04-14 16:45:21] Production.INFO: ProcessCDR(1,14907550,1,1,2) [2025-04-14 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907550', 'tblTempUsageDetail_20' ) start [2025-04-14 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907550', 'tblTempUsageDetail_20' ) end [2025-04-14 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:45:26] Production.INFO: ==1642== Releasing lock... [2025-04-14 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:45:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:46:05 [end_date_ymd] => 2025-04-14 16:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:46:05' and `end` < '2025-04-14 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-04-14 16:46:19] Production.INFO: count ==4814 [2025-04-14 16:46:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:46:05 - End Time 2025-04-14 16:46:05 [2025-04-14 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907555', 'tblTempUsageDetail_20' ) start [2025-04-14 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907555', 'tblTempUsageDetail_20' ) end [2025-04-14 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907555', 'tblTempVendorCDR_20' ) start [2025-04-14 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907555', 'tblTempVendorCDR_20' ) end [2025-04-14 16:46:21] Production.INFO: ProcessCDR(1,14907555,1,1,2) [2025-04-14 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907555', 'tblTempUsageDetail_20' ) start [2025-04-14 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907555', 'tblTempUsageDetail_20' ) end [2025-04-14 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:46:26] Production.INFO: ==1724== Releasing lock... [2025-04-14 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:46:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:47:05 [end_date_ymd] => 2025-04-14 16:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:47:05' and `end` < '2025-04-14 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-04-14 16:47:19] Production.INFO: count ==4804 [2025-04-14 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:47:05 - End Time 2025-04-14 16:47:05 [2025-04-14 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907560', 'tblTempUsageDetail_20' ) start [2025-04-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907560', 'tblTempUsageDetail_20' ) end [2025-04-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907560', 'tblTempVendorCDR_20' ) start [2025-04-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907560', 'tblTempVendorCDR_20' ) end [2025-04-14 16:47:21] Production.INFO: ProcessCDR(1,14907560,1,1,2) [2025-04-14 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907560', 'tblTempUsageDetail_20' ) start [2025-04-14 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907560', 'tblTempUsageDetail_20' ) end [2025-04-14 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:47:26] Production.INFO: ==1801== Releasing lock... [2025-04-14 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:47:26] Production.INFO: 64 MB #Memory Used# [2025-04-14 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:48:05 [end_date_ymd] => 2025-04-14 16:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:48:05' and `end` < '2025-04-14 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-04-14 16:48:19] Production.INFO: count ==4790 [2025-04-14 16:48:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:48:05 - End Time 2025-04-14 16:48:05 [2025-04-14 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907565', 'tblTempUsageDetail_20' ) start [2025-04-14 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907565', 'tblTempUsageDetail_20' ) end [2025-04-14 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907565', 'tblTempVendorCDR_20' ) start [2025-04-14 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907565', 'tblTempVendorCDR_20' ) end [2025-04-14 16:48:21] Production.INFO: ProcessCDR(1,14907565,1,1,2) [2025-04-14 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907565', 'tblTempUsageDetail_20' ) start [2025-04-14 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907565', 'tblTempUsageDetail_20' ) end [2025-04-14 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:48:26] Production.INFO: ==1925== Releasing lock... [2025-04-14 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:48:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:49:05 [end_date_ymd] => 2025-04-14 16:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:49:05' and `end` < '2025-04-14 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-04-14 16:49:19] Production.INFO: count ==4776 [2025-04-14 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:49:05 - End Time 2025-04-14 16:49:05 [2025-04-14 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907570', 'tblTempUsageDetail_20' ) start [2025-04-14 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907570', 'tblTempUsageDetail_20' ) end [2025-04-14 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907570', 'tblTempVendorCDR_20' ) start [2025-04-14 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907570', 'tblTempVendorCDR_20' ) end [2025-04-14 16:49:21] Production.INFO: ProcessCDR(1,14907570,1,1,2) [2025-04-14 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907570', 'tblTempUsageDetail_20' ) start [2025-04-14 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907570', 'tblTempUsageDetail_20' ) end [2025-04-14 16:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:49:24] Production.INFO: ==2002== Releasing lock... [2025-04-14 16:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:49:24] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:50:05 [end_date_ymd] => 2025-04-14 16:50:05 [RateCDR] => 1 ) [2025-04-14 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:50:05' and `end` < '2025-04-14 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:50:19] Production.INFO: count ==4789 [2025-04-14 16:50:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:50:05 - End Time 2025-04-14 16:50:05 [2025-04-14 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907575', 'tblTempUsageDetail_20' ) start [2025-04-14 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907575', 'tblTempUsageDetail_20' ) end [2025-04-14 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907575', 'tblTempVendorCDR_20' ) start [2025-04-14 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907575', 'tblTempVendorCDR_20' ) end [2025-04-14 16:50:21] Production.INFO: ProcessCDR(1,14907575,1,1,2) [2025-04-14 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907575', 'tblTempUsageDetail_20' ) start [2025-04-14 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907575', 'tblTempUsageDetail_20' ) end [2025-04-14 16:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:50:26] Production.INFO: ==2075== Releasing lock... [2025-04-14 16:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:50:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:51:05 [end_date_ymd] => 2025-04-14 16:51:05 [RateCDR] => 1 ) [2025-04-14 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:51:05' and `end` < '2025-04-14 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:51:19] Production.INFO: count ==4765 [2025-04-14 16:51:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:51:05 - End Time 2025-04-14 16:51:05 [2025-04-14 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907581', 'tblTempUsageDetail_20' ) start [2025-04-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907581', 'tblTempUsageDetail_20' ) end [2025-04-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907581', 'tblTempVendorCDR_20' ) start [2025-04-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907581', 'tblTempVendorCDR_20' ) end [2025-04-14 16:51:21] Production.INFO: ProcessCDR(1,14907581,1,1,2) [2025-04-14 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907581', 'tblTempUsageDetail_20' ) start [2025-04-14 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907581', 'tblTempUsageDetail_20' ) end [2025-04-14 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:51:26] Production.INFO: ==2148== Releasing lock... [2025-04-14 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:51:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:52:05 [end_date_ymd] => 2025-04-14 16:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:52:05' and `end` < '2025-04-14 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-04-14 16:52:19] Production.INFO: count ==4762 [2025-04-14 16:52:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:52:05 - End Time 2025-04-14 16:52:05 [2025-04-14 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907586', 'tblTempUsageDetail_20' ) start [2025-04-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907586', 'tblTempUsageDetail_20' ) end [2025-04-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907586', 'tblTempVendorCDR_20' ) start [2025-04-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907586', 'tblTempVendorCDR_20' ) end [2025-04-14 16:52:21] Production.INFO: ProcessCDR(1,14907586,1,1,2) [2025-04-14 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907586', 'tblTempUsageDetail_20' ) start [2025-04-14 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907586', 'tblTempUsageDetail_20' ) end [2025-04-14 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:52:25] Production.INFO: ==2232== Releasing lock... [2025-04-14 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:52:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:53:05 [end_date_ymd] => 2025-04-14 16:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:53:05' and `end` < '2025-04-14 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-04-14 16:53:19] Production.INFO: count ==4758 [2025-04-14 16:53:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:53:05 - End Time 2025-04-14 16:53:05 [2025-04-14 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907591', 'tblTempUsageDetail_20' ) start [2025-04-14 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907591', 'tblTempUsageDetail_20' ) end [2025-04-14 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907591', 'tblTempVendorCDR_20' ) start [2025-04-14 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907591', 'tblTempVendorCDR_20' ) end [2025-04-14 16:53:21] Production.INFO: ProcessCDR(1,14907591,1,1,2) [2025-04-14 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907591', 'tblTempUsageDetail_20' ) start [2025-04-14 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907591', 'tblTempUsageDetail_20' ) end [2025-04-14 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:53:26] Production.INFO: ==2316== Releasing lock... [2025-04-14 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:53:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:54:06 [end_date_ymd] => 2025-04-14 16:54:06 [RateCDR] => 1 ) [2025-04-14 16: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-04-14 13:54:06' and `end` < '2025-04-14 16: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-04-14 16:54:19] Production.INFO: count ==4763 [2025-04-14 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:54:06 - End Time 2025-04-14 16:54:06 [2025-04-14 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907596', 'tblTempUsageDetail_20' ) start [2025-04-14 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907596', 'tblTempUsageDetail_20' ) end [2025-04-14 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907596', 'tblTempVendorCDR_20' ) start [2025-04-14 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907596', 'tblTempVendorCDR_20' ) end [2025-04-14 16:54:21] Production.INFO: ProcessCDR(1,14907596,1,1,2) [2025-04-14 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907596', 'tblTempUsageDetail_20' ) start [2025-04-14 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907596', 'tblTempUsageDetail_20' ) end [2025-04-14 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:54:26] Production.INFO: ==2398== Releasing lock... [2025-04-14 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:54:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:55:05 [end_date_ymd] => 2025-04-14 16:55:05 [RateCDR] => 1 ) [2025-04-14 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:55:05' and `end` < '2025-04-14 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-04-14 16:55:19] Production.INFO: count ==4761 [2025-04-14 16:55:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:55:05 - End Time 2025-04-14 16:55:05 [2025-04-14 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907601', 'tblTempUsageDetail_20' ) start [2025-04-14 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907601', 'tblTempUsageDetail_20' ) end [2025-04-14 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907601', 'tblTempVendorCDR_20' ) start [2025-04-14 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907601', 'tblTempVendorCDR_20' ) end [2025-04-14 16:55:21] Production.INFO: ProcessCDR(1,14907601,1,1,2) [2025-04-14 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907601', 'tblTempUsageDetail_20' ) start [2025-04-14 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907601', 'tblTempUsageDetail_20' ) end [2025-04-14 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:55:26] Production.INFO: ==2483== Releasing lock... [2025-04-14 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:55:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-14 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:56:05 [end_date_ymd] => 2025-04-14 16:56:05 [RateCDR] => 1 ) [2025-04-14 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:56:05' and `end` < '2025-04-14 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:56:19] Production.INFO: count ==4758 [2025-04-14 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:56:05 - End Time 2025-04-14 16:56:05 [2025-04-14 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907606', 'tblTempUsageDetail_20' ) start [2025-04-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907606', 'tblTempUsageDetail_20' ) end [2025-04-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907606', 'tblTempVendorCDR_20' ) start [2025-04-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907606', 'tblTempVendorCDR_20' ) end [2025-04-14 16:56:21] Production.INFO: ProcessCDR(1,14907606,1,1,2) [2025-04-14 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907606', 'tblTempUsageDetail_20' ) start [2025-04-14 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907606', 'tblTempUsageDetail_20' ) end [2025-04-14 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:56:26] Production.INFO: ==2559== Releasing lock... [2025-04-14 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:56:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:57:05 [end_date_ymd] => 2025-04-14 16:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:57:05' and `end` < '2025-04-14 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-04-14 16:57:18] Production.INFO: count ==4749 [2025-04-14 16:57:20] Production.ERROR: pbx CDR StartTime 2025-04-14 13:57:05 - End Time 2025-04-14 16:57:05 [2025-04-14 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907611', 'tblTempUsageDetail_20' ) start [2025-04-14 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907611', 'tblTempUsageDetail_20' ) end [2025-04-14 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907611', 'tblTempVendorCDR_20' ) start [2025-04-14 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907611', 'tblTempVendorCDR_20' ) end [2025-04-14 16:57:20] Production.INFO: ProcessCDR(1,14907611,1,1,2) [2025-04-14 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907611', 'tblTempUsageDetail_20' ) start [2025-04-14 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907611', 'tblTempUsageDetail_20' ) end [2025-04-14 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:57:25] Production.INFO: ==2636== Releasing lock... [2025-04-14 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:57:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:58:05 [end_date_ymd] => 2025-04-14 16:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 13:58:05' and `end` < '2025-04-14 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 16:58:19] Production.INFO: count ==4728 [2025-04-14 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:58:05 - End Time 2025-04-14 16:58:05 [2025-04-14 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907616', 'tblTempUsageDetail_20' ) start [2025-04-14 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907616', 'tblTempUsageDetail_20' ) end [2025-04-14 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907616', 'tblTempVendorCDR_20' ) start [2025-04-14 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907616', 'tblTempVendorCDR_20' ) end [2025-04-14 16:58:21] Production.INFO: ProcessCDR(1,14907616,1,1,2) [2025-04-14 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907616', 'tblTempUsageDetail_20' ) start [2025-04-14 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907616', 'tblTempUsageDetail_20' ) end [2025-04-14 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:58:26] Production.INFO: ==2713== Releasing lock... [2025-04-14 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:58:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 13:59:06 [end_date_ymd] => 2025-04-14 16:59:06 [RateCDR] => 1 ) [2025-04-14 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 13:59:06' and `end` < '2025-04-14 16: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-04-14 16:59:19] Production.INFO: count ==4721 [2025-04-14 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-14 13:59:06 - End Time 2025-04-14 16:59:06 [2025-04-14 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907621', 'tblTempUsageDetail_20' ) start [2025-04-14 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907621', 'tblTempUsageDetail_20' ) end [2025-04-14 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907621', 'tblTempVendorCDR_20' ) start [2025-04-14 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907621', 'tblTempVendorCDR_20' ) end [2025-04-14 16:59:21] Production.INFO: ProcessCDR(1,14907621,1,1,2) [2025-04-14 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907621', 'tblTempUsageDetail_20' ) start [2025-04-14 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907621', 'tblTempUsageDetail_20' ) end [2025-04-14 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 16:59:26] Production.INFO: ==2799== Releasing lock... [2025-04-14 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 16:59:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-14 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:00:05 [end_date_ymd] => 2025-04-14 17:00:05 [RateCDR] => 1 ) [2025-04-14 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:00:05' and `end` < '2025-04-14 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-04-14 17:00:19] Production.INFO: count ==4732 [2025-04-14 17:00:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:00:05 - End Time 2025-04-14 17:00:05 [2025-04-14 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907626', 'tblTempUsageDetail_20' ) start [2025-04-14 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907626', 'tblTempUsageDetail_20' ) end [2025-04-14 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907626', 'tblTempVendorCDR_20' ) start [2025-04-14 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907626', 'tblTempVendorCDR_20' ) end [2025-04-14 17:00:21] Production.INFO: ProcessCDR(1,14907626,1,1,2) [2025-04-14 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907626', 'tblTempUsageDetail_20' ) start [2025-04-14 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907626', 'tblTempUsageDetail_20' ) end [2025-04-14 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:00:26] Production.INFO: ==2883== Releasing lock... [2025-04-14 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:00:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:01:05 [end_date_ymd] => 2025-04-14 17:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:01:05' and `end` < '2025-04-14 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-04-14 17:01:19] Production.INFO: count ==4744 [2025-04-14 17:01:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:01:05 - End Time 2025-04-14 17:01:05 [2025-04-14 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907632', 'tblTempUsageDetail_20' ) start [2025-04-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907632', 'tblTempUsageDetail_20' ) end [2025-04-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907632', 'tblTempVendorCDR_20' ) start [2025-04-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907632', 'tblTempVendorCDR_20' ) end [2025-04-14 17:01:21] Production.INFO: ProcessCDR(1,14907632,1,1,2) [2025-04-14 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907632', 'tblTempUsageDetail_20' ) start [2025-04-14 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907632', 'tblTempUsageDetail_20' ) end [2025-04-14 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:01:26] Production.INFO: ==2986== Releasing lock... [2025-04-14 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:01:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:02:05 [end_date_ymd] => 2025-04-14 17:02:05 [RateCDR] => 1 ) [2025-04-14 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:02:05' and `end` < '2025-04-14 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:02:18] Production.INFO: count ==4748 [2025-04-14 17:02:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:02:05 - End Time 2025-04-14 17:02:05 [2025-04-14 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907637', 'tblTempUsageDetail_20' ) start [2025-04-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907637', 'tblTempUsageDetail_20' ) end [2025-04-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907637', 'tblTempVendorCDR_20' ) start [2025-04-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907637', 'tblTempVendorCDR_20' ) end [2025-04-14 17:02:20] Production.INFO: ProcessCDR(1,14907637,1,1,2) [2025-04-14 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907637', 'tblTempUsageDetail_20' ) start [2025-04-14 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907637', 'tblTempUsageDetail_20' ) end [2025-04-14 17:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:02:25] Production.INFO: ==3068== Releasing lock... [2025-04-14 17:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:02:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:03:05 [end_date_ymd] => 2025-04-14 17:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:03:05' and `end` < '2025-04-14 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-04-14 17:03:19] Production.INFO: count ==4751 [2025-04-14 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:03:05 - End Time 2025-04-14 17:03:05 [2025-04-14 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907642', 'tblTempUsageDetail_20' ) start [2025-04-14 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907642', 'tblTempUsageDetail_20' ) end [2025-04-14 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907642', 'tblTempVendorCDR_20' ) start [2025-04-14 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907642', 'tblTempVendorCDR_20' ) end [2025-04-14 17:03:21] Production.INFO: ProcessCDR(1,14907642,1,1,2) [2025-04-14 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907642', 'tblTempUsageDetail_20' ) start [2025-04-14 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907642', 'tblTempUsageDetail_20' ) end [2025-04-14 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:03:26] Production.INFO: ==3147== Releasing lock... [2025-04-14 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:03:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:04:05 [end_date_ymd] => 2025-04-14 17:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:04:05' and `end` < '2025-04-14 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-04-14 17:04:19] Production.INFO: count ==4750 [2025-04-14 17:04:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:04:05 - End Time 2025-04-14 17:04:05 [2025-04-14 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907647', 'tblTempUsageDetail_20' ) start [2025-04-14 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907647', 'tblTempUsageDetail_20' ) end [2025-04-14 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907647', 'tblTempVendorCDR_20' ) start [2025-04-14 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907647', 'tblTempVendorCDR_20' ) end [2025-04-14 17:04:20] Production.INFO: ProcessCDR(1,14907647,1,1,2) [2025-04-14 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907647', 'tblTempUsageDetail_20' ) start [2025-04-14 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907647', 'tblTempUsageDetail_20' ) end [2025-04-14 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:04:25] Production.INFO: ==3265== Releasing lock... [2025-04-14 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:04:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:05:05 [end_date_ymd] => 2025-04-14 17:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:05:05' and `end` < '2025-04-14 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-04-14 17:05:19] Production.INFO: count ==4745 [2025-04-14 17:05:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:05:05 - End Time 2025-04-14 17:05:05 [2025-04-14 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907652', 'tblTempUsageDetail_20' ) start [2025-04-14 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907652', 'tblTempUsageDetail_20' ) end [2025-04-14 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907652', 'tblTempVendorCDR_20' ) start [2025-04-14 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907652', 'tblTempVendorCDR_20' ) end [2025-04-14 17:05:20] Production.INFO: ProcessCDR(1,14907652,1,1,2) [2025-04-14 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907652', 'tblTempUsageDetail_20' ) start [2025-04-14 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907652', 'tblTempUsageDetail_20' ) end [2025-04-14 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:05:25] Production.INFO: ==3345== Releasing lock... [2025-04-14 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:05:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:06:05 [end_date_ymd] => 2025-04-14 17:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:06:05' and `end` < '2025-04-14 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-04-14 17:06:19] Production.INFO: count ==4737 [2025-04-14 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:06:05 - End Time 2025-04-14 17:06:05 [2025-04-14 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907657', 'tblTempUsageDetail_20' ) start [2025-04-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907657', 'tblTempUsageDetail_20' ) end [2025-04-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907657', 'tblTempVendorCDR_20' ) start [2025-04-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907657', 'tblTempVendorCDR_20' ) end [2025-04-14 17:06:21] Production.INFO: ProcessCDR(1,14907657,1,1,2) [2025-04-14 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907657', 'tblTempUsageDetail_20' ) start [2025-04-14 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907657', 'tblTempUsageDetail_20' ) end [2025-04-14 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:06:26] Production.INFO: ==3418== Releasing lock... [2025-04-14 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:06:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:07:05 [end_date_ymd] => 2025-04-14 17:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:07:05' and `end` < '2025-04-14 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-04-14 17:07:19] Production.INFO: count ==4734 [2025-04-14 17:07:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:07:05 - End Time 2025-04-14 17:07:05 [2025-04-14 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907662', 'tblTempUsageDetail_20' ) start [2025-04-14 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907662', 'tblTempUsageDetail_20' ) end [2025-04-14 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907662', 'tblTempVendorCDR_20' ) start [2025-04-14 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907662', 'tblTempVendorCDR_20' ) end [2025-04-14 17:07:21] Production.INFO: ProcessCDR(1,14907662,1,1,2) [2025-04-14 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907662', 'tblTempUsageDetail_20' ) start [2025-04-14 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907662', 'tblTempUsageDetail_20' ) end [2025-04-14 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:07:24] Production.INFO: ==3494== Releasing lock... [2025-04-14 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:07:24] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:08:05 [end_date_ymd] => 2025-04-14 17:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:08:05' and `end` < '2025-04-14 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-04-14 17:08:19] Production.INFO: count ==4735 [2025-04-14 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:08:05 - End Time 2025-04-14 17:08:05 [2025-04-14 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907667', 'tblTempUsageDetail_20' ) start [2025-04-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907667', 'tblTempUsageDetail_20' ) end [2025-04-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907667', 'tblTempVendorCDR_20' ) start [2025-04-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907667', 'tblTempVendorCDR_20' ) end [2025-04-14 17:08:21] Production.INFO: ProcessCDR(1,14907667,1,1,2) [2025-04-14 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907667', 'tblTempUsageDetail_20' ) start [2025-04-14 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907667', 'tblTempUsageDetail_20' ) end [2025-04-14 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:08:26] Production.INFO: ==3575== Releasing lock... [2025-04-14 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:08:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-14 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:09:04 [end_date_ymd] => 2025-04-14 17:09:04 [RateCDR] => 1 ) [2025-04-14 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:09:04' and `end` < '2025-04-14 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:09:18] Production.INFO: count ==4725 [2025-04-14 17:09:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:09:04 - End Time 2025-04-14 17:09:04 [2025-04-14 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907672', 'tblTempUsageDetail_20' ) start [2025-04-14 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907672', 'tblTempUsageDetail_20' ) end [2025-04-14 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907672', 'tblTempVendorCDR_20' ) start [2025-04-14 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907672', 'tblTempVendorCDR_20' ) end [2025-04-14 17:09:20] Production.INFO: ProcessCDR(1,14907672,1,1,2) [2025-04-14 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907672', 'tblTempUsageDetail_20' ) start [2025-04-14 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907672', 'tblTempUsageDetail_20' ) end [2025-04-14 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:09:24] Production.INFO: ==3650== Releasing lock... [2025-04-14 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:09:24] Production.INFO: 63.25 MB #Memory Used# [2025-04-14 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:10:05 [end_date_ymd] => 2025-04-14 17:10:05 [RateCDR] => 1 ) [2025-04-14 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:10:05' and `end` < '2025-04-14 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:10:19] Production.INFO: count ==4717 [2025-04-14 17:10:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:10:05 - End Time 2025-04-14 17:10:05 [2025-04-14 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907678', 'tblTempUsageDetail_20' ) start [2025-04-14 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907678', 'tblTempUsageDetail_20' ) end [2025-04-14 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907678', 'tblTempVendorCDR_20' ) start [2025-04-14 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907678', 'tblTempVendorCDR_20' ) end [2025-04-14 17:10:21] Production.INFO: ProcessCDR(1,14907678,1,1,2) [2025-04-14 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907678', 'tblTempUsageDetail_20' ) start [2025-04-14 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907678', 'tblTempUsageDetail_20' ) end [2025-04-14 17:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:10:25] Production.INFO: ==3723== Releasing lock... [2025-04-14 17:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:10:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-14 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:11:05 [end_date_ymd] => 2025-04-14 17:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:11:05' and `end` < '2025-04-14 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-04-14 17:11:18] Production.INFO: count ==4671 [2025-04-14 17:11:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:11:05 - End Time 2025-04-14 17:11:05 [2025-04-14 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907683', 'tblTempUsageDetail_20' ) start [2025-04-14 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907683', 'tblTempUsageDetail_20' ) end [2025-04-14 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907683', 'tblTempVendorCDR_20' ) start [2025-04-14 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907683', 'tblTempVendorCDR_20' ) end [2025-04-14 17:11:20] Production.INFO: ProcessCDR(1,14907683,1,1,2) [2025-04-14 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907683', 'tblTempUsageDetail_20' ) start [2025-04-14 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907683', 'tblTempUsageDetail_20' ) end [2025-04-14 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:11:25] Production.INFO: ==3797== Releasing lock... [2025-04-14 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:11:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:12:05 [end_date_ymd] => 2025-04-14 17:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:12:05' and `end` < '2025-04-14 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-04-14 17:12:19] Production.INFO: count ==4667 [2025-04-14 17:12:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:12:05 - End Time 2025-04-14 17:12:05 [2025-04-14 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907688', 'tblTempUsageDetail_20' ) start [2025-04-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907688', 'tblTempUsageDetail_20' ) end [2025-04-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907688', 'tblTempVendorCDR_20' ) start [2025-04-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907688', 'tblTempVendorCDR_20' ) end [2025-04-14 17:12:20] Production.INFO: ProcessCDR(1,14907688,1,1,2) [2025-04-14 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907688', 'tblTempUsageDetail_20' ) start [2025-04-14 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907688', 'tblTempUsageDetail_20' ) end [2025-04-14 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:12:26] Production.INFO: ==3875== Releasing lock... [2025-04-14 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:12:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:13:05 [end_date_ymd] => 2025-04-14 17:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:13:05' and `end` < '2025-04-14 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-04-14 17:13:19] Production.INFO: count ==4658 [2025-04-14 17:13:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:13:05 - End Time 2025-04-14 17:13:05 [2025-04-14 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907693', 'tblTempUsageDetail_20' ) start [2025-04-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907693', 'tblTempUsageDetail_20' ) end [2025-04-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907693', 'tblTempVendorCDR_20' ) start [2025-04-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907693', 'tblTempVendorCDR_20' ) end [2025-04-14 17:13:21] Production.INFO: ProcessCDR(1,14907693,1,1,2) [2025-04-14 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907693', 'tblTempUsageDetail_20' ) start [2025-04-14 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907693', 'tblTempUsageDetail_20' ) end [2025-04-14 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:13:26] Production.INFO: ==3949== Releasing lock... [2025-04-14 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:13:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:14:05 [end_date_ymd] => 2025-04-14 17:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:14:05' and `end` < '2025-04-14 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-04-14 17:14:19] Production.INFO: count ==4659 [2025-04-14 17:14:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:14:05 - End Time 2025-04-14 17:14:05 [2025-04-14 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907698', 'tblTempUsageDetail_20' ) start [2025-04-14 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907698', 'tblTempUsageDetail_20' ) end [2025-04-14 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907698', 'tblTempVendorCDR_20' ) start [2025-04-14 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907698', 'tblTempVendorCDR_20' ) end [2025-04-14 17:14:20] Production.INFO: ProcessCDR(1,14907698,1,1,2) [2025-04-14 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907698', 'tblTempUsageDetail_20' ) start [2025-04-14 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907698', 'tblTempUsageDetail_20' ) end [2025-04-14 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:14:25] Production.INFO: ==4032== Releasing lock... [2025-04-14 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:14:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:15:05 [end_date_ymd] => 2025-04-14 17:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:15:05' and `end` < '2025-04-14 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-04-14 17:15:19] Production.INFO: count ==4675 [2025-04-14 17:15:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:15:05 - End Time 2025-04-14 17:15:05 [2025-04-14 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907703', 'tblTempUsageDetail_20' ) start [2025-04-14 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907703', 'tblTempUsageDetail_20' ) end [2025-04-14 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907703', 'tblTempVendorCDR_20' ) start [2025-04-14 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907703', 'tblTempVendorCDR_20' ) end [2025-04-14 17:15:21] Production.INFO: ProcessCDR(1,14907703,1,1,2) [2025-04-14 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907703', 'tblTempUsageDetail_20' ) start [2025-04-14 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907703', 'tblTempUsageDetail_20' ) end [2025-04-14 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:15:26] Production.INFO: ==4116== Releasing lock... [2025-04-14 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:15:26] Production.INFO: 63 MB #Memory Used# [2025-04-14 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:16:05 [end_date_ymd] => 2025-04-14 17:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:16:05' and `end` < '2025-04-14 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-04-14 17:16:19] Production.INFO: count ==4664 [2025-04-14 17:16:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:16:05 - End Time 2025-04-14 17:16:05 [2025-04-14 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907708', 'tblTempUsageDetail_20' ) start [2025-04-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907708', 'tblTempUsageDetail_20' ) end [2025-04-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907708', 'tblTempVendorCDR_20' ) start [2025-04-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907708', 'tblTempVendorCDR_20' ) end [2025-04-14 17:16:20] Production.INFO: ProcessCDR(1,14907708,1,1,2) [2025-04-14 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907708', 'tblTempUsageDetail_20' ) start [2025-04-14 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907708', 'tblTempUsageDetail_20' ) end [2025-04-14 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:16:25] Production.INFO: ==4186== Releasing lock... [2025-04-14 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:16:25] Production.INFO: 63 MB #Memory Used# [2025-04-14 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:17:05 [end_date_ymd] => 2025-04-14 17:17:05 [RateCDR] => 1 ) [2025-04-14 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:17:05' and `end` < '2025-04-14 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:17:19] Production.INFO: count ==4658 [2025-04-14 17:17:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:17:05 - End Time 2025-04-14 17:17:05 [2025-04-14 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907713', 'tblTempUsageDetail_20' ) start [2025-04-14 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907713', 'tblTempUsageDetail_20' ) end [2025-04-14 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907713', 'tblTempVendorCDR_20' ) start [2025-04-14 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907713', 'tblTempVendorCDR_20' ) end [2025-04-14 17:17:20] Production.INFO: ProcessCDR(1,14907713,1,1,2) [2025-04-14 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907713', 'tblTempUsageDetail_20' ) start [2025-04-14 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907713', 'tblTempUsageDetail_20' ) end [2025-04-14 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:17:25] Production.INFO: ==4264== Releasing lock... [2025-04-14 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:17:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:18:06 [end_date_ymd] => 2025-04-14 17:18:06 [RateCDR] => 1 ) [2025-04-14 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:18:06' and `end` < '2025-04-14 17: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-04-14 17:18:19] Production.INFO: count ==4631 [2025-04-14 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:18:06 - End Time 2025-04-14 17:18:06 [2025-04-14 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907718', 'tblTempUsageDetail_20' ) start [2025-04-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907718', 'tblTempUsageDetail_20' ) end [2025-04-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907718', 'tblTempVendorCDR_20' ) start [2025-04-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907718', 'tblTempVendorCDR_20' ) end [2025-04-14 17:18:21] Production.INFO: ProcessCDR(1,14907718,1,1,2) [2025-04-14 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907718', 'tblTempUsageDetail_20' ) start [2025-04-14 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907718', 'tblTempUsageDetail_20' ) end [2025-04-14 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:18:26] Production.INFO: ==4352== Releasing lock... [2025-04-14 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:18:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:19:05 [end_date_ymd] => 2025-04-14 17:19:05 [RateCDR] => 1 ) [2025-04-14 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:19:05' and `end` < '2025-04-14 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:19:19] Production.INFO: count ==4631 [2025-04-14 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:19:05 - End Time 2025-04-14 17:19:05 [2025-04-14 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907723', 'tblTempUsageDetail_20' ) start [2025-04-14 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907723', 'tblTempUsageDetail_20' ) end [2025-04-14 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907723', 'tblTempVendorCDR_20' ) start [2025-04-14 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907723', 'tblTempVendorCDR_20' ) end [2025-04-14 17:19:21] Production.INFO: ProcessCDR(1,14907723,1,1,2) [2025-04-14 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907723', 'tblTempUsageDetail_20' ) start [2025-04-14 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907723', 'tblTempUsageDetail_20' ) end [2025-04-14 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:19:26] Production.INFO: ==4467== Releasing lock... [2025-04-14 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:19:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:20:05 [end_date_ymd] => 2025-04-14 17:20:05 [RateCDR] => 1 ) [2025-04-14 17: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-04-14 14:20:05' and `end` < '2025-04-14 17: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-04-14 17:20:18] Production.INFO: count ==4636 [2025-04-14 17:20:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:20:05 - End Time 2025-04-14 17:20:05 [2025-04-14 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907729', 'tblTempUsageDetail_20' ) start [2025-04-14 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907729', 'tblTempUsageDetail_20' ) end [2025-04-14 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907729', 'tblTempVendorCDR_20' ) start [2025-04-14 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907729', 'tblTempVendorCDR_20' ) end [2025-04-14 17:20:20] Production.INFO: ProcessCDR(1,14907729,1,1,2) [2025-04-14 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907729', 'tblTempUsageDetail_20' ) start [2025-04-14 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907729', 'tblTempUsageDetail_20' ) end [2025-04-14 17:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:20:25] Production.INFO: ==4546== Releasing lock... [2025-04-14 17:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:20:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:21:05 [end_date_ymd] => 2025-04-14 17:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:21:05' and `end` < '2025-04-14 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-04-14 17:21:18] Production.INFO: count ==4641 [2025-04-14 17:21:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:21:05 - End Time 2025-04-14 17:21:05 [2025-04-14 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907734', 'tblTempUsageDetail_20' ) start [2025-04-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907734', 'tblTempUsageDetail_20' ) end [2025-04-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907734', 'tblTempVendorCDR_20' ) start [2025-04-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907734', 'tblTempVendorCDR_20' ) end [2025-04-14 17:21:20] Production.INFO: ProcessCDR(1,14907734,1,1,2) [2025-04-14 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907734', 'tblTempUsageDetail_20' ) start [2025-04-14 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907734', 'tblTempUsageDetail_20' ) end [2025-04-14 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:21:25] Production.INFO: ==4625== Releasing lock... [2025-04-14 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:21:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-14 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:22:05 [end_date_ymd] => 2025-04-14 17:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:22:05' and `end` < '2025-04-14 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-04-14 17:22:19] Production.INFO: count ==4623 [2025-04-14 17:22:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:22:05 - End Time 2025-04-14 17:22:05 [2025-04-14 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907739', 'tblTempUsageDetail_20' ) start [2025-04-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907739', 'tblTempUsageDetail_20' ) end [2025-04-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907739', 'tblTempVendorCDR_20' ) start [2025-04-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907739', 'tblTempVendorCDR_20' ) end [2025-04-14 17:22:20] Production.INFO: ProcessCDR(1,14907739,1,1,2) [2025-04-14 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907739', 'tblTempUsageDetail_20' ) start [2025-04-14 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907739', 'tblTempUsageDetail_20' ) end [2025-04-14 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:22:25] Production.INFO: ==4705== Releasing lock... [2025-04-14 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:22:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:23:05 [end_date_ymd] => 2025-04-14 17:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:23:05' and `end` < '2025-04-14 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-04-14 17:23:19] Production.INFO: count ==4609 [2025-04-14 17:23:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:23:05 - End Time 2025-04-14 17:23:05 [2025-04-14 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907744', 'tblTempUsageDetail_20' ) start [2025-04-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907744', 'tblTempUsageDetail_20' ) end [2025-04-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907744', 'tblTempVendorCDR_20' ) start [2025-04-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907744', 'tblTempVendorCDR_20' ) end [2025-04-14 17:23:20] Production.INFO: ProcessCDR(1,14907744,1,1,2) [2025-04-14 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907744', 'tblTempUsageDetail_20' ) start [2025-04-14 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907744', 'tblTempUsageDetail_20' ) end [2025-04-14 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:23:25] Production.INFO: ==4777== Releasing lock... [2025-04-14 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:23:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:24:05 [end_date_ymd] => 2025-04-14 17:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:24:05' and `end` < '2025-04-14 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-04-14 17:24:19] Production.INFO: count ==4595 [2025-04-14 17:24:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:24:05 - End Time 2025-04-14 17:24:05 [2025-04-14 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907749', 'tblTempUsageDetail_20' ) start [2025-04-14 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907749', 'tblTempUsageDetail_20' ) end [2025-04-14 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907749', 'tblTempVendorCDR_20' ) start [2025-04-14 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907749', 'tblTempVendorCDR_20' ) end [2025-04-14 17:24:20] Production.INFO: ProcessCDR(1,14907749,1,1,2) [2025-04-14 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907749', 'tblTempUsageDetail_20' ) start [2025-04-14 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907749', 'tblTempUsageDetail_20' ) end [2025-04-14 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:24:25] Production.INFO: ==4856== Releasing lock... [2025-04-14 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:24:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-14 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:25:05 [end_date_ymd] => 2025-04-14 17:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:25:05' and `end` < '2025-04-14 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-04-14 17:25:18] Production.INFO: count ==4571 [2025-04-14 17:25:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:25:05 - End Time 2025-04-14 17:25:05 [2025-04-14 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907754', 'tblTempUsageDetail_20' ) start [2025-04-14 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907754', 'tblTempUsageDetail_20' ) end [2025-04-14 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907754', 'tblTempVendorCDR_20' ) start [2025-04-14 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907754', 'tblTempVendorCDR_20' ) end [2025-04-14 17:25:20] Production.INFO: ProcessCDR(1,14907754,1,1,2) [2025-04-14 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907754', 'tblTempUsageDetail_20' ) start [2025-04-14 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907754', 'tblTempUsageDetail_20' ) end [2025-04-14 17:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:25:23] Production.INFO: ==4928== Releasing lock... [2025-04-14 17:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:25:23] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:26:05 [end_date_ymd] => 2025-04-14 17:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:26:05' and `end` < '2025-04-14 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-04-14 17:26:19] Production.INFO: count ==4570 [2025-04-14 17:26:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:26:05 - End Time 2025-04-14 17:26:05 [2025-04-14 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907759', 'tblTempUsageDetail_20' ) start [2025-04-14 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907759', 'tblTempUsageDetail_20' ) end [2025-04-14 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907759', 'tblTempVendorCDR_20' ) start [2025-04-14 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907759', 'tblTempVendorCDR_20' ) end [2025-04-14 17:26:21] Production.INFO: ProcessCDR(1,14907759,1,1,2) [2025-04-14 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907759', 'tblTempUsageDetail_20' ) start [2025-04-14 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907759', 'tblTempUsageDetail_20' ) end [2025-04-14 17:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:26:25] Production.INFO: ==5004== Releasing lock... [2025-04-14 17:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:26:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:27:06 [end_date_ymd] => 2025-04-14 17:27:06 [RateCDR] => 1 ) [2025-04-14 17: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-04-14 14:27:06' and `end` < '2025-04-14 17: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-04-14 17:27:19] Production.INFO: count ==4568 [2025-04-14 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:27:06 - End Time 2025-04-14 17:27:06 [2025-04-14 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907764', 'tblTempUsageDetail_20' ) start [2025-04-14 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907764', 'tblTempUsageDetail_20' ) end [2025-04-14 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907764', 'tblTempVendorCDR_20' ) start [2025-04-14 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907764', 'tblTempVendorCDR_20' ) end [2025-04-14 17:27:21] Production.INFO: ProcessCDR(1,14907764,1,1,2) [2025-04-14 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907764', 'tblTempUsageDetail_20' ) start [2025-04-14 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907764', 'tblTempUsageDetail_20' ) end [2025-04-14 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:27:26] Production.INFO: ==5081== Releasing lock... [2025-04-14 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:27:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:28:05 [end_date_ymd] => 2025-04-14 17:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:28:05' and `end` < '2025-04-14 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-04-14 17:28:19] Production.INFO: count ==4559 [2025-04-14 17:28:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:28:05 - End Time 2025-04-14 17:28:05 [2025-04-14 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907769', 'tblTempUsageDetail_20' ) start [2025-04-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907769', 'tblTempUsageDetail_20' ) end [2025-04-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907769', 'tblTempVendorCDR_20' ) start [2025-04-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907769', 'tblTempVendorCDR_20' ) end [2025-04-14 17:28:20] Production.INFO: ProcessCDR(1,14907769,1,1,2) [2025-04-14 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907769', 'tblTempUsageDetail_20' ) start [2025-04-14 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907769', 'tblTempUsageDetail_20' ) end [2025-04-14 17:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:28:24] Production.INFO: ==5161== Releasing lock... [2025-04-14 17:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:28:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-14 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:29:05 [end_date_ymd] => 2025-04-14 17:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:29:05' and `end` < '2025-04-14 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-04-14 17:29:19] Production.INFO: count ==4557 [2025-04-14 17:29:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:29:05 - End Time 2025-04-14 17:29:05 [2025-04-14 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907774', 'tblTempUsageDetail_20' ) start [2025-04-14 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907774', 'tblTempUsageDetail_20' ) end [2025-04-14 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907774', 'tblTempVendorCDR_20' ) start [2025-04-14 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907774', 'tblTempVendorCDR_20' ) end [2025-04-14 17:29:21] Production.INFO: ProcessCDR(1,14907774,1,1,2) [2025-04-14 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907774', 'tblTempUsageDetail_20' ) start [2025-04-14 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907774', 'tblTempUsageDetail_20' ) end [2025-04-14 17:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:29:25] Production.INFO: ==5244== Releasing lock... [2025-04-14 17:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:29:25] Production.INFO: 62 MB #Memory Used# [2025-04-14 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:30:06 [end_date_ymd] => 2025-04-14 17:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:30:06' and `end` < '2025-04-14 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-04-14 17:30:19] Production.INFO: count ==4551 [2025-04-14 17:30:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:30:06 - End Time 2025-04-14 17:30:06 [2025-04-14 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907780', 'tblTempUsageDetail_20' ) start [2025-04-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907780', 'tblTempUsageDetail_20' ) end [2025-04-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907780', 'tblTempVendorCDR_20' ) start [2025-04-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907780', 'tblTempVendorCDR_20' ) end [2025-04-14 17:30:21] Production.INFO: ProcessCDR(1,14907780,1,1,2) [2025-04-14 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907780', 'tblTempUsageDetail_20' ) start [2025-04-14 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907780', 'tblTempUsageDetail_20' ) end [2025-04-14 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:30:26] Production.INFO: ==5318== Releasing lock... [2025-04-14 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:30:26] Production.INFO: 62 MB #Memory Used# [2025-04-14 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:31:05 [end_date_ymd] => 2025-04-14 17:31:05 [RateCDR] => 1 ) [2025-04-14 17: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-04-14 14:31:05' and `end` < '2025-04-14 17: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-04-14 17:31:19] Production.INFO: count ==4525 [2025-04-14 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:31:05 - End Time 2025-04-14 17:31:05 [2025-04-14 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907785', 'tblTempUsageDetail_20' ) start [2025-04-14 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907785', 'tblTempUsageDetail_20' ) end [2025-04-14 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907785', 'tblTempVendorCDR_20' ) start [2025-04-14 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907785', 'tblTempVendorCDR_20' ) end [2025-04-14 17:31:21] Production.INFO: ProcessCDR(1,14907785,1,1,2) [2025-04-14 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907785', 'tblTempUsageDetail_20' ) start [2025-04-14 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907785', 'tblTempUsageDetail_20' ) end [2025-04-14 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:31:24] Production.INFO: ==5395== Releasing lock... [2025-04-14 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:31:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-14 17:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:32:04 [end_date_ymd] => 2025-04-14 17:32:04 [RateCDR] => 1 ) [2025-04-14 17:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:32:04' and `end` < '2025-04-14 17:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:32:18] Production.INFO: count ==4514 [2025-04-14 17:32:19] Production.ERROR: pbx CDR StartTime 2025-04-14 14:32:04 - End Time 2025-04-14 17:32:04 [2025-04-14 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907790', 'tblTempUsageDetail_20' ) start [2025-04-14 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907790', 'tblTempUsageDetail_20' ) end [2025-04-14 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907790', 'tblTempVendorCDR_20' ) start [2025-04-14 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907790', 'tblTempVendorCDR_20' ) end [2025-04-14 17:32:20] Production.INFO: ProcessCDR(1,14907790,1,1,2) [2025-04-14 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907790', 'tblTempUsageDetail_20' ) start [2025-04-14 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907790', 'tblTempUsageDetail_20' ) end [2025-04-14 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:32:25] Production.INFO: ==5469== Releasing lock... [2025-04-14 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:32:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-14 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:33:05 [end_date_ymd] => 2025-04-14 17:33:05 [RateCDR] => 1 ) [2025-04-14 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:33:05' and `end` < '2025-04-14 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:33:19] Production.INFO: count ==4504 [2025-04-14 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:33:05 - End Time 2025-04-14 17:33:05 [2025-04-14 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907795', 'tblTempUsageDetail_20' ) start [2025-04-14 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907795', 'tblTempUsageDetail_20' ) end [2025-04-14 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907795', 'tblTempVendorCDR_20' ) start [2025-04-14 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907795', 'tblTempVendorCDR_20' ) end [2025-04-14 17:33:21] Production.INFO: ProcessCDR(1,14907795,1,1,2) [2025-04-14 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907795', 'tblTempUsageDetail_20' ) start [2025-04-14 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907795', 'tblTempUsageDetail_20' ) end [2025-04-14 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:33:24] Production.INFO: ==5541== Releasing lock... [2025-04-14 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:33:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-14 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:34:05 [end_date_ymd] => 2025-04-14 17:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:34:05' and `end` < '2025-04-14 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-04-14 17:34:19] Production.INFO: count ==4495 [2025-04-14 17:34:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:34:05 - End Time 2025-04-14 17:34:05 [2025-04-14 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907800', 'tblTempUsageDetail_20' ) start [2025-04-14 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907800', 'tblTempUsageDetail_20' ) end [2025-04-14 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907800', 'tblTempVendorCDR_20' ) start [2025-04-14 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907800', 'tblTempVendorCDR_20' ) end [2025-04-14 17:34:21] Production.INFO: ProcessCDR(1,14907800,1,1,2) [2025-04-14 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907800', 'tblTempUsageDetail_20' ) start [2025-04-14 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907800', 'tblTempUsageDetail_20' ) end [2025-04-14 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:34:25] Production.INFO: ==5616== Releasing lock... [2025-04-14 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:34:25] Production.INFO: 62 MB #Memory Used# [2025-04-14 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:35:05 [end_date_ymd] => 2025-04-14 17:35:05 [RateCDR] => 1 ) [2025-04-14 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:35:05' and `end` < '2025-04-14 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:35:19] Production.INFO: count ==4493 [2025-04-14 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:35:05 - End Time 2025-04-14 17:35:05 [2025-04-14 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907805', 'tblTempUsageDetail_20' ) start [2025-04-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907805', 'tblTempUsageDetail_20' ) end [2025-04-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907805', 'tblTempVendorCDR_20' ) start [2025-04-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907805', 'tblTempVendorCDR_20' ) end [2025-04-14 17:35:20] Production.INFO: ProcessCDR(1,14907805,1,1,2) [2025-04-14 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907805', 'tblTempUsageDetail_20' ) start [2025-04-14 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907805', 'tblTempUsageDetail_20' ) end [2025-04-14 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:35:25] Production.INFO: ==5729== Releasing lock... [2025-04-14 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:35:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-14 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:36:05 [end_date_ymd] => 2025-04-14 17:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:36:05' and `end` < '2025-04-14 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-04-14 17:36:19] Production.INFO: count ==4481 [2025-04-14 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:36:05 - End Time 2025-04-14 17:36:05 [2025-04-14 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907810', 'tblTempUsageDetail_20' ) start [2025-04-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907810', 'tblTempUsageDetail_20' ) end [2025-04-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907810', 'tblTempVendorCDR_20' ) start [2025-04-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907810', 'tblTempVendorCDR_20' ) end [2025-04-14 17:36:21] Production.INFO: ProcessCDR(1,14907810,1,1,2) [2025-04-14 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907810', 'tblTempUsageDetail_20' ) start [2025-04-14 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907810', 'tblTempUsageDetail_20' ) end [2025-04-14 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:36:26] Production.INFO: ==5810== Releasing lock... [2025-04-14 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:36:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-14 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:37:05 [end_date_ymd] => 2025-04-14 17:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:37:05' and `end` < '2025-04-14 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-04-14 17:37:18] Production.INFO: count ==4466 [2025-04-14 17:37:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:37:05 - End Time 2025-04-14 17:37:05 [2025-04-14 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907815', 'tblTempUsageDetail_20' ) start [2025-04-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907815', 'tblTempUsageDetail_20' ) end [2025-04-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907815', 'tblTempVendorCDR_20' ) start [2025-04-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907815', 'tblTempVendorCDR_20' ) end [2025-04-14 17:37:20] Production.INFO: ProcessCDR(1,14907815,1,1,2) [2025-04-14 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907815', 'tblTempUsageDetail_20' ) start [2025-04-14 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907815', 'tblTempUsageDetail_20' ) end [2025-04-14 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:37:25] Production.INFO: ==5886== Releasing lock... [2025-04-14 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:37:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-14 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:38:05 [end_date_ymd] => 2025-04-14 17:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:38:05' and `end` < '2025-04-14 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-04-14 17:38:19] Production.INFO: count ==4464 [2025-04-14 17:38:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:38:05 - End Time 2025-04-14 17:38:05 [2025-04-14 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907820', 'tblTempUsageDetail_20' ) start [2025-04-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907820', 'tblTempUsageDetail_20' ) end [2025-04-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907820', 'tblTempVendorCDR_20' ) start [2025-04-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907820', 'tblTempVendorCDR_20' ) end [2025-04-14 17:38:20] Production.INFO: ProcessCDR(1,14907820,1,1,2) [2025-04-14 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907820', 'tblTempUsageDetail_20' ) start [2025-04-14 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907820', 'tblTempUsageDetail_20' ) end [2025-04-14 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:38:25] Production.INFO: ==5961== Releasing lock... [2025-04-14 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:38:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-14 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:39:05 [end_date_ymd] => 2025-04-14 17:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:39:05' and `end` < '2025-04-14 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-04-14 17:39:18] Production.INFO: count ==4457 [2025-04-14 17:39:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:39:05 - End Time 2025-04-14 17:39:05 [2025-04-14 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907825', 'tblTempUsageDetail_20' ) start [2025-04-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907825', 'tblTempUsageDetail_20' ) end [2025-04-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907825', 'tblTempVendorCDR_20' ) start [2025-04-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907825', 'tblTempVendorCDR_20' ) end [2025-04-14 17:39:20] Production.INFO: ProcessCDR(1,14907825,1,1,2) [2025-04-14 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907825', 'tblTempUsageDetail_20' ) start [2025-04-14 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907825', 'tblTempUsageDetail_20' ) end [2025-04-14 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:39:25] Production.INFO: ==6039== Releasing lock... [2025-04-14 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:39:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:40:06 [end_date_ymd] => 2025-04-14 17:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:40:06' and `end` < '2025-04-14 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-04-14 17:40:20] Production.INFO: count ==4446 [2025-04-14 17:40:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:40:06 - End Time 2025-04-14 17:40:06 [2025-04-14 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907831', 'tblTempUsageDetail_20' ) start [2025-04-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907831', 'tblTempUsageDetail_20' ) end [2025-04-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907831', 'tblTempVendorCDR_20' ) start [2025-04-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907831', 'tblTempVendorCDR_20' ) end [2025-04-14 17:40:21] Production.INFO: ProcessCDR(1,14907831,1,1,2) [2025-04-14 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907831', 'tblTempUsageDetail_20' ) start [2025-04-14 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907831', 'tblTempUsageDetail_20' ) end [2025-04-14 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:40:26] Production.INFO: ==6111== Releasing lock... [2025-04-14 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:40:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:41:05 [end_date_ymd] => 2025-04-14 17:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:41:05' and `end` < '2025-04-14 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-04-14 17:41:18] Production.INFO: count ==4458 [2025-04-14 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:41:05 - End Time 2025-04-14 17:41:05 [2025-04-14 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907836', 'tblTempUsageDetail_20' ) start [2025-04-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907836', 'tblTempUsageDetail_20' ) end [2025-04-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907836', 'tblTempVendorCDR_20' ) start [2025-04-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907836', 'tblTempVendorCDR_20' ) end [2025-04-14 17:41:20] Production.INFO: ProcessCDR(1,14907836,1,1,2) [2025-04-14 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907836', 'tblTempUsageDetail_20' ) start [2025-04-14 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907836', 'tblTempUsageDetail_20' ) end [2025-04-14 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:41:23] Production.INFO: ==6187== Releasing lock... [2025-04-14 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:41:23] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:42:05 [end_date_ymd] => 2025-04-14 17:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:42:05' and `end` < '2025-04-14 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-04-14 17:42:18] Production.INFO: count ==4451 [2025-04-14 17:42:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:42:05 - End Time 2025-04-14 17:42:05 [2025-04-14 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907841', 'tblTempUsageDetail_20' ) start [2025-04-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907841', 'tblTempUsageDetail_20' ) end [2025-04-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907841', 'tblTempVendorCDR_20' ) start [2025-04-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907841', 'tblTempVendorCDR_20' ) end [2025-04-14 17:42:20] Production.INFO: ProcessCDR(1,14907841,1,1,2) [2025-04-14 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907841', 'tblTempUsageDetail_20' ) start [2025-04-14 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907841', 'tblTempUsageDetail_20' ) end [2025-04-14 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:42:24] Production.INFO: ==6265== Releasing lock... [2025-04-14 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:42:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:43:05 [end_date_ymd] => 2025-04-14 17:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:43:05' and `end` < '2025-04-14 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-04-14 17:43:19] Production.INFO: count ==4429 [2025-04-14 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:43:05 - End Time 2025-04-14 17:43:05 [2025-04-14 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907846', 'tblTempUsageDetail_20' ) start [2025-04-14 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907846', 'tblTempUsageDetail_20' ) end [2025-04-14 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907846', 'tblTempVendorCDR_20' ) start [2025-04-14 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907846', 'tblTempVendorCDR_20' ) end [2025-04-14 17:43:20] Production.INFO: ProcessCDR(1,14907846,1,1,2) [2025-04-14 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907846', 'tblTempUsageDetail_20' ) start [2025-04-14 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907846', 'tblTempUsageDetail_20' ) end [2025-04-14 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:43:25] Production.INFO: ==6347== Releasing lock... [2025-04-14 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:43:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-14 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:44:05 [end_date_ymd] => 2025-04-14 17:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:44:05' and `end` < '2025-04-14 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-04-14 17:44:19] Production.INFO: count ==4415 [2025-04-14 17:44:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:44:05 - End Time 2025-04-14 17:44:05 [2025-04-14 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907851', 'tblTempUsageDetail_20' ) start [2025-04-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907851', 'tblTempUsageDetail_20' ) end [2025-04-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907851', 'tblTempVendorCDR_20' ) start [2025-04-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907851', 'tblTempVendorCDR_20' ) end [2025-04-14 17:44:20] Production.INFO: ProcessCDR(1,14907851,1,1,2) [2025-04-14 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907851', 'tblTempUsageDetail_20' ) start [2025-04-14 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907851', 'tblTempUsageDetail_20' ) end [2025-04-14 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:44:25] Production.INFO: ==6426== Releasing lock... [2025-04-14 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:44:25] Production.INFO: 61 MB #Memory Used# [2025-04-14 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:45:05 [end_date_ymd] => 2025-04-14 17:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:45:05' and `end` < '2025-04-14 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-04-14 17:45:18] Production.INFO: count ==4416 [2025-04-14 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:45:05 - End Time 2025-04-14 17:45:05 [2025-04-14 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907856', 'tblTempUsageDetail_20' ) start [2025-04-14 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907856', 'tblTempUsageDetail_20' ) end [2025-04-14 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907856', 'tblTempVendorCDR_20' ) start [2025-04-14 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907856', 'tblTempVendorCDR_20' ) end [2025-04-14 17:45:20] Production.INFO: ProcessCDR(1,14907856,1,1,2) [2025-04-14 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907856', 'tblTempUsageDetail_20' ) start [2025-04-14 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907856', 'tblTempUsageDetail_20' ) end [2025-04-14 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:45:26] Production.INFO: ==6498== Releasing lock... [2025-04-14 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:45:26] Production.INFO: 61 MB #Memory Used# [2025-04-14 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:46:05 [end_date_ymd] => 2025-04-14 17:46:05 [RateCDR] => 1 ) [2025-04-14 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:46:05' and `end` < '2025-04-14 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:46:19] Production.INFO: count ==4414 [2025-04-14 17:46:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:46:05 - End Time 2025-04-14 17:46:05 [2025-04-14 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907861', 'tblTempUsageDetail_20' ) start [2025-04-14 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907861', 'tblTempUsageDetail_20' ) end [2025-04-14 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907861', 'tblTempVendorCDR_20' ) start [2025-04-14 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907861', 'tblTempVendorCDR_20' ) end [2025-04-14 17:46:21] Production.INFO: ProcessCDR(1,14907861,1,1,2) [2025-04-14 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907861', 'tblTempUsageDetail_20' ) start [2025-04-14 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907861', 'tblTempUsageDetail_20' ) end [2025-04-14 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:46:25] Production.INFO: ==6571== Releasing lock... [2025-04-14 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:46:25] Production.INFO: 61 MB #Memory Used# [2025-04-14 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:47:05 [end_date_ymd] => 2025-04-14 17:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:47:05' and `end` < '2025-04-14 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-04-14 17:47:19] Production.INFO: count ==4414 [2025-04-14 17:47:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:47:05 - End Time 2025-04-14 17:47:05 [2025-04-14 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907866', 'tblTempUsageDetail_20' ) start [2025-04-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907866', 'tblTempUsageDetail_20' ) end [2025-04-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907866', 'tblTempVendorCDR_20' ) start [2025-04-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907866', 'tblTempVendorCDR_20' ) end [2025-04-14 17:47:20] Production.INFO: ProcessCDR(1,14907866,1,1,2) [2025-04-14 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907866', 'tblTempUsageDetail_20' ) start [2025-04-14 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907866', 'tblTempUsageDetail_20' ) end [2025-04-14 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:47:25] Production.INFO: ==6647== Releasing lock... [2025-04-14 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:47:25] Production.INFO: 61 MB #Memory Used# [2025-04-14 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:48:05 [end_date_ymd] => 2025-04-14 17:48:05 [RateCDR] => 1 ) [2025-04-14 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:48:05' and `end` < '2025-04-14 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:48:18] Production.INFO: count ==4405 [2025-04-14 17:48:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:48:05 - End Time 2025-04-14 17:48:05 [2025-04-14 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907871', 'tblTempUsageDetail_20' ) start [2025-04-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907871', 'tblTempUsageDetail_20' ) end [2025-04-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907871', 'tblTempVendorCDR_20' ) start [2025-04-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907871', 'tblTempVendorCDR_20' ) end [2025-04-14 17:48:20] Production.INFO: ProcessCDR(1,14907871,1,1,2) [2025-04-14 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907871', 'tblTempUsageDetail_20' ) start [2025-04-14 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907871', 'tblTempUsageDetail_20' ) end [2025-04-14 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:48:25] Production.INFO: ==6720== Releasing lock... [2025-04-14 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:48:25] Production.INFO: 61 MB #Memory Used# [2025-04-14 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:49:05 [end_date_ymd] => 2025-04-14 17:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:49:05' and `end` < '2025-04-14 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-04-14 17:49:19] Production.INFO: count ==4382 [2025-04-14 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:49:05 - End Time 2025-04-14 17:49:05 [2025-04-14 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907876', 'tblTempUsageDetail_20' ) start [2025-04-14 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907876', 'tblTempUsageDetail_20' ) end [2025-04-14 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907876', 'tblTempVendorCDR_20' ) start [2025-04-14 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907876', 'tblTempVendorCDR_20' ) end [2025-04-14 17:49:21] Production.INFO: ProcessCDR(1,14907876,1,1,2) [2025-04-14 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907876', 'tblTempUsageDetail_20' ) start [2025-04-14 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907876', 'tblTempUsageDetail_20' ) end [2025-04-14 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:49:25] Production.INFO: ==6797== Releasing lock... [2025-04-14 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:49:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:50:05 [end_date_ymd] => 2025-04-14 17:50:05 [RateCDR] => 1 ) [2025-04-14 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:50:05' and `end` < '2025-04-14 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:50:19] Production.INFO: count ==4381 [2025-04-14 17:50:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:50:05 - End Time 2025-04-14 17:50:05 [2025-04-14 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907881', 'tblTempUsageDetail_20' ) start [2025-04-14 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907881', 'tblTempUsageDetail_20' ) end [2025-04-14 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907881', 'tblTempVendorCDR_20' ) start [2025-04-14 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907881', 'tblTempVendorCDR_20' ) end [2025-04-14 17:50:20] Production.INFO: ProcessCDR(1,14907881,1,1,2) [2025-04-14 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907881', 'tblTempUsageDetail_20' ) start [2025-04-14 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907881', 'tblTempUsageDetail_20' ) end [2025-04-14 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:50:25] Production.INFO: ==6914== Releasing lock... [2025-04-14 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:50:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-14 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:51:05 [end_date_ymd] => 2025-04-14 17:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:51:05' and `end` < '2025-04-14 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-04-14 17:51:18] Production.INFO: count ==4348 [2025-04-14 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:51:05 - End Time 2025-04-14 17:51:05 [2025-04-14 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907887', 'tblTempUsageDetail_20' ) start [2025-04-14 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907887', 'tblTempUsageDetail_20' ) end [2025-04-14 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907887', 'tblTempVendorCDR_20' ) start [2025-04-14 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907887', 'tblTempVendorCDR_20' ) end [2025-04-14 17:51:20] Production.INFO: ProcessCDR(1,14907887,1,1,2) [2025-04-14 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907887', 'tblTempUsageDetail_20' ) start [2025-04-14 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907887', 'tblTempUsageDetail_20' ) end [2025-04-14 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:51:25] Production.INFO: ==6989== Releasing lock... [2025-04-14 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:51:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-14 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:52:04 [end_date_ymd] => 2025-04-14 17:52:04 [RateCDR] => 1 ) [2025-04-14 17: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-04-14 14:52:04' and `end` < '2025-04-14 17: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-04-14 17:52:18] Production.INFO: count ==4338 [2025-04-14 17:52:19] Production.ERROR: pbx CDR StartTime 2025-04-14 14:52:04 - End Time 2025-04-14 17:52:04 [2025-04-14 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907892', 'tblTempUsageDetail_20' ) start [2025-04-14 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907892', 'tblTempUsageDetail_20' ) end [2025-04-14 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907892', 'tblTempVendorCDR_20' ) start [2025-04-14 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907892', 'tblTempVendorCDR_20' ) end [2025-04-14 17:52:19] Production.INFO: ProcessCDR(1,14907892,1,1,2) [2025-04-14 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907892', 'tblTempUsageDetail_20' ) start [2025-04-14 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907892', 'tblTempUsageDetail_20' ) end [2025-04-14 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:52:24] Production.INFO: ==7069== Releasing lock... [2025-04-14 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:52:24] Production.INFO: 60.5 MB #Memory Used# [2025-04-14 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:53:05 [end_date_ymd] => 2025-04-14 17:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:53:05' and `end` < '2025-04-14 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-04-14 17:53:18] Production.INFO: count ==4329 [2025-04-14 17:53:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:53:05 - End Time 2025-04-14 17:53:05 [2025-04-14 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907897', 'tblTempUsageDetail_20' ) start [2025-04-14 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907897', 'tblTempUsageDetail_20' ) end [2025-04-14 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907897', 'tblTempVendorCDR_20' ) start [2025-04-14 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907897', 'tblTempVendorCDR_20' ) end [2025-04-14 17:53:20] Production.INFO: ProcessCDR(1,14907897,1,1,2) [2025-04-14 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907897', 'tblTempUsageDetail_20' ) start [2025-04-14 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907897', 'tblTempUsageDetail_20' ) end [2025-04-14 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:53:25] Production.INFO: ==7147== Releasing lock... [2025-04-14 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:53:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-14 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:54:05 [end_date_ymd] => 2025-04-14 17:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:54:05' and `end` < '2025-04-14 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-04-14 17:54:19] Production.INFO: count ==4327 [2025-04-14 17:54:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:54:05 - End Time 2025-04-14 17:54:05 [2025-04-14 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907902', 'tblTempUsageDetail_20' ) start [2025-04-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907902', 'tblTempUsageDetail_20' ) end [2025-04-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907902', 'tblTempVendorCDR_20' ) start [2025-04-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907902', 'tblTempVendorCDR_20' ) end [2025-04-14 17:54:21] Production.INFO: ProcessCDR(1,14907902,1,1,2) [2025-04-14 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907902', 'tblTempUsageDetail_20' ) start [2025-04-14 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907902', 'tblTempUsageDetail_20' ) end [2025-04-14 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:54:26] Production.INFO: ==7227== Releasing lock... [2025-04-14 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:54:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-14 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:55:05 [end_date_ymd] => 2025-04-14 17:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:55:05' and `end` < '2025-04-14 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-04-14 17:55:18] Production.INFO: count ==4314 [2025-04-14 17:55:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:55:05 - End Time 2025-04-14 17:55:05 [2025-04-14 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907907', 'tblTempUsageDetail_20' ) start [2025-04-14 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907907', 'tblTempUsageDetail_20' ) end [2025-04-14 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907907', 'tblTempVendorCDR_20' ) start [2025-04-14 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907907', 'tblTempVendorCDR_20' ) end [2025-04-14 17:55:20] Production.INFO: ProcessCDR(1,14907907,1,1,2) [2025-04-14 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907907', 'tblTempUsageDetail_20' ) start [2025-04-14 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907907', 'tblTempUsageDetail_20' ) end [2025-04-14 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:55:25] Production.INFO: ==7301== Releasing lock... [2025-04-14 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:55:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-14 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:56:06 [end_date_ymd] => 2025-04-14 17:56:06 [RateCDR] => 1 ) [2025-04-14 17: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-04-14 14:56:06' and `end` < '2025-04-14 17: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-04-14 17:56:19] Production.INFO: count ==4310 [2025-04-14 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:56:06 - End Time 2025-04-14 17:56:06 [2025-04-14 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907912', 'tblTempUsageDetail_20' ) start [2025-04-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907912', 'tblTempUsageDetail_20' ) end [2025-04-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907912', 'tblTempVendorCDR_20' ) start [2025-04-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907912', 'tblTempVendorCDR_20' ) end [2025-04-14 17:56:21] Production.INFO: ProcessCDR(1,14907912,1,1,2) [2025-04-14 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907912', 'tblTempUsageDetail_20' ) start [2025-04-14 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907912', 'tblTempUsageDetail_20' ) end [2025-04-14 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:56:26] Production.INFO: ==7380== Releasing lock... [2025-04-14 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:56:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-14 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:57:05 [end_date_ymd] => 2025-04-14 17:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 14:57:05' and `end` < '2025-04-14 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-04-14 17:57:19] Production.INFO: count ==4305 [2025-04-14 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:57:05 - End Time 2025-04-14 17:57:05 [2025-04-14 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907917', 'tblTempUsageDetail_20' ) start [2025-04-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907917', 'tblTempUsageDetail_20' ) end [2025-04-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907917', 'tblTempVendorCDR_20' ) start [2025-04-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907917', 'tblTempVendorCDR_20' ) end [2025-04-14 17:57:20] Production.INFO: ProcessCDR(1,14907917,1,1,2) [2025-04-14 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907917', 'tblTempUsageDetail_20' ) start [2025-04-14 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907917', 'tblTempUsageDetail_20' ) end [2025-04-14 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:57:25] Production.INFO: ==7455== Releasing lock... [2025-04-14 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:57:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-14 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:58:06 [end_date_ymd] => 2025-04-14 17:58:06 [RateCDR] => 1 ) [2025-04-14 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 14:58:06' and `end` < '2025-04-14 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 17:58:19] Production.INFO: count ==4292 [2025-04-14 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-14 14:58:06 - End Time 2025-04-14 17:58:06 [2025-04-14 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907922', 'tblTempUsageDetail_20' ) start [2025-04-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907922', 'tblTempUsageDetail_20' ) end [2025-04-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907922', 'tblTempVendorCDR_20' ) start [2025-04-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907922', 'tblTempVendorCDR_20' ) end [2025-04-14 17:58:21] Production.INFO: ProcessCDR(1,14907922,1,1,2) [2025-04-14 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907922', 'tblTempUsageDetail_20' ) start [2025-04-14 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907922', 'tblTempUsageDetail_20' ) end [2025-04-14 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:58:26] Production.INFO: ==7533== Releasing lock... [2025-04-14 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:58:26] Production.INFO: 60 MB #Memory Used# [2025-04-14 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 14:59:04 [end_date_ymd] => 2025-04-14 17:59:04 [RateCDR] => 1 ) [2025-04-14 17: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-04-14 14:59:04' and `end` < '2025-04-14 17: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-04-14 17:59:18] Production.INFO: count ==4283 [2025-04-14 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-14 14:59:04 - End Time 2025-04-14 17:59:04 [2025-04-14 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907927', 'tblTempUsageDetail_20' ) start [2025-04-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907927', 'tblTempUsageDetail_20' ) end [2025-04-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907927', 'tblTempVendorCDR_20' ) start [2025-04-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907927', 'tblTempVendorCDR_20' ) end [2025-04-14 17:59:20] Production.INFO: ProcessCDR(1,14907927,1,1,2) [2025-04-14 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907927', 'tblTempUsageDetail_20' ) start [2025-04-14 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907927', 'tblTempUsageDetail_20' ) end [2025-04-14 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 17:59:25] Production.INFO: ==7611== Releasing lock... [2025-04-14 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 17:59:25] Production.INFO: 60 MB #Memory Used# [2025-04-14 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:00:07 [end_date_ymd] => 2025-04-14 18:00:07 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:00:07' and `end` < '2025-04-14 18: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-04-14 18:00:21] Production.INFO: count ==4271 [2025-04-14 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-14 15:00:07 - End Time 2025-04-14 18:00:07 [2025-04-14 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907933', 'tblTempUsageDetail_20' ) start [2025-04-14 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907933', 'tblTempUsageDetail_20' ) end [2025-04-14 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907933', 'tblTempVendorCDR_20' ) start [2025-04-14 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907933', 'tblTempVendorCDR_20' ) end [2025-04-14 18:00:22] Production.INFO: ProcessCDR(1,14907933,1,1,2) [2025-04-14 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907933', 'tblTempUsageDetail_20' ) start [2025-04-14 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907933', 'tblTempUsageDetail_20' ) end [2025-04-14 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:00:28] Production.INFO: ==7684== Releasing lock... [2025-04-14 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:00:28] Production.INFO: 60 MB #Memory Used# [2025-04-14 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:01:06 [end_date_ymd] => 2025-04-14 18:01:06 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:01:06' and `end` < '2025-04-14 18: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-04-14 18:01:19] Production.INFO: count ==4205 [2025-04-14 18:01:21] Production.ERROR: pbx CDR StartTime 2025-04-14 15:01:06 - End Time 2025-04-14 18:01:06 [2025-04-14 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907938', 'tblTempUsageDetail_20' ) start [2025-04-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907938', 'tblTempUsageDetail_20' ) end [2025-04-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907938', 'tblTempVendorCDR_20' ) start [2025-04-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907938', 'tblTempVendorCDR_20' ) end [2025-04-14 18:01:21] Production.INFO: ProcessCDR(1,14907938,1,1,2) [2025-04-14 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907938', 'tblTempUsageDetail_20' ) start [2025-04-14 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907938', 'tblTempUsageDetail_20' ) end [2025-04-14 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:01:25] Production.INFO: ==7772== Releasing lock... [2025-04-14 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:01:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-14 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:02:06 [end_date_ymd] => 2025-04-14 18:02:06 [RateCDR] => 1 ) [2025-04-14 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:02:06' and `end` < '2025-04-14 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:02:19] Production.INFO: count ==4198 [2025-04-14 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-14 15:02:06 - End Time 2025-04-14 18:02:06 [2025-04-14 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907943', 'tblTempUsageDetail_20' ) start [2025-04-14 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907943', 'tblTempUsageDetail_20' ) end [2025-04-14 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907943', 'tblTempVendorCDR_20' ) start [2025-04-14 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907943', 'tblTempVendorCDR_20' ) end [2025-04-14 18:02:21] Production.INFO: ProcessCDR(1,14907943,1,1,2) [2025-04-14 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907943', 'tblTempUsageDetail_20' ) start [2025-04-14 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907943', 'tblTempUsageDetail_20' ) end [2025-04-14 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:02:26] Production.INFO: ==7844== Releasing lock... [2025-04-14 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:02:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-14 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:03:06 [end_date_ymd] => 2025-04-14 18:03:06 [RateCDR] => 1 ) [2025-04-14 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:03:06' and `end` < '2025-04-14 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:03:19] Production.INFO: count ==4187 [2025-04-14 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-14 15:03:06 - End Time 2025-04-14 18:03:06 [2025-04-14 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907948', 'tblTempUsageDetail_20' ) start [2025-04-14 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907948', 'tblTempUsageDetail_20' ) end [2025-04-14 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907948', 'tblTempVendorCDR_20' ) start [2025-04-14 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907948', 'tblTempVendorCDR_20' ) end [2025-04-14 18:03:21] Production.INFO: ProcessCDR(1,14907948,1,1,2) [2025-04-14 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907948', 'tblTempUsageDetail_20' ) start [2025-04-14 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907948', 'tblTempUsageDetail_20' ) end [2025-04-14 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:03:26] Production.INFO: ==7917== Releasing lock... [2025-04-14 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:03:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-14 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:04:05 [end_date_ymd] => 2025-04-14 18:04:05 [RateCDR] => 1 ) [2025-04-14 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:04:05' and `end` < '2025-04-14 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:04:19] Production.INFO: count ==4151 [2025-04-14 18:04:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:04:05 - End Time 2025-04-14 18:04:05 [2025-04-14 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907953', 'tblTempUsageDetail_20' ) start [2025-04-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907953', 'tblTempUsageDetail_20' ) end [2025-04-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907953', 'tblTempVendorCDR_20' ) start [2025-04-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907953', 'tblTempVendorCDR_20' ) end [2025-04-14 18:04:20] Production.INFO: ProcessCDR(1,14907953,1,1,2) [2025-04-14 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907953', 'tblTempUsageDetail_20' ) start [2025-04-14 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907953', 'tblTempUsageDetail_20' ) end [2025-04-14 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:04:25] Production.INFO: ==7995== Releasing lock... [2025-04-14 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:04:25] Production.INFO: 59 MB #Memory Used# [2025-04-14 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:05:06 [end_date_ymd] => 2025-04-14 18:05:06 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:05:06' and `end` < '2025-04-14 18: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-04-14 18:05:19] Production.INFO: count ==4126 [2025-04-14 18:05:21] Production.ERROR: pbx CDR StartTime 2025-04-14 15:05:06 - End Time 2025-04-14 18:05:06 [2025-04-14 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907958', 'tblTempUsageDetail_20' ) start [2025-04-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907958', 'tblTempUsageDetail_20' ) end [2025-04-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907958', 'tblTempVendorCDR_20' ) start [2025-04-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907958', 'tblTempVendorCDR_20' ) end [2025-04-14 18:05:21] Production.INFO: ProcessCDR(1,14907958,1,1,2) [2025-04-14 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907958', 'tblTempUsageDetail_20' ) start [2025-04-14 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907958', 'tblTempUsageDetail_20' ) end [2025-04-14 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:05:26] Production.INFO: ==8070== Releasing lock... [2025-04-14 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:05:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-14 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:06:05 [end_date_ymd] => 2025-04-14 18:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:06:05' and `end` < '2025-04-14 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-04-14 18:06:19] Production.INFO: count ==4100 [2025-04-14 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:06:05 - End Time 2025-04-14 18:06:05 [2025-04-14 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907963', 'tblTempUsageDetail_20' ) start [2025-04-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907963', 'tblTempUsageDetail_20' ) end [2025-04-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907963', 'tblTempVendorCDR_20' ) start [2025-04-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907963', 'tblTempVendorCDR_20' ) end [2025-04-14 18:06:20] Production.INFO: ProcessCDR(1,14907963,1,1,2) [2025-04-14 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907963', 'tblTempUsageDetail_20' ) start [2025-04-14 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907963', 'tblTempUsageDetail_20' ) end [2025-04-14 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:06:24] Production.INFO: ==8180== Releasing lock... [2025-04-14 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:06:24] Production.INFO: 58.75 MB #Memory Used# [2025-04-14 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:07:05 [end_date_ymd] => 2025-04-14 18:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:07:05' and `end` < '2025-04-14 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-04-14 18:07:19] Production.INFO: count ==4078 [2025-04-14 18:07:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:07:05 - End Time 2025-04-14 18:07:05 [2025-04-14 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907968', 'tblTempUsageDetail_20' ) start [2025-04-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907968', 'tblTempUsageDetail_20' ) end [2025-04-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907968', 'tblTempVendorCDR_20' ) start [2025-04-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907968', 'tblTempVendorCDR_20' ) end [2025-04-14 18:07:20] Production.INFO: ProcessCDR(1,14907968,1,1,2) [2025-04-14 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907968', 'tblTempUsageDetail_20' ) start [2025-04-14 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907968', 'tblTempUsageDetail_20' ) end [2025-04-14 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:07:24] Production.INFO: ==8250== Releasing lock... [2025-04-14 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:07:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-14 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:08:05 [end_date_ymd] => 2025-04-14 18:08:05 [RateCDR] => 1 ) [2025-04-14 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:08:05' and `end` < '2025-04-14 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:08:18] Production.INFO: count ==4074 [2025-04-14 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:08:05 - End Time 2025-04-14 18:08:05 [2025-04-14 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907973', 'tblTempUsageDetail_20' ) start [2025-04-14 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907973', 'tblTempUsageDetail_20' ) end [2025-04-14 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907973', 'tblTempVendorCDR_20' ) start [2025-04-14 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907973', 'tblTempVendorCDR_20' ) end [2025-04-14 18:08:20] Production.INFO: ProcessCDR(1,14907973,1,1,2) [2025-04-14 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907973', 'tblTempUsageDetail_20' ) start [2025-04-14 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907973', 'tblTempUsageDetail_20' ) end [2025-04-14 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:08:25] Production.INFO: ==8327== Releasing lock... [2025-04-14 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:08:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-14 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:09:05 [end_date_ymd] => 2025-04-14 18:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:09:05' and `end` < '2025-04-14 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-04-14 18:09:19] Production.INFO: count ==4029 [2025-04-14 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:09:05 - End Time 2025-04-14 18:09:05 [2025-04-14 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907978', 'tblTempUsageDetail_20' ) start [2025-04-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907978', 'tblTempUsageDetail_20' ) end [2025-04-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907978', 'tblTempVendorCDR_20' ) start [2025-04-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907978', 'tblTempVendorCDR_20' ) end [2025-04-14 18:09:20] Production.INFO: ProcessCDR(1,14907978,1,1,2) [2025-04-14 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907978', 'tblTempUsageDetail_20' ) start [2025-04-14 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907978', 'tblTempUsageDetail_20' ) end [2025-04-14 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:09:25] Production.INFO: ==8405== Releasing lock... [2025-04-14 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:09:25] Production.INFO: 58 MB #Memory Used# [2025-04-14 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:10:06 [end_date_ymd] => 2025-04-14 18:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:10:06' and `end` < '2025-04-14 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-04-14 18:10:19] Production.INFO: count ==4000 [2025-04-14 18:10:21] Production.ERROR: pbx CDR StartTime 2025-04-14 15:10:06 - End Time 2025-04-14 18:10:06 [2025-04-14 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907984', 'tblTempUsageDetail_20' ) start [2025-04-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907984', 'tblTempUsageDetail_20' ) end [2025-04-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907984', 'tblTempVendorCDR_20' ) start [2025-04-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907984', 'tblTempVendorCDR_20' ) end [2025-04-14 18:10:21] Production.INFO: ProcessCDR(1,14907984,1,1,2) [2025-04-14 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907984', 'tblTempUsageDetail_20' ) start [2025-04-14 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907984', 'tblTempUsageDetail_20' ) end [2025-04-14 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:10:26] Production.INFO: ==8477== Releasing lock... [2025-04-14 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:10:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-14 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:11:06 [end_date_ymd] => 2025-04-14 18:11:06 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:11:06' and `end` < '2025-04-14 18: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-04-14 18:11:19] Production.INFO: count ==3923 [2025-04-14 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:11:06 - End Time 2025-04-14 18:11:06 [2025-04-14 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907989', 'tblTempUsageDetail_20' ) start [2025-04-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907989', 'tblTempUsageDetail_20' ) end [2025-04-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907989', 'tblTempVendorCDR_20' ) start [2025-04-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907989', 'tblTempVendorCDR_20' ) end [2025-04-14 18:11:20] Production.INFO: ProcessCDR(1,14907989,1,1,2) [2025-04-14 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907989', 'tblTempUsageDetail_20' ) start [2025-04-14 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907989', 'tblTempUsageDetail_20' ) end [2025-04-14 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:11:24] Production.INFO: ==8560== Releasing lock... [2025-04-14 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:11:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-14 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:12:04 [end_date_ymd] => 2025-04-14 18:12:04 [RateCDR] => 1 ) [2025-04-14 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:12:04' and `end` < '2025-04-14 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:12:18] Production.INFO: count ==3868 [2025-04-14 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:12:04 - End Time 2025-04-14 18:12:04 [2025-04-14 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907994', 'tblTempUsageDetail_20' ) start [2025-04-14 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907994', 'tblTempUsageDetail_20' ) end [2025-04-14 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907994', 'tblTempVendorCDR_20' ) start [2025-04-14 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907994', 'tblTempVendorCDR_20' ) end [2025-04-14 18:12:19] Production.INFO: ProcessCDR(1,14907994,1,1,2) [2025-04-14 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907994', 'tblTempUsageDetail_20' ) start [2025-04-14 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907994', 'tblTempUsageDetail_20' ) end [2025-04-14 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:12:22] Production.INFO: ==8632== Releasing lock... [2025-04-14 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:12:22] Production.INFO: 56.75 MB #Memory Used# [2025-04-14 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:13:05 [end_date_ymd] => 2025-04-14 18:13:05 [RateCDR] => 1 ) [2025-04-14 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:13:05' and `end` < '2025-04-14 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:13:19] Production.INFO: count ==3846 [2025-04-14 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:13:05 - End Time 2025-04-14 18:13:05 [2025-04-14 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907999', 'tblTempUsageDetail_20' ) start [2025-04-14 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14907999', 'tblTempUsageDetail_20' ) end [2025-04-14 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907999', 'tblTempVendorCDR_20' ) start [2025-04-14 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14907999', 'tblTempVendorCDR_20' ) end [2025-04-14 18:13:20] Production.INFO: ProcessCDR(1,14907999,1,1,2) [2025-04-14 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14907999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14907999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14907999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14907999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907999', 'tblTempUsageDetail_20' ) start [2025-04-14 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14907999', 'tblTempUsageDetail_20' ) end [2025-04-14 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:13:25] Production.INFO: ==8711== Releasing lock... [2025-04-14 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:13:25] Production.INFO: 57 MB #Memory Used# [2025-04-14 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:14:04 [end_date_ymd] => 2025-04-14 18:14:04 [RateCDR] => 1 ) [2025-04-14 18:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:14:04' and `end` < '2025-04-14 18:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:14:18] Production.INFO: count ==3837 [2025-04-14 18:14:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:14:04 - End Time 2025-04-14 18:14:04 [2025-04-14 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908004', 'tblTempUsageDetail_20' ) start [2025-04-14 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908004', 'tblTempUsageDetail_20' ) end [2025-04-14 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908004', 'tblTempVendorCDR_20' ) start [2025-04-14 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908004', 'tblTempVendorCDR_20' ) end [2025-04-14 18:14:19] Production.INFO: ProcessCDR(1,14908004,1,1,2) [2025-04-14 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908004', 'tblTempUsageDetail_20' ) start [2025-04-14 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908004', 'tblTempUsageDetail_20' ) end [2025-04-14 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:14:23] Production.INFO: ==8789== Releasing lock... [2025-04-14 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:14:23] Production.INFO: 56.75 MB #Memory Used# [2025-04-14 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:15:05 [end_date_ymd] => 2025-04-14 18:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:15:05' and `end` < '2025-04-14 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-04-14 18:15:19] Production.INFO: count ==3830 [2025-04-14 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:15:05 - End Time 2025-04-14 18:15:05 [2025-04-14 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908009', 'tblTempUsageDetail_20' ) start [2025-04-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908009', 'tblTempUsageDetail_20' ) end [2025-04-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908009', 'tblTempVendorCDR_20' ) start [2025-04-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908009', 'tblTempVendorCDR_20' ) end [2025-04-14 18:15:20] Production.INFO: ProcessCDR(1,14908009,1,1,2) [2025-04-14 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908009', 'tblTempUsageDetail_20' ) start [2025-04-14 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908009', 'tblTempUsageDetail_20' ) end [2025-04-14 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:15:25] Production.INFO: ==8860== Releasing lock... [2025-04-14 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:15:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-14 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:16:05 [end_date_ymd] => 2025-04-14 18:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:16:05' and `end` < '2025-04-14 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-04-14 18:16:19] Production.INFO: count ==3826 [2025-04-14 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:16:05 - End Time 2025-04-14 18:16:05 [2025-04-14 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908014', 'tblTempUsageDetail_20' ) start [2025-04-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908014', 'tblTempUsageDetail_20' ) end [2025-04-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908014', 'tblTempVendorCDR_20' ) start [2025-04-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908014', 'tblTempVendorCDR_20' ) end [2025-04-14 18:16:20] Production.INFO: ProcessCDR(1,14908014,1,1,2) [2025-04-14 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908014', 'tblTempUsageDetail_20' ) start [2025-04-14 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908014', 'tblTempUsageDetail_20' ) end [2025-04-14 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:16:25] Production.INFO: ==8930== Releasing lock... [2025-04-14 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:16:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-14 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:17:05 [end_date_ymd] => 2025-04-14 18:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:17:05' and `end` < '2025-04-14 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-04-14 18:17:19] Production.INFO: count ==3797 [2025-04-14 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:17:05 - End Time 2025-04-14 18:17:05 [2025-04-14 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908019', 'tblTempUsageDetail_20' ) start [2025-04-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908019', 'tblTempUsageDetail_20' ) end [2025-04-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908019', 'tblTempVendorCDR_20' ) start [2025-04-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908019', 'tblTempVendorCDR_20' ) end [2025-04-14 18:17:20] Production.INFO: ProcessCDR(1,14908019,1,1,2) [2025-04-14 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908019', 'tblTempUsageDetail_20' ) start [2025-04-14 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908019', 'tblTempUsageDetail_20' ) end [2025-04-14 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:17:25] Production.INFO: ==9006== Releasing lock... [2025-04-14 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:17:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-14 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:18:06 [end_date_ymd] => 2025-04-14 18:18:06 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:18:06' and `end` < '2025-04-14 18: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-04-14 18:18:19] Production.INFO: count ==3767 [2025-04-14 18:18:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:18:06 - End Time 2025-04-14 18:18:06 [2025-04-14 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908024', 'tblTempUsageDetail_20' ) start [2025-04-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908024', 'tblTempUsageDetail_20' ) end [2025-04-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908024', 'tblTempVendorCDR_20' ) start [2025-04-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908024', 'tblTempVendorCDR_20' ) end [2025-04-14 18:18:20] Production.INFO: ProcessCDR(1,14908024,1,1,2) [2025-04-14 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908024', 'tblTempUsageDetail_20' ) start [2025-04-14 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908024', 'tblTempUsageDetail_20' ) end [2025-04-14 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:18:25] Production.INFO: ==9080== Releasing lock... [2025-04-14 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:18:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-14 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:19:05 [end_date_ymd] => 2025-04-14 18:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:19:05' and `end` < '2025-04-14 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-04-14 18:19:19] Production.INFO: count ==3731 [2025-04-14 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:19:05 - End Time 2025-04-14 18:19:05 [2025-04-14 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908029', 'tblTempUsageDetail_20' ) start [2025-04-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908029', 'tblTempUsageDetail_20' ) end [2025-04-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908029', 'tblTempVendorCDR_20' ) start [2025-04-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908029', 'tblTempVendorCDR_20' ) end [2025-04-14 18:19:20] Production.INFO: ProcessCDR(1,14908029,1,1,2) [2025-04-14 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908029', 'tblTempUsageDetail_20' ) start [2025-04-14 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908029', 'tblTempUsageDetail_20' ) end [2025-04-14 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:19:23] Production.INFO: ==9153== Releasing lock... [2025-04-14 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:19:23] Production.INFO: 55.75 MB #Memory Used# [2025-04-14 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:20:06 [end_date_ymd] => 2025-04-14 18:20:06 [RateCDR] => 1 ) [2025-04-14 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:20:06' and `end` < '2025-04-14 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:20:20] Production.INFO: count ==3711 [2025-04-14 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-14 15:20:06 - End Time 2025-04-14 18:20:06 [2025-04-14 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908035', 'tblTempUsageDetail_20' ) start [2025-04-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908035', 'tblTempUsageDetail_20' ) end [2025-04-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908035', 'tblTempVendorCDR_20' ) start [2025-04-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908035', 'tblTempVendorCDR_20' ) end [2025-04-14 18:20:21] Production.INFO: ProcessCDR(1,14908035,1,1,2) [2025-04-14 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908035', 'tblTempUsageDetail_20' ) start [2025-04-14 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908035', 'tblTempUsageDetail_20' ) end [2025-04-14 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:20:26] Production.INFO: ==9232== Releasing lock... [2025-04-14 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:20:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-14 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:21:04 [end_date_ymd] => 2025-04-14 18:21:04 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:21:04' and `end` < '2025-04-14 18: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-04-14 18:21:18] Production.INFO: count ==3671 [2025-04-14 18:21:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:21:04 - End Time 2025-04-14 18:21:04 [2025-04-14 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908040', 'tblTempUsageDetail_20' ) start [2025-04-14 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908040', 'tblTempUsageDetail_20' ) end [2025-04-14 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908040', 'tblTempVendorCDR_20' ) start [2025-04-14 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908040', 'tblTempVendorCDR_20' ) end [2025-04-14 18:21:19] Production.INFO: ProcessCDR(1,14908040,1,1,2) [2025-04-14 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908040', 'tblTempUsageDetail_20' ) start [2025-04-14 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908040', 'tblTempUsageDetail_20' ) end [2025-04-14 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:21:24] Production.INFO: ==9347== Releasing lock... [2025-04-14 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:21:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-14 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:22:05 [end_date_ymd] => 2025-04-14 18:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:22:05' and `end` < '2025-04-14 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-04-14 18:22:19] Production.INFO: count ==3656 [2025-04-14 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:22:05 - End Time 2025-04-14 18:22:05 [2025-04-14 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908045', 'tblTempUsageDetail_20' ) start [2025-04-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908045', 'tblTempUsageDetail_20' ) end [2025-04-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908045', 'tblTempVendorCDR_20' ) start [2025-04-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908045', 'tblTempVendorCDR_20' ) end [2025-04-14 18:22:20] Production.INFO: ProcessCDR(1,14908045,1,1,2) [2025-04-14 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908045', 'tblTempUsageDetail_20' ) start [2025-04-14 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908045', 'tblTempUsageDetail_20' ) end [2025-04-14 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:22:25] Production.INFO: ==9420== Releasing lock... [2025-04-14 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:22:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-14 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:23:05 [end_date_ymd] => 2025-04-14 18:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:23:05' and `end` < '2025-04-14 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-04-14 18:23:18] Production.INFO: count ==3616 [2025-04-14 18:23:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:23:05 - End Time 2025-04-14 18:23:05 [2025-04-14 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908050', 'tblTempUsageDetail_20' ) start [2025-04-14 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908050', 'tblTempUsageDetail_20' ) end [2025-04-14 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908050', 'tblTempVendorCDR_20' ) start [2025-04-14 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908050', 'tblTempVendorCDR_20' ) end [2025-04-14 18:23:20] Production.INFO: ProcessCDR(1,14908050,1,1,2) [2025-04-14 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908050', 'tblTempUsageDetail_20' ) start [2025-04-14 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908050', 'tblTempUsageDetail_20' ) end [2025-04-14 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:23:25] Production.INFO: ==9496== Releasing lock... [2025-04-14 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:23:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-14 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:24:05 [end_date_ymd] => 2025-04-14 18:24:05 [RateCDR] => 1 ) [2025-04-14 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:24:05' and `end` < '2025-04-14 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:24:19] Production.INFO: count ==3604 [2025-04-14 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:24:05 - End Time 2025-04-14 18:24:05 [2025-04-14 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908055', 'tblTempUsageDetail_20' ) start [2025-04-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908055', 'tblTempUsageDetail_20' ) end [2025-04-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908055', 'tblTempVendorCDR_20' ) start [2025-04-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908055', 'tblTempVendorCDR_20' ) end [2025-04-14 18:24:20] Production.INFO: ProcessCDR(1,14908055,1,1,2) [2025-04-14 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908055', 'tblTempUsageDetail_20' ) start [2025-04-14 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908055', 'tblTempUsageDetail_20' ) end [2025-04-14 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:24:25] Production.INFO: ==9594== Releasing lock... [2025-04-14 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:24:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:25:05 [end_date_ymd] => 2025-04-14 18:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:25:05' and `end` < '2025-04-14 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-04-14 18:25:18] Production.INFO: count ==3587 [2025-04-14 18:25:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:25:05 - End Time 2025-04-14 18:25:05 [2025-04-14 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908060', 'tblTempUsageDetail_20' ) start [2025-04-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908060', 'tblTempUsageDetail_20' ) end [2025-04-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908060', 'tblTempVendorCDR_20' ) start [2025-04-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908060', 'tblTempVendorCDR_20' ) end [2025-04-14 18:25:19] Production.INFO: ProcessCDR(1,14908060,1,1,2) [2025-04-14 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908060', 'tblTempUsageDetail_20' ) start [2025-04-14 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908060', 'tblTempUsageDetail_20' ) end [2025-04-14 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:25:24] Production.INFO: ==9672== Releasing lock... [2025-04-14 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:25:24] Production.INFO: 54.75 MB #Memory Used# [2025-04-14 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:26:05 [end_date_ymd] => 2025-04-14 18:26:05 [RateCDR] => 1 ) [2025-04-14 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:26:05' and `end` < '2025-04-14 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:26:19] Production.INFO: count ==3563 [2025-04-14 18:26:40] Production.ERROR: pbx CDR StartTime 2025-04-14 15:26:05 - End Time 2025-04-14 18:26:05 [2025-04-14 18:26:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:26:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908065', 'tblTempUsageDetail_20' ) start [2025-04-14 18:26:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908065', 'tblTempUsageDetail_20' ) end [2025-04-14 18:26:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908065', 'tblTempVendorCDR_20' ) start [2025-04-14 18:26:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908065', 'tblTempVendorCDR_20' ) end [2025-04-14 18:26:45] Production.INFO: ProcessCDR(1,14908065,1,1,2) [2025-04-14 18:26:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:26:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:26:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908065', 'tblTempUsageDetail_20' ) start [2025-04-14 18:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908065', 'tblTempUsageDetail_20' ) end [2025-04-14 18:27:29] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:27:29] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:27:29] Production.INFO: ==9752== Releasing lock... [2025-04-14 18:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:27:29] Production.INFO: 54.75 MB #Memory Used# [2025-04-14 18:28:19] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:28:19 [end_date_ymd] => 2025-04-14 18:28:19 [RateCDR] => 1 ) [2025-04-14 18:28:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:28:19' and `end` < '2025-04-14 18:28:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:28:32] Production.INFO: count ==3524 [2025-04-14 18:28:57] Production.ERROR: pbx CDR StartTime 2025-04-14 15:28:19 - End Time 2025-04-14 18:28:19 [2025-04-14 18:28:57] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:28:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908073', 'tblTempUsageDetail_20' ) start [2025-04-14 18:29:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908073', 'tblTempUsageDetail_20' ) end [2025-04-14 18:29:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908073', 'tblTempVendorCDR_20' ) start [2025-04-14 18:29:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908073', 'tblTempVendorCDR_20' ) end [2025-04-14 18:29:02] Production.INFO: ProcessCDR(1,14908073,1,1,2) [2025-04-14 18:29:02] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:29:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:29:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:29:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908073', 'tblTempUsageDetail_20' ) start [2025-04-14 18:29:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908073', 'tblTempUsageDetail_20' ) end [2025-04-14 18:29:40] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:29:40] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:29:43] Production.INFO: ==9895== Releasing lock... [2025-04-14 18:29:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:29:43] Production.INFO: 54.5 MB #Memory Used# [2025-04-14 18:30:19] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:30:17 [end_date_ymd] => 2025-04-14 18:30:17 [RateCDR] => 1 ) [2025-04-14 18:30:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:30:17' and `end` < '2025-04-14 18:30:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:30:33] Production.INFO: count ==3467 [2025-04-14 18:30:54] Production.ERROR: pbx CDR StartTime 2025-04-14 15:30:17 - End Time 2025-04-14 18:30:17 [2025-04-14 18:30:54] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:30:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908082', 'tblTempUsageDetail_20' ) start [2025-04-14 18:30:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908082', 'tblTempUsageDetail_20' ) end [2025-04-14 18:30:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908082', 'tblTempVendorCDR_20' ) start [2025-04-14 18:31:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908082', 'tblTempVendorCDR_20' ) end [2025-04-14 18:31:02] Production.INFO: ProcessCDR(1,14908082,1,1,2) [2025-04-14 18:31:02] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:31:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:31:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908082', 'tblTempUsageDetail_20' ) start [2025-04-14 18:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908082', 'tblTempUsageDetail_20' ) end [2025-04-14 18:31:30] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:31:30] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:31:32] Production.INFO: ==10036== Releasing lock... [2025-04-14 18:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:31:32] Production.INFO: 54 MB #Memory Used# [2025-04-14 18:32:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:32:21 [end_date_ymd] => 2025-04-14 18:32:21 [RateCDR] => 1 ) [2025-04-14 18:32:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:32:21' and `end` < '2025-04-14 18:32:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:32:35] Production.INFO: count ==3387 [2025-04-14 18:32:36] Production.ERROR: pbx CDR StartTime 2025-04-14 15:32:21 - End Time 2025-04-14 18:32:21 [2025-04-14 18:32:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908090', 'tblTempUsageDetail_20' ) start [2025-04-14 18:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908090', 'tblTempUsageDetail_20' ) end [2025-04-14 18:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908090', 'tblTempVendorCDR_20' ) start [2025-04-14 18:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908090', 'tblTempVendorCDR_20' ) end [2025-04-14 18:32:36] Production.INFO: ProcessCDR(1,14908090,1,1,2) [2025-04-14 18:32:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:32:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:32:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:32:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:32:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908090', 'tblTempUsageDetail_20' ) start [2025-04-14 18:32:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908090', 'tblTempUsageDetail_20' ) end [2025-04-14 18:32:41] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:32:41] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:32:41] Production.INFO: ==10174== Releasing lock... [2025-04-14 18:32:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:32:41] Production.INFO: 54 MB #Memory Used# [2025-04-14 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:33:05 [end_date_ymd] => 2025-04-14 18:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:33:05' and `end` < '2025-04-14 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-04-14 18:33:18] Production.INFO: count ==3372 [2025-04-14 18:33:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:33:05 - End Time 2025-04-14 18:33:05 [2025-04-14 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908095', 'tblTempUsageDetail_20' ) start [2025-04-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908095', 'tblTempUsageDetail_20' ) end [2025-04-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908095', 'tblTempVendorCDR_20' ) start [2025-04-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908095', 'tblTempVendorCDR_20' ) end [2025-04-14 18:33:19] Production.INFO: ProcessCDR(1,14908095,1,1,2) [2025-04-14 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908095', 'tblTempUsageDetail_20' ) start [2025-04-14 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908095', 'tblTempUsageDetail_20' ) end [2025-04-14 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:33:23] Production.INFO: ==10251== Releasing lock... [2025-04-14 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:33:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:34:05 [end_date_ymd] => 2025-04-14 18:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:34:05' and `end` < '2025-04-14 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-04-14 18:34:18] Production.INFO: count ==3353 [2025-04-14 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:34:05 - End Time 2025-04-14 18:34:05 [2025-04-14 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908100', 'tblTempUsageDetail_20' ) start [2025-04-14 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908100', 'tblTempUsageDetail_20' ) end [2025-04-14 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908100', 'tblTempVendorCDR_20' ) start [2025-04-14 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908100', 'tblTempVendorCDR_20' ) end [2025-04-14 18:34:19] Production.INFO: ProcessCDR(1,14908100,1,1,2) [2025-04-14 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908100', 'tblTempUsageDetail_20' ) start [2025-04-14 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908100', 'tblTempUsageDetail_20' ) end [2025-04-14 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:34:23] Production.INFO: ==10325== Releasing lock... [2025-04-14 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:34:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-14 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:35:05 [end_date_ymd] => 2025-04-14 18:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:35:05' and `end` < '2025-04-14 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-04-14 18:35:18] Production.INFO: count ==3357 [2025-04-14 18:35:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:35:05 - End Time 2025-04-14 18:35:05 [2025-04-14 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908102', 'tblTempUsageDetail_20' ) start [2025-04-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908102', 'tblTempUsageDetail_20' ) end [2025-04-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908102', 'tblTempVendorCDR_20' ) start [2025-04-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908102', 'tblTempVendorCDR_20' ) end [2025-04-14 18:35:19] Production.INFO: ProcessCDR(1,14908102,1,1,2) [2025-04-14 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908102', 'tblTempUsageDetail_20' ) start [2025-04-14 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908102', 'tblTempUsageDetail_20' ) end [2025-04-14 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:35:24] Production.INFO: ==10397== Releasing lock... [2025-04-14 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:35:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:36:05 [end_date_ymd] => 2025-04-14 18:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:36:05' and `end` < '2025-04-14 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-04-14 18:36:18] Production.INFO: count ==3349 [2025-04-14 18:36:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:36:05 - End Time 2025-04-14 18:36:05 [2025-04-14 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908110', 'tblTempUsageDetail_20' ) start [2025-04-14 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908110', 'tblTempUsageDetail_20' ) end [2025-04-14 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908110', 'tblTempVendorCDR_20' ) start [2025-04-14 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908110', 'tblTempVendorCDR_20' ) end [2025-04-14 18:36:19] Production.INFO: ProcessCDR(1,14908110,1,1,2) [2025-04-14 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908110', 'tblTempUsageDetail_20' ) start [2025-04-14 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908110', 'tblTempUsageDetail_20' ) end [2025-04-14 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:36:23] Production.INFO: ==10512== Releasing lock... [2025-04-14 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:36:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:37:05 [end_date_ymd] => 2025-04-14 18:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:37:05' and `end` < '2025-04-14 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-04-14 18:37:18] Production.INFO: count ==3346 [2025-04-14 18:37:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:37:05 - End Time 2025-04-14 18:37:05 [2025-04-14 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908115', 'tblTempUsageDetail_20' ) start [2025-04-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908115', 'tblTempUsageDetail_20' ) end [2025-04-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908115', 'tblTempVendorCDR_20' ) start [2025-04-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908115', 'tblTempVendorCDR_20' ) end [2025-04-14 18:37:19] Production.INFO: ProcessCDR(1,14908115,1,1,2) [2025-04-14 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908115', 'tblTempUsageDetail_20' ) start [2025-04-14 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908115', 'tblTempUsageDetail_20' ) end [2025-04-14 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:37:24] Production.INFO: ==10590== Releasing lock... [2025-04-14 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:37:24] Production.INFO: 53 MB #Memory Used# [2025-04-14 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:38:05 [end_date_ymd] => 2025-04-14 18:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:38:05' and `end` < '2025-04-14 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-04-14 18:38:19] Production.INFO: count ==3341 [2025-04-14 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:38:05 - End Time 2025-04-14 18:38:05 [2025-04-14 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908120', 'tblTempUsageDetail_20' ) start [2025-04-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908120', 'tblTempUsageDetail_20' ) end [2025-04-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908120', 'tblTempVendorCDR_20' ) start [2025-04-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908120', 'tblTempVendorCDR_20' ) end [2025-04-14 18:38:20] Production.INFO: ProcessCDR(1,14908120,1,1,2) [2025-04-14 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908120', 'tblTempUsageDetail_20' ) start [2025-04-14 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908120', 'tblTempUsageDetail_20' ) end [2025-04-14 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:38:23] Production.INFO: ==10666== Releasing lock... [2025-04-14 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:38:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:39:05 [end_date_ymd] => 2025-04-14 18:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:39:05' and `end` < '2025-04-14 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-04-14 18:39:18] Production.INFO: count ==3334 [2025-04-14 18:39:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:39:05 - End Time 2025-04-14 18:39:05 [2025-04-14 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908125', 'tblTempUsageDetail_20' ) start [2025-04-14 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908125', 'tblTempUsageDetail_20' ) end [2025-04-14 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908125', 'tblTempVendorCDR_20' ) start [2025-04-14 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908125', 'tblTempVendorCDR_20' ) end [2025-04-14 18:39:19] Production.INFO: ProcessCDR(1,14908125,1,1,2) [2025-04-14 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908125', 'tblTempUsageDetail_20' ) start [2025-04-14 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908125', 'tblTempUsageDetail_20' ) end [2025-04-14 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:39:22] Production.INFO: ==10743== Releasing lock... [2025-04-14 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:39:22] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:40:07 [end_date_ymd] => 2025-04-14 18:40:07 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:40:07' and `end` < '2025-04-14 18: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-04-14 18:40:20] Production.INFO: count ==3321 [2025-04-14 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-14 15:40:07 - End Time 2025-04-14 18:40:07 [2025-04-14 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908131', 'tblTempUsageDetail_20' ) start [2025-04-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908131', 'tblTempUsageDetail_20' ) end [2025-04-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908131', 'tblTempVendorCDR_20' ) start [2025-04-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908131', 'tblTempVendorCDR_20' ) end [2025-04-14 18:40:21] Production.INFO: ProcessCDR(1,14908131,1,1,2) [2025-04-14 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908131', 'tblTempUsageDetail_20' ) start [2025-04-14 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908131', 'tblTempUsageDetail_20' ) end [2025-04-14 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:40:26] Production.INFO: ==10820== Releasing lock... [2025-04-14 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:40:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-14 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:41:05 [end_date_ymd] => 2025-04-14 18:41:05 [RateCDR] => 1 ) [2025-04-14 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:41:05' and `end` < '2025-04-14 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:41:18] Production.INFO: count ==3286 [2025-04-14 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:41:05 - End Time 2025-04-14 18:41:05 [2025-04-14 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908136', 'tblTempUsageDetail_20' ) start [2025-04-14 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908136', 'tblTempUsageDetail_20' ) end [2025-04-14 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908136', 'tblTempVendorCDR_20' ) start [2025-04-14 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908136', 'tblTempVendorCDR_20' ) end [2025-04-14 18:41:19] Production.INFO: ProcessCDR(1,14908136,1,1,2) [2025-04-14 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908136', 'tblTempUsageDetail_20' ) start [2025-04-14 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908136', 'tblTempUsageDetail_20' ) end [2025-04-14 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:41:24] Production.INFO: ==10901== Releasing lock... [2025-04-14 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:41:24] Production.INFO: 53 MB #Memory Used# [2025-04-14 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:42:06 [end_date_ymd] => 2025-04-14 18:42:06 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:42:06' and `end` < '2025-04-14 18: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-04-14 18:42:19] Production.INFO: count ==3269 [2025-04-14 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:42:06 - End Time 2025-04-14 18:42:06 [2025-04-14 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908141', 'tblTempUsageDetail_20' ) start [2025-04-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908141', 'tblTempUsageDetail_20' ) end [2025-04-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908141', 'tblTempVendorCDR_20' ) start [2025-04-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908141', 'tblTempVendorCDR_20' ) end [2025-04-14 18:42:20] Production.INFO: ProcessCDR(1,14908141,1,1,2) [2025-04-14 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908141', 'tblTempUsageDetail_20' ) start [2025-04-14 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908141', 'tblTempUsageDetail_20' ) end [2025-04-14 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:42:25] Production.INFO: ==10975== Releasing lock... [2025-04-14 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:42:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:43:05 [end_date_ymd] => 2025-04-14 18:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:43:05' and `end` < '2025-04-14 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-04-14 18:43:18] Production.INFO: count ==3269 [2025-04-14 18:43:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:43:05 - End Time 2025-04-14 18:43:05 [2025-04-14 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908146', 'tblTempUsageDetail_20' ) start [2025-04-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908146', 'tblTempUsageDetail_20' ) end [2025-04-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908146', 'tblTempVendorCDR_20' ) start [2025-04-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908146', 'tblTempVendorCDR_20' ) end [2025-04-14 18:43:20] Production.INFO: ProcessCDR(1,14908146,1,1,2) [2025-04-14 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908146', 'tblTempUsageDetail_20' ) start [2025-04-14 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908146', 'tblTempUsageDetail_20' ) end [2025-04-14 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:43:23] Production.INFO: ==11051== Releasing lock... [2025-04-14 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:43:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-14 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:44:05 [end_date_ymd] => 2025-04-14 18:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:44:05' and `end` < '2025-04-14 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-04-14 18:44:19] Production.INFO: count ==3258 [2025-04-14 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:44:05 - End Time 2025-04-14 18:44:05 [2025-04-14 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908151', 'tblTempUsageDetail_20' ) start [2025-04-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908151', 'tblTempUsageDetail_20' ) end [2025-04-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908151', 'tblTempVendorCDR_20' ) start [2025-04-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908151', 'tblTempVendorCDR_20' ) end [2025-04-14 18:44:20] Production.INFO: ProcessCDR(1,14908151,1,1,2) [2025-04-14 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908151', 'tblTempUsageDetail_20' ) start [2025-04-14 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908151', 'tblTempUsageDetail_20' ) end [2025-04-14 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:44:25] Production.INFO: ==11129== Releasing lock... [2025-04-14 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:44:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-14 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:45:05 [end_date_ymd] => 2025-04-14 18:45:05 [RateCDR] => 1 ) [2025-04-14 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:45:05' and `end` < '2025-04-14 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:45:18] Production.INFO: count ==3250 [2025-04-14 18:45:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:45:05 - End Time 2025-04-14 18:45:05 [2025-04-14 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908156', 'tblTempUsageDetail_20' ) start [2025-04-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908156', 'tblTempUsageDetail_20' ) end [2025-04-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908156', 'tblTempVendorCDR_20' ) start [2025-04-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908156', 'tblTempVendorCDR_20' ) end [2025-04-14 18:45:19] Production.INFO: ProcessCDR(1,14908156,1,1,2) [2025-04-14 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908156', 'tblTempUsageDetail_20' ) start [2025-04-14 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908156', 'tblTempUsageDetail_20' ) end [2025-04-14 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:45:22] Production.INFO: ==11203== Releasing lock... [2025-04-14 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:45:22] Production.INFO: 53 MB #Memory Used# [2025-04-14 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:46:05 [end_date_ymd] => 2025-04-14 18:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:46:05' and `end` < '2025-04-14 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-04-14 18:46:18] Production.INFO: count ==3238 [2025-04-14 18:46:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:46:05 - End Time 2025-04-14 18:46:05 [2025-04-14 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908161', 'tblTempUsageDetail_20' ) start [2025-04-14 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908161', 'tblTempUsageDetail_20' ) end [2025-04-14 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908161', 'tblTempVendorCDR_20' ) start [2025-04-14 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908161', 'tblTempVendorCDR_20' ) end [2025-04-14 18:46:19] Production.INFO: ProcessCDR(1,14908161,1,1,2) [2025-04-14 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908161', 'tblTempUsageDetail_20' ) start [2025-04-14 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908161', 'tblTempUsageDetail_20' ) end [2025-04-14 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:46:23] Production.INFO: ==11280== Releasing lock... [2025-04-14 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:46:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-14 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:47:05 [end_date_ymd] => 2025-04-14 18:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:47:05' and `end` < '2025-04-14 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-04-14 18:47:18] Production.INFO: count ==3215 [2025-04-14 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:47:05 - End Time 2025-04-14 18:47:05 [2025-04-14 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908166', 'tblTempUsageDetail_20' ) start [2025-04-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908166', 'tblTempUsageDetail_20' ) end [2025-04-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908166', 'tblTempVendorCDR_20' ) start [2025-04-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908166', 'tblTempVendorCDR_20' ) end [2025-04-14 18:47:19] Production.INFO: ProcessCDR(1,14908166,1,1,2) [2025-04-14 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908166', 'tblTempUsageDetail_20' ) start [2025-04-14 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908166', 'tblTempUsageDetail_20' ) end [2025-04-14 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:47:22] Production.INFO: ==11354== Releasing lock... [2025-04-14 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:47:22] Production.INFO: 52.25 MB #Memory Used# [2025-04-14 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:48:04 [end_date_ymd] => 2025-04-14 18:48:04 [RateCDR] => 1 ) [2025-04-14 18: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-04-14 15:48:04' and `end` < '2025-04-14 18: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-04-14 18:48:18] Production.INFO: count ==3192 [2025-04-14 18:48:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:48:04 - End Time 2025-04-14 18:48:04 [2025-04-14 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908171', 'tblTempUsageDetail_20' ) start [2025-04-14 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908171', 'tblTempUsageDetail_20' ) end [2025-04-14 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908171', 'tblTempVendorCDR_20' ) start [2025-04-14 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908171', 'tblTempVendorCDR_20' ) end [2025-04-14 18:48:19] Production.INFO: ProcessCDR(1,14908171,1,1,2) [2025-04-14 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908171', 'tblTempUsageDetail_20' ) start [2025-04-14 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908171', 'tblTempUsageDetail_20' ) end [2025-04-14 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:48:22] Production.INFO: ==11425== Releasing lock... [2025-04-14 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:48:22] Production.INFO: 52 MB #Memory Used# [2025-04-14 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:49:06 [end_date_ymd] => 2025-04-14 18:49:06 [RateCDR] => 1 ) [2025-04-14 18:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:49:06' and `end` < '2025-04-14 18:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:49:19] Production.INFO: count ==3184 [2025-04-14 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-14 15:49:06 - End Time 2025-04-14 18:49:06 [2025-04-14 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908176', 'tblTempUsageDetail_20' ) start [2025-04-14 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908176', 'tblTempUsageDetail_20' ) end [2025-04-14 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908176', 'tblTempVendorCDR_20' ) start [2025-04-14 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908176', 'tblTempVendorCDR_20' ) end [2025-04-14 18:49:20] Production.INFO: ProcessCDR(1,14908176,1,1,2) [2025-04-14 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908176', 'tblTempUsageDetail_20' ) start [2025-04-14 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908176', 'tblTempUsageDetail_20' ) end [2025-04-14 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:49:25] Production.INFO: ==11503== Releasing lock... [2025-04-14 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:49:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-14 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:50:05 [end_date_ymd] => 2025-04-14 18:50:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:50:05' and `end` < '2025-04-14 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-04-14 18:50:19] Production.INFO: count ==3160 [2025-04-14 18:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:50:05 - End Time 2025-04-14 18:50:05 [2025-04-14 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908181', 'tblTempUsageDetail_20' ) start [2025-04-14 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908181', 'tblTempUsageDetail_20' ) end [2025-04-14 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908181', 'tblTempVendorCDR_20' ) start [2025-04-14 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908181', 'tblTempVendorCDR_20' ) end [2025-04-14 18:50:20] Production.INFO: ProcessCDR(1,14908181,1,1,2) [2025-04-14 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908181', 'tblTempUsageDetail_20' ) start [2025-04-14 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908181', 'tblTempUsageDetail_20' ) end [2025-04-14 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:50:23] Production.INFO: ==11588== Releasing lock... [2025-04-14 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:50:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-14 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:51:05 [end_date_ymd] => 2025-04-14 18:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:51:05' and `end` < '2025-04-14 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-04-14 18:51:19] Production.INFO: count ==3068 [2025-04-14 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:51:05 - End Time 2025-04-14 18:51:05 [2025-04-14 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908187', 'tblTempUsageDetail_20' ) start [2025-04-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908187', 'tblTempUsageDetail_20' ) end [2025-04-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908187', 'tblTempVendorCDR_20' ) start [2025-04-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908187', 'tblTempVendorCDR_20' ) end [2025-04-14 18:51:19] Production.INFO: ProcessCDR(1,14908187,1,1,2) [2025-04-14 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908187', 'tblTempUsageDetail_20' ) start [2025-04-14 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908187', 'tblTempUsageDetail_20' ) end [2025-04-14 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:51:23] Production.INFO: ==11671== Releasing lock... [2025-04-14 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:51:23] Production.INFO: 51 MB #Memory Used# [2025-04-14 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:52:05 [end_date_ymd] => 2025-04-14 18:52:05 [RateCDR] => 1 ) [2025-04-14 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:52:05' and `end` < '2025-04-14 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:52:18] Production.INFO: count ==3067 [2025-04-14 18:52:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:52:05 - End Time 2025-04-14 18:52:05 [2025-04-14 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908192', 'tblTempUsageDetail_20' ) start [2025-04-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908192', 'tblTempUsageDetail_20' ) end [2025-04-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908192', 'tblTempVendorCDR_20' ) start [2025-04-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908192', 'tblTempVendorCDR_20' ) end [2025-04-14 18:52:19] Production.INFO: ProcessCDR(1,14908192,1,1,2) [2025-04-14 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908192', 'tblTempUsageDetail_20' ) start [2025-04-14 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908192', 'tblTempUsageDetail_20' ) end [2025-04-14 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:52:24] Production.INFO: ==11785== Releasing lock... [2025-04-14 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:52:24] Production.INFO: 51 MB #Memory Used# [2025-04-14 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:53:05 [end_date_ymd] => 2025-04-14 18:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:53:05' and `end` < '2025-04-14 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-04-14 18:53:19] Production.INFO: count ==3049 [2025-04-14 18:53:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:53:05 - End Time 2025-04-14 18:53:05 [2025-04-14 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908197', 'tblTempUsageDetail_20' ) start [2025-04-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908197', 'tblTempUsageDetail_20' ) end [2025-04-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908197', 'tblTempVendorCDR_20' ) start [2025-04-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908197', 'tblTempVendorCDR_20' ) end [2025-04-14 18:53:19] Production.INFO: ProcessCDR(1,14908197,1,1,2) [2025-04-14 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908197', 'tblTempUsageDetail_20' ) start [2025-04-14 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908197', 'tblTempUsageDetail_20' ) end [2025-04-14 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:53:23] Production.INFO: ==11863== Releasing lock... [2025-04-14 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:53:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-14 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:54:05 [end_date_ymd] => 2025-04-14 18:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:54:05' and `end` < '2025-04-14 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-04-14 18:54:18] Production.INFO: count ==3034 [2025-04-14 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:54:05 - End Time 2025-04-14 18:54:05 [2025-04-14 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908202', 'tblTempUsageDetail_20' ) start [2025-04-14 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908202', 'tblTempUsageDetail_20' ) end [2025-04-14 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908202', 'tblTempVendorCDR_20' ) start [2025-04-14 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908202', 'tblTempVendorCDR_20' ) end [2025-04-14 18:54:19] Production.INFO: ProcessCDR(1,14908202,1,1,2) [2025-04-14 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908202', 'tblTempUsageDetail_20' ) start [2025-04-14 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908202', 'tblTempUsageDetail_20' ) end [2025-04-14 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:54:23] Production.INFO: ==11937== Releasing lock... [2025-04-14 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:54:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-14 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:55:05 [end_date_ymd] => 2025-04-14 18:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:55:05' and `end` < '2025-04-14 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-04-14 18:55:18] Production.INFO: count ==3029 [2025-04-14 18:55:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:55:05 - End Time 2025-04-14 18:55:05 [2025-04-14 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908207', 'tblTempUsageDetail_20' ) start [2025-04-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908207', 'tblTempUsageDetail_20' ) end [2025-04-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908207', 'tblTempVendorCDR_20' ) start [2025-04-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908207', 'tblTempVendorCDR_20' ) end [2025-04-14 18:55:19] Production.INFO: ProcessCDR(1,14908207,1,1,2) [2025-04-14 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908207', 'tblTempUsageDetail_20' ) start [2025-04-14 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908207', 'tblTempUsageDetail_20' ) end [2025-04-14 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:55:25] Production.INFO: ==12012== Releasing lock... [2025-04-14 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:55:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-14 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:56:05 [end_date_ymd] => 2025-04-14 18:56:05 [RateCDR] => 1 ) [2025-04-14 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 15:56:05' and `end` < '2025-04-14 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 18:56:18] Production.INFO: count ==3029 [2025-04-14 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:56:05 - End Time 2025-04-14 18:56:05 [2025-04-14 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908212', 'tblTempUsageDetail_20' ) start [2025-04-14 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908212', 'tblTempUsageDetail_20' ) end [2025-04-14 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908212', 'tblTempVendorCDR_20' ) start [2025-04-14 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908212', 'tblTempVendorCDR_20' ) end [2025-04-14 18:56:19] Production.INFO: ProcessCDR(1,14908212,1,1,2) [2025-04-14 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908212', 'tblTempUsageDetail_20' ) start [2025-04-14 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908212', 'tblTempUsageDetail_20' ) end [2025-04-14 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:56:25] Production.INFO: ==12087== Releasing lock... [2025-04-14 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:56:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-14 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:57:05 [end_date_ymd] => 2025-04-14 18:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:57:05' and `end` < '2025-04-14 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-04-14 18:57:18] Production.INFO: count ==3020 [2025-04-14 18:57:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:57:05 - End Time 2025-04-14 18:57:05 [2025-04-14 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908217', 'tblTempUsageDetail_20' ) start [2025-04-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908217', 'tblTempUsageDetail_20' ) end [2025-04-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908217', 'tblTempVendorCDR_20' ) start [2025-04-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908217', 'tblTempVendorCDR_20' ) end [2025-04-14 18:57:19] Production.INFO: ProcessCDR(1,14908217,1,1,2) [2025-04-14 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908217', 'tblTempUsageDetail_20' ) start [2025-04-14 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908217', 'tblTempUsageDetail_20' ) end [2025-04-14 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:57:24] Production.INFO: ==12159== Releasing lock... [2025-04-14 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:57:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-14 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:58:05 [end_date_ymd] => 2025-04-14 18:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:58:05' and `end` < '2025-04-14 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-04-14 18:58:18] Production.INFO: count ==3013 [2025-04-14 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:58:05 - End Time 2025-04-14 18:58:05 [2025-04-14 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908222', 'tblTempUsageDetail_20' ) start [2025-04-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908222', 'tblTempUsageDetail_20' ) end [2025-04-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908222', 'tblTempVendorCDR_20' ) start [2025-04-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908222', 'tblTempVendorCDR_20' ) end [2025-04-14 18:58:19] Production.INFO: ProcessCDR(1,14908222,1,1,2) [2025-04-14 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908222', 'tblTempUsageDetail_20' ) start [2025-04-14 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908222', 'tblTempUsageDetail_20' ) end [2025-04-14 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:58:22] Production.INFO: ==12233== Releasing lock... [2025-04-14 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:58:22] Production.INFO: 50.5 MB #Memory Used# [2025-04-14 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 15:59:05 [end_date_ymd] => 2025-04-14 18:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 15:59:05' and `end` < '2025-04-14 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-04-14 18:59:18] Production.INFO: count ==3009 [2025-04-14 18:59:19] Production.ERROR: pbx CDR StartTime 2025-04-14 15:59:05 - End Time 2025-04-14 18:59:05 [2025-04-14 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908227', 'tblTempUsageDetail_20' ) start [2025-04-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908227', 'tblTempUsageDetail_20' ) end [2025-04-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908227', 'tblTempVendorCDR_20' ) start [2025-04-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908227', 'tblTempVendorCDR_20' ) end [2025-04-14 18:59:19] Production.INFO: ProcessCDR(1,14908227,1,1,2) [2025-04-14 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908227', 'tblTempUsageDetail_20' ) start [2025-04-14 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908227', 'tblTempUsageDetail_20' ) end [2025-04-14 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 18:59:22] Production.INFO: ==12314== Releasing lock... [2025-04-14 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 18:59:22] Production.INFO: 50.5 MB #Memory Used# [2025-04-14 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:00:06 [end_date_ymd] => 2025-04-14 19:00:06 [RateCDR] => 1 ) [2025-04-14 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:00:06' and `end` < '2025-04-14 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:00:19] Production.INFO: count ==2998 [2025-04-14 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-14 16:00:06 - End Time 2025-04-14 19:00:06 [2025-04-14 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908233', 'tblTempUsageDetail_20' ) start [2025-04-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908233', 'tblTempUsageDetail_20' ) end [2025-04-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908233', 'tblTempVendorCDR_20' ) start [2025-04-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908233', 'tblTempVendorCDR_20' ) end [2025-04-14 19:00:20] Production.INFO: ProcessCDR(1,14908233,1,1,2) [2025-04-14 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908233', 'tblTempUsageDetail_20' ) start [2025-04-14 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908233', 'tblTempUsageDetail_20' ) end [2025-04-14 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:00:25] Production.INFO: ==12386== Releasing lock... [2025-04-14 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:00:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-14 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:01:05 [end_date_ymd] => 2025-04-14 19:01:05 [RateCDR] => 1 ) [2025-04-14 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:01:05' and `end` < '2025-04-14 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:01:18] Production.INFO: count ==2910 [2025-04-14 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:01:05 - End Time 2025-04-14 19:01:05 [2025-04-14 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908238', 'tblTempUsageDetail_20' ) start [2025-04-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908238', 'tblTempUsageDetail_20' ) end [2025-04-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908238', 'tblTempVendorCDR_20' ) start [2025-04-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908238', 'tblTempVendorCDR_20' ) end [2025-04-14 19:01:19] Production.INFO: ProcessCDR(1,14908238,1,1,2) [2025-04-14 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908238', 'tblTempUsageDetail_20' ) start [2025-04-14 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908238', 'tblTempUsageDetail_20' ) end [2025-04-14 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:01:24] Production.INFO: ==12550== Releasing lock... [2025-04-14 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:01:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-14 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:02:05 [end_date_ymd] => 2025-04-14 19:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:02:05' and `end` < '2025-04-14 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-04-14 19:02:19] Production.INFO: count ==2884 [2025-04-14 19:02:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:02:05 - End Time 2025-04-14 19:02:05 [2025-04-14 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908243', 'tblTempUsageDetail_20' ) start [2025-04-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908243', 'tblTempUsageDetail_20' ) end [2025-04-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908243', 'tblTempVendorCDR_20' ) start [2025-04-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908243', 'tblTempVendorCDR_20' ) end [2025-04-14 19:02:19] Production.INFO: ProcessCDR(1,14908243,1,1,2) [2025-04-14 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908243', 'tblTempUsageDetail_20' ) start [2025-04-14 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908243', 'tblTempUsageDetail_20' ) end [2025-04-14 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:02:24] Production.INFO: ==12628== Releasing lock... [2025-04-14 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:02:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-14 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:03:05 [end_date_ymd] => 2025-04-14 19:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:03:05' and `end` < '2025-04-14 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-04-14 19:03:18] Production.INFO: count ==2882 [2025-04-14 19:03:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:03:05 - End Time 2025-04-14 19:03:05 [2025-04-14 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908248', 'tblTempUsageDetail_20' ) start [2025-04-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908248', 'tblTempUsageDetail_20' ) end [2025-04-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908248', 'tblTempVendorCDR_20' ) start [2025-04-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908248', 'tblTempVendorCDR_20' ) end [2025-04-14 19:03:19] Production.INFO: ProcessCDR(1,14908248,1,1,2) [2025-04-14 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908248', 'tblTempUsageDetail_20' ) start [2025-04-14 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908248', 'tblTempUsageDetail_20' ) end [2025-04-14 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:03:24] Production.INFO: ==12699== Releasing lock... [2025-04-14 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:03:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-14 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:04:06 [end_date_ymd] => 2025-04-14 19:04:06 [RateCDR] => 1 ) [2025-04-14 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:04:06' and `end` < '2025-04-14 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:04:19] Production.INFO: count ==2865 [2025-04-14 19:04:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:04:06 - End Time 2025-04-14 19:04:06 [2025-04-14 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908253', 'tblTempUsageDetail_20' ) start [2025-04-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908253', 'tblTempUsageDetail_20' ) end [2025-04-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908253', 'tblTempVendorCDR_20' ) start [2025-04-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908253', 'tblTempVendorCDR_20' ) end [2025-04-14 19:04:20] Production.INFO: ProcessCDR(1,14908253,1,1,2) [2025-04-14 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908253', 'tblTempUsageDetail_20' ) start [2025-04-14 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908253', 'tblTempUsageDetail_20' ) end [2025-04-14 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:04:23] Production.INFO: ==12784== Releasing lock... [2025-04-14 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:04:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-14 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:05:05 [end_date_ymd] => 2025-04-14 19:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:05:05' and `end` < '2025-04-14 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-04-14 19:05:18] Production.INFO: count ==2856 [2025-04-14 19:05:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:05:05 - End Time 2025-04-14 19:05:05 [2025-04-14 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908258', 'tblTempUsageDetail_20' ) start [2025-04-14 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908258', 'tblTempUsageDetail_20' ) end [2025-04-14 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908258', 'tblTempVendorCDR_20' ) start [2025-04-14 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908258', 'tblTempVendorCDR_20' ) end [2025-04-14 19:05:19] Production.INFO: ProcessCDR(1,14908258,1,1,2) [2025-04-14 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908258', 'tblTempUsageDetail_20' ) start [2025-04-14 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908258', 'tblTempUsageDetail_20' ) end [2025-04-14 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:05:24] Production.INFO: ==12938== Releasing lock... [2025-04-14 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:05:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-14 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:06:05 [end_date_ymd] => 2025-04-14 19:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:06:05' and `end` < '2025-04-14 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-04-14 19:06:19] Production.INFO: count ==2841 [2025-04-14 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:06:05 - End Time 2025-04-14 19:06:05 [2025-04-14 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908263', 'tblTempUsageDetail_20' ) start [2025-04-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908263', 'tblTempUsageDetail_20' ) end [2025-04-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908263', 'tblTempVendorCDR_20' ) start [2025-04-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908263', 'tblTempVendorCDR_20' ) end [2025-04-14 19:06:19] Production.INFO: ProcessCDR(1,14908263,1,1,2) [2025-04-14 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908263', 'tblTempUsageDetail_20' ) start [2025-04-14 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908263', 'tblTempUsageDetail_20' ) end [2025-04-14 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:06:24] Production.INFO: ==13015== Releasing lock... [2025-04-14 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:06:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-14 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:07:05 [end_date_ymd] => 2025-04-14 19:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:07:05' and `end` < '2025-04-14 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-04-14 19:07:18] Production.INFO: count ==2827 [2025-04-14 19:07:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:07:05 - End Time 2025-04-14 19:07:05 [2025-04-14 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908268', 'tblTempUsageDetail_20' ) start [2025-04-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908268', 'tblTempUsageDetail_20' ) end [2025-04-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908268', 'tblTempVendorCDR_20' ) start [2025-04-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908268', 'tblTempVendorCDR_20' ) end [2025-04-14 19:07:19] Production.INFO: ProcessCDR(1,14908268,1,1,2) [2025-04-14 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908268', 'tblTempUsageDetail_20' ) start [2025-04-14 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908268', 'tblTempUsageDetail_20' ) end [2025-04-14 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:07:22] Production.INFO: ==13124== Releasing lock... [2025-04-14 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:07:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-14 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:08:05 [end_date_ymd] => 2025-04-14 19:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:08:05' and `end` < '2025-04-14 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-04-14 19:08:18] Production.INFO: count ==2818 [2025-04-14 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:08:05 - End Time 2025-04-14 19:08:05 [2025-04-14 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908273', 'tblTempUsageDetail_20' ) start [2025-04-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908273', 'tblTempUsageDetail_20' ) end [2025-04-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908273', 'tblTempVendorCDR_20' ) start [2025-04-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908273', 'tblTempVendorCDR_20' ) end [2025-04-14 19:08:19] Production.INFO: ProcessCDR(1,14908273,1,1,2) [2025-04-14 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908273', 'tblTempUsageDetail_20' ) start [2025-04-14 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908273', 'tblTempUsageDetail_20' ) end [2025-04-14 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:08:23] Production.INFO: ==13278== Releasing lock... [2025-04-14 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:08:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-14 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:09:05 [end_date_ymd] => 2025-04-14 19:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:09:05' and `end` < '2025-04-14 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-04-14 19:09:18] Production.INFO: count ==2816 [2025-04-14 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:09:05 - End Time 2025-04-14 19:09:05 [2025-04-14 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908278', 'tblTempUsageDetail_20' ) start [2025-04-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908278', 'tblTempUsageDetail_20' ) end [2025-04-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908278', 'tblTempVendorCDR_20' ) start [2025-04-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908278', 'tblTempVendorCDR_20' ) end [2025-04-14 19:09:19] Production.INFO: ProcessCDR(1,14908278,1,1,2) [2025-04-14 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908278', 'tblTempUsageDetail_20' ) start [2025-04-14 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908278', 'tblTempUsageDetail_20' ) end [2025-04-14 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:09:24] Production.INFO: ==13357== Releasing lock... [2025-04-14 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:09:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-14 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:10:05 [end_date_ymd] => 2025-04-14 19:10:05 [RateCDR] => 1 ) [2025-04-14 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:10:05' and `end` < '2025-04-14 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:10:19] Production.INFO: count ==2801 [2025-04-14 19:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:10:05 - End Time 2025-04-14 19:10:05 [2025-04-14 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908283', 'tblTempUsageDetail_20' ) start [2025-04-14 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908283', 'tblTempUsageDetail_20' ) end [2025-04-14 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908283', 'tblTempVendorCDR_20' ) start [2025-04-14 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908283', 'tblTempVendorCDR_20' ) end [2025-04-14 19:10:19] Production.INFO: ProcessCDR(1,14908283,1,1,2) [2025-04-14 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908283', 'tblTempUsageDetail_20' ) start [2025-04-14 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908283', 'tblTempUsageDetail_20' ) end [2025-04-14 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:10:23] Production.INFO: ==13438== Releasing lock... [2025-04-14 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:10:23] Production.INFO: 49 MB #Memory Used# [2025-04-14 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:11:05 [end_date_ymd] => 2025-04-14 19:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:11:05' and `end` < '2025-04-14 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-04-14 19:11:19] Production.INFO: count ==2720 [2025-04-14 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:11:05 - End Time 2025-04-14 19:11:05 [2025-04-14 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908289', 'tblTempUsageDetail_20' ) start [2025-04-14 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908289', 'tblTempUsageDetail_20' ) end [2025-04-14 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908289', 'tblTempVendorCDR_20' ) start [2025-04-14 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908289', 'tblTempVendorCDR_20' ) end [2025-04-14 19:11:19] Production.INFO: ProcessCDR(1,14908289,1,1,2) [2025-04-14 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908289', 'tblTempUsageDetail_20' ) start [2025-04-14 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908289', 'tblTempUsageDetail_20' ) end [2025-04-14 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:11:24] Production.INFO: ==13513== Releasing lock... [2025-04-14 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:11:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-14 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:12:05 [end_date_ymd] => 2025-04-14 19:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:12:05' and `end` < '2025-04-14 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-04-14 19:12:18] Production.INFO: count ==2717 [2025-04-14 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:12:05 - End Time 2025-04-14 19:12:05 [2025-04-14 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908294', 'tblTempUsageDetail_20' ) start [2025-04-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908294', 'tblTempUsageDetail_20' ) end [2025-04-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908294', 'tblTempVendorCDR_20' ) start [2025-04-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908294', 'tblTempVendorCDR_20' ) end [2025-04-14 19:12:19] Production.INFO: ProcessCDR(1,14908294,1,1,2) [2025-04-14 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908294', 'tblTempUsageDetail_20' ) start [2025-04-14 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908294', 'tblTempUsageDetail_20' ) end [2025-04-14 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:12:22] Production.INFO: ==13664== Releasing lock... [2025-04-14 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:12:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-14 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:13:05 [end_date_ymd] => 2025-04-14 19:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:13:05' and `end` < '2025-04-14 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-04-14 19:13:19] Production.INFO: count ==2708 [2025-04-14 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:13:05 - End Time 2025-04-14 19:13:05 [2025-04-14 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908299', 'tblTempUsageDetail_20' ) start [2025-04-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908299', 'tblTempUsageDetail_20' ) end [2025-04-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908299', 'tblTempVendorCDR_20' ) start [2025-04-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908299', 'tblTempVendorCDR_20' ) end [2025-04-14 19:13:19] Production.INFO: ProcessCDR(1,14908299,1,1,2) [2025-04-14 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908299', 'tblTempUsageDetail_20' ) start [2025-04-14 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908299', 'tblTempUsageDetail_20' ) end [2025-04-14 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:13:23] Production.INFO: ==13739== Releasing lock... [2025-04-14 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:13:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-14 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:14:05 [end_date_ymd] => 2025-04-14 19:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:14:05' and `end` < '2025-04-14 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-04-14 19:14:18] Production.INFO: count ==2712 [2025-04-14 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:14:05 - End Time 2025-04-14 19:14:05 [2025-04-14 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908304', 'tblTempUsageDetail_20' ) start [2025-04-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908304', 'tblTempUsageDetail_20' ) end [2025-04-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908304', 'tblTempVendorCDR_20' ) start [2025-04-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908304', 'tblTempVendorCDR_20' ) end [2025-04-14 19:14:19] Production.INFO: ProcessCDR(1,14908304,1,1,2) [2025-04-14 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908304', 'tblTempUsageDetail_20' ) start [2025-04-14 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908304', 'tblTempUsageDetail_20' ) end [2025-04-14 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:14:24] Production.INFO: ==13814== Releasing lock... [2025-04-14 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:14:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-14 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:15:05 [end_date_ymd] => 2025-04-14 19:15:05 [RateCDR] => 1 ) [2025-04-14 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:15:05' and `end` < '2025-04-14 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:15:18] Production.INFO: count ==2703 [2025-04-14 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:15:05 - End Time 2025-04-14 19:15:05 [2025-04-14 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908309', 'tblTempUsageDetail_20' ) start [2025-04-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908309', 'tblTempUsageDetail_20' ) end [2025-04-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908309', 'tblTempVendorCDR_20' ) start [2025-04-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908309', 'tblTempVendorCDR_20' ) end [2025-04-14 19:15:19] Production.INFO: ProcessCDR(1,14908309,1,1,2) [2025-04-14 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908309', 'tblTempUsageDetail_20' ) start [2025-04-14 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908309', 'tblTempUsageDetail_20' ) end [2025-04-14 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:15:22] Production.INFO: ==13967== Releasing lock... [2025-04-14 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:15:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-14 19:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:16:04 [end_date_ymd] => 2025-04-14 19:16:04 [RateCDR] => 1 ) [2025-04-14 19:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:16:04' and `end` < '2025-04-14 19:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:16:17] Production.INFO: count ==2689 [2025-04-14 19:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:16:04 - End Time 2025-04-14 19:16:04 [2025-04-14 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908314', 'tblTempUsageDetail_20' ) start [2025-04-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908314', 'tblTempUsageDetail_20' ) end [2025-04-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908314', 'tblTempVendorCDR_20' ) start [2025-04-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908314', 'tblTempVendorCDR_20' ) end [2025-04-14 19:16:18] Production.INFO: ProcessCDR(1,14908314,1,1,2) [2025-04-14 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908314', 'tblTempUsageDetail_20' ) start [2025-04-14 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908314', 'tblTempUsageDetail_20' ) end [2025-04-14 19:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:16:22] Production.INFO: ==14043== Releasing lock... [2025-04-14 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:16:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-14 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:17:05 [end_date_ymd] => 2025-04-14 19:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:17:05' and `end` < '2025-04-14 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-04-14 19:17:18] Production.INFO: count ==2676 [2025-04-14 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:17:05 - End Time 2025-04-14 19:17:05 [2025-04-14 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908319', 'tblTempUsageDetail_20' ) start [2025-04-14 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908319', 'tblTempUsageDetail_20' ) end [2025-04-14 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908319', 'tblTempVendorCDR_20' ) start [2025-04-14 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908319', 'tblTempVendorCDR_20' ) end [2025-04-14 19:17:19] Production.INFO: ProcessCDR(1,14908319,1,1,2) [2025-04-14 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908319', 'tblTempUsageDetail_20' ) start [2025-04-14 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908319', 'tblTempUsageDetail_20' ) end [2025-04-14 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:17:23] Production.INFO: ==14124== Releasing lock... [2025-04-14 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:17:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-14 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:18:05 [end_date_ymd] => 2025-04-14 19:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:18:05' and `end` < '2025-04-14 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-04-14 19:18:18] Production.INFO: count ==2669 [2025-04-14 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:18:05 - End Time 2025-04-14 19:18:05 [2025-04-14 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908324', 'tblTempUsageDetail_20' ) start [2025-04-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908324', 'tblTempUsageDetail_20' ) end [2025-04-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908324', 'tblTempVendorCDR_20' ) start [2025-04-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908324', 'tblTempVendorCDR_20' ) end [2025-04-14 19:18:19] Production.INFO: ProcessCDR(1,14908324,1,1,2) [2025-04-14 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908324', 'tblTempUsageDetail_20' ) start [2025-04-14 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908324', 'tblTempUsageDetail_20' ) end [2025-04-14 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:18:22] Production.INFO: ==14202== Releasing lock... [2025-04-14 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:18:22] Production.INFO: 48 MB #Memory Used# [2025-04-14 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:19:05 [end_date_ymd] => 2025-04-14 19:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:19:05' and `end` < '2025-04-14 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-04-14 19:19:18] Production.INFO: count ==2659 [2025-04-14 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:19:05 - End Time 2025-04-14 19:19:05 [2025-04-14 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908329', 'tblTempUsageDetail_20' ) start [2025-04-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908329', 'tblTempUsageDetail_20' ) end [2025-04-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908329', 'tblTempVendorCDR_20' ) start [2025-04-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908329', 'tblTempVendorCDR_20' ) end [2025-04-14 19:19:19] Production.INFO: ProcessCDR(1,14908329,1,1,2) [2025-04-14 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908329', 'tblTempUsageDetail_20' ) start [2025-04-14 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908329', 'tblTempUsageDetail_20' ) end [2025-04-14 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:19:24] Production.INFO: ==14275== Releasing lock... [2025-04-14 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:19:24] Production.INFO: 48 MB #Memory Used# [2025-04-14 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:20:05 [end_date_ymd] => 2025-04-14 19:20:05 [RateCDR] => 1 ) [2025-04-14 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:20:05' and `end` < '2025-04-14 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:20:19] Production.INFO: count ==2635 [2025-04-14 19:20:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:20:05 - End Time 2025-04-14 19:20:05 [2025-04-14 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908334', 'tblTempUsageDetail_20' ) start [2025-04-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908334', 'tblTempUsageDetail_20' ) end [2025-04-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908334', 'tblTempVendorCDR_20' ) start [2025-04-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908334', 'tblTempVendorCDR_20' ) end [2025-04-14 19:20:20] Production.INFO: ProcessCDR(1,14908334,1,1,2) [2025-04-14 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908334', 'tblTempUsageDetail_20' ) start [2025-04-14 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908334', 'tblTempUsageDetail_20' ) end [2025-04-14 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:20:23] Production.INFO: ==14358== Releasing lock... [2025-04-14 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:20:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-14 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:21:05 [end_date_ymd] => 2025-04-14 19:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:21:05' and `end` < '2025-04-14 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-04-14 19:21:18] Production.INFO: count ==2564 [2025-04-14 19:21:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:21:05 - End Time 2025-04-14 19:21:05 [2025-04-14 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908340', 'tblTempUsageDetail_20' ) start [2025-04-14 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908340', 'tblTempUsageDetail_20' ) end [2025-04-14 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908340', 'tblTempVendorCDR_20' ) start [2025-04-14 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908340', 'tblTempVendorCDR_20' ) end [2025-04-14 19:21:19] Production.INFO: ProcessCDR(1,14908340,1,1,2) [2025-04-14 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908340', 'tblTempUsageDetail_20' ) start [2025-04-14 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908340', 'tblTempUsageDetail_20' ) end [2025-04-14 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:21:22] Production.INFO: ==14434== Releasing lock... [2025-04-14 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:21:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-14 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:22:06 [end_date_ymd] => 2025-04-14 19:22:06 [RateCDR] => 1 ) [2025-04-14 19: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-04-14 16:22:06' and `end` < '2025-04-14 19: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-04-14 19:22:19] Production.INFO: count ==2558 [2025-04-14 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-14 16:22:06 - End Time 2025-04-14 19:22:06 [2025-04-14 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908345', 'tblTempUsageDetail_20' ) start [2025-04-14 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908345', 'tblTempUsageDetail_20' ) end [2025-04-14 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908345', 'tblTempVendorCDR_20' ) start [2025-04-14 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908345', 'tblTempVendorCDR_20' ) end [2025-04-14 19:22:20] Production.INFO: ProcessCDR(1,14908345,1,1,2) [2025-04-14 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908345', 'tblTempUsageDetail_20' ) start [2025-04-14 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908345', 'tblTempUsageDetail_20' ) end [2025-04-14 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:22:23] Production.INFO: ==14509== Releasing lock... [2025-04-14 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:22:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-14 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:23:04 [end_date_ymd] => 2025-04-14 19:23:04 [RateCDR] => 1 ) [2025-04-14 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:23:04' and `end` < '2025-04-14 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:23:18] Production.INFO: count ==2555 [2025-04-14 19:23:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:23:04 - End Time 2025-04-14 19:23:04 [2025-04-14 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908350', 'tblTempUsageDetail_20' ) start [2025-04-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908350', 'tblTempUsageDetail_20' ) end [2025-04-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908350', 'tblTempVendorCDR_20' ) start [2025-04-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908350', 'tblTempVendorCDR_20' ) end [2025-04-14 19:23:18] Production.INFO: ProcessCDR(1,14908350,1,1,2) [2025-04-14 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908350', 'tblTempUsageDetail_20' ) start [2025-04-14 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908350', 'tblTempUsageDetail_20' ) end [2025-04-14 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:23:24] Production.INFO: ==14620== Releasing lock... [2025-04-14 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:23:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-14 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:24:05 [end_date_ymd] => 2025-04-14 19:24:05 [RateCDR] => 1 ) [2025-04-14 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:24:05' and `end` < '2025-04-14 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:24:19] Production.INFO: count ==2529 [2025-04-14 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:24:05 - End Time 2025-04-14 19:24:05 [2025-04-14 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908355', 'tblTempUsageDetail_20' ) start [2025-04-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908355', 'tblTempUsageDetail_20' ) end [2025-04-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908355', 'tblTempVendorCDR_20' ) start [2025-04-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908355', 'tblTempVendorCDR_20' ) end [2025-04-14 19:24:19] Production.INFO: ProcessCDR(1,14908355,1,1,2) [2025-04-14 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908355', 'tblTempUsageDetail_20' ) start [2025-04-14 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908355', 'tblTempUsageDetail_20' ) end [2025-04-14 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:24:25] Production.INFO: ==14699== Releasing lock... [2025-04-14 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:24:25] Production.INFO: 47 MB #Memory Used# [2025-04-14 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:25:05 [end_date_ymd] => 2025-04-14 19:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:25:05' and `end` < '2025-04-14 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-04-14 19:25:18] Production.INFO: count ==2513 [2025-04-14 19:25:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:25:05 - End Time 2025-04-14 19:25:05 [2025-04-14 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908360', 'tblTempUsageDetail_20' ) start [2025-04-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908360', 'tblTempUsageDetail_20' ) end [2025-04-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908360', 'tblTempVendorCDR_20' ) start [2025-04-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908360', 'tblTempVendorCDR_20' ) end [2025-04-14 19:25:19] Production.INFO: ProcessCDR(1,14908360,1,1,2) [2025-04-14 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908360', 'tblTempUsageDetail_20' ) start [2025-04-14 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908360', 'tblTempUsageDetail_20' ) end [2025-04-14 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:25:23] Production.INFO: ==14774== Releasing lock... [2025-04-14 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:25:23] Production.INFO: 47 MB #Memory Used# [2025-04-14 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:26:04 [end_date_ymd] => 2025-04-14 19:26:04 [RateCDR] => 1 ) [2025-04-14 19: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-04-14 16:26:04' and `end` < '2025-04-14 19: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-04-14 19:26:18] Production.INFO: count ==2507 [2025-04-14 19:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:26:04 - End Time 2025-04-14 19:26:04 [2025-04-14 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908365', 'tblTempUsageDetail_20' ) start [2025-04-14 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908365', 'tblTempUsageDetail_20' ) end [2025-04-14 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908365', 'tblTempVendorCDR_20' ) start [2025-04-14 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908365', 'tblTempVendorCDR_20' ) end [2025-04-14 19:26:18] Production.INFO: ProcessCDR(1,14908365,1,1,2) [2025-04-14 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908365', 'tblTempUsageDetail_20' ) start [2025-04-14 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908365', 'tblTempUsageDetail_20' ) end [2025-04-14 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:26:23] Production.INFO: ==14845== Releasing lock... [2025-04-14 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:26:23] Production.INFO: 47 MB #Memory Used# [2025-04-14 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:27:05 [end_date_ymd] => 2025-04-14 19:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:27:05' and `end` < '2025-04-14 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-04-14 19:27:18] Production.INFO: count ==2494 [2025-04-14 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:27:05 - End Time 2025-04-14 19:27:05 [2025-04-14 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908370', 'tblTempUsageDetail_20' ) start [2025-04-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908370', 'tblTempUsageDetail_20' ) end [2025-04-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908370', 'tblTempVendorCDR_20' ) start [2025-04-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908370', 'tblTempVendorCDR_20' ) end [2025-04-14 19:27:19] Production.INFO: ProcessCDR(1,14908370,1,1,2) [2025-04-14 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908370', 'tblTempUsageDetail_20' ) start [2025-04-14 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908370', 'tblTempUsageDetail_20' ) end [2025-04-14 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:27:24] Production.INFO: ==14932== Releasing lock... [2025-04-14 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:27:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-14 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:28:06 [end_date_ymd] => 2025-04-14 19:28:06 [RateCDR] => 1 ) [2025-04-14 19: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-04-14 16:28:06' and `end` < '2025-04-14 19: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-04-14 19:28:19] Production.INFO: count ==2483 [2025-04-14 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:28:06 - End Time 2025-04-14 19:28:06 [2025-04-14 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908375', 'tblTempUsageDetail_20' ) start [2025-04-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908375', 'tblTempUsageDetail_20' ) end [2025-04-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908375', 'tblTempVendorCDR_20' ) start [2025-04-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908375', 'tblTempVendorCDR_20' ) end [2025-04-14 19:28:19] Production.INFO: ProcessCDR(1,14908375,1,1,2) [2025-04-14 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908375', 'tblTempUsageDetail_20' ) start [2025-04-14 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908375', 'tblTempUsageDetail_20' ) end [2025-04-14 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:28:24] Production.INFO: ==15005== Releasing lock... [2025-04-14 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:28:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-14 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:29:04 [end_date_ymd] => 2025-04-14 19:29:04 [RateCDR] => 1 ) [2025-04-14 19:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:29:04' and `end` < '2025-04-14 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:29:18] Production.INFO: count ==2479 [2025-04-14 19:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:29:04 - End Time 2025-04-14 19:29:04 [2025-04-14 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908380', 'tblTempUsageDetail_20' ) start [2025-04-14 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908380', 'tblTempUsageDetail_20' ) end [2025-04-14 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908380', 'tblTempVendorCDR_20' ) start [2025-04-14 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908380', 'tblTempVendorCDR_20' ) end [2025-04-14 19:29:18] Production.INFO: ProcessCDR(1,14908380,1,1,2) [2025-04-14 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908380', 'tblTempUsageDetail_20' ) start [2025-04-14 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908380', 'tblTempUsageDetail_20' ) end [2025-04-14 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:29:23] Production.INFO: ==15086== Releasing lock... [2025-04-14 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:29:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-14 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:30:07 [end_date_ymd] => 2025-04-14 19:30:07 [RateCDR] => 1 ) [2025-04-14 19: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-04-14 16:30:07' and `end` < '2025-04-14 19: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-04-14 19:30:20] Production.INFO: count ==2465 [2025-04-14 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-14 16:30:07 - End Time 2025-04-14 19:30:07 [2025-04-14 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908386', 'tblTempUsageDetail_20' ) start [2025-04-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908386', 'tblTempUsageDetail_20' ) end [2025-04-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908386', 'tblTempVendorCDR_20' ) start [2025-04-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908386', 'tblTempVendorCDR_20' ) end [2025-04-14 19:30:20] Production.INFO: ProcessCDR(1,14908386,1,1,2) [2025-04-14 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908386', 'tblTempUsageDetail_20' ) start [2025-04-14 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908386', 'tblTempUsageDetail_20' ) end [2025-04-14 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:30:24] Production.INFO: ==15160== Releasing lock... [2025-04-14 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:30:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-14 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:31:05 [end_date_ymd] => 2025-04-14 19:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:31:05' and `end` < '2025-04-14 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-04-14 19:31:18] Production.INFO: count ==2373 [2025-04-14 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:31:05 - End Time 2025-04-14 19:31:05 [2025-04-14 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908391', 'tblTempUsageDetail_20' ) start [2025-04-14 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908391', 'tblTempUsageDetail_20' ) end [2025-04-14 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908391', 'tblTempVendorCDR_20' ) start [2025-04-14 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908391', 'tblTempVendorCDR_20' ) end [2025-04-14 19:31:19] Production.INFO: ProcessCDR(1,14908391,1,1,2) [2025-04-14 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908391', 'tblTempUsageDetail_20' ) start [2025-04-14 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908391', 'tblTempUsageDetail_20' ) end [2025-04-14 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:31:23] Production.INFO: ==15239== Releasing lock... [2025-04-14 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:31:23] Production.INFO: 46 MB #Memory Used# [2025-04-14 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:32:05 [end_date_ymd] => 2025-04-14 19:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:32:05' and `end` < '2025-04-14 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-04-14 19:32:18] Production.INFO: count ==2369 [2025-04-14 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:32:05 - End Time 2025-04-14 19:32:05 [2025-04-14 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908396', 'tblTempUsageDetail_20' ) start [2025-04-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908396', 'tblTempUsageDetail_20' ) end [2025-04-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908396', 'tblTempVendorCDR_20' ) start [2025-04-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908396', 'tblTempVendorCDR_20' ) end [2025-04-14 19:32:19] Production.INFO: ProcessCDR(1,14908396,1,1,2) [2025-04-14 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908396', 'tblTempUsageDetail_20' ) start [2025-04-14 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908396', 'tblTempUsageDetail_20' ) end [2025-04-14 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:32:24] Production.INFO: ==15314== Releasing lock... [2025-04-14 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:32:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-14 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:33:05 [end_date_ymd] => 2025-04-14 19:33:05 [RateCDR] => 1 ) [2025-04-14 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:33:05' and `end` < '2025-04-14 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:33:18] Production.INFO: count ==2360 [2025-04-14 19:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:33:05 - End Time 2025-04-14 19:33:05 [2025-04-14 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908401', 'tblTempUsageDetail_20' ) start [2025-04-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908401', 'tblTempUsageDetail_20' ) end [2025-04-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908401', 'tblTempVendorCDR_20' ) start [2025-04-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908401', 'tblTempVendorCDR_20' ) end [2025-04-14 19:33:18] Production.INFO: ProcessCDR(1,14908401,1,1,2) [2025-04-14 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908401', 'tblTempUsageDetail_20' ) start [2025-04-14 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908401', 'tblTempUsageDetail_20' ) end [2025-04-14 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:33:24] Production.INFO: ==15391== Releasing lock... [2025-04-14 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:33:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-14 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:34:05 [end_date_ymd] => 2025-04-14 19:34:05 [RateCDR] => 1 ) [2025-04-14 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:34:05' and `end` < '2025-04-14 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:34:18] Production.INFO: count ==2334 [2025-04-14 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:34:05 - End Time 2025-04-14 19:34:05 [2025-04-14 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908406', 'tblTempUsageDetail_20' ) start [2025-04-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908406', 'tblTempUsageDetail_20' ) end [2025-04-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908406', 'tblTempVendorCDR_20' ) start [2025-04-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908406', 'tblTempVendorCDR_20' ) end [2025-04-14 19:34:19] Production.INFO: ProcessCDR(1,14908406,1,1,2) [2025-04-14 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908406', 'tblTempUsageDetail_20' ) start [2025-04-14 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908406', 'tblTempUsageDetail_20' ) end [2025-04-14 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:34:22] Production.INFO: ==15470== Releasing lock... [2025-04-14 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:34:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-14 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:35:04 [end_date_ymd] => 2025-04-14 19:35:04 [RateCDR] => 1 ) [2025-04-14 19:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:35:04' and `end` < '2025-04-14 19:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:35:18] Production.INFO: count ==2321 [2025-04-14 19:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:35:04 - End Time 2025-04-14 19:35:04 [2025-04-14 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908411', 'tblTempUsageDetail_20' ) start [2025-04-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908411', 'tblTempUsageDetail_20' ) end [2025-04-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908411', 'tblTempVendorCDR_20' ) start [2025-04-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908411', 'tblTempVendorCDR_20' ) end [2025-04-14 19:35:18] Production.INFO: ProcessCDR(1,14908411,1,1,2) [2025-04-14 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908411', 'tblTempUsageDetail_20' ) start [2025-04-14 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908411', 'tblTempUsageDetail_20' ) end [2025-04-14 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:35:23] Production.INFO: ==15547== Releasing lock... [2025-04-14 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:35:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-14 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:36:05 [end_date_ymd] => 2025-04-14 19:36:05 [RateCDR] => 1 ) [2025-04-14 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:36:05' and `end` < '2025-04-14 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:36:18] Production.INFO: count ==2312 [2025-04-14 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:36:05 - End Time 2025-04-14 19:36:05 [2025-04-14 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908416', 'tblTempUsageDetail_20' ) start [2025-04-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908416', 'tblTempUsageDetail_20' ) end [2025-04-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908416', 'tblTempVendorCDR_20' ) start [2025-04-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908416', 'tblTempVendorCDR_20' ) end [2025-04-14 19:36:19] Production.INFO: ProcessCDR(1,14908416,1,1,2) [2025-04-14 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908416', 'tblTempUsageDetail_20' ) start [2025-04-14 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908416', 'tblTempUsageDetail_20' ) end [2025-04-14 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:36:23] Production.INFO: ==15617== Releasing lock... [2025-04-14 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:36:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-14 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:37:05 [end_date_ymd] => 2025-04-14 19:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:37:05' and `end` < '2025-04-14 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-04-14 19:37:18] Production.INFO: count ==2295 [2025-04-14 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:37:05 - End Time 2025-04-14 19:37:05 [2025-04-14 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908421', 'tblTempUsageDetail_20' ) start [2025-04-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908421', 'tblTempUsageDetail_20' ) end [2025-04-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908421', 'tblTempVendorCDR_20' ) start [2025-04-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908421', 'tblTempVendorCDR_20' ) end [2025-04-14 19:37:19] Production.INFO: ProcessCDR(1,14908421,1,1,2) [2025-04-14 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908421', 'tblTempUsageDetail_20' ) start [2025-04-14 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908421', 'tblTempUsageDetail_20' ) end [2025-04-14 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:37:24] Production.INFO: ==15691== Releasing lock... [2025-04-14 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:37:24] Production.INFO: 45 MB #Memory Used# [2025-04-14 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:38:05 [end_date_ymd] => 2025-04-14 19:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:38:05' and `end` < '2025-04-14 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-04-14 19:38:18] Production.INFO: count ==2263 [2025-04-14 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:38:05 - End Time 2025-04-14 19:38:05 [2025-04-14 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908426', 'tblTempUsageDetail_20' ) start [2025-04-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908426', 'tblTempUsageDetail_20' ) end [2025-04-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908426', 'tblTempVendorCDR_20' ) start [2025-04-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908426', 'tblTempVendorCDR_20' ) end [2025-04-14 19:38:19] Production.INFO: ProcessCDR(1,14908426,1,1,2) [2025-04-14 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908426', 'tblTempUsageDetail_20' ) start [2025-04-14 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908426', 'tblTempUsageDetail_20' ) end [2025-04-14 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:38:22] Production.INFO: ==15806== Releasing lock... [2025-04-14 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:38:22] Production.INFO: 45 MB #Memory Used# [2025-04-14 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:39:06 [end_date_ymd] => 2025-04-14 19:39:06 [RateCDR] => 1 ) [2025-04-14 19: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-04-14 16:39:06' and `end` < '2025-04-14 19: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-04-14 19:39:19] Production.INFO: count ==2245 [2025-04-14 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-14 16:39:06 - End Time 2025-04-14 19:39:06 [2025-04-14 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908431', 'tblTempUsageDetail_20' ) start [2025-04-14 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908431', 'tblTempUsageDetail_20' ) end [2025-04-14 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908431', 'tblTempVendorCDR_20' ) start [2025-04-14 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908431', 'tblTempVendorCDR_20' ) end [2025-04-14 19:39:20] Production.INFO: ProcessCDR(1,14908431,1,1,2) [2025-04-14 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908431', 'tblTempUsageDetail_20' ) start [2025-04-14 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908431', 'tblTempUsageDetail_20' ) end [2025-04-14 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:39:23] Production.INFO: ==15891== Releasing lock... [2025-04-14 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:39:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-14 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:40:05 [end_date_ymd] => 2025-04-14 19:40:05 [RateCDR] => 1 ) [2025-04-14 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:40:05' and `end` < '2025-04-14 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:40:18] Production.INFO: count ==2230 [2025-04-14 19:40:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:40:05 - End Time 2025-04-14 19:40:05 [2025-04-14 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908436', 'tblTempUsageDetail_20' ) start [2025-04-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908436', 'tblTempUsageDetail_20' ) end [2025-04-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908436', 'tblTempVendorCDR_20' ) start [2025-04-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908436', 'tblTempVendorCDR_20' ) end [2025-04-14 19:40:19] Production.INFO: ProcessCDR(1,14908436,1,1,2) [2025-04-14 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908436', 'tblTempUsageDetail_20' ) start [2025-04-14 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908436', 'tblTempUsageDetail_20' ) end [2025-04-14 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:40:24] Production.INFO: ==15969== Releasing lock... [2025-04-14 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:40:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-14 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:41:05 [end_date_ymd] => 2025-04-14 19:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:41:05' and `end` < '2025-04-14 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-04-14 19:41:19] Production.INFO: count ==2155 [2025-04-14 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:41:05 - End Time 2025-04-14 19:41:05 [2025-04-14 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908442', 'tblTempUsageDetail_20' ) start [2025-04-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908442', 'tblTempUsageDetail_20' ) end [2025-04-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908442', 'tblTempVendorCDR_20' ) start [2025-04-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908442', 'tblTempVendorCDR_20' ) end [2025-04-14 19:41:19] Production.INFO: ProcessCDR(1,14908442,1,1,2) [2025-04-14 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908442', 'tblTempUsageDetail_20' ) start [2025-04-14 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908442', 'tblTempUsageDetail_20' ) end [2025-04-14 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:41:22] Production.INFO: ==16043== Releasing lock... [2025-04-14 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:41:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-14 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:42:05 [end_date_ymd] => 2025-04-14 19:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:42:05' and `end` < '2025-04-14 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-04-14 19:42:18] Production.INFO: count ==2146 [2025-04-14 19:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:42:05 - End Time 2025-04-14 19:42:05 [2025-04-14 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908447', 'tblTempUsageDetail_20' ) start [2025-04-14 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908447', 'tblTempUsageDetail_20' ) end [2025-04-14 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908447', 'tblTempVendorCDR_20' ) start [2025-04-14 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908447', 'tblTempVendorCDR_20' ) end [2025-04-14 19:42:19] Production.INFO: ProcessCDR(1,14908447,1,1,2) [2025-04-14 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908447', 'tblTempUsageDetail_20' ) start [2025-04-14 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908447', 'tblTempUsageDetail_20' ) end [2025-04-14 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:42:23] Production.INFO: ==16120== Releasing lock... [2025-04-14 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:42:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-14 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:43:05 [end_date_ymd] => 2025-04-14 19:43:05 [RateCDR] => 1 ) [2025-04-14 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:43:05' and `end` < '2025-04-14 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:43:18] Production.INFO: count ==2128 [2025-04-14 19:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:43:05 - End Time 2025-04-14 19:43:05 [2025-04-14 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908452', 'tblTempUsageDetail_20' ) start [2025-04-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908452', 'tblTempUsageDetail_20' ) end [2025-04-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908452', 'tblTempVendorCDR_20' ) start [2025-04-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908452', 'tblTempVendorCDR_20' ) end [2025-04-14 19:43:18] Production.INFO: ProcessCDR(1,14908452,1,1,2) [2025-04-14 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908452', 'tblTempUsageDetail_20' ) start [2025-04-14 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908452', 'tblTempUsageDetail_20' ) end [2025-04-14 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:43:22] Production.INFO: ==16195== Releasing lock... [2025-04-14 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:43:22] Production.INFO: 44 MB #Memory Used# [2025-04-14 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:44:05 [end_date_ymd] => 2025-04-14 19:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:44:05' and `end` < '2025-04-14 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-04-14 19:44:18] Production.INFO: count ==2116 [2025-04-14 19:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:44:05 - End Time 2025-04-14 19:44:05 [2025-04-14 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908457', 'tblTempUsageDetail_20' ) start [2025-04-14 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908457', 'tblTempUsageDetail_20' ) end [2025-04-14 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908457', 'tblTempVendorCDR_20' ) start [2025-04-14 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908457', 'tblTempVendorCDR_20' ) end [2025-04-14 19:44:19] Production.INFO: ProcessCDR(1,14908457,1,1,2) [2025-04-14 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908457', 'tblTempUsageDetail_20' ) start [2025-04-14 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908457', 'tblTempUsageDetail_20' ) end [2025-04-14 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:44:22] Production.INFO: ==16269== Releasing lock... [2025-04-14 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:44:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-14 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:45:05 [end_date_ymd] => 2025-04-14 19:45:05 [RateCDR] => 1 ) [2025-04-14 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:45:05' and `end` < '2025-04-14 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:45:18] Production.INFO: count ==2112 [2025-04-14 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:45:05 - End Time 2025-04-14 19:45:05 [2025-04-14 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908462', 'tblTempUsageDetail_20' ) start [2025-04-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908462', 'tblTempUsageDetail_20' ) end [2025-04-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908462', 'tblTempVendorCDR_20' ) start [2025-04-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908462', 'tblTempVendorCDR_20' ) end [2025-04-14 19:45:19] Production.INFO: ProcessCDR(1,14908462,1,1,2) [2025-04-14 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908462', 'tblTempUsageDetail_20' ) start [2025-04-14 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908462', 'tblTempUsageDetail_20' ) end [2025-04-14 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:45:24] Production.INFO: ==16350== Releasing lock... [2025-04-14 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:45:24] Production.INFO: 44 MB #Memory Used# [2025-04-14 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:46:05 [end_date_ymd] => 2025-04-14 19:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:46:05' and `end` < '2025-04-14 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-04-14 19:46:18] Production.INFO: count ==2101 [2025-04-14 19:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:46:05 - End Time 2025-04-14 19:46:05 [2025-04-14 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908467', 'tblTempUsageDetail_20' ) start [2025-04-14 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908467', 'tblTempUsageDetail_20' ) end [2025-04-14 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908467', 'tblTempVendorCDR_20' ) start [2025-04-14 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908467', 'tblTempVendorCDR_20' ) end [2025-04-14 19:46:19] Production.INFO: ProcessCDR(1,14908467,1,1,2) [2025-04-14 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908467', 'tblTempUsageDetail_20' ) start [2025-04-14 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908467', 'tblTempUsageDetail_20' ) end [2025-04-14 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:46:22] Production.INFO: ==16426== Releasing lock... [2025-04-14 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:46:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-14 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:47:05 [end_date_ymd] => 2025-04-14 19:47:05 [RateCDR] => 1 ) [2025-04-14 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:47:05' and `end` < '2025-04-14 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:47:18] Production.INFO: count ==2096 [2025-04-14 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:47:05 - End Time 2025-04-14 19:47:05 [2025-04-14 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908472', 'tblTempUsageDetail_20' ) start [2025-04-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908472', 'tblTempUsageDetail_20' ) end [2025-04-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908472', 'tblTempVendorCDR_20' ) start [2025-04-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908472', 'tblTempVendorCDR_20' ) end [2025-04-14 19:47:19] Production.INFO: ProcessCDR(1,14908472,1,1,2) [2025-04-14 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908472', 'tblTempUsageDetail_20' ) start [2025-04-14 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908472', 'tblTempUsageDetail_20' ) end [2025-04-14 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:47:22] Production.INFO: ==16502== Releasing lock... [2025-04-14 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:47:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-14 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:48:05 [end_date_ymd] => 2025-04-14 19:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:48:05' and `end` < '2025-04-14 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-04-14 19:48:18] Production.INFO: count ==2083 [2025-04-14 19:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:48:05 - End Time 2025-04-14 19:48:05 [2025-04-14 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908477', 'tblTempUsageDetail_20' ) start [2025-04-14 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908477', 'tblTempUsageDetail_20' ) end [2025-04-14 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908477', 'tblTempVendorCDR_20' ) start [2025-04-14 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908477', 'tblTempVendorCDR_20' ) end [2025-04-14 19:48:18] Production.INFO: ProcessCDR(1,14908477,1,1,2) [2025-04-14 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908477', 'tblTempUsageDetail_20' ) start [2025-04-14 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908477', 'tblTempUsageDetail_20' ) end [2025-04-14 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:48:22] Production.INFO: ==16582== Releasing lock... [2025-04-14 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:48:22] Production.INFO: 44 MB #Memory Used# [2025-04-14 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:49:05 [end_date_ymd] => 2025-04-14 19:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:49:05' and `end` < '2025-04-14 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-04-14 19:49:18] Production.INFO: count ==2066 [2025-04-14 19:49:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:49:05 - End Time 2025-04-14 19:49:05 [2025-04-14 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908482', 'tblTempUsageDetail_20' ) start [2025-04-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908482', 'tblTempUsageDetail_20' ) end [2025-04-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908482', 'tblTempVendorCDR_20' ) start [2025-04-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908482', 'tblTempVendorCDR_20' ) end [2025-04-14 19:49:18] Production.INFO: ProcessCDR(1,14908482,1,1,2) [2025-04-14 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908482', 'tblTempUsageDetail_20' ) start [2025-04-14 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908482', 'tblTempUsageDetail_20' ) end [2025-04-14 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:49:22] Production.INFO: ==16659== Releasing lock... [2025-04-14 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:49:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-14 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:50:06 [end_date_ymd] => 2025-04-14 19:50:06 [RateCDR] => 1 ) [2025-04-14 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 16:50:06' and `end` < '2025-04-14 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 19:50:19] Production.INFO: count ==2057 [2025-04-14 19:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:50:06 - End Time 2025-04-14 19:50:06 [2025-04-14 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908488', 'tblTempUsageDetail_20' ) start [2025-04-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908488', 'tblTempUsageDetail_20' ) end [2025-04-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908488', 'tblTempVendorCDR_20' ) start [2025-04-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908488', 'tblTempVendorCDR_20' ) end [2025-04-14 19:50:19] Production.INFO: ProcessCDR(1,14908488,1,1,2) [2025-04-14 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908488', 'tblTempUsageDetail_20' ) start [2025-04-14 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908488', 'tblTempUsageDetail_20' ) end [2025-04-14 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:50:23] Production.INFO: ==16738== Releasing lock... [2025-04-14 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:50:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-14 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:51:04 [end_date_ymd] => 2025-04-14 19:51:04 [RateCDR] => 1 ) [2025-04-14 19: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-04-14 16:51:04' and `end` < '2025-04-14 19: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-04-14 19:51:18] Production.INFO: count ==1972 [2025-04-14 19:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:51:04 - End Time 2025-04-14 19:51:04 [2025-04-14 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908493', 'tblTempUsageDetail_20' ) start [2025-04-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908493', 'tblTempUsageDetail_20' ) end [2025-04-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908493', 'tblTempVendorCDR_20' ) start [2025-04-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908493', 'tblTempVendorCDR_20' ) end [2025-04-14 19:51:18] Production.INFO: ProcessCDR(1,14908493,1,1,2) [2025-04-14 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908493', 'tblTempUsageDetail_20' ) start [2025-04-14 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908493', 'tblTempUsageDetail_20' ) end [2025-04-14 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:51:22] Production.INFO: ==16814== Releasing lock... [2025-04-14 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:51:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-14 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:52:05 [end_date_ymd] => 2025-04-14 19:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:52:05' and `end` < '2025-04-14 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-04-14 19:52:18] Production.INFO: count ==1966 [2025-04-14 19:52:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:52:05 - End Time 2025-04-14 19:52:05 [2025-04-14 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908498', 'tblTempUsageDetail_20' ) start [2025-04-14 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908498', 'tblTempUsageDetail_20' ) end [2025-04-14 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908498', 'tblTempVendorCDR_20' ) start [2025-04-14 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908498', 'tblTempVendorCDR_20' ) end [2025-04-14 19:52:18] Production.INFO: ProcessCDR(1,14908498,1,1,2) [2025-04-14 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908498', 'tblTempUsageDetail_20' ) start [2025-04-14 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908498', 'tblTempUsageDetail_20' ) end [2025-04-14 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:52:22] Production.INFO: ==16891== Releasing lock... [2025-04-14 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:52:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-14 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:53:05 [end_date_ymd] => 2025-04-14 19:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:53:05' and `end` < '2025-04-14 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-04-14 19:53:18] Production.INFO: count ==1951 [2025-04-14 19:53:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:53:05 - End Time 2025-04-14 19:53:05 [2025-04-14 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908503', 'tblTempUsageDetail_20' ) start [2025-04-14 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908503', 'tblTempUsageDetail_20' ) end [2025-04-14 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908503', 'tblTempVendorCDR_20' ) start [2025-04-14 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908503', 'tblTempVendorCDR_20' ) end [2025-04-14 19:53:18] Production.INFO: ProcessCDR(1,14908503,1,1,2) [2025-04-14 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908503', 'tblTempUsageDetail_20' ) start [2025-04-14 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908503', 'tblTempUsageDetail_20' ) end [2025-04-14 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:53:22] Production.INFO: ==16965== Releasing lock... [2025-04-14 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:53:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-14 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:54:05 [end_date_ymd] => 2025-04-14 19:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:54:05' and `end` < '2025-04-14 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-04-14 19:54:18] Production.INFO: count ==1929 [2025-04-14 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:54:05 - End Time 2025-04-14 19:54:05 [2025-04-14 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908508', 'tblTempUsageDetail_20' ) start [2025-04-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908508', 'tblTempUsageDetail_20' ) end [2025-04-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908508', 'tblTempVendorCDR_20' ) start [2025-04-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908508', 'tblTempVendorCDR_20' ) end [2025-04-14 19:54:19] Production.INFO: ProcessCDR(1,14908508,1,1,2) [2025-04-14 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908508', 'tblTempUsageDetail_20' ) start [2025-04-14 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908508', 'tblTempUsageDetail_20' ) end [2025-04-14 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:54:24] Production.INFO: ==17080== Releasing lock... [2025-04-14 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:54:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-14 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:55:05 [end_date_ymd] => 2025-04-14 19:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:55:05' and `end` < '2025-04-14 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-04-14 19:55:18] Production.INFO: count ==1924 [2025-04-14 19:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:55:05 - End Time 2025-04-14 19:55:05 [2025-04-14 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908513', 'tblTempUsageDetail_20' ) start [2025-04-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908513', 'tblTempUsageDetail_20' ) end [2025-04-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908513', 'tblTempVendorCDR_20' ) start [2025-04-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908513', 'tblTempVendorCDR_20' ) end [2025-04-14 19:55:19] Production.INFO: ProcessCDR(1,14908513,1,1,2) [2025-04-14 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908513', 'tblTempUsageDetail_20' ) start [2025-04-14 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908513', 'tblTempUsageDetail_20' ) end [2025-04-14 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:55:22] Production.INFO: ==17156== Releasing lock... [2025-04-14 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:55:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-14 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:56:05 [end_date_ymd] => 2025-04-14 19:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:56:05' and `end` < '2025-04-14 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-04-14 19:56:19] Production.INFO: count ==1917 [2025-04-14 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:56:05 - End Time 2025-04-14 19:56:05 [2025-04-14 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908518', 'tblTempUsageDetail_20' ) start [2025-04-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908518', 'tblTempUsageDetail_20' ) end [2025-04-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908518', 'tblTempVendorCDR_20' ) start [2025-04-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908518', 'tblTempVendorCDR_20' ) end [2025-04-14 19:56:19] Production.INFO: ProcessCDR(1,14908518,1,1,2) [2025-04-14 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908518', 'tblTempUsageDetail_20' ) start [2025-04-14 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908518', 'tblTempUsageDetail_20' ) end [2025-04-14 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:56:22] Production.INFO: ==17231== Releasing lock... [2025-04-14 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:56:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-14 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:57:05 [end_date_ymd] => 2025-04-14 19:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:57:05' and `end` < '2025-04-14 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-04-14 19:57:18] Production.INFO: count ==1912 [2025-04-14 19:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:57:05 - End Time 2025-04-14 19:57:05 [2025-04-14 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908523', 'tblTempUsageDetail_20' ) start [2025-04-14 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908523', 'tblTempUsageDetail_20' ) end [2025-04-14 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908523', 'tblTempVendorCDR_20' ) start [2025-04-14 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908523', 'tblTempVendorCDR_20' ) end [2025-04-14 19:57:18] Production.INFO: ProcessCDR(1,14908523,1,1,2) [2025-04-14 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908523', 'tblTempUsageDetail_20' ) start [2025-04-14 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908523', 'tblTempUsageDetail_20' ) end [2025-04-14 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:57:22] Production.INFO: ==17309== Releasing lock... [2025-04-14 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:57:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-14 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:58:05 [end_date_ymd] => 2025-04-14 19:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:58:05' and `end` < '2025-04-14 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-04-14 19:58:18] Production.INFO: count ==1908 [2025-04-14 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-14 16:58:05 - End Time 2025-04-14 19:58:05 [2025-04-14 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908528', 'tblTempUsageDetail_20' ) start [2025-04-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908528', 'tblTempUsageDetail_20' ) end [2025-04-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908528', 'tblTempVendorCDR_20' ) start [2025-04-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908528', 'tblTempVendorCDR_20' ) end [2025-04-14 19:58:19] Production.INFO: ProcessCDR(1,14908528,1,1,2) [2025-04-14 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908528', 'tblTempUsageDetail_20' ) start [2025-04-14 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908528', 'tblTempUsageDetail_20' ) end [2025-04-14 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:58:22] Production.INFO: ==17391== Releasing lock... [2025-04-14 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:58:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-14 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 16:59:05 [end_date_ymd] => 2025-04-14 19:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 16:59:05' and `end` < '2025-04-14 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-04-14 19:59:18] Production.INFO: count ==1902 [2025-04-14 19:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 16:59:05 - End Time 2025-04-14 19:59:05 [2025-04-14 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908533', 'tblTempUsageDetail_20' ) start [2025-04-14 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908533', 'tblTempUsageDetail_20' ) end [2025-04-14 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908533', 'tblTempVendorCDR_20' ) start [2025-04-14 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908533', 'tblTempVendorCDR_20' ) end [2025-04-14 19:59:18] Production.INFO: ProcessCDR(1,14908533,1,1,2) [2025-04-14 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908533', 'tblTempUsageDetail_20' ) start [2025-04-14 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908533', 'tblTempUsageDetail_20' ) end [2025-04-14 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 19:59:22] Production.INFO: ==17463== Releasing lock... [2025-04-14 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 19:59:22] Production.INFO: 42 MB #Memory Used# [2025-04-14 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:00:05 [end_date_ymd] => 2025-04-14 20:00:05 [RateCDR] => 1 ) [2025-04-14 20: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-04-14 17:00:05' and `end` < '2025-04-14 20: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-04-14 20:00:19] Production.INFO: count ==1880 [2025-04-14 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:00:05 - End Time 2025-04-14 20:00:05 [2025-04-14 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908539', 'tblTempUsageDetail_20' ) start [2025-04-14 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908539', 'tblTempUsageDetail_20' ) end [2025-04-14 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908539', 'tblTempVendorCDR_20' ) start [2025-04-14 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908539', 'tblTempVendorCDR_20' ) end [2025-04-14 20:00:19] Production.INFO: ProcessCDR(1,14908539,1,1,2) [2025-04-14 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908539', 'tblTempUsageDetail_20' ) start [2025-04-14 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908539', 'tblTempUsageDetail_20' ) end [2025-04-14 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:00:22] Production.INFO: ==17539== Releasing lock... [2025-04-14 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:00:22] Production.INFO: 42 MB #Memory Used# [2025-04-14 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:01:04 [end_date_ymd] => 2025-04-14 20:01:04 [RateCDR] => 1 ) [2025-04-14 20:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:01:04' and `end` < '2025-04-14 20:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:01:17] Production.INFO: count ==1797 [2025-04-14 20:01:17] Production.ERROR: pbx CDR StartTime 2025-04-14 17:01:04 - End Time 2025-04-14 20:01:04 [2025-04-14 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908544', 'tblTempUsageDetail_20' ) start [2025-04-14 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908544', 'tblTempUsageDetail_20' ) end [2025-04-14 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908544', 'tblTempVendorCDR_20' ) start [2025-04-14 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908544', 'tblTempVendorCDR_20' ) end [2025-04-14 20:01:18] Production.INFO: ProcessCDR(1,14908544,1,1,2) [2025-04-14 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908544', 'tblTempUsageDetail_20' ) start [2025-04-14 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908544', 'tblTempUsageDetail_20' ) end [2025-04-14 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:01:21] Production.INFO: ==17671== Releasing lock... [2025-04-14 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:01:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-14 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:02:05 [end_date_ymd] => 2025-04-14 20:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:02:05' and `end` < '2025-04-14 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-04-14 20:02:18] Production.INFO: count ==1775 [2025-04-14 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:02:05 - End Time 2025-04-14 20:02:05 [2025-04-14 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908549', 'tblTempUsageDetail_20' ) start [2025-04-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908549', 'tblTempUsageDetail_20' ) end [2025-04-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908549', 'tblTempVendorCDR_20' ) start [2025-04-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908549', 'tblTempVendorCDR_20' ) end [2025-04-14 20:02:19] Production.INFO: ProcessCDR(1,14908549,1,1,2) [2025-04-14 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908549', 'tblTempUsageDetail_20' ) start [2025-04-14 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908549', 'tblTempUsageDetail_20' ) end [2025-04-14 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:02:22] Production.INFO: ==17744== Releasing lock... [2025-04-14 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:02:22] Production.INFO: 41 MB #Memory Used# [2025-04-14 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:03:05 [end_date_ymd] => 2025-04-14 20:03:05 [RateCDR] => 1 ) [2025-04-14 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:03:05' and `end` < '2025-04-14 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:03:18] Production.INFO: count ==1773 [2025-04-14 20:03:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:03:05 - End Time 2025-04-14 20:03:05 [2025-04-14 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908554', 'tblTempUsageDetail_20' ) start [2025-04-14 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908554', 'tblTempUsageDetail_20' ) end [2025-04-14 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908554', 'tblTempVendorCDR_20' ) start [2025-04-14 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908554', 'tblTempVendorCDR_20' ) end [2025-04-14 20:03:18] Production.INFO: ProcessCDR(1,14908554,1,1,2) [2025-04-14 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908554', 'tblTempUsageDetail_20' ) start [2025-04-14 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908554', 'tblTempUsageDetail_20' ) end [2025-04-14 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:03:22] Production.INFO: ==17822== Releasing lock... [2025-04-14 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:03:22] Production.INFO: 41 MB #Memory Used# [2025-04-14 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:04:05 [end_date_ymd] => 2025-04-14 20:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:04:05' and `end` < '2025-04-14 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-04-14 20:04:18] Production.INFO: count ==1765 [2025-04-14 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:04:05 - End Time 2025-04-14 20:04:05 [2025-04-14 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908559', 'tblTempUsageDetail_20' ) start [2025-04-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908559', 'tblTempUsageDetail_20' ) end [2025-04-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908559', 'tblTempVendorCDR_20' ) start [2025-04-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908559', 'tblTempVendorCDR_20' ) end [2025-04-14 20:04:19] Production.INFO: ProcessCDR(1,14908559,1,1,2) [2025-04-14 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908559', 'tblTempUsageDetail_20' ) start [2025-04-14 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908559', 'tblTempUsageDetail_20' ) end [2025-04-14 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:04:22] Production.INFO: ==17898== Releasing lock... [2025-04-14 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-14 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:05:05 [end_date_ymd] => 2025-04-14 20:05:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:05:05' and `end` < '2025-04-14 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-04-14 20:05:18] Production.INFO: count ==1762 [2025-04-14 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:05:05 - End Time 2025-04-14 20:05:05 [2025-04-14 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908564', 'tblTempUsageDetail_20' ) start [2025-04-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908564', 'tblTempUsageDetail_20' ) end [2025-04-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908564', 'tblTempVendorCDR_20' ) start [2025-04-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908564', 'tblTempVendorCDR_20' ) end [2025-04-14 20:05:19] Production.INFO: ProcessCDR(1,14908564,1,1,2) [2025-04-14 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908564', 'tblTempUsageDetail_20' ) start [2025-04-14 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908564', 'tblTempUsageDetail_20' ) end [2025-04-14 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:05:22] Production.INFO: ==17975== Releasing lock... [2025-04-14 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:05:22] Production.INFO: 41 MB #Memory Used# [2025-04-14 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:06:05 [end_date_ymd] => 2025-04-14 20:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:06:05' and `end` < '2025-04-14 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-04-14 20:06:18] Production.INFO: count ==1772 [2025-04-14 20:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:06:05 - End Time 2025-04-14 20:06:05 [2025-04-14 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908569', 'tblTempUsageDetail_20' ) start [2025-04-14 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908569', 'tblTempUsageDetail_20' ) end [2025-04-14 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908569', 'tblTempVendorCDR_20' ) start [2025-04-14 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908569', 'tblTempVendorCDR_20' ) end [2025-04-14 20:06:18] Production.INFO: ProcessCDR(1,14908569,1,1,2) [2025-04-14 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908569', 'tblTempUsageDetail_20' ) start [2025-04-14 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908569', 'tblTempUsageDetail_20' ) end [2025-04-14 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:06:23] Production.INFO: ==18048== Releasing lock... [2025-04-14 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:06:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-14 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:07:05 [end_date_ymd] => 2025-04-14 20:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:07:05' and `end` < '2025-04-14 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-04-14 20:07:18] Production.INFO: count ==1766 [2025-04-14 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:07:05 - End Time 2025-04-14 20:07:05 [2025-04-14 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908574', 'tblTempUsageDetail_20' ) start [2025-04-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908574', 'tblTempUsageDetail_20' ) end [2025-04-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908574', 'tblTempVendorCDR_20' ) start [2025-04-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908574', 'tblTempVendorCDR_20' ) end [2025-04-14 20:07:19] Production.INFO: ProcessCDR(1,14908574,1,1,2) [2025-04-14 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908574', 'tblTempUsageDetail_20' ) start [2025-04-14 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908574', 'tblTempUsageDetail_20' ) end [2025-04-14 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:07:22] Production.INFO: ==18129== Releasing lock... [2025-04-14 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:07:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-14 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:08:05 [end_date_ymd] => 2025-04-14 20:08:05 [RateCDR] => 1 ) [2025-04-14 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:08:05' and `end` < '2025-04-14 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:08:18] Production.INFO: count ==1762 [2025-04-14 20:08:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:08:05 - End Time 2025-04-14 20:08:05 [2025-04-14 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908579', 'tblTempUsageDetail_20' ) start [2025-04-14 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908579', 'tblTempUsageDetail_20' ) end [2025-04-14 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908579', 'tblTempVendorCDR_20' ) start [2025-04-14 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908579', 'tblTempVendorCDR_20' ) end [2025-04-14 20:08:18] Production.INFO: ProcessCDR(1,14908579,1,1,2) [2025-04-14 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908579', 'tblTempUsageDetail_20' ) start [2025-04-14 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908579', 'tblTempUsageDetail_20' ) end [2025-04-14 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:08:23] Production.INFO: ==18203== Releasing lock... [2025-04-14 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:08:23] Production.INFO: 41 MB #Memory Used# [2025-04-14 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:09:05 [end_date_ymd] => 2025-04-14 20:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:09:05' and `end` < '2025-04-14 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-04-14 20:09:18] Production.INFO: count ==1739 [2025-04-14 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:09:05 - End Time 2025-04-14 20:09:05 [2025-04-14 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908584', 'tblTempUsageDetail_20' ) start [2025-04-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908584', 'tblTempUsageDetail_20' ) end [2025-04-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908584', 'tblTempVendorCDR_20' ) start [2025-04-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908584', 'tblTempVendorCDR_20' ) end [2025-04-14 20:09:19] Production.INFO: ProcessCDR(1,14908584,1,1,2) [2025-04-14 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908584', 'tblTempUsageDetail_20' ) start [2025-04-14 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908584', 'tblTempUsageDetail_20' ) end [2025-04-14 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:09:24] Production.INFO: ==18323== Releasing lock... [2025-04-14 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:09:24] Production.INFO: 41 MB #Memory Used# [2025-04-14 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:10:05 [end_date_ymd] => 2025-04-14 20:10:05 [RateCDR] => 1 ) [2025-04-14 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:10:05' and `end` < '2025-04-14 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:10:18] Production.INFO: count ==1731 [2025-04-14 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:10:05 - End Time 2025-04-14 20:10:05 [2025-04-14 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908590', 'tblTempUsageDetail_20' ) start [2025-04-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908590', 'tblTempUsageDetail_20' ) end [2025-04-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908590', 'tblTempVendorCDR_20' ) start [2025-04-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908590', 'tblTempVendorCDR_20' ) end [2025-04-14 20:10:19] Production.INFO: ProcessCDR(1,14908590,1,1,2) [2025-04-14 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908590', 'tblTempUsageDetail_20' ) start [2025-04-14 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908590', 'tblTempUsageDetail_20' ) end [2025-04-14 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:10:22] Production.INFO: ==18394== Releasing lock... [2025-04-14 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:10:22] Production.INFO: 41 MB #Memory Used# [2025-04-14 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:11:05 [end_date_ymd] => 2025-04-14 20:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:11:05' and `end` < '2025-04-14 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-04-14 20:11:18] Production.INFO: count ==1659 [2025-04-14 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:11:05 - End Time 2025-04-14 20:11:05 [2025-04-14 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908595', 'tblTempUsageDetail_20' ) start [2025-04-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908595', 'tblTempUsageDetail_20' ) end [2025-04-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908595', 'tblTempVendorCDR_20' ) start [2025-04-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908595', 'tblTempVendorCDR_20' ) end [2025-04-14 20:11:18] Production.INFO: ProcessCDR(1,14908595,1,1,2) [2025-04-14 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908595', 'tblTempUsageDetail_20' ) start [2025-04-14 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908595', 'tblTempUsageDetail_20' ) end [2025-04-14 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:11:22] Production.INFO: ==18472== Releasing lock... [2025-04-14 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:11:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-14 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:12:06 [end_date_ymd] => 2025-04-14 20:12:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:12:06' and `end` < '2025-04-14 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-04-14 20:12:19] Production.INFO: count ==1650 [2025-04-14 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:12:06 - End Time 2025-04-14 20:12:06 [2025-04-14 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908600', 'tblTempUsageDetail_20' ) start [2025-04-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908600', 'tblTempUsageDetail_20' ) end [2025-04-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908600', 'tblTempVendorCDR_20' ) start [2025-04-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908600', 'tblTempVendorCDR_20' ) end [2025-04-14 20:12:19] Production.INFO: ProcessCDR(1,14908600,1,1,2) [2025-04-14 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908600', 'tblTempUsageDetail_20' ) start [2025-04-14 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908600', 'tblTempUsageDetail_20' ) end [2025-04-14 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:12:23] Production.INFO: ==18556== Releasing lock... [2025-04-14 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-14 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:13:05 [end_date_ymd] => 2025-04-14 20:13:05 [RateCDR] => 1 ) [2025-04-14 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:13:05' and `end` < '2025-04-14 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:13:18] Production.INFO: count ==1644 [2025-04-14 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:13:05 - End Time 2025-04-14 20:13:05 [2025-04-14 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908605', 'tblTempUsageDetail_20' ) start [2025-04-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908605', 'tblTempUsageDetail_20' ) end [2025-04-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908605', 'tblTempVendorCDR_20' ) start [2025-04-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908605', 'tblTempVendorCDR_20' ) end [2025-04-14 20:13:19] Production.INFO: ProcessCDR(1,14908605,1,1,2) [2025-04-14 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908605', 'tblTempUsageDetail_20' ) start [2025-04-14 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908605', 'tblTempUsageDetail_20' ) end [2025-04-14 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:13:22] Production.INFO: ==18633== Releasing lock... [2025-04-14 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:13:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-14 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:14:05 [end_date_ymd] => 2025-04-14 20:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:14:05' and `end` < '2025-04-14 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-04-14 20:14:18] Production.INFO: count ==1631 [2025-04-14 20:14:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:14:05 - End Time 2025-04-14 20:14:05 [2025-04-14 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908606', 'tblTempUsageDetail_20' ) start [2025-04-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908606', 'tblTempUsageDetail_20' ) end [2025-04-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908606', 'tblTempVendorCDR_20' ) start [2025-04-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908606', 'tblTempVendorCDR_20' ) end [2025-04-14 20:14:18] Production.INFO: ProcessCDR(1,14908606,1,1,2) [2025-04-14 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908606', 'tblTempUsageDetail_20' ) start [2025-04-14 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908606', 'tblTempUsageDetail_20' ) end [2025-04-14 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:14:22] Production.INFO: ==18705== Releasing lock... [2025-04-14 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:14:22] Production.INFO: 40 MB #Memory Used# [2025-04-14 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:15:05 [end_date_ymd] => 2025-04-14 20:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:15:05' and `end` < '2025-04-14 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-04-14 20:15:18] Production.INFO: count ==1618 [2025-04-14 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:15:05 - End Time 2025-04-14 20:15:05 [2025-04-14 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908615', 'tblTempUsageDetail_20' ) start [2025-04-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908615', 'tblTempUsageDetail_20' ) end [2025-04-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908615', 'tblTempVendorCDR_20' ) start [2025-04-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908615', 'tblTempVendorCDR_20' ) end [2025-04-14 20:15:18] Production.INFO: ProcessCDR(1,14908615,1,1,2) [2025-04-14 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908615', 'tblTempUsageDetail_20' ) start [2025-04-14 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908615', 'tblTempUsageDetail_20' ) end [2025-04-14 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:15:22] Production.INFO: ==18784== Releasing lock... [2025-04-14 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:15:22] Production.INFO: 40 MB #Memory Used# [2025-04-14 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:16:05 [end_date_ymd] => 2025-04-14 20:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:16:05' and `end` < '2025-04-14 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-04-14 20:16:18] Production.INFO: count ==1608 [2025-04-14 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:16:05 - End Time 2025-04-14 20:16:05 [2025-04-14 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908620', 'tblTempUsageDetail_20' ) start [2025-04-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908620', 'tblTempUsageDetail_20' ) end [2025-04-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908620', 'tblTempVendorCDR_20' ) start [2025-04-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908620', 'tblTempVendorCDR_20' ) end [2025-04-14 20:16:19] Production.INFO: ProcessCDR(1,14908620,1,1,2) [2025-04-14 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908620', 'tblTempUsageDetail_20' ) start [2025-04-14 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908620', 'tblTempUsageDetail_20' ) end [2025-04-14 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:16:22] Production.INFO: ==18859== Releasing lock... [2025-04-14 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:16:22] Production.INFO: 40 MB #Memory Used# [2025-04-14 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:17:05 [end_date_ymd] => 2025-04-14 20:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:17:05' and `end` < '2025-04-14 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-04-14 20:17:18] Production.INFO: count ==1605 [2025-04-14 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:17:05 - End Time 2025-04-14 20:17:05 [2025-04-14 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908625', 'tblTempUsageDetail_20' ) start [2025-04-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908625', 'tblTempUsageDetail_20' ) end [2025-04-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908625', 'tblTempVendorCDR_20' ) start [2025-04-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908625', 'tblTempVendorCDR_20' ) end [2025-04-14 20:17:18] Production.INFO: ProcessCDR(1,14908625,1,1,2) [2025-04-14 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908625', 'tblTempUsageDetail_20' ) start [2025-04-14 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908625', 'tblTempUsageDetail_20' ) end [2025-04-14 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:17:22] Production.INFO: ==18941== Releasing lock... [2025-04-14 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:17:22] Production.INFO: 40 MB #Memory Used# [2025-04-14 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:18:05 [end_date_ymd] => 2025-04-14 20:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:18:05' and `end` < '2025-04-14 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-04-14 20:18:18] Production.INFO: count ==1596 [2025-04-14 20:18:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:18:05 - End Time 2025-04-14 20:18:05 [2025-04-14 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908630', 'tblTempUsageDetail_20' ) start [2025-04-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908630', 'tblTempUsageDetail_20' ) end [2025-04-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908630', 'tblTempVendorCDR_20' ) start [2025-04-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908630', 'tblTempVendorCDR_20' ) end [2025-04-14 20:18:18] Production.INFO: ProcessCDR(1,14908630,1,1,2) [2025-04-14 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908630', 'tblTempUsageDetail_20' ) start [2025-04-14 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908630', 'tblTempUsageDetail_20' ) end [2025-04-14 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:18:21] Production.INFO: ==19011== Releasing lock... [2025-04-14 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:18:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-14 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:19:05 [end_date_ymd] => 2025-04-14 20:19:05 [RateCDR] => 1 ) [2025-04-14 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:19:05' and `end` < '2025-04-14 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:19:18] Production.INFO: count ==1588 [2025-04-14 20:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:19:05 - End Time 2025-04-14 20:19:05 [2025-04-14 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908635', 'tblTempUsageDetail_20' ) start [2025-04-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908635', 'tblTempUsageDetail_20' ) end [2025-04-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908635', 'tblTempVendorCDR_20' ) start [2025-04-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908635', 'tblTempVendorCDR_20' ) end [2025-04-14 20:19:18] Production.INFO: ProcessCDR(1,14908635,1,1,2) [2025-04-14 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908635', 'tblTempUsageDetail_20' ) start [2025-04-14 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908635', 'tblTempUsageDetail_20' ) end [2025-04-14 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:19:23] Production.INFO: ==19089== Releasing lock... [2025-04-14 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:19:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-14 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:20:06 [end_date_ymd] => 2025-04-14 20:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:20:06' and `end` < '2025-04-14 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-04-14 20:20:19] Production.INFO: count ==1574 [2025-04-14 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-14 17:20:06 - End Time 2025-04-14 20:20:06 [2025-04-14 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908641', 'tblTempUsageDetail_20' ) start [2025-04-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908641', 'tblTempUsageDetail_20' ) end [2025-04-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908641', 'tblTempVendorCDR_20' ) start [2025-04-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908641', 'tblTempVendorCDR_20' ) end [2025-04-14 20:20:20] Production.INFO: ProcessCDR(1,14908641,1,1,2) [2025-04-14 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908641', 'tblTempUsageDetail_20' ) start [2025-04-14 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908641', 'tblTempUsageDetail_20' ) end [2025-04-14 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:20:23] Production.INFO: ==19171== Releasing lock... [2025-04-14 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:20:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-14 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:21:06 [end_date_ymd] => 2025-04-14 20:21:06 [RateCDR] => 1 ) [2025-04-14 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:21:06' and `end` < '2025-04-14 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:21:19] Production.INFO: count ==1467 [2025-04-14 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:21:06 - End Time 2025-04-14 20:21:06 [2025-04-14 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908646', 'tblTempUsageDetail_20' ) start [2025-04-14 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908646', 'tblTempUsageDetail_20' ) end [2025-04-14 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908646', 'tblTempVendorCDR_20' ) start [2025-04-14 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908646', 'tblTempVendorCDR_20' ) end [2025-04-14 20:21:19] Production.INFO: ProcessCDR(1,14908646,1,1,2) [2025-04-14 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908646', 'tblTempUsageDetail_20' ) start [2025-04-14 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908646', 'tblTempUsageDetail_20' ) end [2025-04-14 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:21:22] Production.INFO: ==19256== Releasing lock... [2025-04-14 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:21:22] Production.INFO: 39 MB #Memory Used# [2025-04-14 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:22:05 [end_date_ymd] => 2025-04-14 20:22:05 [RateCDR] => 1 ) [2025-04-14 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:22:05' and `end` < '2025-04-14 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:22:18] Production.INFO: count ==1445 [2025-04-14 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:22:05 - End Time 2025-04-14 20:22:05 [2025-04-14 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908651', 'tblTempUsageDetail_20' ) start [2025-04-14 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908651', 'tblTempUsageDetail_20' ) end [2025-04-14 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908651', 'tblTempVendorCDR_20' ) start [2025-04-14 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908651', 'tblTempVendorCDR_20' ) end [2025-04-14 20:22:18] Production.INFO: ProcessCDR(1,14908651,1,1,2) [2025-04-14 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908651', 'tblTempUsageDetail_20' ) start [2025-04-14 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908651', 'tblTempUsageDetail_20' ) end [2025-04-14 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:22:21] Production.INFO: ==19327== Releasing lock... [2025-04-14 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:22:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-14 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:23:06 [end_date_ymd] => 2025-04-14 20:23:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:23:06' and `end` < '2025-04-14 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-04-14 20:23:19] Production.INFO: count ==1443 [2025-04-14 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:23:06 - End Time 2025-04-14 20:23:06 [2025-04-14 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908656', 'tblTempUsageDetail_20' ) start [2025-04-14 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908656', 'tblTempUsageDetail_20' ) end [2025-04-14 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908656', 'tblTempVendorCDR_20' ) start [2025-04-14 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908656', 'tblTempVendorCDR_20' ) end [2025-04-14 20:23:19] Production.INFO: ProcessCDR(1,14908656,1,1,2) [2025-04-14 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908656', 'tblTempUsageDetail_20' ) start [2025-04-14 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908656', 'tblTempUsageDetail_20' ) end [2025-04-14 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:23:24] Production.INFO: ==19403== Releasing lock... [2025-04-14 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:23:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-14 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:24:05 [end_date_ymd] => 2025-04-14 20:24:05 [RateCDR] => 1 ) [2025-04-14 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:24:05' and `end` < '2025-04-14 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:24:18] Production.INFO: count ==1438 [2025-04-14 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:24:05 - End Time 2025-04-14 20:24:05 [2025-04-14 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908661', 'tblTempUsageDetail_20' ) start [2025-04-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908661', 'tblTempUsageDetail_20' ) end [2025-04-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908661', 'tblTempVendorCDR_20' ) start [2025-04-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908661', 'tblTempVendorCDR_20' ) end [2025-04-14 20:24:19] Production.INFO: ProcessCDR(1,14908661,1,1,2) [2025-04-14 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908661', 'tblTempUsageDetail_20' ) start [2025-04-14 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908661', 'tblTempUsageDetail_20' ) end [2025-04-14 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:24:23] Production.INFO: ==19479== Releasing lock... [2025-04-14 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:24:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-14 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:25:05 [end_date_ymd] => 2025-04-14 20:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:25:05' and `end` < '2025-04-14 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-04-14 20:25:18] Production.INFO: count ==1438 [2025-04-14 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:25:05 - End Time 2025-04-14 20:25:05 [2025-04-14 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908666', 'tblTempUsageDetail_20' ) start [2025-04-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908666', 'tblTempUsageDetail_20' ) end [2025-04-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908666', 'tblTempVendorCDR_20' ) start [2025-04-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908666', 'tblTempVendorCDR_20' ) end [2025-04-14 20:25:19] Production.INFO: ProcessCDR(1,14908666,1,1,2) [2025-04-14 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908666', 'tblTempUsageDetail_20' ) start [2025-04-14 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908666', 'tblTempUsageDetail_20' ) end [2025-04-14 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:25:22] Production.INFO: ==19597== Releasing lock... [2025-04-14 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:25:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-14 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:26:05 [end_date_ymd] => 2025-04-14 20:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:26:05' and `end` < '2025-04-14 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-04-14 20:26:18] Production.INFO: count ==1425 [2025-04-14 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:26:05 - End Time 2025-04-14 20:26:05 [2025-04-14 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908671', 'tblTempUsageDetail_20' ) start [2025-04-14 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908671', 'tblTempUsageDetail_20' ) end [2025-04-14 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908671', 'tblTempVendorCDR_20' ) start [2025-04-14 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908671', 'tblTempVendorCDR_20' ) end [2025-04-14 20:26:18] Production.INFO: ProcessCDR(1,14908671,1,1,2) [2025-04-14 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908671', 'tblTempUsageDetail_20' ) start [2025-04-14 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908671', 'tblTempUsageDetail_20' ) end [2025-04-14 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:26:23] Production.INFO: ==19677== Releasing lock... [2025-04-14 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:26:23] Production.INFO: 39 MB #Memory Used# [2025-04-14 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:27:05 [end_date_ymd] => 2025-04-14 20:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:27:05' and `end` < '2025-04-14 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-04-14 20:27:18] Production.INFO: count ==1420 [2025-04-14 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:27:05 - End Time 2025-04-14 20:27:05 [2025-04-14 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908676', 'tblTempUsageDetail_20' ) start [2025-04-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908676', 'tblTempUsageDetail_20' ) end [2025-04-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908676', 'tblTempVendorCDR_20' ) start [2025-04-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908676', 'tblTempVendorCDR_20' ) end [2025-04-14 20:27:19] Production.INFO: ProcessCDR(1,14908676,1,1,2) [2025-04-14 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908676', 'tblTempUsageDetail_20' ) start [2025-04-14 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908676', 'tblTempUsageDetail_20' ) end [2025-04-14 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:27:22] Production.INFO: ==19751== Releasing lock... [2025-04-14 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:27:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-14 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:28:05 [end_date_ymd] => 2025-04-14 20:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:28:05' and `end` < '2025-04-14 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-04-14 20:28:18] Production.INFO: count ==1418 [2025-04-14 20:28:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:28:05 - End Time 2025-04-14 20:28:05 [2025-04-14 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908681', 'tblTempUsageDetail_20' ) start [2025-04-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908681', 'tblTempUsageDetail_20' ) end [2025-04-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908681', 'tblTempVendorCDR_20' ) start [2025-04-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908681', 'tblTempVendorCDR_20' ) end [2025-04-14 20:28:18] Production.INFO: ProcessCDR(1,14908681,1,1,2) [2025-04-14 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908681', 'tblTempUsageDetail_20' ) start [2025-04-14 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908681', 'tblTempUsageDetail_20' ) end [2025-04-14 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:28:21] Production.INFO: ==19829== Releasing lock... [2025-04-14 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:28:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-14 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:29:05 [end_date_ymd] => 2025-04-14 20:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:29:05' and `end` < '2025-04-14 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-04-14 20:29:18] Production.INFO: count ==1413 [2025-04-14 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:29:05 - End Time 2025-04-14 20:29:05 [2025-04-14 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908686', 'tblTempUsageDetail_20' ) start [2025-04-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908686', 'tblTempUsageDetail_20' ) end [2025-04-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908686', 'tblTempVendorCDR_20' ) start [2025-04-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908686', 'tblTempVendorCDR_20' ) end [2025-04-14 20:29:18] Production.INFO: ProcessCDR(1,14908686,1,1,2) [2025-04-14 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908686', 'tblTempUsageDetail_20' ) start [2025-04-14 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908686', 'tblTempUsageDetail_20' ) end [2025-04-14 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:29:23] Production.INFO: ==19900== Releasing lock... [2025-04-14 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:29:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-14 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:30:05 [end_date_ymd] => 2025-04-14 20:30:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:30:05' and `end` < '2025-04-14 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:30:19] Production.INFO: count ==1412 [2025-04-14 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:30:05 - End Time 2025-04-14 20:30:05 [2025-04-14 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908692', 'tblTempUsageDetail_20' ) start [2025-04-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908692', 'tblTempUsageDetail_20' ) end [2025-04-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908692', 'tblTempVendorCDR_20' ) start [2025-04-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908692', 'tblTempVendorCDR_20' ) end [2025-04-14 20:30:19] Production.INFO: ProcessCDR(1,14908692,1,1,2) [2025-04-14 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908692', 'tblTempUsageDetail_20' ) start [2025-04-14 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908692', 'tblTempUsageDetail_20' ) end [2025-04-14 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:30:24] Production.INFO: ==19977== Releasing lock... [2025-04-14 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:30:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-14 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:31:06 [end_date_ymd] => 2025-04-14 20:31:06 [RateCDR] => 1 ) [2025-04-14 20: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-04-14 17:31:06' and `end` < '2025-04-14 20: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-04-14 20:31:19] Production.INFO: count ==1357 [2025-04-14 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:31:06 - End Time 2025-04-14 20:31:06 [2025-04-14 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908697', 'tblTempUsageDetail_20' ) start [2025-04-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908697', 'tblTempUsageDetail_20' ) end [2025-04-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908697', 'tblTempVendorCDR_20' ) start [2025-04-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908697', 'tblTempVendorCDR_20' ) end [2025-04-14 20:31:19] Production.INFO: ProcessCDR(1,14908697,1,1,2) [2025-04-14 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908697', 'tblTempUsageDetail_20' ) start [2025-04-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908697', 'tblTempUsageDetail_20' ) end [2025-04-14 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:31:22] Production.INFO: ==20060== Releasing lock... [2025-04-14 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:31:22] Production.INFO: 38 MB #Memory Used# [2025-04-14 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:32:05 [end_date_ymd] => 2025-04-14 20:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:32:05' and `end` < '2025-04-14 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-04-14 20:32:18] Production.INFO: count ==1356 [2025-04-14 20:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:32:05 - End Time 2025-04-14 20:32:05 [2025-04-14 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908702', 'tblTempUsageDetail_20' ) start [2025-04-14 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908702', 'tblTempUsageDetail_20' ) end [2025-04-14 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908702', 'tblTempVendorCDR_20' ) start [2025-04-14 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908702', 'tblTempVendorCDR_20' ) end [2025-04-14 20:32:18] Production.INFO: ProcessCDR(1,14908702,1,1,2) [2025-04-14 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908702', 'tblTempUsageDetail_20' ) start [2025-04-14 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908702', 'tblTempUsageDetail_20' ) end [2025-04-14 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:32:23] Production.INFO: ==20131== Releasing lock... [2025-04-14 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:32:23] Production.INFO: 38 MB #Memory Used# [2025-04-14 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:33:05 [end_date_ymd] => 2025-04-14 20:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:33:05' and `end` < '2025-04-14 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-04-14 20:33:18] Production.INFO: count ==1356 [2025-04-14 20:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:33:05 - End Time 2025-04-14 20:33:05 [2025-04-14 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908707', 'tblTempUsageDetail_20' ) start [2025-04-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908707', 'tblTempUsageDetail_20' ) end [2025-04-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908707', 'tblTempVendorCDR_20' ) start [2025-04-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908707', 'tblTempVendorCDR_20' ) end [2025-04-14 20:33:18] Production.INFO: ProcessCDR(1,14908707,1,1,2) [2025-04-14 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908707', 'tblTempUsageDetail_20' ) start [2025-04-14 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908707', 'tblTempUsageDetail_20' ) end [2025-04-14 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:33:23] Production.INFO: ==20206== Releasing lock... [2025-04-14 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:33:23] Production.INFO: 38 MB #Memory Used# [2025-04-14 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:34:06 [end_date_ymd] => 2025-04-14 20:34:06 [RateCDR] => 1 ) [2025-04-14 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:34:06' and `end` < '2025-04-14 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:34:19] Production.INFO: count ==1351 [2025-04-14 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:34:06 - End Time 2025-04-14 20:34:06 [2025-04-14 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908712', 'tblTempUsageDetail_20' ) start [2025-04-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908712', 'tblTempUsageDetail_20' ) end [2025-04-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908712', 'tblTempVendorCDR_20' ) start [2025-04-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908712', 'tblTempVendorCDR_20' ) end [2025-04-14 20:34:19] Production.INFO: ProcessCDR(1,14908712,1,1,2) [2025-04-14 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908712', 'tblTempUsageDetail_20' ) start [2025-04-14 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908712', 'tblTempUsageDetail_20' ) end [2025-04-14 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:34:23] Production.INFO: ==20286== Releasing lock... [2025-04-14 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:34:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-14 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:35:05 [end_date_ymd] => 2025-04-14 20:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:35:05' and `end` < '2025-04-14 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-04-14 20:35:18] Production.INFO: count ==1347 [2025-04-14 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:35:05 - End Time 2025-04-14 20:35:05 [2025-04-14 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908717', 'tblTempUsageDetail_20' ) start [2025-04-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908717', 'tblTempUsageDetail_20' ) end [2025-04-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908717', 'tblTempVendorCDR_20' ) start [2025-04-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908717', 'tblTempVendorCDR_20' ) end [2025-04-14 20:35:18] Production.INFO: ProcessCDR(1,14908717,1,1,2) [2025-04-14 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908717', 'tblTempUsageDetail_20' ) start [2025-04-14 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908717', 'tblTempUsageDetail_20' ) end [2025-04-14 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:35:23] Production.INFO: ==20362== Releasing lock... [2025-04-14 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:35:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-14 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:36:05 [end_date_ymd] => 2025-04-14 20:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:36:05' and `end` < '2025-04-14 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-04-14 20:36:18] Production.INFO: count ==1346 [2025-04-14 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:36:05 - End Time 2025-04-14 20:36:05 [2025-04-14 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908722', 'tblTempUsageDetail_20' ) start [2025-04-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908722', 'tblTempUsageDetail_20' ) end [2025-04-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908722', 'tblTempVendorCDR_20' ) start [2025-04-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908722', 'tblTempVendorCDR_20' ) end [2025-04-14 20:36:18] Production.INFO: ProcessCDR(1,14908722,1,1,2) [2025-04-14 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908722', 'tblTempUsageDetail_20' ) start [2025-04-14 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908722', 'tblTempUsageDetail_20' ) end [2025-04-14 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:36:21] Production.INFO: ==20445== Releasing lock... [2025-04-14 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:36:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-14 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:37:05 [end_date_ymd] => 2025-04-14 20:37:05 [RateCDR] => 1 ) [2025-04-14 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:37:05' and `end` < '2025-04-14 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:37:18] Production.INFO: count ==1345 [2025-04-14 20:37:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:37:05 - End Time 2025-04-14 20:37:05 [2025-04-14 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908727', 'tblTempUsageDetail_20' ) start [2025-04-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908727', 'tblTempUsageDetail_20' ) end [2025-04-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908727', 'tblTempVendorCDR_20' ) start [2025-04-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908727', 'tblTempVendorCDR_20' ) end [2025-04-14 20:37:18] Production.INFO: ProcessCDR(1,14908727,1,1,2) [2025-04-14 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908727', 'tblTempUsageDetail_20' ) start [2025-04-14 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908727', 'tblTempUsageDetail_20' ) end [2025-04-14 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:37:23] Production.INFO: ==20519== Releasing lock... [2025-04-14 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:37:23] Production.INFO: 38 MB #Memory Used# [2025-04-14 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:38:06 [end_date_ymd] => 2025-04-14 20:38:06 [RateCDR] => 1 ) [2025-04-14 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:38:06' and `end` < '2025-04-14 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:38:19] Production.INFO: count ==1340 [2025-04-14 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:38:06 - End Time 2025-04-14 20:38:06 [2025-04-14 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908732', 'tblTempUsageDetail_20' ) start [2025-04-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908732', 'tblTempUsageDetail_20' ) end [2025-04-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908732', 'tblTempVendorCDR_20' ) start [2025-04-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908732', 'tblTempVendorCDR_20' ) end [2025-04-14 20:38:19] Production.INFO: ProcessCDR(1,14908732,1,1,2) [2025-04-14 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908732', 'tblTempUsageDetail_20' ) start [2025-04-14 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908732', 'tblTempUsageDetail_20' ) end [2025-04-14 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:38:22] Production.INFO: ==20596== Releasing lock... [2025-04-14 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:38:22] Production.INFO: 38 MB #Memory Used# [2025-04-14 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:39:05 [end_date_ymd] => 2025-04-14 20:39:05 [RateCDR] => 1 ) [2025-04-14 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:39:05' and `end` < '2025-04-14 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:39:18] Production.INFO: count ==1336 [2025-04-14 20:39:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:39:05 - End Time 2025-04-14 20:39:05 [2025-04-14 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908737', 'tblTempUsageDetail_20' ) start [2025-04-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908737', 'tblTempUsageDetail_20' ) end [2025-04-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908737', 'tblTempVendorCDR_20' ) start [2025-04-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908737', 'tblTempVendorCDR_20' ) end [2025-04-14 20:39:18] Production.INFO: ProcessCDR(1,14908737,1,1,2) [2025-04-14 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908737', 'tblTempUsageDetail_20' ) start [2025-04-14 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908737', 'tblTempUsageDetail_20' ) end [2025-04-14 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:39:22] Production.INFO: ==20674== Releasing lock... [2025-04-14 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:39:22] Production.INFO: 38 MB #Memory Used# [2025-04-14 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:40:06 [end_date_ymd] => 2025-04-14 20:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:40:06' and `end` < '2025-04-14 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-04-14 20:40:19] Production.INFO: count ==1334 [2025-04-14 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-14 17:40:06 - End Time 2025-04-14 20:40:06 [2025-04-14 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908743', 'tblTempUsageDetail_20' ) start [2025-04-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908743', 'tblTempUsageDetail_20' ) end [2025-04-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908743', 'tblTempVendorCDR_20' ) start [2025-04-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908743', 'tblTempVendorCDR_20' ) end [2025-04-14 20:40:20] Production.INFO: ProcessCDR(1,14908743,1,1,2) [2025-04-14 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908743', 'tblTempUsageDetail_20' ) start [2025-04-14 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908743', 'tblTempUsageDetail_20' ) end [2025-04-14 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:40:23] Production.INFO: ==20794== Releasing lock... [2025-04-14 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:40:23] Production.INFO: 38 MB #Memory Used# [2025-04-14 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:41:05 [end_date_ymd] => 2025-04-14 20:41:05 [RateCDR] => 1 ) [2025-04-14 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:41:05' and `end` < '2025-04-14 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:41:18] Production.INFO: count ==1275 [2025-04-14 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:41:05 - End Time 2025-04-14 20:41:05 [2025-04-14 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908748', 'tblTempUsageDetail_20' ) start [2025-04-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908748', 'tblTempUsageDetail_20' ) end [2025-04-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908748', 'tblTempVendorCDR_20' ) start [2025-04-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908748', 'tblTempVendorCDR_20' ) end [2025-04-14 20:41:18] Production.INFO: ProcessCDR(1,14908748,1,1,2) [2025-04-14 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908748', 'tblTempUsageDetail_20' ) start [2025-04-14 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908748', 'tblTempUsageDetail_20' ) end [2025-04-14 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:41:22] Production.INFO: ==20871== Releasing lock... [2025-04-14 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:41:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:42:06 [end_date_ymd] => 2025-04-14 20:42:06 [RateCDR] => 1 ) [2025-04-14 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:42:06' and `end` < '2025-04-14 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:42:19] Production.INFO: count ==1274 [2025-04-14 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:42:06 - End Time 2025-04-14 20:42:06 [2025-04-14 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908753', 'tblTempUsageDetail_20' ) start [2025-04-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908753', 'tblTempUsageDetail_20' ) end [2025-04-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908753', 'tblTempVendorCDR_20' ) start [2025-04-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908753', 'tblTempVendorCDR_20' ) end [2025-04-14 20:42:19] Production.INFO: ProcessCDR(1,14908753,1,1,2) [2025-04-14 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908753', 'tblTempUsageDetail_20' ) start [2025-04-14 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908753', 'tblTempUsageDetail_20' ) end [2025-04-14 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:42:22] Production.INFO: ==20952== Releasing lock... [2025-04-14 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:43:05 [end_date_ymd] => 2025-04-14 20:43:05 [RateCDR] => 1 ) [2025-04-14 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:43:05' and `end` < '2025-04-14 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:43:18] Production.INFO: count ==1272 [2025-04-14 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:43:05 - End Time 2025-04-14 20:43:05 [2025-04-14 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908758', 'tblTempUsageDetail_20' ) start [2025-04-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908758', 'tblTempUsageDetail_20' ) end [2025-04-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908758', 'tblTempVendorCDR_20' ) start [2025-04-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908758', 'tblTempVendorCDR_20' ) end [2025-04-14 20:43:18] Production.INFO: ProcessCDR(1,14908758,1,1,2) [2025-04-14 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908758', 'tblTempUsageDetail_20' ) start [2025-04-14 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908758', 'tblTempUsageDetail_20' ) end [2025-04-14 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:43:21] Production.INFO: ==21025== Releasing lock... [2025-04-14 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:43:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-14 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:44:05 [end_date_ymd] => 2025-04-14 20:44:05 [RateCDR] => 1 ) [2025-04-14 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:44:05' and `end` < '2025-04-14 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:44:18] Production.INFO: count ==1267 [2025-04-14 20:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:44:05 - End Time 2025-04-14 20:44:05 [2025-04-14 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908763', 'tblTempUsageDetail_20' ) start [2025-04-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908763', 'tblTempUsageDetail_20' ) end [2025-04-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908763', 'tblTempVendorCDR_20' ) start [2025-04-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908763', 'tblTempVendorCDR_20' ) end [2025-04-14 20:44:18] Production.INFO: ProcessCDR(1,14908763,1,1,2) [2025-04-14 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908763', 'tblTempUsageDetail_20' ) start [2025-04-14 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908763', 'tblTempUsageDetail_20' ) end [2025-04-14 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:44:22] Production.INFO: ==21103== Releasing lock... [2025-04-14 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:44:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:45:05 [end_date_ymd] => 2025-04-14 20:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:45:05' and `end` < '2025-04-14 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-04-14 20:45:18] Production.INFO: count ==1265 [2025-04-14 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:45:05 - End Time 2025-04-14 20:45:05 [2025-04-14 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908768', 'tblTempUsageDetail_20' ) start [2025-04-14 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908768', 'tblTempUsageDetail_20' ) end [2025-04-14 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908768', 'tblTempVendorCDR_20' ) start [2025-04-14 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908768', 'tblTempVendorCDR_20' ) end [2025-04-14 20:45:18] Production.INFO: ProcessCDR(1,14908768,1,1,2) [2025-04-14 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908768', 'tblTempUsageDetail_20' ) start [2025-04-14 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908768', 'tblTempUsageDetail_20' ) end [2025-04-14 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:45:21] Production.INFO: ==21183== Releasing lock... [2025-04-14 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-14 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:46:05 [end_date_ymd] => 2025-04-14 20:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:46:05' and `end` < '2025-04-14 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-04-14 20:46:18] Production.INFO: count ==1262 [2025-04-14 20:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:46:05 - End Time 2025-04-14 20:46:05 [2025-04-14 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908773', 'tblTempUsageDetail_20' ) start [2025-04-14 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908773', 'tblTempUsageDetail_20' ) end [2025-04-14 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908773', 'tblTempVendorCDR_20' ) start [2025-04-14 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908773', 'tblTempVendorCDR_20' ) end [2025-04-14 20:46:18] Production.INFO: ProcessCDR(1,14908773,1,1,2) [2025-04-14 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908773', 'tblTempUsageDetail_20' ) start [2025-04-14 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908773', 'tblTempUsageDetail_20' ) end [2025-04-14 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:46:21] Production.INFO: ==21263== Releasing lock... [2025-04-14 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:46:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-14 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:47:04 [end_date_ymd] => 2025-04-14 20:47:04 [RateCDR] => 1 ) [2025-04-14 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:47:04' and `end` < '2025-04-14 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:47:17] Production.INFO: count ==1253 [2025-04-14 20:47:17] Production.ERROR: pbx CDR StartTime 2025-04-14 17:47:04 - End Time 2025-04-14 20:47:04 [2025-04-14 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908778', 'tblTempUsageDetail_20' ) start [2025-04-14 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908778', 'tblTempUsageDetail_20' ) end [2025-04-14 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908778', 'tblTempVendorCDR_20' ) start [2025-04-14 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908778', 'tblTempVendorCDR_20' ) end [2025-04-14 20:47:17] Production.INFO: ProcessCDR(1,14908778,1,1,2) [2025-04-14 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908778', 'tblTempUsageDetail_20' ) start [2025-04-14 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908778', 'tblTempUsageDetail_20' ) end [2025-04-14 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:47:22] Production.INFO: ==21341== Releasing lock... [2025-04-14 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:47:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:48:05 [end_date_ymd] => 2025-04-14 20:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:48:05' and `end` < '2025-04-14 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-04-14 20:48:18] Production.INFO: count ==1252 [2025-04-14 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:48:05 - End Time 2025-04-14 20:48:05 [2025-04-14 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908783', 'tblTempUsageDetail_20' ) start [2025-04-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908783', 'tblTempUsageDetail_20' ) end [2025-04-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908783', 'tblTempVendorCDR_20' ) start [2025-04-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908783', 'tblTempVendorCDR_20' ) end [2025-04-14 20:48:18] Production.INFO: ProcessCDR(1,14908783,1,1,2) [2025-04-14 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908783', 'tblTempUsageDetail_20' ) start [2025-04-14 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908783', 'tblTempUsageDetail_20' ) end [2025-04-14 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:48:23] Production.INFO: ==21415== Releasing lock... [2025-04-14 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:48:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:49:06 [end_date_ymd] => 2025-04-14 20:49:06 [RateCDR] => 1 ) [2025-04-14 20: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-04-14 17:49:06' and `end` < '2025-04-14 20: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-04-14 20:49:19] Production.INFO: count ==1246 [2025-04-14 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:49:06 - End Time 2025-04-14 20:49:06 [2025-04-14 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908788', 'tblTempUsageDetail_20' ) start [2025-04-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908788', 'tblTempUsageDetail_20' ) end [2025-04-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908788', 'tblTempVendorCDR_20' ) start [2025-04-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908788', 'tblTempVendorCDR_20' ) end [2025-04-14 20:49:19] Production.INFO: ProcessCDR(1,14908788,1,1,2) [2025-04-14 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908788', 'tblTempUsageDetail_20' ) start [2025-04-14 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908788', 'tblTempUsageDetail_20' ) end [2025-04-14 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:49:22] Production.INFO: ==21494== Releasing lock... [2025-04-14 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:49:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-14 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:50:06 [end_date_ymd] => 2025-04-14 20:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:50:06' and `end` < '2025-04-14 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-04-14 20:50:19] Production.INFO: count ==1242 [2025-04-14 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:50:06 - End Time 2025-04-14 20:50:06 [2025-04-14 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908794', 'tblTempUsageDetail_20' ) start [2025-04-14 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908794', 'tblTempUsageDetail_20' ) end [2025-04-14 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908794', 'tblTempVendorCDR_20' ) start [2025-04-14 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908794', 'tblTempVendorCDR_20' ) end [2025-04-14 20:50:19] Production.INFO: ProcessCDR(1,14908794,1,1,2) [2025-04-14 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908794', 'tblTempUsageDetail_20' ) start [2025-04-14 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908794', 'tblTempUsageDetail_20' ) end [2025-04-14 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:50:23] Production.INFO: ==21571== Releasing lock... [2025-04-14 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:50:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:51:05 [end_date_ymd] => 2025-04-14 20:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:51:05' and `end` < '2025-04-14 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-04-14 20:51:18] Production.INFO: count ==1196 [2025-04-14 20:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:51:05 - End Time 2025-04-14 20:51:05 [2025-04-14 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908799', 'tblTempUsageDetail_20' ) start [2025-04-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908799', 'tblTempUsageDetail_20' ) end [2025-04-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908799', 'tblTempVendorCDR_20' ) start [2025-04-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908799', 'tblTempVendorCDR_20' ) end [2025-04-14 20:51:18] Production.INFO: ProcessCDR(1,14908799,1,1,2) [2025-04-14 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908799', 'tblTempUsageDetail_20' ) start [2025-04-14 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908799', 'tblTempUsageDetail_20' ) end [2025-04-14 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:51:22] Production.INFO: ==21653== Releasing lock... [2025-04-14 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:52:05 [end_date_ymd] => 2025-04-14 20:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:52:05' and `end` < '2025-04-14 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-04-14 20:52:18] Production.INFO: count ==1193 [2025-04-14 20:52:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:52:05 - End Time 2025-04-14 20:52:05 [2025-04-14 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908804', 'tblTempUsageDetail_20' ) start [2025-04-14 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908804', 'tblTempUsageDetail_20' ) end [2025-04-14 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908804', 'tblTempVendorCDR_20' ) start [2025-04-14 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908804', 'tblTempVendorCDR_20' ) end [2025-04-14 20:52:18] Production.INFO: ProcessCDR(1,14908804,1,1,2) [2025-04-14 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908804', 'tblTempUsageDetail_20' ) start [2025-04-14 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908804', 'tblTempUsageDetail_20' ) end [2025-04-14 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:52:21] Production.INFO: ==21725== Releasing lock... [2025-04-14 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:52:21] Production.INFO: 37 MB #Memory Used# [2025-04-14 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:53:05 [end_date_ymd] => 2025-04-14 20:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:53:05' and `end` < '2025-04-14 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-04-14 20:53:18] Production.INFO: count ==1192 [2025-04-14 20:53:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:53:05 - End Time 2025-04-14 20:53:05 [2025-04-14 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908809', 'tblTempUsageDetail_20' ) start [2025-04-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908809', 'tblTempUsageDetail_20' ) end [2025-04-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908809', 'tblTempVendorCDR_20' ) start [2025-04-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908809', 'tblTempVendorCDR_20' ) end [2025-04-14 20:53:18] Production.INFO: ProcessCDR(1,14908809,1,1,2) [2025-04-14 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908809', 'tblTempUsageDetail_20' ) start [2025-04-14 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908809', 'tblTempUsageDetail_20' ) end [2025-04-14 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:53:21] Production.INFO: ==21805== Releasing lock... [2025-04-14 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:53:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-14 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:54:05 [end_date_ymd] => 2025-04-14 20:54:05 [RateCDR] => 1 ) [2025-04-14 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:54:05' and `end` < '2025-04-14 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:54:18] Production.INFO: count ==1185 [2025-04-14 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:54:05 - End Time 2025-04-14 20:54:05 [2025-04-14 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908814', 'tblTempUsageDetail_20' ) start [2025-04-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908814', 'tblTempUsageDetail_20' ) end [2025-04-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908814', 'tblTempVendorCDR_20' ) start [2025-04-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908814', 'tblTempVendorCDR_20' ) end [2025-04-14 20:54:18] Production.INFO: ProcessCDR(1,14908814,1,1,2) [2025-04-14 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908814', 'tblTempUsageDetail_20' ) start [2025-04-14 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908814', 'tblTempUsageDetail_20' ) end [2025-04-14 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:54:21] Production.INFO: ==21882== Releasing lock... [2025-04-14 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:54:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-14 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:55:05 [end_date_ymd] => 2025-04-14 20:55:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:55:05' and `end` < '2025-04-14 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-04-14 20:55:18] Production.INFO: count ==1184 [2025-04-14 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:55:05 - End Time 2025-04-14 20:55:05 [2025-04-14 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908819', 'tblTempUsageDetail_20' ) start [2025-04-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908819', 'tblTempUsageDetail_20' ) end [2025-04-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908819', 'tblTempVendorCDR_20' ) start [2025-04-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908819', 'tblTempVendorCDR_20' ) end [2025-04-14 20:55:18] Production.INFO: ProcessCDR(1,14908819,1,1,2) [2025-04-14 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908819', 'tblTempUsageDetail_20' ) start [2025-04-14 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908819', 'tblTempUsageDetail_20' ) end [2025-04-14 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:55:23] Production.INFO: ==21996== Releasing lock... [2025-04-14 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:55:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-14 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:56:05 [end_date_ymd] => 2025-04-14 20:56:05 [RateCDR] => 1 ) [2025-04-14 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 17:56:05' and `end` < '2025-04-14 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 20:56:18] Production.INFO: count ==1180 [2025-04-14 20:56:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:56:05 - End Time 2025-04-14 20:56:05 [2025-04-14 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908824', 'tblTempUsageDetail_20' ) start [2025-04-14 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908824', 'tblTempUsageDetail_20' ) end [2025-04-14 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908824', 'tblTempVendorCDR_20' ) start [2025-04-14 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908824', 'tblTempVendorCDR_20' ) end [2025-04-14 20:56:18] Production.INFO: ProcessCDR(1,14908824,1,1,2) [2025-04-14 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908824', 'tblTempUsageDetail_20' ) start [2025-04-14 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908824', 'tblTempUsageDetail_20' ) end [2025-04-14 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:56:23] Production.INFO: ==22073== Releasing lock... [2025-04-14 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:56:23] Production.INFO: 37 MB #Memory Used# [2025-04-14 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:57:05 [end_date_ymd] => 2025-04-14 20:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:57:05' and `end` < '2025-04-14 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-04-14 20:57:18] Production.INFO: count ==1176 [2025-04-14 20:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 17:57:05 - End Time 2025-04-14 20:57:05 [2025-04-14 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908829', 'tblTempUsageDetail_20' ) start [2025-04-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908829', 'tblTempUsageDetail_20' ) end [2025-04-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908829', 'tblTempVendorCDR_20' ) start [2025-04-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908829', 'tblTempVendorCDR_20' ) end [2025-04-14 20:57:18] Production.INFO: ProcessCDR(1,14908829,1,1,2) [2025-04-14 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908829', 'tblTempUsageDetail_20' ) start [2025-04-14 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908829', 'tblTempUsageDetail_20' ) end [2025-04-14 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:57:24] Production.INFO: ==22147== Releasing lock... [2025-04-14 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:57:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:58:05 [end_date_ymd] => 2025-04-14 20:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:58:05' and `end` < '2025-04-14 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-04-14 20:58:18] Production.INFO: count ==1172 [2025-04-14 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:58:05 - End Time 2025-04-14 20:58:05 [2025-04-14 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908834', 'tblTempUsageDetail_20' ) start [2025-04-14 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908834', 'tblTempUsageDetail_20' ) end [2025-04-14 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908834', 'tblTempVendorCDR_20' ) start [2025-04-14 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908834', 'tblTempVendorCDR_20' ) end [2025-04-14 20:58:19] Production.INFO: ProcessCDR(1,14908834,1,1,2) [2025-04-14 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908834', 'tblTempUsageDetail_20' ) start [2025-04-14 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908834', 'tblTempUsageDetail_20' ) end [2025-04-14 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:58:22] Production.INFO: ==22224== Releasing lock... [2025-04-14 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-14 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 17:59:05 [end_date_ymd] => 2025-04-14 20:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 17:59:05' and `end` < '2025-04-14 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-04-14 20:59:19] Production.INFO: count ==1170 [2025-04-14 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-14 17:59:05 - End Time 2025-04-14 20:59:05 [2025-04-14 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908839', 'tblTempUsageDetail_20' ) start [2025-04-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908839', 'tblTempUsageDetail_20' ) end [2025-04-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908839', 'tblTempVendorCDR_20' ) start [2025-04-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908839', 'tblTempVendorCDR_20' ) end [2025-04-14 20:59:19] Production.INFO: ProcessCDR(1,14908839,1,1,2) [2025-04-14 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908839', 'tblTempUsageDetail_20' ) start [2025-04-14 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908839', 'tblTempUsageDetail_20' ) end [2025-04-14 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 20:59:24] Production.INFO: ==22295== Releasing lock... [2025-04-14 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 20:59:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-14 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:00:07 [end_date_ymd] => 2025-04-14 21:00:07 [RateCDR] => 1 ) [2025-04-14 21: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-04-14 18:00:07' and `end` < '2025-04-14 21: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-04-14 21:00:20] Production.INFO: count ==1169 [2025-04-14 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-14 18:00:07 - End Time 2025-04-14 21:00:07 [2025-04-14 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908845', 'tblTempUsageDetail_20' ) start [2025-04-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908845', 'tblTempUsageDetail_20' ) end [2025-04-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908845', 'tblTempVendorCDR_20' ) start [2025-04-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908845', 'tblTempVendorCDR_20' ) end [2025-04-14 21:00:20] Production.INFO: ProcessCDR(1,14908845,1,1,2) [2025-04-14 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908845', 'tblTempUsageDetail_20' ) start [2025-04-14 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908845', 'tblTempUsageDetail_20' ) end [2025-04-14 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:00:25] Production.INFO: ==22376== Releasing lock... [2025-04-14 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:00:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:01:05 [end_date_ymd] => 2025-04-14 21:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:01:05' and `end` < '2025-04-14 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-04-14 21:01:18] Production.INFO: count ==1138 [2025-04-14 21:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:01:05 - End Time 2025-04-14 21:01:05 [2025-04-14 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908850', 'tblTempUsageDetail_20' ) start [2025-04-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908850', 'tblTempUsageDetail_20' ) end [2025-04-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908850', 'tblTempVendorCDR_20' ) start [2025-04-14 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908850', 'tblTempVendorCDR_20' ) end [2025-04-14 21:01:19] Production.INFO: ProcessCDR(1,14908850,1,1,2) [2025-04-14 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908850', 'tblTempUsageDetail_20' ) start [2025-04-14 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908850', 'tblTempUsageDetail_20' ) end [2025-04-14 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:01:22] Production.INFO: ==22462== Releasing lock... [2025-04-14 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:01:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:02:05 [end_date_ymd] => 2025-04-14 21:02:05 [RateCDR] => 1 ) [2025-04-14 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:02:05' and `end` < '2025-04-14 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:02:18] Production.INFO: count ==1136 [2025-04-14 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:02:05 - End Time 2025-04-14 21:02:05 [2025-04-14 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908855', 'tblTempUsageDetail_20' ) start [2025-04-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908855', 'tblTempUsageDetail_20' ) end [2025-04-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908855', 'tblTempVendorCDR_20' ) start [2025-04-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908855', 'tblTempVendorCDR_20' ) end [2025-04-14 21:02:19] Production.INFO: ProcessCDR(1,14908855,1,1,2) [2025-04-14 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908855', 'tblTempUsageDetail_20' ) start [2025-04-14 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908855', 'tblTempUsageDetail_20' ) end [2025-04-14 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:02:22] Production.INFO: ==22540== Releasing lock... [2025-04-14 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:02:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:03:05 [end_date_ymd] => 2025-04-14 21:03:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:03:05' and `end` < '2025-04-14 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-04-14 21:03:18] Production.INFO: count ==1131 [2025-04-14 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:03:05 - End Time 2025-04-14 21:03:05 [2025-04-14 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908860', 'tblTempUsageDetail_20' ) start [2025-04-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908860', 'tblTempUsageDetail_20' ) end [2025-04-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908860', 'tblTempVendorCDR_20' ) start [2025-04-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908860', 'tblTempVendorCDR_20' ) end [2025-04-14 21:03:18] Production.INFO: ProcessCDR(1,14908860,1,1,2) [2025-04-14 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908860', 'tblTempUsageDetail_20' ) start [2025-04-14 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908860', 'tblTempUsageDetail_20' ) end [2025-04-14 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:03:21] Production.INFO: ==22613== Releasing lock... [2025-04-14 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:03:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:04:05 [end_date_ymd] => 2025-04-14 21:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:04:05' and `end` < '2025-04-14 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-04-14 21:04:18] Production.INFO: count ==1120 [2025-04-14 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:04:05 - End Time 2025-04-14 21:04:05 [2025-04-14 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908865', 'tblTempUsageDetail_20' ) start [2025-04-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908865', 'tblTempUsageDetail_20' ) end [2025-04-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908865', 'tblTempVendorCDR_20' ) start [2025-04-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908865', 'tblTempVendorCDR_20' ) end [2025-04-14 21:04:18] Production.INFO: ProcessCDR(1,14908865,1,1,2) [2025-04-14 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908865', 'tblTempUsageDetail_20' ) start [2025-04-14 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908865', 'tblTempUsageDetail_20' ) end [2025-04-14 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:04:21] Production.INFO: ==22688== Releasing lock... [2025-04-14 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:04:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-14 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:05:05 [end_date_ymd] => 2025-04-14 21:05:05 [RateCDR] => 1 ) [2025-04-14 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:05:05' and `end` < '2025-04-14 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:05:18] Production.INFO: count ==1116 [2025-04-14 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:05:05 - End Time 2025-04-14 21:05:05 [2025-04-14 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908870', 'tblTempUsageDetail_20' ) start [2025-04-14 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908870', 'tblTempUsageDetail_20' ) end [2025-04-14 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908870', 'tblTempVendorCDR_20' ) start [2025-04-14 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908870', 'tblTempVendorCDR_20' ) end [2025-04-14 21:05:18] Production.INFO: ProcessCDR(1,14908870,1,1,2) [2025-04-14 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908870', 'tblTempUsageDetail_20' ) start [2025-04-14 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908870', 'tblTempUsageDetail_20' ) end [2025-04-14 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:05:21] Production.INFO: ==22770== Releasing lock... [2025-04-14 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:05:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:06:05 [end_date_ymd] => 2025-04-14 21:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:06:05' and `end` < '2025-04-14 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-04-14 21:06:18] Production.INFO: count ==1113 [2025-04-14 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:06:05 - End Time 2025-04-14 21:06:05 [2025-04-14 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908875', 'tblTempUsageDetail_20' ) start [2025-04-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908875', 'tblTempUsageDetail_20' ) end [2025-04-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908875', 'tblTempVendorCDR_20' ) start [2025-04-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908875', 'tblTempVendorCDR_20' ) end [2025-04-14 21:06:18] Production.INFO: ProcessCDR(1,14908875,1,1,2) [2025-04-14 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908875', 'tblTempUsageDetail_20' ) start [2025-04-14 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908875', 'tblTempUsageDetail_20' ) end [2025-04-14 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:06:22] Production.INFO: ==22848== Releasing lock... [2025-04-14 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:07:05 [end_date_ymd] => 2025-04-14 21:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:07:05' and `end` < '2025-04-14 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-04-14 21:07:18] Production.INFO: count ==1113 [2025-04-14 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:07:05 - End Time 2025-04-14 21:07:05 [2025-04-14 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908880', 'tblTempUsageDetail_20' ) start [2025-04-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908880', 'tblTempUsageDetail_20' ) end [2025-04-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908880', 'tblTempVendorCDR_20' ) start [2025-04-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908880', 'tblTempVendorCDR_20' ) end [2025-04-14 21:07:18] Production.INFO: ProcessCDR(1,14908880,1,1,2) [2025-04-14 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908880', 'tblTempUsageDetail_20' ) start [2025-04-14 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908880', 'tblTempUsageDetail_20' ) end [2025-04-14 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:07:21] Production.INFO: ==22925== Releasing lock... [2025-04-14 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:07:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:08:05 [end_date_ymd] => 2025-04-14 21:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:08:05' and `end` < '2025-04-14 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-04-14 21:08:18] Production.INFO: count ==1111 [2025-04-14 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:08:05 - End Time 2025-04-14 21:08:05 [2025-04-14 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908885', 'tblTempUsageDetail_20' ) start [2025-04-14 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908885', 'tblTempUsageDetail_20' ) end [2025-04-14 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908885', 'tblTempVendorCDR_20' ) start [2025-04-14 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908885', 'tblTempVendorCDR_20' ) end [2025-04-14 21:08:19] Production.INFO: ProcessCDR(1,14908885,1,1,2) [2025-04-14 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908885', 'tblTempUsageDetail_20' ) start [2025-04-14 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908885', 'tblTempUsageDetail_20' ) end [2025-04-14 21:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:08:24] Production.INFO: ==23001== Releasing lock... [2025-04-14 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:08:24] Production.INFO: 36 MB #Memory Used# [2025-04-14 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:09:04 [end_date_ymd] => 2025-04-14 21:09:04 [RateCDR] => 1 ) [2025-04-14 21:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:09:04' and `end` < '2025-04-14 21:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:09:17] Production.INFO: count ==1107 [2025-04-14 21:09:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:09:04 - End Time 2025-04-14 21:09:04 [2025-04-14 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908890', 'tblTempUsageDetail_20' ) start [2025-04-14 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908890', 'tblTempUsageDetail_20' ) end [2025-04-14 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908890', 'tblTempVendorCDR_20' ) start [2025-04-14 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908890', 'tblTempVendorCDR_20' ) end [2025-04-14 21:09:17] Production.INFO: ProcessCDR(1,14908890,1,1,2) [2025-04-14 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908890', 'tblTempUsageDetail_20' ) start [2025-04-14 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908890', 'tblTempUsageDetail_20' ) end [2025-04-14 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:09:22] Production.INFO: ==23077== Releasing lock... [2025-04-14 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:09:22] Production.INFO: 36 MB #Memory Used# [2025-04-14 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:10:06 [end_date_ymd] => 2025-04-14 21:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:10:06' and `end` < '2025-04-14 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-04-14 21:10:19] Production.INFO: count ==1102 [2025-04-14 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:10:06 - End Time 2025-04-14 21:10:06 [2025-04-14 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908896', 'tblTempUsageDetail_20' ) start [2025-04-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908896', 'tblTempUsageDetail_20' ) end [2025-04-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908896', 'tblTempVendorCDR_20' ) start [2025-04-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908896', 'tblTempVendorCDR_20' ) end [2025-04-14 21:10:19] Production.INFO: ProcessCDR(1,14908896,1,1,2) [2025-04-14 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908896', 'tblTempUsageDetail_20' ) start [2025-04-14 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908896', 'tblTempUsageDetail_20' ) end [2025-04-14 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:10:22] Production.INFO: ==23155== Releasing lock... [2025-04-14 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:10:22] Production.INFO: 36 MB #Memory Used# [2025-04-14 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:11:05 [end_date_ymd] => 2025-04-14 21:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:11:05' and `end` < '2025-04-14 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-04-14 21:11:18] Production.INFO: count ==1078 [2025-04-14 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:11:05 - End Time 2025-04-14 21:11:05 [2025-04-14 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908901', 'tblTempUsageDetail_20' ) start [2025-04-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908901', 'tblTempUsageDetail_20' ) end [2025-04-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908901', 'tblTempVendorCDR_20' ) start [2025-04-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908901', 'tblTempVendorCDR_20' ) end [2025-04-14 21:11:18] Production.INFO: ProcessCDR(1,14908901,1,1,2) [2025-04-14 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908901', 'tblTempUsageDetail_20' ) start [2025-04-14 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908901', 'tblTempUsageDetail_20' ) end [2025-04-14 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:11:23] Production.INFO: ==23276== Releasing lock... [2025-04-14 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:11:23] Production.INFO: 36 MB #Memory Used# [2025-04-14 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:12:05 [end_date_ymd] => 2025-04-14 21:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:12:05' and `end` < '2025-04-14 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-04-14 21:12:18] Production.INFO: count ==1106 [2025-04-14 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:12:05 - End Time 2025-04-14 21:12:05 [2025-04-14 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908906', 'tblTempUsageDetail_20' ) start [2025-04-14 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908906', 'tblTempUsageDetail_20' ) end [2025-04-14 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908906', 'tblTempVendorCDR_20' ) start [2025-04-14 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908906', 'tblTempVendorCDR_20' ) end [2025-04-14 21:12:18] Production.INFO: ProcessCDR(1,14908906,1,1,2) [2025-04-14 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908906', 'tblTempUsageDetail_20' ) start [2025-04-14 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908906', 'tblTempUsageDetail_20' ) end [2025-04-14 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:12:23] Production.INFO: ==23354== Releasing lock... [2025-04-14 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:12:23] Production.INFO: 36 MB #Memory Used# [2025-04-14 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:13:05 [end_date_ymd] => 2025-04-14 21:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:13:05' and `end` < '2025-04-14 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-04-14 21:13:18] Production.INFO: count ==1105 [2025-04-14 21:13:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:13:05 - End Time 2025-04-14 21:13:05 [2025-04-14 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908911', 'tblTempUsageDetail_20' ) start [2025-04-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908911', 'tblTempUsageDetail_20' ) end [2025-04-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908911', 'tblTempVendorCDR_20' ) start [2025-04-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908911', 'tblTempVendorCDR_20' ) end [2025-04-14 21:13:18] Production.INFO: ProcessCDR(1,14908911,1,1,2) [2025-04-14 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908911', 'tblTempUsageDetail_20' ) start [2025-04-14 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908911', 'tblTempUsageDetail_20' ) end [2025-04-14 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:13:21] Production.INFO: ==23431== Releasing lock... [2025-04-14 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:13:21] Production.INFO: 36 MB #Memory Used# [2025-04-14 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:14:04 [end_date_ymd] => 2025-04-14 21:14:04 [RateCDR] => 1 ) [2025-04-14 21:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:14:04' and `end` < '2025-04-14 21:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:14:17] Production.INFO: count ==1114 [2025-04-14 21:14:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:14:04 - End Time 2025-04-14 21:14:04 [2025-04-14 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908916', 'tblTempUsageDetail_20' ) start [2025-04-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908916', 'tblTempUsageDetail_20' ) end [2025-04-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908916', 'tblTempVendorCDR_20' ) start [2025-04-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908916', 'tblTempVendorCDR_20' ) end [2025-04-14 21:14:18] Production.INFO: ProcessCDR(1,14908916,1,1,2) [2025-04-14 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908916', 'tblTempUsageDetail_20' ) start [2025-04-14 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908916', 'tblTempUsageDetail_20' ) end [2025-04-14 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:14:22] Production.INFO: ==23512== Releasing lock... [2025-04-14 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:15:05 [end_date_ymd] => 2025-04-14 21:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:15:05' and `end` < '2025-04-14 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-04-14 21:15:18] Production.INFO: count ==1113 [2025-04-14 21:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:15:05 - End Time 2025-04-14 21:15:05 [2025-04-14 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908921', 'tblTempUsageDetail_20' ) start [2025-04-14 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908921', 'tblTempUsageDetail_20' ) end [2025-04-14 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908921', 'tblTempVendorCDR_20' ) start [2025-04-14 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908921', 'tblTempVendorCDR_20' ) end [2025-04-14 21:15:18] Production.INFO: ProcessCDR(1,14908921,1,1,2) [2025-04-14 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908921', 'tblTempUsageDetail_20' ) start [2025-04-14 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908921', 'tblTempUsageDetail_20' ) end [2025-04-14 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:15:21] Production.INFO: ==23584== Releasing lock... [2025-04-14 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:15:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:16:05 [end_date_ymd] => 2025-04-14 21:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:16:05' and `end` < '2025-04-14 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-04-14 21:16:17] Production.INFO: count ==1113 [2025-04-14 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:16:05 - End Time 2025-04-14 21:16:05 [2025-04-14 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908926', 'tblTempUsageDetail_20' ) start [2025-04-14 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908926', 'tblTempUsageDetail_20' ) end [2025-04-14 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908926', 'tblTempVendorCDR_20' ) start [2025-04-14 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908926', 'tblTempVendorCDR_20' ) end [2025-04-14 21:16:18] Production.INFO: ProcessCDR(1,14908926,1,1,2) [2025-04-14 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908926', 'tblTempUsageDetail_20' ) start [2025-04-14 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908926', 'tblTempUsageDetail_20' ) end [2025-04-14 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:16:21] Production.INFO: ==23653== Releasing lock... [2025-04-14 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:16:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:17:05 [end_date_ymd] => 2025-04-14 21:17:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:17:05' and `end` < '2025-04-14 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-04-14 21:17:18] Production.INFO: count ==1112 [2025-04-14 21:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:17:05 - End Time 2025-04-14 21:17:05 [2025-04-14 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908931', 'tblTempUsageDetail_20' ) start [2025-04-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908931', 'tblTempUsageDetail_20' ) end [2025-04-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908931', 'tblTempVendorCDR_20' ) start [2025-04-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908931', 'tblTempVendorCDR_20' ) end [2025-04-14 21:17:18] Production.INFO: ProcessCDR(1,14908931,1,1,2) [2025-04-14 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908931', 'tblTempUsageDetail_20' ) start [2025-04-14 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908931', 'tblTempUsageDetail_20' ) end [2025-04-14 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:17:23] Production.INFO: ==23727== Releasing lock... [2025-04-14 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:17:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-14 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:18:05 [end_date_ymd] => 2025-04-14 21:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:18:05' and `end` < '2025-04-14 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-04-14 21:18:18] Production.INFO: count ==1105 [2025-04-14 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:18:05 - End Time 2025-04-14 21:18:05 [2025-04-14 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908936', 'tblTempUsageDetail_20' ) start [2025-04-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908936', 'tblTempUsageDetail_20' ) end [2025-04-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908936', 'tblTempVendorCDR_20' ) start [2025-04-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908936', 'tblTempVendorCDR_20' ) end [2025-04-14 21:18:18] Production.INFO: ProcessCDR(1,14908936,1,1,2) [2025-04-14 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908936', 'tblTempUsageDetail_20' ) start [2025-04-14 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908936', 'tblTempUsageDetail_20' ) end [2025-04-14 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:18:22] Production.INFO: ==23815== Releasing lock... [2025-04-14 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:18:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:19:05 [end_date_ymd] => 2025-04-14 21:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:19:05' and `end` < '2025-04-14 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-04-14 21:19:18] Production.INFO: count ==1105 [2025-04-14 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:19:05 - End Time 2025-04-14 21:19:05 [2025-04-14 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908941', 'tblTempUsageDetail_20' ) start [2025-04-14 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908941', 'tblTempUsageDetail_20' ) end [2025-04-14 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908941', 'tblTempVendorCDR_20' ) start [2025-04-14 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908941', 'tblTempVendorCDR_20' ) end [2025-04-14 21:19:18] Production.INFO: ProcessCDR(1,14908941,1,1,2) [2025-04-14 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908941', 'tblTempUsageDetail_20' ) start [2025-04-14 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908941', 'tblTempUsageDetail_20' ) end [2025-04-14 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:19:21] Production.INFO: ==23895== Releasing lock... [2025-04-14 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:19:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:20:06 [end_date_ymd] => 2025-04-14 21:20:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:20:06' and `end` < '2025-04-14 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-04-14 21:20:19] Production.INFO: count ==1105 [2025-04-14 21:20:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:20:06 - End Time 2025-04-14 21:20:06 [2025-04-14 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908947', 'tblTempUsageDetail_20' ) start [2025-04-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908947', 'tblTempUsageDetail_20' ) end [2025-04-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908947', 'tblTempVendorCDR_20' ) start [2025-04-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908947', 'tblTempVendorCDR_20' ) end [2025-04-14 21:20:19] Production.INFO: ProcessCDR(1,14908947,1,1,2) [2025-04-14 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908947', 'tblTempUsageDetail_20' ) start [2025-04-14 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908947', 'tblTempUsageDetail_20' ) end [2025-04-14 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:20:23] Production.INFO: ==23980== Releasing lock... [2025-04-14 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:20:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:21:04 [end_date_ymd] => 2025-04-14 21:21:04 [RateCDR] => 1 ) [2025-04-14 21: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-04-14 18:21:04' and `end` < '2025-04-14 21: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-04-14 21:21:17] Production.INFO: count ==1054 [2025-04-14 21:21:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:21:04 - End Time 2025-04-14 21:21:04 [2025-04-14 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908952', 'tblTempUsageDetail_20' ) start [2025-04-14 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908952', 'tblTempUsageDetail_20' ) end [2025-04-14 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908952', 'tblTempVendorCDR_20' ) start [2025-04-14 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908952', 'tblTempVendorCDR_20' ) end [2025-04-14 21:21:17] Production.INFO: ProcessCDR(1,14908952,1,1,2) [2025-04-14 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908952', 'tblTempUsageDetail_20' ) start [2025-04-14 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908952', 'tblTempUsageDetail_20' ) end [2025-04-14 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:21:22] Production.INFO: ==24053== Releasing lock... [2025-04-14 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:21:22] Production.INFO: 36 MB #Memory Used# [2025-04-14 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:22:05 [end_date_ymd] => 2025-04-14 21:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:22:05' and `end` < '2025-04-14 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-04-14 21:22:17] Production.INFO: count ==1052 [2025-04-14 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:22:05 - End Time 2025-04-14 21:22:05 [2025-04-14 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908957', 'tblTempUsageDetail_20' ) start [2025-04-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908957', 'tblTempUsageDetail_20' ) end [2025-04-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908957', 'tblTempVendorCDR_20' ) start [2025-04-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908957', 'tblTempVendorCDR_20' ) end [2025-04-14 21:22:18] Production.INFO: ProcessCDR(1,14908957,1,1,2) [2025-04-14 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908957', 'tblTempUsageDetail_20' ) start [2025-04-14 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908957', 'tblTempUsageDetail_20' ) end [2025-04-14 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:22:21] Production.INFO: ==24124== Releasing lock... [2025-04-14 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:22:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-14 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:23:04 [end_date_ymd] => 2025-04-14 21:23:04 [RateCDR] => 1 ) [2025-04-14 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:23:04' and `end` < '2025-04-14 21: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-04-14 21:23:17] Production.INFO: count ==1038 [2025-04-14 21:23:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:23:04 - End Time 2025-04-14 21:23:04 [2025-04-14 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908962', 'tblTempUsageDetail_20' ) start [2025-04-14 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908962', 'tblTempUsageDetail_20' ) end [2025-04-14 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908962', 'tblTempVendorCDR_20' ) start [2025-04-14 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908962', 'tblTempVendorCDR_20' ) end [2025-04-14 21:23:17] Production.INFO: ProcessCDR(1,14908962,1,1,2) [2025-04-14 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908962', 'tblTempUsageDetail_20' ) start [2025-04-14 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908962', 'tblTempUsageDetail_20' ) end [2025-04-14 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:23:22] Production.INFO: ==24193== Releasing lock... [2025-04-14 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:23:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-14 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:24:05 [end_date_ymd] => 2025-04-14 21:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:24:05' and `end` < '2025-04-14 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-04-14 21:24:17] Production.INFO: count ==1036 [2025-04-14 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:24:05 - End Time 2025-04-14 21:24:05 [2025-04-14 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908967', 'tblTempUsageDetail_20' ) start [2025-04-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908967', 'tblTempUsageDetail_20' ) end [2025-04-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908967', 'tblTempVendorCDR_20' ) start [2025-04-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908967', 'tblTempVendorCDR_20' ) end [2025-04-14 21:24:18] Production.INFO: ProcessCDR(1,14908967,1,1,2) [2025-04-14 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908967', 'tblTempUsageDetail_20' ) start [2025-04-14 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908967', 'tblTempUsageDetail_20' ) end [2025-04-14 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:24:21] Production.INFO: ==24272== Releasing lock... [2025-04-14 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:24:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-14 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:25:05 [end_date_ymd] => 2025-04-14 21:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:25:05' and `end` < '2025-04-14 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-04-14 21:25:18] Production.INFO: count ==1026 [2025-04-14 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:25:05 - End Time 2025-04-14 21:25:05 [2025-04-14 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908972', 'tblTempUsageDetail_20' ) start [2025-04-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908972', 'tblTempUsageDetail_20' ) end [2025-04-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908972', 'tblTempVendorCDR_20' ) start [2025-04-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908972', 'tblTempVendorCDR_20' ) end [2025-04-14 21:25:18] Production.INFO: ProcessCDR(1,14908972,1,1,2) [2025-04-14 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908972', 'tblTempUsageDetail_20' ) start [2025-04-14 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908972', 'tblTempUsageDetail_20' ) end [2025-04-14 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:25:21] Production.INFO: ==24351== Releasing lock... [2025-04-14 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:25:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-14 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:26:05 [end_date_ymd] => 2025-04-14 21:26:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:26:05' and `end` < '2025-04-14 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-04-14 21:26:18] Production.INFO: count ==1026 [2025-04-14 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:26:05 - End Time 2025-04-14 21:26:05 [2025-04-14 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908977', 'tblTempUsageDetail_20' ) start [2025-04-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908977', 'tblTempUsageDetail_20' ) end [2025-04-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908977', 'tblTempVendorCDR_20' ) start [2025-04-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908977', 'tblTempVendorCDR_20' ) end [2025-04-14 21:26:18] Production.INFO: ProcessCDR(1,14908977,1,1,2) [2025-04-14 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908977', 'tblTempUsageDetail_20' ) start [2025-04-14 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908977', 'tblTempUsageDetail_20' ) end [2025-04-14 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:26:21] Production.INFO: ==24464== Releasing lock... [2025-04-14 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:26:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-14 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:27:05 [end_date_ymd] => 2025-04-14 21:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:27:05' and `end` < '2025-04-14 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-04-14 21:27:18] Production.INFO: count ==1025 [2025-04-14 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:27:05 - End Time 2025-04-14 21:27:05 [2025-04-14 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908982', 'tblTempUsageDetail_20' ) start [2025-04-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908982', 'tblTempUsageDetail_20' ) end [2025-04-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908982', 'tblTempVendorCDR_20' ) start [2025-04-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908982', 'tblTempVendorCDR_20' ) end [2025-04-14 21:27:18] Production.INFO: ProcessCDR(1,14908982,1,1,2) [2025-04-14 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908982', 'tblTempUsageDetail_20' ) start [2025-04-14 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908982', 'tblTempUsageDetail_20' ) end [2025-04-14 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:27:21] Production.INFO: ==24536== Releasing lock... [2025-04-14 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:27:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-14 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:28:05 [end_date_ymd] => 2025-04-14 21:28:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:28:05' and `end` < '2025-04-14 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-04-14 21:28:18] Production.INFO: count ==1010 [2025-04-14 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:28:05 - End Time 2025-04-14 21:28:05 [2025-04-14 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908987', 'tblTempUsageDetail_20' ) start [2025-04-14 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908987', 'tblTempUsageDetail_20' ) end [2025-04-14 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908987', 'tblTempVendorCDR_20' ) start [2025-04-14 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908987', 'tblTempVendorCDR_20' ) end [2025-04-14 21:28:18] Production.INFO: ProcessCDR(1,14908987,1,1,2) [2025-04-14 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908987', 'tblTempUsageDetail_20' ) start [2025-04-14 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908987', 'tblTempUsageDetail_20' ) end [2025-04-14 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:28:22] Production.INFO: ==24608== Releasing lock... [2025-04-14 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:28:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:29:05 [end_date_ymd] => 2025-04-14 21:29:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:29:05' and `end` < '2025-04-14 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-04-14 21:29:18] Production.INFO: count ==1009 [2025-04-14 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:29:05 - End Time 2025-04-14 21:29:05 [2025-04-14 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908992', 'tblTempUsageDetail_20' ) start [2025-04-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908992', 'tblTempUsageDetail_20' ) end [2025-04-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908992', 'tblTempVendorCDR_20' ) start [2025-04-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908992', 'tblTempVendorCDR_20' ) end [2025-04-14 21:29:18] Production.INFO: ProcessCDR(1,14908992,1,1,2) [2025-04-14 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908992', 'tblTempUsageDetail_20' ) start [2025-04-14 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908992', 'tblTempUsageDetail_20' ) end [2025-04-14 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:29:21] Production.INFO: ==24683== Releasing lock... [2025-04-14 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:29:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:30:05 [end_date_ymd] => 2025-04-14 21:30:05 [RateCDR] => 1 ) [2025-04-14 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:30:05' and `end` < '2025-04-14 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:30:18] Production.INFO: count ==1002 [2025-04-14 21:30:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:30:05 - End Time 2025-04-14 21:30:05 [2025-04-14 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908998', 'tblTempUsageDetail_20' ) start [2025-04-14 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14908998', 'tblTempUsageDetail_20' ) end [2025-04-14 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908998', 'tblTempVendorCDR_20' ) start [2025-04-14 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14908998', 'tblTempVendorCDR_20' ) end [2025-04-14 21:30:18] Production.INFO: ProcessCDR(1,14908998,1,1,2) [2025-04-14 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14908998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14908998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14908998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14908998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908998', 'tblTempUsageDetail_20' ) start [2025-04-14 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14908998', 'tblTempUsageDetail_20' ) end [2025-04-14 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:30:23] Production.INFO: ==24757== Releasing lock... [2025-04-14 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:31:05 [end_date_ymd] => 2025-04-14 21:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:31:05' and `end` < '2025-04-14 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-04-14 21:31:18] Production.INFO: count ==958 [2025-04-14 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:31:05 - End Time 2025-04-14 21:31:05 [2025-04-14 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909003', 'tblTempUsageDetail_20' ) start [2025-04-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909003', 'tblTempUsageDetail_20' ) end [2025-04-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909003', 'tblTempVendorCDR_20' ) start [2025-04-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909003', 'tblTempVendorCDR_20' ) end [2025-04-14 21:31:18] Production.INFO: ProcessCDR(1,14909003,1,1,2) [2025-04-14 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909003', 'tblTempUsageDetail_20' ) start [2025-04-14 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909003', 'tblTempUsageDetail_20' ) end [2025-04-14 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:31:21] Production.INFO: ==24838== Releasing lock... [2025-04-14 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:31:21] Production.INFO: 35 MB #Memory Used# [2025-04-14 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:32:05 [end_date_ymd] => 2025-04-14 21:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:32:05' and `end` < '2025-04-14 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-04-14 21:32:18] Production.INFO: count ==966 [2025-04-14 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:32:05 - End Time 2025-04-14 21:32:05 [2025-04-14 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909008', 'tblTempUsageDetail_20' ) start [2025-04-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909008', 'tblTempUsageDetail_20' ) end [2025-04-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909008', 'tblTempVendorCDR_20' ) start [2025-04-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909008', 'tblTempVendorCDR_20' ) end [2025-04-14 21:32:18] Production.INFO: ProcessCDR(1,14909008,1,1,2) [2025-04-14 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909008', 'tblTempUsageDetail_20' ) start [2025-04-14 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909008', 'tblTempUsageDetail_20' ) end [2025-04-14 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:32:21] Production.INFO: ==24908== Releasing lock... [2025-04-14 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:32:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:33:04 [end_date_ymd] => 2025-04-14 21:33:04 [RateCDR] => 1 ) [2025-04-14 21: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-04-14 18:33:04' and `end` < '2025-04-14 21: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-04-14 21:33:17] Production.INFO: count ==966 [2025-04-14 21:33:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:33:04 - End Time 2025-04-14 21:33:04 [2025-04-14 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909013', 'tblTempUsageDetail_20' ) start [2025-04-14 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909013', 'tblTempUsageDetail_20' ) end [2025-04-14 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909013', 'tblTempVendorCDR_20' ) start [2025-04-14 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909013', 'tblTempVendorCDR_20' ) end [2025-04-14 21:33:17] Production.INFO: ProcessCDR(1,14909013,1,1,2) [2025-04-14 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909013', 'tblTempUsageDetail_20' ) start [2025-04-14 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909013', 'tblTempUsageDetail_20' ) end [2025-04-14 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:33:21] Production.INFO: ==24983== Releasing lock... [2025-04-14 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:33:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:34:05 [end_date_ymd] => 2025-04-14 21:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:34:05' and `end` < '2025-04-14 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-04-14 21:34:18] Production.INFO: count ==966 [2025-04-14 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:34:05 - End Time 2025-04-14 21:34:05 [2025-04-14 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909018', 'tblTempUsageDetail_20' ) start [2025-04-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909018', 'tblTempUsageDetail_20' ) end [2025-04-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909018', 'tblTempVendorCDR_20' ) start [2025-04-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909018', 'tblTempVendorCDR_20' ) end [2025-04-14 21:34:19] Production.INFO: ProcessCDR(1,14909018,1,1,2) [2025-04-14 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909018', 'tblTempUsageDetail_20' ) start [2025-04-14 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909018', 'tblTempUsageDetail_20' ) end [2025-04-14 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:34:23] Production.INFO: ==25067== Releasing lock... [2025-04-14 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:34:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:35:04 [end_date_ymd] => 2025-04-14 21:35:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:35:04' and `end` < '2025-04-14 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:35:17] Production.INFO: count ==953 [2025-04-14 21:35:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:35:04 - End Time 2025-04-14 21:35:04 [2025-04-14 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909023', 'tblTempUsageDetail_20' ) start [2025-04-14 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909023', 'tblTempUsageDetail_20' ) end [2025-04-14 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909023', 'tblTempVendorCDR_20' ) start [2025-04-14 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909023', 'tblTempVendorCDR_20' ) end [2025-04-14 21:35:18] Production.INFO: ProcessCDR(1,14909023,1,1,2) [2025-04-14 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909023', 'tblTempUsageDetail_20' ) start [2025-04-14 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909023', 'tblTempUsageDetail_20' ) end [2025-04-14 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:35:21] Production.INFO: ==25144== Releasing lock... [2025-04-14 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:36:05 [end_date_ymd] => 2025-04-14 21:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:36:05' and `end` < '2025-04-14 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-04-14 21:36:18] Production.INFO: count ==952 [2025-04-14 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:36:05 - End Time 2025-04-14 21:36:05 [2025-04-14 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909028', 'tblTempUsageDetail_20' ) start [2025-04-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909028', 'tblTempUsageDetail_20' ) end [2025-04-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909028', 'tblTempVendorCDR_20' ) start [2025-04-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909028', 'tblTempVendorCDR_20' ) end [2025-04-14 21:36:18] Production.INFO: ProcessCDR(1,14909028,1,1,2) [2025-04-14 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909028', 'tblTempUsageDetail_20' ) start [2025-04-14 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909028', 'tblTempUsageDetail_20' ) end [2025-04-14 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:36:21] Production.INFO: ==25220== Releasing lock... [2025-04-14 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:36:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-14 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:37:05 [end_date_ymd] => 2025-04-14 21:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:37:05' and `end` < '2025-04-14 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-04-14 21:37:18] Production.INFO: count ==953 [2025-04-14 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:37:05 - End Time 2025-04-14 21:37:05 [2025-04-14 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909033', 'tblTempUsageDetail_20' ) start [2025-04-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909033', 'tblTempUsageDetail_20' ) end [2025-04-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909033', 'tblTempVendorCDR_20' ) start [2025-04-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909033', 'tblTempVendorCDR_20' ) end [2025-04-14 21:37:18] Production.INFO: ProcessCDR(1,14909033,1,1,2) [2025-04-14 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909033', 'tblTempUsageDetail_20' ) start [2025-04-14 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909033', 'tblTempUsageDetail_20' ) end [2025-04-14 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:37:21] Production.INFO: ==25293== Releasing lock... [2025-04-14 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:37:21] Production.INFO: 35 MB #Memory Used# [2025-04-14 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:38:05 [end_date_ymd] => 2025-04-14 21:38:05 [RateCDR] => 1 ) [2025-04-14 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:38:05' and `end` < '2025-04-14 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:38:18] Production.INFO: count ==953 [2025-04-14 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:38:05 - End Time 2025-04-14 21:38:05 [2025-04-14 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909038', 'tblTempUsageDetail_20' ) start [2025-04-14 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909038', 'tblTempUsageDetail_20' ) end [2025-04-14 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909038', 'tblTempVendorCDR_20' ) start [2025-04-14 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909038', 'tblTempVendorCDR_20' ) end [2025-04-14 21:38:18] Production.INFO: ProcessCDR(1,14909038,1,1,2) [2025-04-14 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909038', 'tblTempUsageDetail_20' ) start [2025-04-14 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909038', 'tblTempUsageDetail_20' ) end [2025-04-14 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:38:21] Production.INFO: ==25367== Releasing lock... [2025-04-14 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:38:21] Production.INFO: 35 MB #Memory Used# [2025-04-14 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:39:06 [end_date_ymd] => 2025-04-14 21:39:06 [RateCDR] => 1 ) [2025-04-14 21:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:39:06' and `end` < '2025-04-14 21:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:39:19] Production.INFO: count ==957 [2025-04-14 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:39:06 - End Time 2025-04-14 21:39:06 [2025-04-14 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909043', 'tblTempUsageDetail_20' ) start [2025-04-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909043', 'tblTempUsageDetail_20' ) end [2025-04-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909043', 'tblTempVendorCDR_20' ) start [2025-04-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909043', 'tblTempVendorCDR_20' ) end [2025-04-14 21:39:19] Production.INFO: ProcessCDR(1,14909043,1,1,2) [2025-04-14 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909043', 'tblTempUsageDetail_20' ) start [2025-04-14 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909043', 'tblTempUsageDetail_20' ) end [2025-04-14 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:39:24] Production.INFO: ==25439== Releasing lock... [2025-04-14 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:39:24] Production.INFO: 35 MB #Memory Used# [2025-04-14 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:40:05 [end_date_ymd] => 2025-04-14 21:40:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:40:05' and `end` < '2025-04-14 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-04-14 21:40:18] Production.INFO: count ==956 [2025-04-14 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:40:05 - End Time 2025-04-14 21:40:05 [2025-04-14 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909049', 'tblTempUsageDetail_20' ) start [2025-04-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909049', 'tblTempUsageDetail_20' ) end [2025-04-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909049', 'tblTempVendorCDR_20' ) start [2025-04-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909049', 'tblTempVendorCDR_20' ) end [2025-04-14 21:40:19] Production.INFO: ProcessCDR(1,14909049,1,1,2) [2025-04-14 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909049', 'tblTempUsageDetail_20' ) start [2025-04-14 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909049', 'tblTempUsageDetail_20' ) end [2025-04-14 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:40:24] Production.INFO: ==25517== Releasing lock... [2025-04-14 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:40:24] Production.INFO: 35 MB #Memory Used# [2025-04-14 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:41:05 [end_date_ymd] => 2025-04-14 21:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:41:05' and `end` < '2025-04-14 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-04-14 21:41:18] Production.INFO: count ==908 [2025-04-14 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:41:05 - End Time 2025-04-14 21:41:05 [2025-04-14 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909054', 'tblTempUsageDetail_20' ) start [2025-04-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909054', 'tblTempUsageDetail_20' ) end [2025-04-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909054', 'tblTempVendorCDR_20' ) start [2025-04-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909054', 'tblTempVendorCDR_20' ) end [2025-04-14 21:41:18] Production.INFO: ProcessCDR(1,14909054,1,1,2) [2025-04-14 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909054', 'tblTempUsageDetail_20' ) start [2025-04-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909054', 'tblTempUsageDetail_20' ) end [2025-04-14 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:41:23] Production.INFO: ==25593== Releasing lock... [2025-04-14 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:41:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:42:05 [end_date_ymd] => 2025-04-14 21:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:42:05' and `end` < '2025-04-14 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-04-14 21:42:17] Production.INFO: count ==907 [2025-04-14 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:42:05 - End Time 2025-04-14 21:42:05 [2025-04-14 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909059', 'tblTempUsageDetail_20' ) start [2025-04-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909059', 'tblTempUsageDetail_20' ) end [2025-04-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909059', 'tblTempVendorCDR_20' ) start [2025-04-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909059', 'tblTempVendorCDR_20' ) end [2025-04-14 21:42:18] Production.INFO: ProcessCDR(1,14909059,1,1,2) [2025-04-14 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909059', 'tblTempUsageDetail_20' ) start [2025-04-14 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909059', 'tblTempUsageDetail_20' ) end [2025-04-14 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:42:21] Production.INFO: ==25708== Releasing lock... [2025-04-14 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:42:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-14 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:43:05 [end_date_ymd] => 2025-04-14 21:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:43:05' and `end` < '2025-04-14 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-04-14 21:43:18] Production.INFO: count ==906 [2025-04-14 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:43:05 - End Time 2025-04-14 21:43:05 [2025-04-14 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909064', 'tblTempUsageDetail_20' ) start [2025-04-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909064', 'tblTempUsageDetail_20' ) end [2025-04-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909064', 'tblTempVendorCDR_20' ) start [2025-04-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909064', 'tblTempVendorCDR_20' ) end [2025-04-14 21:43:18] Production.INFO: ProcessCDR(1,14909064,1,1,2) [2025-04-14 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909064', 'tblTempUsageDetail_20' ) start [2025-04-14 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909064', 'tblTempUsageDetail_20' ) end [2025-04-14 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:43:24] Production.INFO: ==25783== Releasing lock... [2025-04-14 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:43:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-14 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:44:05 [end_date_ymd] => 2025-04-14 21:44:05 [RateCDR] => 1 ) [2025-04-14 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:44:05' and `end` < '2025-04-14 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:44:18] Production.INFO: count ==906 [2025-04-14 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:44:05 - End Time 2025-04-14 21:44:05 [2025-04-14 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909069', 'tblTempUsageDetail_20' ) start [2025-04-14 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909069', 'tblTempUsageDetail_20' ) end [2025-04-14 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909069', 'tblTempVendorCDR_20' ) start [2025-04-14 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909069', 'tblTempVendorCDR_20' ) end [2025-04-14 21:44:18] Production.INFO: ProcessCDR(1,14909069,1,1,2) [2025-04-14 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909069', 'tblTempUsageDetail_20' ) start [2025-04-14 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909069', 'tblTempUsageDetail_20' ) end [2025-04-14 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:44:22] Production.INFO: ==25854== Releasing lock... [2025-04-14 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-14 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:45:05 [end_date_ymd] => 2025-04-14 21:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:45:05' and `end` < '2025-04-14 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-04-14 21:45:18] Production.INFO: count ==904 [2025-04-14 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:45:05 - End Time 2025-04-14 21:45:05 [2025-04-14 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909074', 'tblTempUsageDetail_20' ) start [2025-04-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909074', 'tblTempUsageDetail_20' ) end [2025-04-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909074', 'tblTempVendorCDR_20' ) start [2025-04-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909074', 'tblTempVendorCDR_20' ) end [2025-04-14 21:45:18] Production.INFO: ProcessCDR(1,14909074,1,1,2) [2025-04-14 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909074', 'tblTempUsageDetail_20' ) start [2025-04-14 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909074', 'tblTempUsageDetail_20' ) end [2025-04-14 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:45:23] Production.INFO: ==25926== Releasing lock... [2025-04-14 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:45:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-14 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:46:05 [end_date_ymd] => 2025-04-14 21:46:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:46:05' and `end` < '2025-04-14 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-04-14 21:46:18] Production.INFO: count ==910 [2025-04-14 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:46:05 - End Time 2025-04-14 21:46:05 [2025-04-14 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909079', 'tblTempUsageDetail_20' ) start [2025-04-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909079', 'tblTempUsageDetail_20' ) end [2025-04-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909079', 'tblTempVendorCDR_20' ) start [2025-04-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909079', 'tblTempVendorCDR_20' ) end [2025-04-14 21:46:18] Production.INFO: ProcessCDR(1,14909079,1,1,2) [2025-04-14 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909079', 'tblTempUsageDetail_20' ) start [2025-04-14 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909079', 'tblTempUsageDetail_20' ) end [2025-04-14 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:46:23] Production.INFO: ==26002== Releasing lock... [2025-04-14 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:46:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:47:05 [end_date_ymd] => 2025-04-14 21:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:47:05' and `end` < '2025-04-14 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-04-14 21:47:18] Production.INFO: count ==910 [2025-04-14 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:47:05 - End Time 2025-04-14 21:47:05 [2025-04-14 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909084', 'tblTempUsageDetail_20' ) start [2025-04-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909084', 'tblTempUsageDetail_20' ) end [2025-04-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909084', 'tblTempVendorCDR_20' ) start [2025-04-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909084', 'tblTempVendorCDR_20' ) end [2025-04-14 21:47:18] Production.INFO: ProcessCDR(1,14909084,1,1,2) [2025-04-14 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909084', 'tblTempUsageDetail_20' ) start [2025-04-14 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909084', 'tblTempUsageDetail_20' ) end [2025-04-14 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:47:21] Production.INFO: ==26082== Releasing lock... [2025-04-14 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:48:05 [end_date_ymd] => 2025-04-14 21:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:48:05' and `end` < '2025-04-14 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-04-14 21:48:18] Production.INFO: count ==909 [2025-04-14 21:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:48:05 - End Time 2025-04-14 21:48:05 [2025-04-14 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909089', 'tblTempUsageDetail_20' ) start [2025-04-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909089', 'tblTempUsageDetail_20' ) end [2025-04-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909089', 'tblTempVendorCDR_20' ) start [2025-04-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909089', 'tblTempVendorCDR_20' ) end [2025-04-14 21:48:18] Production.INFO: ProcessCDR(1,14909089,1,1,2) [2025-04-14 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909089', 'tblTempUsageDetail_20' ) start [2025-04-14 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909089', 'tblTempUsageDetail_20' ) end [2025-04-14 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:48:21] Production.INFO: ==26161== Releasing lock... [2025-04-14 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:48:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:49:05 [end_date_ymd] => 2025-04-14 21:49:05 [RateCDR] => 1 ) [2025-04-14 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:49:05' and `end` < '2025-04-14 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:49:17] Production.INFO: count ==903 [2025-04-14 21:49:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:49:05 - End Time 2025-04-14 21:49:05 [2025-04-14 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909094', 'tblTempUsageDetail_20' ) start [2025-04-14 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909094', 'tblTempUsageDetail_20' ) end [2025-04-14 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909094', 'tblTempVendorCDR_20' ) start [2025-04-14 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909094', 'tblTempVendorCDR_20' ) end [2025-04-14 21:49:17] Production.INFO: ProcessCDR(1,14909094,1,1,2) [2025-04-14 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909094', 'tblTempUsageDetail_20' ) start [2025-04-14 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909094', 'tblTempUsageDetail_20' ) end [2025-04-14 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:49:21] Production.INFO: ==26236== Releasing lock... [2025-04-14 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:49:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-14 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:50:06 [end_date_ymd] => 2025-04-14 21:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:50:06' and `end` < '2025-04-14 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-04-14 21:50:19] Production.INFO: count ==896 [2025-04-14 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 18:50:06 - End Time 2025-04-14 21:50:06 [2025-04-14 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909099', 'tblTempUsageDetail_20' ) start [2025-04-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909099', 'tblTempUsageDetail_20' ) end [2025-04-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909099', 'tblTempVendorCDR_20' ) start [2025-04-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909099', 'tblTempVendorCDR_20' ) end [2025-04-14 21:50:19] Production.INFO: ProcessCDR(1,14909099,1,1,2) [2025-04-14 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909099', 'tblTempUsageDetail_20' ) start [2025-04-14 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909099', 'tblTempUsageDetail_20' ) end [2025-04-14 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:50:22] Production.INFO: ==26311== Releasing lock... [2025-04-14 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:51:05 [end_date_ymd] => 2025-04-14 21:51:05 [RateCDR] => 1 ) [2025-04-14 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:51:05' and `end` < '2025-04-14 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:51:18] Production.INFO: count ==866 [2025-04-14 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:51:05 - End Time 2025-04-14 21:51:05 [2025-04-14 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909105', 'tblTempUsageDetail_20' ) start [2025-04-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909105', 'tblTempUsageDetail_20' ) end [2025-04-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909105', 'tblTempVendorCDR_20' ) start [2025-04-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909105', 'tblTempVendorCDR_20' ) end [2025-04-14 21:51:18] Production.INFO: ProcessCDR(1,14909105,1,1,2) [2025-04-14 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909105', 'tblTempUsageDetail_20' ) start [2025-04-14 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909105', 'tblTempUsageDetail_20' ) end [2025-04-14 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:51:22] Production.INFO: ==26387== Releasing lock... [2025-04-14 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:51:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:52:04 [end_date_ymd] => 2025-04-14 21:52:04 [RateCDR] => 1 ) [2025-04-14 21: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-04-14 18:52:04' and `end` < '2025-04-14 21: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-04-14 21:52:17] Production.INFO: count ==855 [2025-04-14 21:52:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:52:04 - End Time 2025-04-14 21:52:04 [2025-04-14 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909110', 'tblTempUsageDetail_20' ) start [2025-04-14 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909110', 'tblTempUsageDetail_20' ) end [2025-04-14 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909110', 'tblTempVendorCDR_20' ) start [2025-04-14 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909110', 'tblTempVendorCDR_20' ) end [2025-04-14 21:52:17] Production.INFO: ProcessCDR(1,14909110,1,1,2) [2025-04-14 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909110', 'tblTempUsageDetail_20' ) start [2025-04-14 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909110', 'tblTempUsageDetail_20' ) end [2025-04-14 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:52:21] Production.INFO: ==26463== Releasing lock... [2025-04-14 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:52:21] Production.INFO: 34 MB #Memory Used# [2025-04-14 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:53:05 [end_date_ymd] => 2025-04-14 21:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:53:05' and `end` < '2025-04-14 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-04-14 21:53:18] Production.INFO: count ==855 [2025-04-14 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:53:05 - End Time 2025-04-14 21:53:05 [2025-04-14 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909115', 'tblTempUsageDetail_20' ) start [2025-04-14 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909115', 'tblTempUsageDetail_20' ) end [2025-04-14 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909115', 'tblTempVendorCDR_20' ) start [2025-04-14 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909115', 'tblTempVendorCDR_20' ) end [2025-04-14 21:53:18] Production.INFO: ProcessCDR(1,14909115,1,1,2) [2025-04-14 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909115', 'tblTempUsageDetail_20' ) start [2025-04-14 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909115', 'tblTempUsageDetail_20' ) end [2025-04-14 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:53:22] Production.INFO: ==26542== Releasing lock... [2025-04-14 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:53:22] Production.INFO: 34 MB #Memory Used# [2025-04-14 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:54:04 [end_date_ymd] => 2025-04-14 21:54:04 [RateCDR] => 1 ) [2025-04-14 21: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-04-14 18:54:04' and `end` < '2025-04-14 21: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-04-14 21:54:17] Production.INFO: count ==855 [2025-04-14 21:54:17] Production.ERROR: pbx CDR StartTime 2025-04-14 18:54:04 - End Time 2025-04-14 21:54:04 [2025-04-14 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909120', 'tblTempUsageDetail_20' ) start [2025-04-14 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909120', 'tblTempUsageDetail_20' ) end [2025-04-14 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909120', 'tblTempVendorCDR_20' ) start [2025-04-14 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909120', 'tblTempVendorCDR_20' ) end [2025-04-14 21:54:17] Production.INFO: ProcessCDR(1,14909120,1,1,2) [2025-04-14 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909120', 'tblTempUsageDetail_20' ) start [2025-04-14 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909120', 'tblTempUsageDetail_20' ) end [2025-04-14 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:54:21] Production.INFO: ==26614== Releasing lock... [2025-04-14 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:54:21] Production.INFO: 34 MB #Memory Used# [2025-04-14 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:55:05 [end_date_ymd] => 2025-04-14 21:55:05 [RateCDR] => 1 ) [2025-04-14 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 18:55:05' and `end` < '2025-04-14 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 21:55:18] Production.INFO: count ==848 [2025-04-14 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:55:05 - End Time 2025-04-14 21:55:05 [2025-04-14 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909125', 'tblTempUsageDetail_20' ) start [2025-04-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909125', 'tblTempUsageDetail_20' ) end [2025-04-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909125', 'tblTempVendorCDR_20' ) start [2025-04-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909125', 'tblTempVendorCDR_20' ) end [2025-04-14 21:55:18] Production.INFO: ProcessCDR(1,14909125,1,1,2) [2025-04-14 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909125', 'tblTempUsageDetail_20' ) start [2025-04-14 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909125', 'tblTempUsageDetail_20' ) end [2025-04-14 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:55:22] Production.INFO: ==26689== Releasing lock... [2025-04-14 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:56:05 [end_date_ymd] => 2025-04-14 21:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:56:05' and `end` < '2025-04-14 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-04-14 21:56:18] Production.INFO: count ==846 [2025-04-14 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:56:05 - End Time 2025-04-14 21:56:05 [2025-04-14 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909130', 'tblTempUsageDetail_20' ) start [2025-04-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909130', 'tblTempUsageDetail_20' ) end [2025-04-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909130', 'tblTempVendorCDR_20' ) start [2025-04-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909130', 'tblTempVendorCDR_20' ) end [2025-04-14 21:56:18] Production.INFO: ProcessCDR(1,14909130,1,1,2) [2025-04-14 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909130', 'tblTempUsageDetail_20' ) start [2025-04-14 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909130', 'tblTempUsageDetail_20' ) end [2025-04-14 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:56:21] Production.INFO: ==26763== Releasing lock... [2025-04-14 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:56:21] Production.INFO: 34 MB #Memory Used# [2025-04-14 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:57:05 [end_date_ymd] => 2025-04-14 21:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:57:05' and `end` < '2025-04-14 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-04-14 21:57:18] Production.INFO: count ==846 [2025-04-14 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:57:05 - End Time 2025-04-14 21:57:05 [2025-04-14 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909135', 'tblTempUsageDetail_20' ) start [2025-04-14 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909135', 'tblTempUsageDetail_20' ) end [2025-04-14 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909135', 'tblTempVendorCDR_20' ) start [2025-04-14 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909135', 'tblTempVendorCDR_20' ) end [2025-04-14 21:57:18] Production.INFO: ProcessCDR(1,14909135,1,1,2) [2025-04-14 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909135', 'tblTempUsageDetail_20' ) start [2025-04-14 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909135', 'tblTempUsageDetail_20' ) end [2025-04-14 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:57:23] Production.INFO: ==26877== Releasing lock... [2025-04-14 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:57:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:58:05 [end_date_ymd] => 2025-04-14 21:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:58:05' and `end` < '2025-04-14 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-04-14 21:58:18] Production.INFO: count ==848 [2025-04-14 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:58:05 - End Time 2025-04-14 21:58:05 [2025-04-14 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909140', 'tblTempUsageDetail_20' ) start [2025-04-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909140', 'tblTempUsageDetail_20' ) end [2025-04-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909140', 'tblTempVendorCDR_20' ) start [2025-04-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909140', 'tblTempVendorCDR_20' ) end [2025-04-14 21:58:18] Production.INFO: ProcessCDR(1,14909140,1,1,2) [2025-04-14 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909140', 'tblTempUsageDetail_20' ) start [2025-04-14 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909140', 'tblTempUsageDetail_20' ) end [2025-04-14 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:58:21] Production.INFO: ==26955== Releasing lock... [2025-04-14 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:58:21] Production.INFO: 34 MB #Memory Used# [2025-04-14 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 18:59:05 [end_date_ymd] => 2025-04-14 21:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 18:59:05' and `end` < '2025-04-14 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-04-14 21:59:18] Production.INFO: count ==848 [2025-04-14 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 18:59:05 - End Time 2025-04-14 21:59:05 [2025-04-14 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909145', 'tblTempUsageDetail_20' ) start [2025-04-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909145', 'tblTempUsageDetail_20' ) end [2025-04-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909145', 'tblTempVendorCDR_20' ) start [2025-04-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909145', 'tblTempVendorCDR_20' ) end [2025-04-14 21:59:18] Production.INFO: ProcessCDR(1,14909145,1,1,2) [2025-04-14 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909145', 'tblTempUsageDetail_20' ) start [2025-04-14 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909145', 'tblTempUsageDetail_20' ) end [2025-04-14 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 21:59:21] Production.INFO: ==27028== Releasing lock... [2025-04-14 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 21:59:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-14 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:00:06 [end_date_ymd] => 2025-04-14 22:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:00:06' and `end` < '2025-04-14 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-04-14 22:00:19] Production.INFO: count ==848 [2025-04-14 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:00:06 - End Time 2025-04-14 22:00:06 [2025-04-14 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909150', 'tblTempUsageDetail_20' ) start [2025-04-14 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909150', 'tblTempUsageDetail_20' ) end [2025-04-14 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909150', 'tblTempVendorCDR_20' ) start [2025-04-14 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909150', 'tblTempVendorCDR_20' ) end [2025-04-14 22:00:19] Production.INFO: ProcessCDR(1,14909150,1,1,2) [2025-04-14 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909150', 'tblTempUsageDetail_20' ) start [2025-04-14 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909150', 'tblTempUsageDetail_20' ) end [2025-04-14 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:00:24] Production.INFO: ==27104== Releasing lock... [2025-04-14 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:00:24] Production.INFO: 34 MB #Memory Used# [2025-04-14 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:01:05 [end_date_ymd] => 2025-04-14 22:01:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:01:05' and `end` < '2025-04-14 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-04-14 22:01:18] Production.INFO: count ==814 [2025-04-14 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:01:05 - End Time 2025-04-14 22:01:05 [2025-04-14 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909156', 'tblTempUsageDetail_20' ) start [2025-04-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909156', 'tblTempUsageDetail_20' ) end [2025-04-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909156', 'tblTempVendorCDR_20' ) start [2025-04-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909156', 'tblTempVendorCDR_20' ) end [2025-04-14 22:01:18] Production.INFO: ProcessCDR(1,14909156,1,1,2) [2025-04-14 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909156', 'tblTempUsageDetail_20' ) start [2025-04-14 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909156', 'tblTempUsageDetail_20' ) end [2025-04-14 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:01:21] Production.INFO: ==27194== Releasing lock... [2025-04-14 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:02:05 [end_date_ymd] => 2025-04-14 22:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:02:05' and `end` < '2025-04-14 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-04-14 22:02:18] Production.INFO: count ==808 [2025-04-14 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:02:05 - End Time 2025-04-14 22:02:05 [2025-04-14 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909161', 'tblTempUsageDetail_20' ) start [2025-04-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909161', 'tblTempUsageDetail_20' ) end [2025-04-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909161', 'tblTempVendorCDR_20' ) start [2025-04-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909161', 'tblTempVendorCDR_20' ) end [2025-04-14 22:02:18] Production.INFO: ProcessCDR(1,14909161,1,1,2) [2025-04-14 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909161', 'tblTempUsageDetail_20' ) start [2025-04-14 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909161', 'tblTempUsageDetail_20' ) end [2025-04-14 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:02:22] Production.INFO: ==27271== Releasing lock... [2025-04-14 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:02:22] Production.INFO: 34 MB #Memory Used# [2025-04-14 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:03:04 [end_date_ymd] => 2025-04-14 22:03:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:03:04' and `end` < '2025-04-14 22: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-04-14 22:03:17] Production.INFO: count ==807 [2025-04-14 22:03:17] Production.ERROR: pbx CDR StartTime 2025-04-14 19:03:04 - End Time 2025-04-14 22:03:04 [2025-04-14 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909166', 'tblTempUsageDetail_20' ) start [2025-04-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909166', 'tblTempUsageDetail_20' ) end [2025-04-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909166', 'tblTempVendorCDR_20' ) start [2025-04-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909166', 'tblTempVendorCDR_20' ) end [2025-04-14 22:03:18] Production.INFO: ProcessCDR(1,14909166,1,1,2) [2025-04-14 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909166', 'tblTempUsageDetail_20' ) start [2025-04-14 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909166', 'tblTempUsageDetail_20' ) end [2025-04-14 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:03:21] Production.INFO: ==27352== Releasing lock... [2025-04-14 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:03:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:04:05 [end_date_ymd] => 2025-04-14 22:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:04:05' and `end` < '2025-04-14 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-04-14 22:04:18] Production.INFO: count ==808 [2025-04-14 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:04:05 - End Time 2025-04-14 22:04:05 [2025-04-14 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909171', 'tblTempUsageDetail_20' ) start [2025-04-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909171', 'tblTempUsageDetail_20' ) end [2025-04-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909171', 'tblTempVendorCDR_20' ) start [2025-04-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909171', 'tblTempVendorCDR_20' ) end [2025-04-14 22:04:18] Production.INFO: ProcessCDR(1,14909171,1,1,2) [2025-04-14 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909171', 'tblTempUsageDetail_20' ) start [2025-04-14 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909171', 'tblTempUsageDetail_20' ) end [2025-04-14 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:04:23] Production.INFO: ==27427== Releasing lock... [2025-04-14 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:04:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:05:04 [end_date_ymd] => 2025-04-14 22:05:04 [RateCDR] => 1 ) [2025-04-14 22: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-04-14 19:05:04' and `end` < '2025-04-14 22: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-04-14 22:05:17] Production.INFO: count ==807 [2025-04-14 22:05:17] Production.ERROR: pbx CDR StartTime 2025-04-14 19:05:04 - End Time 2025-04-14 22:05:04 [2025-04-14 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909176', 'tblTempUsageDetail_20' ) start [2025-04-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909176', 'tblTempUsageDetail_20' ) end [2025-04-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909176', 'tblTempVendorCDR_20' ) start [2025-04-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909176', 'tblTempVendorCDR_20' ) end [2025-04-14 22:05:17] Production.INFO: ProcessCDR(1,14909176,1,1,2) [2025-04-14 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909176', 'tblTempUsageDetail_20' ) start [2025-04-14 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909176', 'tblTempUsageDetail_20' ) end [2025-04-14 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:05:21] Production.INFO: ==27503== Releasing lock... [2025-04-14 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:06:05 [end_date_ymd] => 2025-04-14 22:06:05 [RateCDR] => 1 ) [2025-04-14 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:06:05' and `end` < '2025-04-14 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:06:18] Production.INFO: count ==807 [2025-04-14 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:06:05 - End Time 2025-04-14 22:06:05 [2025-04-14 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909181', 'tblTempUsageDetail_20' ) start [2025-04-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909181', 'tblTempUsageDetail_20' ) end [2025-04-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909181', 'tblTempVendorCDR_20' ) start [2025-04-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909181', 'tblTempVendorCDR_20' ) end [2025-04-14 22:06:19] Production.INFO: ProcessCDR(1,14909181,1,1,2) [2025-04-14 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909181', 'tblTempUsageDetail_20' ) start [2025-04-14 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909181', 'tblTempUsageDetail_20' ) end [2025-04-14 22:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:06:24] Production.INFO: ==27573== Releasing lock... [2025-04-14 22:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:06:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:07:04 [end_date_ymd] => 2025-04-14 22:07:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:07:04' and `end` < '2025-04-14 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-04-14 22:07:17] Production.INFO: count ==808 [2025-04-14 22:07:17] Production.ERROR: pbx CDR StartTime 2025-04-14 19:07:04 - End Time 2025-04-14 22:07:04 [2025-04-14 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909186', 'tblTempUsageDetail_20' ) start [2025-04-14 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909186', 'tblTempUsageDetail_20' ) end [2025-04-14 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909186', 'tblTempVendorCDR_20' ) start [2025-04-14 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909186', 'tblTempVendorCDR_20' ) end [2025-04-14 22:07:17] Production.INFO: ProcessCDR(1,14909186,1,1,2) [2025-04-14 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909186', 'tblTempUsageDetail_20' ) start [2025-04-14 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909186', 'tblTempUsageDetail_20' ) end [2025-04-14 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:07:23] Production.INFO: ==27648== Releasing lock... [2025-04-14 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:07:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:08:05 [end_date_ymd] => 2025-04-14 22:08:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:08:05' and `end` < '2025-04-14 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-04-14 22:08:18] Production.INFO: count ==808 [2025-04-14 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:08:05 - End Time 2025-04-14 22:08:05 [2025-04-14 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909191', 'tblTempUsageDetail_20' ) start [2025-04-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909191', 'tblTempUsageDetail_20' ) end [2025-04-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909191', 'tblTempVendorCDR_20' ) start [2025-04-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909191', 'tblTempVendorCDR_20' ) end [2025-04-14 22:08:18] Production.INFO: ProcessCDR(1,14909191,1,1,2) [2025-04-14 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909191', 'tblTempUsageDetail_20' ) start [2025-04-14 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909191', 'tblTempUsageDetail_20' ) end [2025-04-14 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:08:22] Production.INFO: ==27720== Releasing lock... [2025-04-14 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:09:05 [end_date_ymd] => 2025-04-14 22:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:09:05' and `end` < '2025-04-14 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-04-14 22:09:18] Production.INFO: count ==804 [2025-04-14 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:09:05 - End Time 2025-04-14 22:09:05 [2025-04-14 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909196', 'tblTempUsageDetail_20' ) start [2025-04-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909196', 'tblTempUsageDetail_20' ) end [2025-04-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909196', 'tblTempVendorCDR_20' ) start [2025-04-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909196', 'tblTempVendorCDR_20' ) end [2025-04-14 22:09:18] Production.INFO: ProcessCDR(1,14909196,1,1,2) [2025-04-14 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909196', 'tblTempUsageDetail_20' ) start [2025-04-14 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909196', 'tblTempUsageDetail_20' ) end [2025-04-14 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:09:22] Production.INFO: ==27799== Releasing lock... [2025-04-14 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:10:05 [end_date_ymd] => 2025-04-14 22:10:05 [RateCDR] => 1 ) [2025-04-14 22: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-04-14 19:10:05' and `end` < '2025-04-14 22: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-04-14 22:10:18] Production.INFO: count ==806 [2025-04-14 22:10:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:10:05 - End Time 2025-04-14 22:10:05 [2025-04-14 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909202', 'tblTempUsageDetail_20' ) start [2025-04-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909202', 'tblTempUsageDetail_20' ) end [2025-04-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909202', 'tblTempVendorCDR_20' ) start [2025-04-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909202', 'tblTempVendorCDR_20' ) end [2025-04-14 22:10:18] Production.INFO: ProcessCDR(1,14909202,1,1,2) [2025-04-14 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909202', 'tblTempUsageDetail_20' ) start [2025-04-14 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909202', 'tblTempUsageDetail_20' ) end [2025-04-14 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:10:23] Production.INFO: ==27873== Releasing lock... [2025-04-14 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:11:06 [end_date_ymd] => 2025-04-14 22:11:06 [RateCDR] => 1 ) [2025-04-14 22: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-04-14 19:11:06' and `end` < '2025-04-14 22: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-04-14 22:11:18] Production.INFO: count ==802 [2025-04-14 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:11:06 - End Time 2025-04-14 22:11:06 [2025-04-14 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909207', 'tblTempUsageDetail_20' ) start [2025-04-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909207', 'tblTempUsageDetail_20' ) end [2025-04-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909207', 'tblTempVendorCDR_20' ) start [2025-04-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909207', 'tblTempVendorCDR_20' ) end [2025-04-14 22:11:19] Production.INFO: ProcessCDR(1,14909207,1,1,2) [2025-04-14 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909207', 'tblTempUsageDetail_20' ) start [2025-04-14 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909207', 'tblTempUsageDetail_20' ) end [2025-04-14 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:11:22] Production.INFO: ==27957== Releasing lock... [2025-04-14 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:11:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:12:05 [end_date_ymd] => 2025-04-14 22:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:12:05' and `end` < '2025-04-14 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-04-14 22:12:18] Production.INFO: count ==801 [2025-04-14 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:12:05 - End Time 2025-04-14 22:12:05 [2025-04-14 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909212', 'tblTempUsageDetail_20' ) start [2025-04-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909212', 'tblTempUsageDetail_20' ) end [2025-04-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909212', 'tblTempVendorCDR_20' ) start [2025-04-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909212', 'tblTempVendorCDR_20' ) end [2025-04-14 22:12:18] Production.INFO: ProcessCDR(1,14909212,1,1,2) [2025-04-14 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909212', 'tblTempUsageDetail_20' ) start [2025-04-14 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909212', 'tblTempUsageDetail_20' ) end [2025-04-14 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:12:21] Production.INFO: ==28029== Releasing lock... [2025-04-14 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:12:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:13:05 [end_date_ymd] => 2025-04-14 22:13:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:13:05' and `end` < '2025-04-14 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-04-14 22:13:18] Production.INFO: count ==799 [2025-04-14 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:13:05 - End Time 2025-04-14 22:13:05 [2025-04-14 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909217', 'tblTempUsageDetail_20' ) start [2025-04-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909217', 'tblTempUsageDetail_20' ) end [2025-04-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909217', 'tblTempVendorCDR_20' ) start [2025-04-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909217', 'tblTempVendorCDR_20' ) end [2025-04-14 22:13:18] Production.INFO: ProcessCDR(1,14909217,1,1,2) [2025-04-14 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909217', 'tblTempUsageDetail_20' ) start [2025-04-14 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909217', 'tblTempUsageDetail_20' ) end [2025-04-14 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:13:23] Production.INFO: ==28143== Releasing lock... [2025-04-14 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:13:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:14:05 [end_date_ymd] => 2025-04-14 22:14:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:14:05' and `end` < '2025-04-14 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-04-14 22:14:18] Production.INFO: count ==796 [2025-04-14 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:14:05 - End Time 2025-04-14 22:14:05 [2025-04-14 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909222', 'tblTempUsageDetail_20' ) start [2025-04-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909222', 'tblTempUsageDetail_20' ) end [2025-04-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909222', 'tblTempVendorCDR_20' ) start [2025-04-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909222', 'tblTempVendorCDR_20' ) end [2025-04-14 22:14:18] Production.INFO: ProcessCDR(1,14909222,1,1,2) [2025-04-14 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909222', 'tblTempUsageDetail_20' ) start [2025-04-14 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909222', 'tblTempUsageDetail_20' ) end [2025-04-14 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:14:23] Production.INFO: ==28225== Releasing lock... [2025-04-14 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:14:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:15:05 [end_date_ymd] => 2025-04-14 22:15:05 [RateCDR] => 1 ) [2025-04-14 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:15:05' and `end` < '2025-04-14 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:15:18] Production.INFO: count ==799 [2025-04-14 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:15:05 - End Time 2025-04-14 22:15:05 [2025-04-14 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909227', 'tblTempUsageDetail_20' ) start [2025-04-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909227', 'tblTempUsageDetail_20' ) end [2025-04-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909227', 'tblTempVendorCDR_20' ) start [2025-04-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909227', 'tblTempVendorCDR_20' ) end [2025-04-14 22:15:18] Production.INFO: ProcessCDR(1,14909227,1,1,2) [2025-04-14 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909227', 'tblTempUsageDetail_20' ) start [2025-04-14 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909227', 'tblTempUsageDetail_20' ) end [2025-04-14 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:15:23] Production.INFO: ==28299== Releasing lock... [2025-04-14 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:15:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:16:05 [end_date_ymd] => 2025-04-14 22:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:16:05' and `end` < '2025-04-14 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-04-14 22:16:18] Production.INFO: count ==797 [2025-04-14 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:16:05 - End Time 2025-04-14 22:16:05 [2025-04-14 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909232', 'tblTempUsageDetail_20' ) start [2025-04-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909232', 'tblTempUsageDetail_20' ) end [2025-04-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909232', 'tblTempVendorCDR_20' ) start [2025-04-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909232', 'tblTempVendorCDR_20' ) end [2025-04-14 22:16:18] Production.INFO: ProcessCDR(1,14909232,1,1,2) [2025-04-14 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909232', 'tblTempUsageDetail_20' ) start [2025-04-14 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909232', 'tblTempUsageDetail_20' ) end [2025-04-14 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:16:22] Production.INFO: ==28373== Releasing lock... [2025-04-14 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:17:05 [end_date_ymd] => 2025-04-14 22:17:05 [RateCDR] => 1 ) [2025-04-14 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:17:05' and `end` < '2025-04-14 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:17:18] Production.INFO: count ==797 [2025-04-14 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:17:05 - End Time 2025-04-14 22:17:05 [2025-04-14 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909237', 'tblTempUsageDetail_20' ) start [2025-04-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909237', 'tblTempUsageDetail_20' ) end [2025-04-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909237', 'tblTempVendorCDR_20' ) start [2025-04-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909237', 'tblTempVendorCDR_20' ) end [2025-04-14 22:17:18] Production.INFO: ProcessCDR(1,14909237,1,1,2) [2025-04-14 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909237', 'tblTempUsageDetail_20' ) start [2025-04-14 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909237', 'tblTempUsageDetail_20' ) end [2025-04-14 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:17:21] Production.INFO: ==28446== Releasing lock... [2025-04-14 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:18:06 [end_date_ymd] => 2025-04-14 22:18:06 [RateCDR] => 1 ) [2025-04-14 22: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-04-14 19:18:06' and `end` < '2025-04-14 22: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-04-14 22:18:19] Production.INFO: count ==796 [2025-04-14 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:18:06 - End Time 2025-04-14 22:18:06 [2025-04-14 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909242', 'tblTempUsageDetail_20' ) start [2025-04-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909242', 'tblTempUsageDetail_20' ) end [2025-04-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909242', 'tblTempVendorCDR_20' ) start [2025-04-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909242', 'tblTempVendorCDR_20' ) end [2025-04-14 22:18:19] Production.INFO: ProcessCDR(1,14909242,1,1,2) [2025-04-14 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909242', 'tblTempUsageDetail_20' ) start [2025-04-14 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909242', 'tblTempUsageDetail_20' ) end [2025-04-14 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:18:22] Production.INFO: ==28527== Releasing lock... [2025-04-14 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:19:05 [end_date_ymd] => 2025-04-14 22:19:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:19:05' and `end` < '2025-04-14 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-04-14 22:19:18] Production.INFO: count ==801 [2025-04-14 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:19:05 - End Time 2025-04-14 22:19:05 [2025-04-14 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909247', 'tblTempUsageDetail_20' ) start [2025-04-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909247', 'tblTempUsageDetail_20' ) end [2025-04-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909247', 'tblTempVendorCDR_20' ) start [2025-04-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909247', 'tblTempVendorCDR_20' ) end [2025-04-14 22:19:18] Production.INFO: ProcessCDR(1,14909247,1,1,2) [2025-04-14 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909247', 'tblTempUsageDetail_20' ) start [2025-04-14 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909247', 'tblTempUsageDetail_20' ) end [2025-04-14 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:19:21] Production.INFO: ==28601== Releasing lock... [2025-04-14 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:20:06 [end_date_ymd] => 2025-04-14 22:20:06 [RateCDR] => 1 ) [2025-04-14 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:20:06' and `end` < '2025-04-14 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:20:19] Production.INFO: count ==804 [2025-04-14 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:20:06 - End Time 2025-04-14 22:20:06 [2025-04-14 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909253', 'tblTempUsageDetail_20' ) start [2025-04-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909253', 'tblTempUsageDetail_20' ) end [2025-04-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909253', 'tblTempVendorCDR_20' ) start [2025-04-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909253', 'tblTempVendorCDR_20' ) end [2025-04-14 22:20:19] Production.INFO: ProcessCDR(1,14909253,1,1,2) [2025-04-14 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909253', 'tblTempUsageDetail_20' ) start [2025-04-14 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909253', 'tblTempUsageDetail_20' ) end [2025-04-14 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:20:24] Production.INFO: ==28680== Releasing lock... [2025-04-14 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:20:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-14 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:21:05 [end_date_ymd] => 2025-04-14 22:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:21:05' and `end` < '2025-04-14 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-04-14 22:21:18] Production.INFO: count ==767 [2025-04-14 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:21:05 - End Time 2025-04-14 22:21:05 [2025-04-14 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909258', 'tblTempUsageDetail_20' ) start [2025-04-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909258', 'tblTempUsageDetail_20' ) end [2025-04-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909258', 'tblTempVendorCDR_20' ) start [2025-04-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909258', 'tblTempVendorCDR_20' ) end [2025-04-14 22:21:18] Production.INFO: ProcessCDR(1,14909258,1,1,2) [2025-04-14 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909258', 'tblTempUsageDetail_20' ) start [2025-04-14 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909258', 'tblTempUsageDetail_20' ) end [2025-04-14 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:21:22] Production.INFO: ==28755== Releasing lock... [2025-04-14 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:21:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:22:05 [end_date_ymd] => 2025-04-14 22:22:05 [RateCDR] => 1 ) [2025-04-14 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:22:05' and `end` < '2025-04-14 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:22:18] Production.INFO: count ==767 [2025-04-14 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:22:05 - End Time 2025-04-14 22:22:05 [2025-04-14 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909263', 'tblTempUsageDetail_20' ) start [2025-04-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909263', 'tblTempUsageDetail_20' ) end [2025-04-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909263', 'tblTempVendorCDR_20' ) start [2025-04-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909263', 'tblTempVendorCDR_20' ) end [2025-04-14 22:22:18] Production.INFO: ProcessCDR(1,14909263,1,1,2) [2025-04-14 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909263', 'tblTempUsageDetail_20' ) start [2025-04-14 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909263', 'tblTempUsageDetail_20' ) end [2025-04-14 22:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:22:24] Production.INFO: ==28833== Releasing lock... [2025-04-14 22:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:22:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-14 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:23:04 [end_date_ymd] => 2025-04-14 22:23:04 [RateCDR] => 1 ) [2025-04-14 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:23:04' and `end` < '2025-04-14 22: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-04-14 22:23:17] Production.INFO: count ==749 [2025-04-14 22:23:17] Production.ERROR: pbx CDR StartTime 2025-04-14 19:23:04 - End Time 2025-04-14 22:23:04 [2025-04-14 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909268', 'tblTempUsageDetail_20' ) start [2025-04-14 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909268', 'tblTempUsageDetail_20' ) end [2025-04-14 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909268', 'tblTempVendorCDR_20' ) start [2025-04-14 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909268', 'tblTempVendorCDR_20' ) end [2025-04-14 22:23:17] Production.INFO: ProcessCDR(1,14909268,1,1,2) [2025-04-14 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909268', 'tblTempUsageDetail_20' ) start [2025-04-14 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909268', 'tblTempUsageDetail_20' ) end [2025-04-14 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:23:21] Production.INFO: ==28903== Releasing lock... [2025-04-14 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:23:21] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:24:06 [end_date_ymd] => 2025-04-14 22:24:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:24:06' and `end` < '2025-04-14 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-04-14 22:24:19] Production.INFO: count ==746 [2025-04-14 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:24:06 - End Time 2025-04-14 22:24:06 [2025-04-14 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909273', 'tblTempUsageDetail_20' ) start [2025-04-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909273', 'tblTempUsageDetail_20' ) end [2025-04-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909273', 'tblTempVendorCDR_20' ) start [2025-04-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909273', 'tblTempVendorCDR_20' ) end [2025-04-14 22:24:19] Production.INFO: ProcessCDR(1,14909273,1,1,2) [2025-04-14 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909273', 'tblTempUsageDetail_20' ) start [2025-04-14 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909273', 'tblTempUsageDetail_20' ) end [2025-04-14 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:24:23] Production.INFO: ==28981== Releasing lock... [2025-04-14 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:24:23] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:25:05 [end_date_ymd] => 2025-04-14 22:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:25:05' and `end` < '2025-04-14 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-04-14 22:25:18] Production.INFO: count ==738 [2025-04-14 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:25:05 - End Time 2025-04-14 22:25:05 [2025-04-14 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909278', 'tblTempUsageDetail_20' ) start [2025-04-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909278', 'tblTempUsageDetail_20' ) end [2025-04-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909278', 'tblTempVendorCDR_20' ) start [2025-04-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909278', 'tblTempVendorCDR_20' ) end [2025-04-14 22:25:18] Production.INFO: ProcessCDR(1,14909278,1,1,2) [2025-04-14 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909278', 'tblTempUsageDetail_20' ) start [2025-04-14 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909278', 'tblTempUsageDetail_20' ) end [2025-04-14 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:25:21] Production.INFO: ==29058== Releasing lock... [2025-04-14 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:25:21] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:26:06 [end_date_ymd] => 2025-04-14 22:26:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:26:06' and `end` < '2025-04-14 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-04-14 22:26:18] Production.INFO: count ==740 [2025-04-14 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:26:06 - End Time 2025-04-14 22:26:06 [2025-04-14 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909283', 'tblTempUsageDetail_20' ) start [2025-04-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909283', 'tblTempUsageDetail_20' ) end [2025-04-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909283', 'tblTempVendorCDR_20' ) start [2025-04-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909283', 'tblTempVendorCDR_20' ) end [2025-04-14 22:26:18] Production.INFO: ProcessCDR(1,14909283,1,1,2) [2025-04-14 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909283', 'tblTempUsageDetail_20' ) start [2025-04-14 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909283', 'tblTempUsageDetail_20' ) end [2025-04-14 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:26:23] Production.INFO: ==29132== Releasing lock... [2025-04-14 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:26:23] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:27:05 [end_date_ymd] => 2025-04-14 22:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:27:05' and `end` < '2025-04-14 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-04-14 22:27:18] Production.INFO: count ==739 [2025-04-14 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:27:05 - End Time 2025-04-14 22:27:05 [2025-04-14 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909288', 'tblTempUsageDetail_20' ) start [2025-04-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909288', 'tblTempUsageDetail_20' ) end [2025-04-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909288', 'tblTempVendorCDR_20' ) start [2025-04-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909288', 'tblTempVendorCDR_20' ) end [2025-04-14 22:27:18] Production.INFO: ProcessCDR(1,14909288,1,1,2) [2025-04-14 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909288', 'tblTempUsageDetail_20' ) start [2025-04-14 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909288', 'tblTempUsageDetail_20' ) end [2025-04-14 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:27:21] Production.INFO: ==29205== Releasing lock... [2025-04-14 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:27:21] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:28:05 [end_date_ymd] => 2025-04-14 22:28:05 [RateCDR] => 1 ) [2025-04-14 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:28:05' and `end` < '2025-04-14 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:28:18] Production.INFO: count ==736 [2025-04-14 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:28:05 - End Time 2025-04-14 22:28:05 [2025-04-14 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909293', 'tblTempUsageDetail_20' ) start [2025-04-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909293', 'tblTempUsageDetail_20' ) end [2025-04-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909293', 'tblTempVendorCDR_20' ) start [2025-04-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909293', 'tblTempVendorCDR_20' ) end [2025-04-14 22:28:18] Production.INFO: ProcessCDR(1,14909293,1,1,2) [2025-04-14 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909293', 'tblTempUsageDetail_20' ) start [2025-04-14 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909293', 'tblTempUsageDetail_20' ) end [2025-04-14 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:28:21] Production.INFO: ==29322== Releasing lock... [2025-04-14 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:28:21] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:29:04 [end_date_ymd] => 2025-04-14 22:29:04 [RateCDR] => 1 ) [2025-04-14 22:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:29:04' and `end` < '2025-04-14 22:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:29:17] Production.INFO: count ==735 [2025-04-14 22:29:17] Production.ERROR: pbx CDR StartTime 2025-04-14 19:29:04 - End Time 2025-04-14 22:29:04 [2025-04-14 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909298', 'tblTempUsageDetail_20' ) start [2025-04-14 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909298', 'tblTempUsageDetail_20' ) end [2025-04-14 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909298', 'tblTempVendorCDR_20' ) start [2025-04-14 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909298', 'tblTempVendorCDR_20' ) end [2025-04-14 22:29:17] Production.INFO: ProcessCDR(1,14909298,1,1,2) [2025-04-14 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909298', 'tblTempUsageDetail_20' ) start [2025-04-14 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909298', 'tblTempUsageDetail_20' ) end [2025-04-14 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:29:21] Production.INFO: ==29395== Releasing lock... [2025-04-14 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:29:21] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:30:06 [end_date_ymd] => 2025-04-14 22:30:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:30:06' and `end` < '2025-04-14 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-04-14 22:30:19] Production.INFO: count ==733 [2025-04-14 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:30:06 - End Time 2025-04-14 22:30:06 [2025-04-14 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909304', 'tblTempUsageDetail_20' ) start [2025-04-14 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909304', 'tblTempUsageDetail_20' ) end [2025-04-14 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909304', 'tblTempVendorCDR_20' ) start [2025-04-14 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909304', 'tblTempVendorCDR_20' ) end [2025-04-14 22:30:19] Production.INFO: ProcessCDR(1,14909304,1,1,2) [2025-04-14 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909304', 'tblTempUsageDetail_20' ) start [2025-04-14 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909304', 'tblTempUsageDetail_20' ) end [2025-04-14 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:30:22] Production.INFO: ==29471== Releasing lock... [2025-04-14 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:30:22] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:31:05 [end_date_ymd] => 2025-04-14 22:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:31:05' and `end` < '2025-04-14 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-04-14 22:31:18] Production.INFO: count ==706 [2025-04-14 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:31:05 - End Time 2025-04-14 22:31:05 [2025-04-14 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909309', 'tblTempUsageDetail_20' ) start [2025-04-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909309', 'tblTempUsageDetail_20' ) end [2025-04-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909309', 'tblTempVendorCDR_20' ) start [2025-04-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909309', 'tblTempVendorCDR_20' ) end [2025-04-14 22:31:18] Production.INFO: ProcessCDR(1,14909309,1,1,2) [2025-04-14 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909309', 'tblTempUsageDetail_20' ) start [2025-04-14 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909309', 'tblTempUsageDetail_20' ) end [2025-04-14 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:31:21] Production.INFO: ==29553== Releasing lock... [2025-04-14 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:32:05 [end_date_ymd] => 2025-04-14 22:32:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:32:05' and `end` < '2025-04-14 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-04-14 22:32:18] Production.INFO: count ==703 [2025-04-14 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:32:05 - End Time 2025-04-14 22:32:05 [2025-04-14 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909314', 'tblTempUsageDetail_20' ) start [2025-04-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909314', 'tblTempUsageDetail_20' ) end [2025-04-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909314', 'tblTempVendorCDR_20' ) start [2025-04-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909314', 'tblTempVendorCDR_20' ) end [2025-04-14 22:32:18] Production.INFO: ProcessCDR(1,14909314,1,1,2) [2025-04-14 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909314', 'tblTempUsageDetail_20' ) start [2025-04-14 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909314', 'tblTempUsageDetail_20' ) end [2025-04-14 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:32:22] Production.INFO: ==29626== Releasing lock... [2025-04-14 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:33:05 [end_date_ymd] => 2025-04-14 22:33:05 [RateCDR] => 1 ) [2025-04-14 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:33:05' and `end` < '2025-04-14 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:33:18] Production.INFO: count ==704 [2025-04-14 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:33:05 - End Time 2025-04-14 22:33:05 [2025-04-14 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909319', 'tblTempUsageDetail_20' ) start [2025-04-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909319', 'tblTempUsageDetail_20' ) end [2025-04-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909319', 'tblTempVendorCDR_20' ) start [2025-04-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909319', 'tblTempVendorCDR_20' ) end [2025-04-14 22:33:18] Production.INFO: ProcessCDR(1,14909319,1,1,2) [2025-04-14 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909319', 'tblTempUsageDetail_20' ) start [2025-04-14 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909319', 'tblTempUsageDetail_20' ) end [2025-04-14 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:33:23] Production.INFO: ==29702== Releasing lock... [2025-04-14 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:33:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:34:05 [end_date_ymd] => 2025-04-14 22:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:34:05' and `end` < '2025-04-14 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-04-14 22:34:18] Production.INFO: count ==698 [2025-04-14 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:34:05 - End Time 2025-04-14 22:34:05 [2025-04-14 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909324', 'tblTempUsageDetail_20' ) start [2025-04-14 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909324', 'tblTempUsageDetail_20' ) end [2025-04-14 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909324', 'tblTempVendorCDR_20' ) start [2025-04-14 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909324', 'tblTempVendorCDR_20' ) end [2025-04-14 22:34:18] Production.INFO: ProcessCDR(1,14909324,1,1,2) [2025-04-14 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909324', 'tblTempUsageDetail_20' ) start [2025-04-14 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909324', 'tblTempUsageDetail_20' ) end [2025-04-14 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:34:21] Production.INFO: ==29779== Releasing lock... [2025-04-14 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:35:05 [end_date_ymd] => 2025-04-14 22:35:05 [RateCDR] => 1 ) [2025-04-14 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:35:05' and `end` < '2025-04-14 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:35:18] Production.INFO: count ==700 [2025-04-14 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:35:05 - End Time 2025-04-14 22:35:05 [2025-04-14 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909329', 'tblTempUsageDetail_20' ) start [2025-04-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909329', 'tblTempUsageDetail_20' ) end [2025-04-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909329', 'tblTempVendorCDR_20' ) start [2025-04-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909329', 'tblTempVendorCDR_20' ) end [2025-04-14 22:35:18] Production.INFO: ProcessCDR(1,14909329,1,1,2) [2025-04-14 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909329', 'tblTempUsageDetail_20' ) start [2025-04-14 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909329', 'tblTempUsageDetail_20' ) end [2025-04-14 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:35:23] Production.INFO: ==29853== Releasing lock... [2025-04-14 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:35:23] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:36:05 [end_date_ymd] => 2025-04-14 22:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:36:05' and `end` < '2025-04-14 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-04-14 22:36:18] Production.INFO: count ==699 [2025-04-14 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:36:05 - End Time 2025-04-14 22:36:05 [2025-04-14 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909334', 'tblTempUsageDetail_20' ) start [2025-04-14 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909334', 'tblTempUsageDetail_20' ) end [2025-04-14 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909334', 'tblTempVendorCDR_20' ) start [2025-04-14 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909334', 'tblTempVendorCDR_20' ) end [2025-04-14 22:36:18] Production.INFO: ProcessCDR(1,14909334,1,1,2) [2025-04-14 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909334', 'tblTempUsageDetail_20' ) start [2025-04-14 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909334', 'tblTempUsageDetail_20' ) end [2025-04-14 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:36:21] Production.INFO: ==29925== Releasing lock... [2025-04-14 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:37:05 [end_date_ymd] => 2025-04-14 22:37:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:37:05' and `end` < '2025-04-14 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-04-14 22:37:18] Production.INFO: count ==700 [2025-04-14 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:37:05 - End Time 2025-04-14 22:37:05 [2025-04-14 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909339', 'tblTempUsageDetail_20' ) start [2025-04-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909339', 'tblTempUsageDetail_20' ) end [2025-04-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909339', 'tblTempVendorCDR_20' ) start [2025-04-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909339', 'tblTempVendorCDR_20' ) end [2025-04-14 22:37:18] Production.INFO: ProcessCDR(1,14909339,1,1,2) [2025-04-14 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909339', 'tblTempUsageDetail_20' ) start [2025-04-14 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909339', 'tblTempUsageDetail_20' ) end [2025-04-14 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:37:21] Production.INFO: ==30003== Releasing lock... [2025-04-14 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:37:21] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:38:05 [end_date_ymd] => 2025-04-14 22:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:38:05' and `end` < '2025-04-14 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-04-14 22:38:18] Production.INFO: count ==701 [2025-04-14 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:38:05 - End Time 2025-04-14 22:38:05 [2025-04-14 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909344', 'tblTempUsageDetail_20' ) start [2025-04-14 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909344', 'tblTempUsageDetail_20' ) end [2025-04-14 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909344', 'tblTempVendorCDR_20' ) start [2025-04-14 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909344', 'tblTempVendorCDR_20' ) end [2025-04-14 22:38:18] Production.INFO: ProcessCDR(1,14909344,1,1,2) [2025-04-14 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909344', 'tblTempUsageDetail_20' ) start [2025-04-14 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909344', 'tblTempUsageDetail_20' ) end [2025-04-14 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:38:23] Production.INFO: ==30074== Releasing lock... [2025-04-14 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:38:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:39:05 [end_date_ymd] => 2025-04-14 22:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:39:05' and `end` < '2025-04-14 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-04-14 22:39:17] Production.INFO: count ==702 [2025-04-14 22:39:17] Production.ERROR: pbx CDR StartTime 2025-04-14 19:39:05 - End Time 2025-04-14 22:39:05 [2025-04-14 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909349', 'tblTempUsageDetail_20' ) start [2025-04-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909349', 'tblTempUsageDetail_20' ) end [2025-04-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909349', 'tblTempVendorCDR_20' ) start [2025-04-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909349', 'tblTempVendorCDR_20' ) end [2025-04-14 22:39:17] Production.INFO: ProcessCDR(1,14909349,1,1,2) [2025-04-14 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909349', 'tblTempUsageDetail_20' ) start [2025-04-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909349', 'tblTempUsageDetail_20' ) end [2025-04-14 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:39:21] Production.INFO: ==30146== Releasing lock... [2025-04-14 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:40:06 [end_date_ymd] => 2025-04-14 22:40:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:40:06' and `end` < '2025-04-14 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-04-14 22:40:19] Production.INFO: count ==691 [2025-04-14 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-14 19:40:06 - End Time 2025-04-14 22:40:06 [2025-04-14 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909354', 'tblTempUsageDetail_20' ) start [2025-04-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909354', 'tblTempUsageDetail_20' ) end [2025-04-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909354', 'tblTempVendorCDR_20' ) start [2025-04-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909354', 'tblTempVendorCDR_20' ) end [2025-04-14 22:40:19] Production.INFO: ProcessCDR(1,14909354,1,1,2) [2025-04-14 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909354', 'tblTempUsageDetail_20' ) start [2025-04-14 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909354', 'tblTempUsageDetail_20' ) end [2025-04-14 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:40:22] Production.INFO: ==30225== Releasing lock... [2025-04-14 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:41:05 [end_date_ymd] => 2025-04-14 22:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:41:05' and `end` < '2025-04-14 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-04-14 22:41:17] Production.INFO: count ==681 [2025-04-14 22:41:17] Production.ERROR: pbx CDR StartTime 2025-04-14 19:41:05 - End Time 2025-04-14 22:41:05 [2025-04-14 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909360', 'tblTempUsageDetail_20' ) start [2025-04-14 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909360', 'tblTempUsageDetail_20' ) end [2025-04-14 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909360', 'tblTempVendorCDR_20' ) start [2025-04-14 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909360', 'tblTempVendorCDR_20' ) end [2025-04-14 22:41:17] Production.INFO: ProcessCDR(1,14909360,1,1,2) [2025-04-14 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909360', 'tblTempUsageDetail_20' ) start [2025-04-14 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909360', 'tblTempUsageDetail_20' ) end [2025-04-14 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:41:22] Production.INFO: ==30299== Releasing lock... [2025-04-14 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:42:05 [end_date_ymd] => 2025-04-14 22:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:42:05' and `end` < '2025-04-14 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-04-14 22:42:18] Production.INFO: count ==682 [2025-04-14 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:42:05 - End Time 2025-04-14 22:42:05 [2025-04-14 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909365', 'tblTempUsageDetail_20' ) start [2025-04-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909365', 'tblTempUsageDetail_20' ) end [2025-04-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909365', 'tblTempVendorCDR_20' ) start [2025-04-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909365', 'tblTempVendorCDR_20' ) end [2025-04-14 22:42:18] Production.INFO: ProcessCDR(1,14909365,1,1,2) [2025-04-14 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909365', 'tblTempUsageDetail_20' ) start [2025-04-14 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909365', 'tblTempUsageDetail_20' ) end [2025-04-14 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:42:23] Production.INFO: ==30379== Releasing lock... [2025-04-14 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:42:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:43:05 [end_date_ymd] => 2025-04-14 22:43:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:43:05' and `end` < '2025-04-14 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-04-14 22:43:18] Production.INFO: count ==683 [2025-04-14 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:43:05 - End Time 2025-04-14 22:43:05 [2025-04-14 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909370', 'tblTempUsageDetail_20' ) start [2025-04-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909370', 'tblTempUsageDetail_20' ) end [2025-04-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909370', 'tblTempVendorCDR_20' ) start [2025-04-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909370', 'tblTempVendorCDR_20' ) end [2025-04-14 22:43:18] Production.INFO: ProcessCDR(1,14909370,1,1,2) [2025-04-14 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909370', 'tblTempUsageDetail_20' ) start [2025-04-14 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909370', 'tblTempUsageDetail_20' ) end [2025-04-14 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:43:23] Production.INFO: ==30491== Releasing lock... [2025-04-14 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:44:05 [end_date_ymd] => 2025-04-14 22:44:05 [RateCDR] => 1 ) [2025-04-14 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:44:05' and `end` < '2025-04-14 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:44:18] Production.INFO: count ==683 [2025-04-14 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:44:05 - End Time 2025-04-14 22:44:05 [2025-04-14 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909375', 'tblTempUsageDetail_20' ) start [2025-04-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909375', 'tblTempUsageDetail_20' ) end [2025-04-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909375', 'tblTempVendorCDR_20' ) start [2025-04-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909375', 'tblTempVendorCDR_20' ) end [2025-04-14 22:44:18] Production.INFO: ProcessCDR(1,14909375,1,1,2) [2025-04-14 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909375', 'tblTempUsageDetail_20' ) start [2025-04-14 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909375', 'tblTempUsageDetail_20' ) end [2025-04-14 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:44:22] Production.INFO: ==30567== Releasing lock... [2025-04-14 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:45:05 [end_date_ymd] => 2025-04-14 22:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:45:05' and `end` < '2025-04-14 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-04-14 22:45:18] Production.INFO: count ==683 [2025-04-14 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:45:05 - End Time 2025-04-14 22:45:05 [2025-04-14 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909380', 'tblTempUsageDetail_20' ) start [2025-04-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909380', 'tblTempUsageDetail_20' ) end [2025-04-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909380', 'tblTempVendorCDR_20' ) start [2025-04-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909380', 'tblTempVendorCDR_20' ) end [2025-04-14 22:45:18] Production.INFO: ProcessCDR(1,14909380,1,1,2) [2025-04-14 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909380', 'tblTempUsageDetail_20' ) start [2025-04-14 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909380', 'tblTempUsageDetail_20' ) end [2025-04-14 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:45:22] Production.INFO: ==30641== Releasing lock... [2025-04-14 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:46:05 [end_date_ymd] => 2025-04-14 22:46:05 [RateCDR] => 1 ) [2025-04-14 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:46:05' and `end` < '2025-04-14 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:46:18] Production.INFO: count ==685 [2025-04-14 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:46:05 - End Time 2025-04-14 22:46:05 [2025-04-14 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909385', 'tblTempUsageDetail_20' ) start [2025-04-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909385', 'tblTempUsageDetail_20' ) end [2025-04-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909385', 'tblTempVendorCDR_20' ) start [2025-04-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909385', 'tblTempVendorCDR_20' ) end [2025-04-14 22:46:18] Production.INFO: ProcessCDR(1,14909385,1,1,2) [2025-04-14 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909385', 'tblTempUsageDetail_20' ) start [2025-04-14 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909385', 'tblTempUsageDetail_20' ) end [2025-04-14 22:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:46:24] Production.INFO: ==30715== Releasing lock... [2025-04-14 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:46:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:47:05 [end_date_ymd] => 2025-04-14 22:47:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:47:05' and `end` < '2025-04-14 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-04-14 22:47:18] Production.INFO: count ==685 [2025-04-14 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:47:05 - End Time 2025-04-14 22:47:05 [2025-04-14 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909390', 'tblTempUsageDetail_20' ) start [2025-04-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909390', 'tblTempUsageDetail_20' ) end [2025-04-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909390', 'tblTempVendorCDR_20' ) start [2025-04-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909390', 'tblTempVendorCDR_20' ) end [2025-04-14 22:47:18] Production.INFO: ProcessCDR(1,14909390,1,1,2) [2025-04-14 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909390', 'tblTempUsageDetail_20' ) start [2025-04-14 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909390', 'tblTempUsageDetail_20' ) end [2025-04-14 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:47:23] Production.INFO: ==30789== Releasing lock... [2025-04-14 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:47:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:48:05 [end_date_ymd] => 2025-04-14 22:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:48:05' and `end` < '2025-04-14 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-04-14 22:48:17] Production.INFO: count ==684 [2025-04-14 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:48:05 - End Time 2025-04-14 22:48:05 [2025-04-14 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909395', 'tblTempUsageDetail_20' ) start [2025-04-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909395', 'tblTempUsageDetail_20' ) end [2025-04-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909395', 'tblTempVendorCDR_20' ) start [2025-04-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909395', 'tblTempVendorCDR_20' ) end [2025-04-14 22:48:18] Production.INFO: ProcessCDR(1,14909395,1,1,2) [2025-04-14 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909395', 'tblTempUsageDetail_20' ) start [2025-04-14 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909395', 'tblTempUsageDetail_20' ) end [2025-04-14 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:48:21] Production.INFO: ==30863== Releasing lock... [2025-04-14 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:49:05 [end_date_ymd] => 2025-04-14 22:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:49:05' and `end` < '2025-04-14 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-04-14 22:49:18] Production.INFO: count ==684 [2025-04-14 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:49:05 - End Time 2025-04-14 22:49:05 [2025-04-14 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909400', 'tblTempUsageDetail_20' ) start [2025-04-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909400', 'tblTempUsageDetail_20' ) end [2025-04-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909400', 'tblTempVendorCDR_20' ) start [2025-04-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909400', 'tblTempVendorCDR_20' ) end [2025-04-14 22:49:18] Production.INFO: ProcessCDR(1,14909400,1,1,2) [2025-04-14 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909400', 'tblTempUsageDetail_20' ) start [2025-04-14 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909400', 'tblTempUsageDetail_20' ) end [2025-04-14 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:49:21] Production.INFO: ==30936== Releasing lock... [2025-04-14 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:50:05 [end_date_ymd] => 2025-04-14 22:50:05 [RateCDR] => 1 ) [2025-04-14 22: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-04-14 19:50:05' and `end` < '2025-04-14 22: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-04-14 22:50:18] Production.INFO: count ==684 [2025-04-14 22:50:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:50:05 - End Time 2025-04-14 22:50:05 [2025-04-14 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909406', 'tblTempUsageDetail_20' ) start [2025-04-14 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909406', 'tblTempUsageDetail_20' ) end [2025-04-14 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909406', 'tblTempVendorCDR_20' ) start [2025-04-14 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909406', 'tblTempVendorCDR_20' ) end [2025-04-14 22:50:18] Production.INFO: ProcessCDR(1,14909406,1,1,2) [2025-04-14 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909406', 'tblTempUsageDetail_20' ) start [2025-04-14 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909406', 'tblTempUsageDetail_20' ) end [2025-04-14 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:50:22] Production.INFO: ==31012== Releasing lock... [2025-04-14 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:51:05 [end_date_ymd] => 2025-04-14 22:51:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:51:05' and `end` < '2025-04-14 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-04-14 22:51:18] Production.INFO: count ==699 [2025-04-14 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:51:05 - End Time 2025-04-14 22:51:05 [2025-04-14 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909411', 'tblTempUsageDetail_20' ) start [2025-04-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909411', 'tblTempUsageDetail_20' ) end [2025-04-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909411', 'tblTempVendorCDR_20' ) start [2025-04-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909411', 'tblTempVendorCDR_20' ) end [2025-04-14 22:51:18] Production.INFO: ProcessCDR(1,14909411,1,1,2) [2025-04-14 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909411', 'tblTempUsageDetail_20' ) start [2025-04-14 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909411', 'tblTempUsageDetail_20' ) end [2025-04-14 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:51:23] Production.INFO: ==31090== Releasing lock... [2025-04-14 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:51:23] Production.INFO: 33 MB #Memory Used# [2025-04-14 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:52:05 [end_date_ymd] => 2025-04-14 22:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:52:05' and `end` < '2025-04-14 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-04-14 22:52:18] Production.INFO: count ==697 [2025-04-14 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:52:05 - End Time 2025-04-14 22:52:05 [2025-04-14 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909416', 'tblTempUsageDetail_20' ) start [2025-04-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909416', 'tblTempUsageDetail_20' ) end [2025-04-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909416', 'tblTempVendorCDR_20' ) start [2025-04-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909416', 'tblTempVendorCDR_20' ) end [2025-04-14 22:52:18] Production.INFO: ProcessCDR(1,14909416,1,1,2) [2025-04-14 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909416', 'tblTempUsageDetail_20' ) start [2025-04-14 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909416', 'tblTempUsageDetail_20' ) end [2025-04-14 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:52:21] Production.INFO: ==31159== Releasing lock... [2025-04-14 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:52:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:53:05 [end_date_ymd] => 2025-04-14 22:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:53:05' and `end` < '2025-04-14 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-04-14 22:53:18] Production.INFO: count ==697 [2025-04-14 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:53:05 - End Time 2025-04-14 22:53:05 [2025-04-14 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909421', 'tblTempUsageDetail_20' ) start [2025-04-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909421', 'tblTempUsageDetail_20' ) end [2025-04-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909421', 'tblTempVendorCDR_20' ) start [2025-04-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909421', 'tblTempVendorCDR_20' ) end [2025-04-14 22:53:18] Production.INFO: ProcessCDR(1,14909421,1,1,2) [2025-04-14 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909421', 'tblTempUsageDetail_20' ) start [2025-04-14 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909421', 'tblTempUsageDetail_20' ) end [2025-04-14 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:53:21] Production.INFO: ==31234== Releasing lock... [2025-04-14 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:54:05 [end_date_ymd] => 2025-04-14 22:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:54:05' and `end` < '2025-04-14 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-04-14 22:54:18] Production.INFO: count ==695 [2025-04-14 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:54:05 - End Time 2025-04-14 22:54:05 [2025-04-14 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909426', 'tblTempUsageDetail_20' ) start [2025-04-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909426', 'tblTempUsageDetail_20' ) end [2025-04-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909426', 'tblTempVendorCDR_20' ) start [2025-04-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909426', 'tblTempVendorCDR_20' ) end [2025-04-14 22:54:18] Production.INFO: ProcessCDR(1,14909426,1,1,2) [2025-04-14 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909426', 'tblTempUsageDetail_20' ) start [2025-04-14 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909426', 'tblTempUsageDetail_20' ) end [2025-04-14 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:54:21] Production.INFO: ==31306== Releasing lock... [2025-04-14 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:55:05 [end_date_ymd] => 2025-04-14 22:55:05 [RateCDR] => 1 ) [2025-04-14 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:55:05' and `end` < '2025-04-14 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:55:17] Production.INFO: count ==695 [2025-04-14 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:55:05 - End Time 2025-04-14 22:55:05 [2025-04-14 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909431', 'tblTempUsageDetail_20' ) start [2025-04-14 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909431', 'tblTempUsageDetail_20' ) end [2025-04-14 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909431', 'tblTempVendorCDR_20' ) start [2025-04-14 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909431', 'tblTempVendorCDR_20' ) end [2025-04-14 22:55:18] Production.INFO: ProcessCDR(1,14909431,1,1,2) [2025-04-14 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909431', 'tblTempUsageDetail_20' ) start [2025-04-14 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909431', 'tblTempUsageDetail_20' ) end [2025-04-14 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:55:21] Production.INFO: ==31388== Releasing lock... [2025-04-14 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:56:05 [end_date_ymd] => 2025-04-14 22:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:56:05' and `end` < '2025-04-14 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-04-14 22:56:18] Production.INFO: count ==695 [2025-04-14 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:56:05 - End Time 2025-04-14 22:56:05 [2025-04-14 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909436', 'tblTempUsageDetail_20' ) start [2025-04-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909436', 'tblTempUsageDetail_20' ) end [2025-04-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909436', 'tblTempVendorCDR_20' ) start [2025-04-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909436', 'tblTempVendorCDR_20' ) end [2025-04-14 22:56:18] Production.INFO: ProcessCDR(1,14909436,1,1,2) [2025-04-14 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909436', 'tblTempUsageDetail_20' ) start [2025-04-14 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909436', 'tblTempUsageDetail_20' ) end [2025-04-14 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:56:21] Production.INFO: ==31461== Releasing lock... [2025-04-14 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:57:05 [end_date_ymd] => 2025-04-14 22:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:57:05' and `end` < '2025-04-14 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-04-14 22:57:18] Production.INFO: count ==695 [2025-04-14 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:57:05 - End Time 2025-04-14 22:57:05 [2025-04-14 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909441', 'tblTempUsageDetail_20' ) start [2025-04-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909441', 'tblTempUsageDetail_20' ) end [2025-04-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909441', 'tblTempVendorCDR_20' ) start [2025-04-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909441', 'tblTempVendorCDR_20' ) end [2025-04-14 22:57:18] Production.INFO: ProcessCDR(1,14909441,1,1,2) [2025-04-14 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909441', 'tblTempUsageDetail_20' ) start [2025-04-14 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909441', 'tblTempUsageDetail_20' ) end [2025-04-14 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:57:21] Production.INFO: ==31537== Releasing lock... [2025-04-14 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:58:05 [end_date_ymd] => 2025-04-14 22:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 19:58:05' and `end` < '2025-04-14 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-04-14 22:58:18] Production.INFO: count ==698 [2025-04-14 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:58:05 - End Time 2025-04-14 22:58:05 [2025-04-14 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909446', 'tblTempUsageDetail_20' ) start [2025-04-14 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909446', 'tblTempUsageDetail_20' ) end [2025-04-14 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909446', 'tblTempVendorCDR_20' ) start [2025-04-14 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909446', 'tblTempVendorCDR_20' ) end [2025-04-14 22:58:18] Production.INFO: ProcessCDR(1,14909446,1,1,2) [2025-04-14 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909446', 'tblTempUsageDetail_20' ) start [2025-04-14 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909446', 'tblTempUsageDetail_20' ) end [2025-04-14 22:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:58:24] Production.INFO: ==31606== Releasing lock... [2025-04-14 22:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:58:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 19:59:05 [end_date_ymd] => 2025-04-14 22:59:05 [RateCDR] => 1 ) [2025-04-14 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 19:59:05' and `end` < '2025-04-14 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 22:59:18] Production.INFO: count ==696 [2025-04-14 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 19:59:05 - End Time 2025-04-14 22:59:05 [2025-04-14 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909451', 'tblTempUsageDetail_20' ) start [2025-04-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909451', 'tblTempUsageDetail_20' ) end [2025-04-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909451', 'tblTempVendorCDR_20' ) start [2025-04-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909451', 'tblTempVendorCDR_20' ) end [2025-04-14 22:59:18] Production.INFO: ProcessCDR(1,14909451,1,1,2) [2025-04-14 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909451', 'tblTempUsageDetail_20' ) start [2025-04-14 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909451', 'tblTempUsageDetail_20' ) end [2025-04-14 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 22:59:22] Production.INFO: ==31715== Releasing lock... [2025-04-14 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 22:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:00:06 [end_date_ymd] => 2025-04-14 23:00:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:00:06' and `end` < '2025-04-14 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-04-14 23:00:19] Production.INFO: count ==685 [2025-04-14 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-14 20:00:06 - End Time 2025-04-14 23:00:06 [2025-04-14 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909457', 'tblTempUsageDetail_20' ) start [2025-04-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909457', 'tblTempUsageDetail_20' ) end [2025-04-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909457', 'tblTempVendorCDR_20' ) start [2025-04-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909457', 'tblTempVendorCDR_20' ) end [2025-04-14 23:00:19] Production.INFO: ProcessCDR(1,14909457,1,1,2) [2025-04-14 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909457', 'tblTempUsageDetail_20' ) start [2025-04-14 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909457', 'tblTempUsageDetail_20' ) end [2025-04-14 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:00:22] Production.INFO: ==31800== Releasing lock... [2025-04-14 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:01:05 [end_date_ymd] => 2025-04-14 23:01:05 [RateCDR] => 1 ) [2025-04-14 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:01:05' and `end` < '2025-04-14 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:01:18] Production.INFO: count ==680 [2025-04-14 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:01:05 - End Time 2025-04-14 23:01:05 [2025-04-14 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909462', 'tblTempUsageDetail_20' ) start [2025-04-14 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909462', 'tblTempUsageDetail_20' ) end [2025-04-14 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909462', 'tblTempVendorCDR_20' ) start [2025-04-14 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909462', 'tblTempVendorCDR_20' ) end [2025-04-14 23:01:18] Production.INFO: ProcessCDR(1,14909462,1,1,2) [2025-04-14 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909462', 'tblTempUsageDetail_20' ) start [2025-04-14 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909462', 'tblTempUsageDetail_20' ) end [2025-04-14 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:01:21] Production.INFO: ==31890== Releasing lock... [2025-04-14 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:02:05 [end_date_ymd] => 2025-04-14 23:02:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:02:05' and `end` < '2025-04-14 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-04-14 23:02:18] Production.INFO: count ==680 [2025-04-14 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:02:05 - End Time 2025-04-14 23:02:05 [2025-04-14 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909467', 'tblTempUsageDetail_20' ) start [2025-04-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909467', 'tblTempUsageDetail_20' ) end [2025-04-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909467', 'tblTempVendorCDR_20' ) start [2025-04-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909467', 'tblTempVendorCDR_20' ) end [2025-04-14 23:02:18] Production.INFO: ProcessCDR(1,14909467,1,1,2) [2025-04-14 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909467', 'tblTempUsageDetail_20' ) start [2025-04-14 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909467', 'tblTempUsageDetail_20' ) end [2025-04-14 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:02:22] Production.INFO: ==32049== Releasing lock... [2025-04-14 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-14 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:03:04 [end_date_ymd] => 2025-04-14 23:03:04 [RateCDR] => 1 ) [2025-04-14 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:03:04' and `end` < '2025-04-14 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:03:17] Production.INFO: count ==678 [2025-04-14 23:03:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:03:04 - End Time 2025-04-14 23:03:04 [2025-04-14 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909472', 'tblTempUsageDetail_20' ) start [2025-04-14 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909472', 'tblTempUsageDetail_20' ) end [2025-04-14 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909472', 'tblTempVendorCDR_20' ) start [2025-04-14 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909472', 'tblTempVendorCDR_20' ) end [2025-04-14 23:03:17] Production.INFO: ProcessCDR(1,14909472,1,1,2) [2025-04-14 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909472', 'tblTempUsageDetail_20' ) start [2025-04-14 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909472', 'tblTempUsageDetail_20' ) end [2025-04-14 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:03:20] Production.INFO: ==32120== Releasing lock... [2025-04-14 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:03:20] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:04:05 [end_date_ymd] => 2025-04-14 23:04:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:04:05' and `end` < '2025-04-14 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-04-14 23:04:18] Production.INFO: count ==672 [2025-04-14 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:04:05 - End Time 2025-04-14 23:04:05 [2025-04-14 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909477', 'tblTempUsageDetail_20' ) start [2025-04-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909477', 'tblTempUsageDetail_20' ) end [2025-04-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909477', 'tblTempVendorCDR_20' ) start [2025-04-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909477', 'tblTempVendorCDR_20' ) end [2025-04-14 23:04:18] Production.INFO: ProcessCDR(1,14909477,1,1,2) [2025-04-14 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909477', 'tblTempUsageDetail_20' ) start [2025-04-14 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909477', 'tblTempUsageDetail_20' ) end [2025-04-14 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:04:21] Production.INFO: ==32194== Releasing lock... [2025-04-14 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:04:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:05:05 [end_date_ymd] => 2025-04-14 23:05:05 [RateCDR] => 1 ) [2025-04-14 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:05:05' and `end` < '2025-04-14 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:05:18] Production.INFO: count ==671 [2025-04-14 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:05:05 - End Time 2025-04-14 23:05:05 [2025-04-14 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909482', 'tblTempUsageDetail_20' ) start [2025-04-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909482', 'tblTempUsageDetail_20' ) end [2025-04-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909482', 'tblTempVendorCDR_20' ) start [2025-04-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909482', 'tblTempVendorCDR_20' ) end [2025-04-14 23:05:18] Production.INFO: ProcessCDR(1,14909482,1,1,2) [2025-04-14 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909482', 'tblTempUsageDetail_20' ) start [2025-04-14 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909482', 'tblTempUsageDetail_20' ) end [2025-04-14 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:05:21] Production.INFO: ==32343== Releasing lock... [2025-04-14 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:06:05 [end_date_ymd] => 2025-04-14 23:06:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:06:05' and `end` < '2025-04-14 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-04-14 23:06:18] Production.INFO: count ==663 [2025-04-14 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:06:05 - End Time 2025-04-14 23:06:05 [2025-04-14 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909487', 'tblTempUsageDetail_20' ) start [2025-04-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909487', 'tblTempUsageDetail_20' ) end [2025-04-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909487', 'tblTempVendorCDR_20' ) start [2025-04-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909487', 'tblTempVendorCDR_20' ) end [2025-04-14 23:06:18] Production.INFO: ProcessCDR(1,14909487,1,1,2) [2025-04-14 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909487', 'tblTempUsageDetail_20' ) start [2025-04-14 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909487', 'tblTempUsageDetail_20' ) end [2025-04-14 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:06:21] Production.INFO: ==32418== Releasing lock... [2025-04-14 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:07:05 [end_date_ymd] => 2025-04-14 23:07:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:07:05' and `end` < '2025-04-14 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-04-14 23:07:18] Production.INFO: count ==663 [2025-04-14 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:07:05 - End Time 2025-04-14 23:07:05 [2025-04-14 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909492', 'tblTempUsageDetail_20' ) start [2025-04-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909492', 'tblTempUsageDetail_20' ) end [2025-04-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909492', 'tblTempVendorCDR_20' ) start [2025-04-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909492', 'tblTempVendorCDR_20' ) end [2025-04-14 23:07:18] Production.INFO: ProcessCDR(1,14909492,1,1,2) [2025-04-14 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909492', 'tblTempUsageDetail_20' ) start [2025-04-14 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909492', 'tblTempUsageDetail_20' ) end [2025-04-14 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:07:22] Production.INFO: ==32489== Releasing lock... [2025-04-14 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:07:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:08:05 [end_date_ymd] => 2025-04-14 23:08:05 [RateCDR] => 1 ) [2025-04-14 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:08:05' and `end` < '2025-04-14 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:08:18] Production.INFO: count ==661 [2025-04-14 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:08:05 - End Time 2025-04-14 23:08:05 [2025-04-14 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909497', 'tblTempUsageDetail_20' ) start [2025-04-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909497', 'tblTempUsageDetail_20' ) end [2025-04-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909497', 'tblTempVendorCDR_20' ) start [2025-04-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909497', 'tblTempVendorCDR_20' ) end [2025-04-14 23:08:18] Production.INFO: ProcessCDR(1,14909497,1,1,2) [2025-04-14 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909497', 'tblTempUsageDetail_20' ) start [2025-04-14 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909497', 'tblTempUsageDetail_20' ) end [2025-04-14 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:08:21] Production.INFO: ==32602== Releasing lock... [2025-04-14 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:09:05 [end_date_ymd] => 2025-04-14 23:09:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:09:05' and `end` < '2025-04-14 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-04-14 23:09:18] Production.INFO: count ==660 [2025-04-14 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:09:05 - End Time 2025-04-14 23:09:05 [2025-04-14 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909502', 'tblTempUsageDetail_20' ) start [2025-04-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909502', 'tblTempUsageDetail_20' ) end [2025-04-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909502', 'tblTempVendorCDR_20' ) start [2025-04-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909502', 'tblTempVendorCDR_20' ) end [2025-04-14 23:09:18] Production.INFO: ProcessCDR(1,14909502,1,1,2) [2025-04-14 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909502', 'tblTempUsageDetail_20' ) start [2025-04-14 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909502', 'tblTempUsageDetail_20' ) end [2025-04-14 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:09:22] Production.INFO: ==32717== Releasing lock... [2025-04-14 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:09:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:10:06 [end_date_ymd] => 2025-04-14 23:10:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:10:06' and `end` < '2025-04-14 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-04-14 23:10:18] Production.INFO: count ==660 [2025-04-14 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-14 20:10:06 - End Time 2025-04-14 23:10:06 [2025-04-14 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909507', 'tblTempUsageDetail_20' ) start [2025-04-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909507', 'tblTempUsageDetail_20' ) end [2025-04-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909507', 'tblTempVendorCDR_20' ) start [2025-04-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909507', 'tblTempVendorCDR_20' ) end [2025-04-14 23:10:19] Production.INFO: ProcessCDR(1,14909507,1,1,2) [2025-04-14 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909507', 'tblTempUsageDetail_20' ) start [2025-04-14 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909507', 'tblTempUsageDetail_20' ) end [2025-04-14 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:10:22] Production.INFO: ==332== Releasing lock... [2025-04-14 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:11:05 [end_date_ymd] => 2025-04-14 23:11:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:11:05' and `end` < '2025-04-14 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-04-14 23:11:18] Production.INFO: count ==648 [2025-04-14 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:11:05 - End Time 2025-04-14 23:11:05 [2025-04-14 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909513', 'tblTempUsageDetail_20' ) start [2025-04-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909513', 'tblTempUsageDetail_20' ) end [2025-04-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909513', 'tblTempVendorCDR_20' ) start [2025-04-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909513', 'tblTempVendorCDR_20' ) end [2025-04-14 23:11:18] Production.INFO: ProcessCDR(1,14909513,1,1,2) [2025-04-14 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909513', 'tblTempUsageDetail_20' ) start [2025-04-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909513', 'tblTempUsageDetail_20' ) end [2025-04-14 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:11:22] Production.INFO: ==417== Releasing lock... [2025-04-14 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:11:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:12:05 [end_date_ymd] => 2025-04-14 23:12:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:12:05' and `end` < '2025-04-14 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-04-14 23:12:18] Production.INFO: count ==648 [2025-04-14 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:12:05 - End Time 2025-04-14 23:12:05 [2025-04-14 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909518', 'tblTempUsageDetail_20' ) start [2025-04-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909518', 'tblTempUsageDetail_20' ) end [2025-04-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909518', 'tblTempVendorCDR_20' ) start [2025-04-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909518', 'tblTempVendorCDR_20' ) end [2025-04-14 23:12:18] Production.INFO: ProcessCDR(1,14909518,1,1,2) [2025-04-14 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909518', 'tblTempUsageDetail_20' ) start [2025-04-14 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909518', 'tblTempUsageDetail_20' ) end [2025-04-14 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:12:22] Production.INFO: ==572== Releasing lock... [2025-04-14 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:12:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:13:05 [end_date_ymd] => 2025-04-14 23:13:05 [RateCDR] => 1 ) [2025-04-14 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:13:05' and `end` < '2025-04-14 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:13:17] Production.INFO: count ==648 [2025-04-14 23:13:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:13:05 - End Time 2025-04-14 23:13:05 [2025-04-14 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909523', 'tblTempUsageDetail_20' ) start [2025-04-14 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909523', 'tblTempUsageDetail_20' ) end [2025-04-14 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909523', 'tblTempVendorCDR_20' ) start [2025-04-14 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909523', 'tblTempVendorCDR_20' ) end [2025-04-14 23:13:17] Production.INFO: ProcessCDR(1,14909523,1,1,2) [2025-04-14 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909523', 'tblTempUsageDetail_20' ) start [2025-04-14 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909523', 'tblTempUsageDetail_20' ) end [2025-04-14 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:13:21] Production.INFO: ==652== Releasing lock... [2025-04-14 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:14:06 [end_date_ymd] => 2025-04-14 23:14:06 [RateCDR] => 1 ) [2025-04-14 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:14:06' and `end` < '2025-04-14 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:14:18] Production.INFO: count ==648 [2025-04-14 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-14 20:14:06 - End Time 2025-04-14 23:14:06 [2025-04-14 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909528', 'tblTempUsageDetail_20' ) start [2025-04-14 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909528', 'tblTempUsageDetail_20' ) end [2025-04-14 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909528', 'tblTempVendorCDR_20' ) start [2025-04-14 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909528', 'tblTempVendorCDR_20' ) end [2025-04-14 23:14:19] Production.INFO: ProcessCDR(1,14909528,1,1,2) [2025-04-14 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909528', 'tblTempUsageDetail_20' ) start [2025-04-14 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909528', 'tblTempUsageDetail_20' ) end [2025-04-14 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:14:22] Production.INFO: ==795== Releasing lock... [2025-04-14 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:14:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:15:05 [end_date_ymd] => 2025-04-14 23:15:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:15:05' and `end` < '2025-04-14 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:15:17] Production.INFO: count ==648 [2025-04-14 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:15:05 - End Time 2025-04-14 23:15:05 [2025-04-14 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909533', 'tblTempUsageDetail_20' ) start [2025-04-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909533', 'tblTempUsageDetail_20' ) end [2025-04-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909533', 'tblTempVendorCDR_20' ) start [2025-04-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909533', 'tblTempVendorCDR_20' ) end [2025-04-14 23:15:18] Production.INFO: ProcessCDR(1,14909533,1,1,2) [2025-04-14 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909533', 'tblTempUsageDetail_20' ) start [2025-04-14 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909533', 'tblTempUsageDetail_20' ) end [2025-04-14 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:15:21] Production.INFO: ==944== Releasing lock... [2025-04-14 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:16:05 [end_date_ymd] => 2025-04-14 23:16:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:16:05' and `end` < '2025-04-14 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-04-14 23:16:18] Production.INFO: count ==646 [2025-04-14 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:16:05 - End Time 2025-04-14 23:16:05 [2025-04-14 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909538', 'tblTempUsageDetail_20' ) start [2025-04-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909538', 'tblTempUsageDetail_20' ) end [2025-04-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909538', 'tblTempVendorCDR_20' ) start [2025-04-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909538', 'tblTempVendorCDR_20' ) end [2025-04-14 23:16:18] Production.INFO: ProcessCDR(1,14909538,1,1,2) [2025-04-14 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909538', 'tblTempUsageDetail_20' ) start [2025-04-14 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909538', 'tblTempUsageDetail_20' ) end [2025-04-14 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:16:22] Production.INFO: ==1024== Releasing lock... [2025-04-14 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:16:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:17:05 [end_date_ymd] => 2025-04-14 23:17:05 [RateCDR] => 1 ) [2025-04-14 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:17:05' and `end` < '2025-04-14 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:17:18] Production.INFO: count ==638 [2025-04-14 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:17:05 - End Time 2025-04-14 23:17:05 [2025-04-14 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909543', 'tblTempUsageDetail_20' ) start [2025-04-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909543', 'tblTempUsageDetail_20' ) end [2025-04-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909543', 'tblTempVendorCDR_20' ) start [2025-04-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909543', 'tblTempVendorCDR_20' ) end [2025-04-14 23:17:18] Production.INFO: ProcessCDR(1,14909543,1,1,2) [2025-04-14 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909543', 'tblTempUsageDetail_20' ) start [2025-04-14 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909543', 'tblTempUsageDetail_20' ) end [2025-04-14 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:17:21] Production.INFO: ==1095== Releasing lock... [2025-04-14 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:18:05 [end_date_ymd] => 2025-04-14 23:18:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:18:05' and `end` < '2025-04-14 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-04-14 23:18:18] Production.INFO: count ==638 [2025-04-14 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:18:05 - End Time 2025-04-14 23:18:05 [2025-04-14 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909548', 'tblTempUsageDetail_20' ) start [2025-04-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909548', 'tblTempUsageDetail_20' ) end [2025-04-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909548', 'tblTempVendorCDR_20' ) start [2025-04-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909548', 'tblTempVendorCDR_20' ) end [2025-04-14 23:18:18] Production.INFO: ProcessCDR(1,14909548,1,1,2) [2025-04-14 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909548', 'tblTempUsageDetail_20' ) start [2025-04-14 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909548', 'tblTempUsageDetail_20' ) end [2025-04-14 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:18:22] Production.INFO: ==1176== Releasing lock... [2025-04-14 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:19:04 [end_date_ymd] => 2025-04-14 23:19:04 [RateCDR] => 1 ) [2025-04-14 23: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-04-14 20:19:04' and `end` < '2025-04-14 23: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-04-14 23:19:17] Production.INFO: count ==638 [2025-04-14 23:19:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:19:04 - End Time 2025-04-14 23:19:04 [2025-04-14 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909553', 'tblTempUsageDetail_20' ) start [2025-04-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909553', 'tblTempUsageDetail_20' ) end [2025-04-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909553', 'tblTempVendorCDR_20' ) start [2025-04-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909553', 'tblTempVendorCDR_20' ) end [2025-04-14 23:19:17] Production.INFO: ProcessCDR(1,14909553,1,1,2) [2025-04-14 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909553', 'tblTempUsageDetail_20' ) start [2025-04-14 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909553', 'tblTempUsageDetail_20' ) end [2025-04-14 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:19:22] Production.INFO: ==1262== Releasing lock... [2025-04-14 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:19:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:20:06 [end_date_ymd] => 2025-04-14 23:20:06 [RateCDR] => 1 ) [2025-04-14 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:20:06' and `end` < '2025-04-14 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:20:19] Production.INFO: count ==639 [2025-04-14 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-14 20:20:06 - End Time 2025-04-14 23:20:06 [2025-04-14 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909559', 'tblTempUsageDetail_20' ) start [2025-04-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909559', 'tblTempUsageDetail_20' ) end [2025-04-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909559', 'tblTempVendorCDR_20' ) start [2025-04-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909559', 'tblTempVendorCDR_20' ) end [2025-04-14 23:20:19] Production.INFO: ProcessCDR(1,14909559,1,1,2) [2025-04-14 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909559', 'tblTempUsageDetail_20' ) start [2025-04-14 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909559', 'tblTempUsageDetail_20' ) end [2025-04-14 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:20:23] Production.INFO: ==1337== Releasing lock... [2025-04-14 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:20:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:21:05 [end_date_ymd] => 2025-04-14 23:21:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:21:05' and `end` < '2025-04-14 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-04-14 23:21:17] Production.INFO: count ==643 [2025-04-14 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:21:05 - End Time 2025-04-14 23:21:05 [2025-04-14 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909564', 'tblTempUsageDetail_20' ) start [2025-04-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909564', 'tblTempUsageDetail_20' ) end [2025-04-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909564', 'tblTempVendorCDR_20' ) start [2025-04-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909564', 'tblTempVendorCDR_20' ) end [2025-04-14 23:21:18] Production.INFO: ProcessCDR(1,14909564,1,1,2) [2025-04-14 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909564', 'tblTempUsageDetail_20' ) start [2025-04-14 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909564', 'tblTempUsageDetail_20' ) end [2025-04-14 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:21:21] Production.INFO: ==1411== Releasing lock... [2025-04-14 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:22:05 [end_date_ymd] => 2025-04-14 23:22:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:22:05' and `end` < '2025-04-14 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-04-14 23:22:18] Production.INFO: count ==643 [2025-04-14 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:22:05 - End Time 2025-04-14 23:22:05 [2025-04-14 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909569', 'tblTempUsageDetail_20' ) start [2025-04-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909569', 'tblTempUsageDetail_20' ) end [2025-04-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909569', 'tblTempVendorCDR_20' ) start [2025-04-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909569', 'tblTempVendorCDR_20' ) end [2025-04-14 23:22:18] Production.INFO: ProcessCDR(1,14909569,1,1,2) [2025-04-14 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909569', 'tblTempUsageDetail_20' ) start [2025-04-14 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909569', 'tblTempUsageDetail_20' ) end [2025-04-14 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:22:21] Production.INFO: ==1487== Releasing lock... [2025-04-14 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:23:05 [end_date_ymd] => 2025-04-14 23:23:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:23:05' and `end` < '2025-04-14 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-04-14 23:23:18] Production.INFO: count ==642 [2025-04-14 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:23:05 - End Time 2025-04-14 23:23:05 [2025-04-14 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909574', 'tblTempUsageDetail_20' ) start [2025-04-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909574', 'tblTempUsageDetail_20' ) end [2025-04-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909574', 'tblTempVendorCDR_20' ) start [2025-04-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909574', 'tblTempVendorCDR_20' ) end [2025-04-14 23:23:18] Production.INFO: ProcessCDR(1,14909574,1,1,2) [2025-04-14 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909574', 'tblTempUsageDetail_20' ) start [2025-04-14 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909574', 'tblTempUsageDetail_20' ) end [2025-04-14 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:23:21] Production.INFO: ==1595== Releasing lock... [2025-04-14 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:24:05 [end_date_ymd] => 2025-04-14 23:24:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:24:05' and `end` < '2025-04-14 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-04-14 23:24:18] Production.INFO: count ==640 [2025-04-14 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:24:05 - End Time 2025-04-14 23:24:05 [2025-04-14 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909579', 'tblTempUsageDetail_20' ) start [2025-04-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909579', 'tblTempUsageDetail_20' ) end [2025-04-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909579', 'tblTempVendorCDR_20' ) start [2025-04-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909579', 'tblTempVendorCDR_20' ) end [2025-04-14 23:24:18] Production.INFO: ProcessCDR(1,14909579,1,1,2) [2025-04-14 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909579', 'tblTempUsageDetail_20' ) start [2025-04-14 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909579', 'tblTempUsageDetail_20' ) end [2025-04-14 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:24:22] Production.INFO: ==1667== Releasing lock... [2025-04-14 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:25:05 [end_date_ymd] => 2025-04-14 23:25:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:25:05' and `end` < '2025-04-14 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-04-14 23:25:18] Production.INFO: count ==638 [2025-04-14 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:25:05 - End Time 2025-04-14 23:25:05 [2025-04-14 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909584', 'tblTempUsageDetail_20' ) start [2025-04-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909584', 'tblTempUsageDetail_20' ) end [2025-04-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909584', 'tblTempVendorCDR_20' ) start [2025-04-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909584', 'tblTempVendorCDR_20' ) end [2025-04-14 23:25:18] Production.INFO: ProcessCDR(1,14909584,1,1,2) [2025-04-14 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909584', 'tblTempUsageDetail_20' ) start [2025-04-14 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909584', 'tblTempUsageDetail_20' ) end [2025-04-14 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:25:21] Production.INFO: ==1740== Releasing lock... [2025-04-14 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:25:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:26:05 [end_date_ymd] => 2025-04-14 23:26:05 [RateCDR] => 1 ) [2025-04-14 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:26:05' and `end` < '2025-04-14 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:26:18] Production.INFO: count ==637 [2025-04-14 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:26:05 - End Time 2025-04-14 23:26:05 [2025-04-14 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909589', 'tblTempUsageDetail_20' ) start [2025-04-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909589', 'tblTempUsageDetail_20' ) end [2025-04-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909589', 'tblTempVendorCDR_20' ) start [2025-04-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909589', 'tblTempVendorCDR_20' ) end [2025-04-14 23:26:18] Production.INFO: ProcessCDR(1,14909589,1,1,2) [2025-04-14 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909589', 'tblTempUsageDetail_20' ) start [2025-04-14 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909589', 'tblTempUsageDetail_20' ) end [2025-04-14 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:26:21] Production.INFO: ==1811== Releasing lock... [2025-04-14 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:27:05 [end_date_ymd] => 2025-04-14 23:27:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:27:05' and `end` < '2025-04-14 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-04-14 23:27:18] Production.INFO: count ==637 [2025-04-14 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:27:05 - End Time 2025-04-14 23:27:05 [2025-04-14 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909594', 'tblTempUsageDetail_20' ) start [2025-04-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909594', 'tblTempUsageDetail_20' ) end [2025-04-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909594', 'tblTempVendorCDR_20' ) start [2025-04-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909594', 'tblTempVendorCDR_20' ) end [2025-04-14 23:27:18] Production.INFO: ProcessCDR(1,14909594,1,1,2) [2025-04-14 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909594', 'tblTempUsageDetail_20' ) start [2025-04-14 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909594', 'tblTempUsageDetail_20' ) end [2025-04-14 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:27:22] Production.INFO: ==1887== Releasing lock... [2025-04-14 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:28:04 [end_date_ymd] => 2025-04-14 23:28:04 [RateCDR] => 1 ) [2025-04-14 23:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:28:04' and `end` < '2025-04-14 23:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:28:17] Production.INFO: count ==637 [2025-04-14 23:28:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:28:04 - End Time 2025-04-14 23:28:04 [2025-04-14 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909599', 'tblTempUsageDetail_20' ) start [2025-04-14 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909599', 'tblTempUsageDetail_20' ) end [2025-04-14 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909599', 'tblTempVendorCDR_20' ) start [2025-04-14 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909599', 'tblTempVendorCDR_20' ) end [2025-04-14 23:28:17] Production.INFO: ProcessCDR(1,14909599,1,1,2) [2025-04-14 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909599', 'tblTempUsageDetail_20' ) start [2025-04-14 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909599', 'tblTempUsageDetail_20' ) end [2025-04-14 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:28:20] Production.INFO: ==1957== Releasing lock... [2025-04-14 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:28:20] Production.INFO: 32.5 MB #Memory Used# [2025-04-14 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:29:05 [end_date_ymd] => 2025-04-14 23:29:05 [RateCDR] => 1 ) [2025-04-14 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:29:05' and `end` < '2025-04-14 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:29:18] Production.INFO: count ==634 [2025-04-14 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:29:05 - End Time 2025-04-14 23:29:05 [2025-04-14 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909604', 'tblTempUsageDetail_20' ) start [2025-04-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909604', 'tblTempUsageDetail_20' ) end [2025-04-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909604', 'tblTempVendorCDR_20' ) start [2025-04-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909604', 'tblTempVendorCDR_20' ) end [2025-04-14 23:29:18] Production.INFO: ProcessCDR(1,14909604,1,1,2) [2025-04-14 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909604', 'tblTempUsageDetail_20' ) start [2025-04-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909604', 'tblTempUsageDetail_20' ) end [2025-04-14 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:29:21] Production.INFO: ==2034== Releasing lock... [2025-04-14 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:29:21] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:30:05 [end_date_ymd] => 2025-04-14 23:30:05 [RateCDR] => 1 ) [2025-04-14 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:30:05' and `end` < '2025-04-14 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:30:18] Production.INFO: count ==631 [2025-04-14 23:30:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:30:05 - End Time 2025-04-14 23:30:05 [2025-04-14 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909610', 'tblTempUsageDetail_20' ) start [2025-04-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909610', 'tblTempUsageDetail_20' ) end [2025-04-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909610', 'tblTempVendorCDR_20' ) start [2025-04-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909610', 'tblTempVendorCDR_20' ) end [2025-04-14 23:30:18] Production.INFO: ProcessCDR(1,14909610,1,1,2) [2025-04-14 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909610', 'tblTempUsageDetail_20' ) start [2025-04-14 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909610', 'tblTempUsageDetail_20' ) end [2025-04-14 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:30:21] Production.INFO: ==2152== Releasing lock... [2025-04-14 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:30:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:31:05 [end_date_ymd] => 2025-04-14 23:31:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:31:05' and `end` < '2025-04-14 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-04-14 23:31:18] Production.INFO: count ==613 [2025-04-14 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:31:05 - End Time 2025-04-14 23:31:05 [2025-04-14 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909615', 'tblTempUsageDetail_20' ) start [2025-04-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909615', 'tblTempUsageDetail_20' ) end [2025-04-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909615', 'tblTempVendorCDR_20' ) start [2025-04-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909615', 'tblTempVendorCDR_20' ) end [2025-04-14 23:31:18] Production.INFO: ProcessCDR(1,14909615,1,1,2) [2025-04-14 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909615', 'tblTempUsageDetail_20' ) start [2025-04-14 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909615', 'tblTempUsageDetail_20' ) end [2025-04-14 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:31:22] Production.INFO: ==2227== Releasing lock... [2025-04-14 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:31:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:32:06 [end_date_ymd] => 2025-04-14 23:32:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:32:06' and `end` < '2025-04-14 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-04-14 23:32:18] Production.INFO: count ==612 [2025-04-14 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:32:06 - End Time 2025-04-14 23:32:06 [2025-04-14 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909620', 'tblTempUsageDetail_20' ) start [2025-04-14 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909620', 'tblTempUsageDetail_20' ) end [2025-04-14 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909620', 'tblTempVendorCDR_20' ) start [2025-04-14 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909620', 'tblTempVendorCDR_20' ) end [2025-04-14 23:32:19] Production.INFO: ProcessCDR(1,14909620,1,1,2) [2025-04-14 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909620', 'tblTempUsageDetail_20' ) start [2025-04-14 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909620', 'tblTempUsageDetail_20' ) end [2025-04-14 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:32:22] Production.INFO: ==2298== Releasing lock... [2025-04-14 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:32:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:33:05 [end_date_ymd] => 2025-04-14 23:33:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:33:05' and `end` < '2025-04-14 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-04-14 23:33:18] Production.INFO: count ==612 [2025-04-14 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:33:05 - End Time 2025-04-14 23:33:05 [2025-04-14 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909625', 'tblTempUsageDetail_20' ) start [2025-04-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909625', 'tblTempUsageDetail_20' ) end [2025-04-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909625', 'tblTempVendorCDR_20' ) start [2025-04-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909625', 'tblTempVendorCDR_20' ) end [2025-04-14 23:33:18] Production.INFO: ProcessCDR(1,14909625,1,1,2) [2025-04-14 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909625', 'tblTempUsageDetail_20' ) start [2025-04-14 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909625', 'tblTempUsageDetail_20' ) end [2025-04-14 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:33:23] Production.INFO: ==2373== Releasing lock... [2025-04-14 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:33:23] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:34:05 [end_date_ymd] => 2025-04-14 23:34:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:34:05' and `end` < '2025-04-14 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-04-14 23:34:18] Production.INFO: count ==612 [2025-04-14 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:34:05 - End Time 2025-04-14 23:34:05 [2025-04-14 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909630', 'tblTempUsageDetail_20' ) start [2025-04-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909630', 'tblTempUsageDetail_20' ) end [2025-04-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909630', 'tblTempVendorCDR_20' ) start [2025-04-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909630', 'tblTempVendorCDR_20' ) end [2025-04-14 23:34:18] Production.INFO: ProcessCDR(1,14909630,1,1,2) [2025-04-14 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909630', 'tblTempUsageDetail_20' ) start [2025-04-14 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909630', 'tblTempUsageDetail_20' ) end [2025-04-14 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:34:21] Production.INFO: ==2443== Releasing lock... [2025-04-14 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:34:21] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:35:05 [end_date_ymd] => 2025-04-14 23:35:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:35:05' and `end` < '2025-04-14 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-04-14 23:35:18] Production.INFO: count ==605 [2025-04-14 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:35:05 - End Time 2025-04-14 23:35:05 [2025-04-14 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909635', 'tblTempUsageDetail_20' ) start [2025-04-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909635', 'tblTempUsageDetail_20' ) end [2025-04-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909635', 'tblTempVendorCDR_20' ) start [2025-04-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909635', 'tblTempVendorCDR_20' ) end [2025-04-14 23:35:18] Production.INFO: ProcessCDR(1,14909635,1,1,2) [2025-04-14 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909635', 'tblTempUsageDetail_20' ) start [2025-04-14 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909635', 'tblTempUsageDetail_20' ) end [2025-04-14 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:35:21] Production.INFO: ==2514== Releasing lock... [2025-04-14 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:35:21] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:36:05 [end_date_ymd] => 2025-04-14 23:36:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:36:05' and `end` < '2025-04-14 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-04-14 23:36:18] Production.INFO: count ==605 [2025-04-14 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:36:05 - End Time 2025-04-14 23:36:05 [2025-04-14 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909640', 'tblTempUsageDetail_20' ) start [2025-04-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909640', 'tblTempUsageDetail_20' ) end [2025-04-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909640', 'tblTempVendorCDR_20' ) start [2025-04-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909640', 'tblTempVendorCDR_20' ) end [2025-04-14 23:36:18] Production.INFO: ProcessCDR(1,14909640,1,1,2) [2025-04-14 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909640', 'tblTempUsageDetail_20' ) start [2025-04-14 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909640', 'tblTempUsageDetail_20' ) end [2025-04-14 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:36:22] Production.INFO: ==2592== Releasing lock... [2025-04-14 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:37:04 [end_date_ymd] => 2025-04-14 23:37:04 [RateCDR] => 1 ) [2025-04-14 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:37:04' and `end` < '2025-04-14 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:37:17] Production.INFO: count ==605 [2025-04-14 23:37:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:37:04 - End Time 2025-04-14 23:37:04 [2025-04-14 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909645', 'tblTempUsageDetail_20' ) start [2025-04-14 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909645', 'tblTempUsageDetail_20' ) end [2025-04-14 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909645', 'tblTempVendorCDR_20' ) start [2025-04-14 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909645', 'tblTempVendorCDR_20' ) end [2025-04-14 23:37:17] Production.INFO: ProcessCDR(1,14909645,1,1,2) [2025-04-14 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909645', 'tblTempUsageDetail_20' ) start [2025-04-14 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909645', 'tblTempUsageDetail_20' ) end [2025-04-14 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:37:22] Production.INFO: ==2662== Releasing lock... [2025-04-14 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:37:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:38:05 [end_date_ymd] => 2025-04-14 23:38:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:38:05' and `end` < '2025-04-14 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-04-14 23:38:18] Production.INFO: count ==607 [2025-04-14 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:38:05 - End Time 2025-04-14 23:38:05 [2025-04-14 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909650', 'tblTempUsageDetail_20' ) start [2025-04-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909650', 'tblTempUsageDetail_20' ) end [2025-04-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909650', 'tblTempVendorCDR_20' ) start [2025-04-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909650', 'tblTempVendorCDR_20' ) end [2025-04-14 23:38:18] Production.INFO: ProcessCDR(1,14909650,1,1,2) [2025-04-14 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909650', 'tblTempUsageDetail_20' ) start [2025-04-14 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909650', 'tblTempUsageDetail_20' ) end [2025-04-14 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:38:21] Production.INFO: ==2735== Releasing lock... [2025-04-14 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:38:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:39:05 [end_date_ymd] => 2025-04-14 23:39:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:39:05' and `end` < '2025-04-14 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-04-14 23:39:18] Production.INFO: count ==607 [2025-04-14 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:39:05 - End Time 2025-04-14 23:39:05 [2025-04-14 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909655', 'tblTempUsageDetail_20' ) start [2025-04-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909655', 'tblTempUsageDetail_20' ) end [2025-04-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909655', 'tblTempVendorCDR_20' ) start [2025-04-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909655', 'tblTempVendorCDR_20' ) end [2025-04-14 23:39:18] Production.INFO: ProcessCDR(1,14909655,1,1,2) [2025-04-14 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909655', 'tblTempUsageDetail_20' ) start [2025-04-14 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909655', 'tblTempUsageDetail_20' ) end [2025-04-14 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:39:22] Production.INFO: ==2807== Releasing lock... [2025-04-14 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-14 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:40:06 [end_date_ymd] => 2025-04-14 23:40:06 [RateCDR] => 1 ) [2025-04-14 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:40:06' and `end` < '2025-04-14 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:40:19] Production.INFO: count ==609 [2025-04-14 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-14 20:40:06 - End Time 2025-04-14 23:40:06 [2025-04-14 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909661', 'tblTempUsageDetail_20' ) start [2025-04-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909661', 'tblTempUsageDetail_20' ) end [2025-04-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909661', 'tblTempVendorCDR_20' ) start [2025-04-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909661', 'tblTempVendorCDR_20' ) end [2025-04-14 23:40:19] Production.INFO: ProcessCDR(1,14909661,1,1,2) [2025-04-14 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909661', 'tblTempUsageDetail_20' ) start [2025-04-14 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909661', 'tblTempUsageDetail_20' ) end [2025-04-14 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:40:22] Production.INFO: ==2883== Releasing lock... [2025-04-14 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:40:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:41:05 [end_date_ymd] => 2025-04-14 23:41:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:41:05' and `end` < '2025-04-14 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-04-14 23:41:18] Production.INFO: count ==592 [2025-04-14 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:41:05 - End Time 2025-04-14 23:41:05 [2025-04-14 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909666', 'tblTempUsageDetail_20' ) start [2025-04-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909666', 'tblTempUsageDetail_20' ) end [2025-04-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909666', 'tblTempVendorCDR_20' ) start [2025-04-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909666', 'tblTempVendorCDR_20' ) end [2025-04-14 23:41:18] Production.INFO: ProcessCDR(1,14909666,1,1,2) [2025-04-14 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909666', 'tblTempUsageDetail_20' ) start [2025-04-14 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909666', 'tblTempUsageDetail_20' ) end [2025-04-14 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:41:21] Production.INFO: ==2956== Releasing lock... [2025-04-14 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:41:21] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:42:05 [end_date_ymd] => 2025-04-14 23:42:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:42:05' and `end` < '2025-04-14 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-04-14 23:42:18] Production.INFO: count ==591 [2025-04-14 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:42:05 - End Time 2025-04-14 23:42:05 [2025-04-14 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909671', 'tblTempUsageDetail_20' ) start [2025-04-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909671', 'tblTempUsageDetail_20' ) end [2025-04-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909671', 'tblTempVendorCDR_20' ) start [2025-04-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909671', 'tblTempVendorCDR_20' ) end [2025-04-14 23:42:18] Production.INFO: ProcessCDR(1,14909671,1,1,2) [2025-04-14 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909671', 'tblTempUsageDetail_20' ) start [2025-04-14 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909671', 'tblTempUsageDetail_20' ) end [2025-04-14 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:42:21] Production.INFO: ==3026== Releasing lock... [2025-04-14 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:43:04 [end_date_ymd] => 2025-04-14 23:43:04 [RateCDR] => 1 ) [2025-04-14 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:43:04' and `end` < '2025-04-14 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:43:17] Production.INFO: count ==591 [2025-04-14 23:43:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:43:04 - End Time 2025-04-14 23:43:04 [2025-04-14 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909676', 'tblTempUsageDetail_20' ) start [2025-04-14 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909676', 'tblTempUsageDetail_20' ) end [2025-04-14 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909676', 'tblTempVendorCDR_20' ) start [2025-04-14 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909676', 'tblTempVendorCDR_20' ) end [2025-04-14 23:43:17] Production.INFO: ProcessCDR(1,14909676,1,1,2) [2025-04-14 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909676', 'tblTempUsageDetail_20' ) start [2025-04-14 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909676', 'tblTempUsageDetail_20' ) end [2025-04-14 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:43:22] Production.INFO: ==3100== Releasing lock... [2025-04-14 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:43:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:44:05 [end_date_ymd] => 2025-04-14 23:44:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:44:05' and `end` < '2025-04-14 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-04-14 23:44:17] Production.INFO: count ==590 [2025-04-14 23:44:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:44:05 - End Time 2025-04-14 23:44:05 [2025-04-14 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909681', 'tblTempUsageDetail_20' ) start [2025-04-14 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909681', 'tblTempUsageDetail_20' ) end [2025-04-14 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909681', 'tblTempVendorCDR_20' ) start [2025-04-14 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909681', 'tblTempVendorCDR_20' ) end [2025-04-14 23:44:17] Production.INFO: ProcessCDR(1,14909681,1,1,2) [2025-04-14 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909681', 'tblTempUsageDetail_20' ) start [2025-04-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909681', 'tblTempUsageDetail_20' ) end [2025-04-14 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:44:21] Production.INFO: ==3173== Releasing lock... [2025-04-14 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:44:21] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:45:05 [end_date_ymd] => 2025-04-14 23:45:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:45:05' and `end` < '2025-04-14 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-04-14 23:45:17] Production.INFO: count ==591 [2025-04-14 23:45:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:45:05 - End Time 2025-04-14 23:45:05 [2025-04-14 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909686', 'tblTempUsageDetail_20' ) start [2025-04-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909686', 'tblTempUsageDetail_20' ) end [2025-04-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909686', 'tblTempVendorCDR_20' ) start [2025-04-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909686', 'tblTempVendorCDR_20' ) end [2025-04-14 23:45:17] Production.INFO: ProcessCDR(1,14909686,1,1,2) [2025-04-14 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909686', 'tblTempUsageDetail_20' ) start [2025-04-14 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909686', 'tblTempUsageDetail_20' ) end [2025-04-14 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:45:22] Production.INFO: ==3284== Releasing lock... [2025-04-14 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:45:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:46:06 [end_date_ymd] => 2025-04-14 23:46:06 [RateCDR] => 1 ) [2025-04-14 23: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-04-14 20:46:06' and `end` < '2025-04-14 23: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-04-14 23:46:19] Production.INFO: count ==592 [2025-04-14 23:46:19] Production.ERROR: pbx CDR StartTime 2025-04-14 20:46:06 - End Time 2025-04-14 23:46:06 [2025-04-14 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909691', 'tblTempUsageDetail_20' ) start [2025-04-14 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909691', 'tblTempUsageDetail_20' ) end [2025-04-14 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909691', 'tblTempVendorCDR_20' ) start [2025-04-14 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909691', 'tblTempVendorCDR_20' ) end [2025-04-14 23:46:19] Production.INFO: ProcessCDR(1,14909691,1,1,2) [2025-04-14 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909691', 'tblTempUsageDetail_20' ) start [2025-04-14 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909691', 'tblTempUsageDetail_20' ) end [2025-04-14 23:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:46:24] Production.INFO: ==3358== Releasing lock... [2025-04-14 23:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:46:24] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:47:04 [end_date_ymd] => 2025-04-14 23:47:04 [RateCDR] => 1 ) [2025-04-14 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:47:04' and `end` < '2025-04-14 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:47:17] Production.INFO: count ==592 [2025-04-14 23:47:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:47:04 - End Time 2025-04-14 23:47:04 [2025-04-14 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909696', 'tblTempUsageDetail_20' ) start [2025-04-14 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909696', 'tblTempUsageDetail_20' ) end [2025-04-14 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909696', 'tblTempVendorCDR_20' ) start [2025-04-14 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909696', 'tblTempVendorCDR_20' ) end [2025-04-14 23:47:17] Production.INFO: ProcessCDR(1,14909696,1,1,2) [2025-04-14 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909696', 'tblTempUsageDetail_20' ) start [2025-04-14 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909696', 'tblTempUsageDetail_20' ) end [2025-04-14 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:47:22] Production.INFO: ==3428== Releasing lock... [2025-04-14 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:47:22] Production.INFO: 32 MB #Memory Used# [2025-04-14 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:48:05 [end_date_ymd] => 2025-04-14 23:48:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:48:05' and `end` < '2025-04-14 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-04-14 23:48:18] Production.INFO: count ==591 [2025-04-14 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:48:05 - End Time 2025-04-14 23:48:05 [2025-04-14 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909701', 'tblTempUsageDetail_20' ) start [2025-04-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909701', 'tblTempUsageDetail_20' ) end [2025-04-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909701', 'tblTempVendorCDR_20' ) start [2025-04-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909701', 'tblTempVendorCDR_20' ) end [2025-04-14 23:48:18] Production.INFO: ProcessCDR(1,14909701,1,1,2) [2025-04-14 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909701', 'tblTempUsageDetail_20' ) start [2025-04-14 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909701', 'tblTempUsageDetail_20' ) end [2025-04-14 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:48:22] Production.INFO: ==3504== Releasing lock... [2025-04-14 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:48:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:49:05 [end_date_ymd] => 2025-04-14 23:49:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:49:05' and `end` < '2025-04-14 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-04-14 23:49:17] Production.INFO: count ==590 [2025-04-14 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:49:05 - End Time 2025-04-14 23:49:05 [2025-04-14 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909706', 'tblTempUsageDetail_20' ) start [2025-04-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909706', 'tblTempUsageDetail_20' ) end [2025-04-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909706', 'tblTempVendorCDR_20' ) start [2025-04-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909706', 'tblTempVendorCDR_20' ) end [2025-04-14 23:49:18] Production.INFO: ProcessCDR(1,14909706,1,1,2) [2025-04-14 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909706', 'tblTempUsageDetail_20' ) start [2025-04-14 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909706', 'tblTempUsageDetail_20' ) end [2025-04-14 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:49:21] Production.INFO: ==3574== Releasing lock... [2025-04-14 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:50:06 [end_date_ymd] => 2025-04-14 23:50:06 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:50:06' and `end` < '2025-04-14 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-04-14 23:50:18] Production.INFO: count ==589 [2025-04-14 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-14 20:50:06 - End Time 2025-04-14 23:50:06 [2025-04-14 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909707', 'tblTempUsageDetail_20' ) start [2025-04-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909707', 'tblTempUsageDetail_20' ) end [2025-04-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909707', 'tblTempVendorCDR_20' ) start [2025-04-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909707', 'tblTempVendorCDR_20' ) end [2025-04-14 23:50:19] Production.INFO: ProcessCDR(1,14909707,1,1,2) [2025-04-14 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909707', 'tblTempUsageDetail_20' ) start [2025-04-14 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909707', 'tblTempUsageDetail_20' ) end [2025-04-14 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:50:24] Production.INFO: ==3655== Releasing lock... [2025-04-14 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:50:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:51:04 [end_date_ymd] => 2025-04-14 23:51:04 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:51:04' and `end` < '2025-04-14 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-04-14 23:51:17] Production.INFO: count ==577 [2025-04-14 23:51:17] Production.ERROR: pbx CDR StartTime 2025-04-14 20:51:04 - End Time 2025-04-14 23:51:04 [2025-04-14 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909717', 'tblTempUsageDetail_20' ) start [2025-04-14 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909717', 'tblTempUsageDetail_20' ) end [2025-04-14 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909717', 'tblTempVendorCDR_20' ) start [2025-04-14 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909717', 'tblTempVendorCDR_20' ) end [2025-04-14 23:51:17] Production.INFO: ProcessCDR(1,14909717,1,1,2) [2025-04-14 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909717', 'tblTempUsageDetail_20' ) start [2025-04-14 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909717', 'tblTempUsageDetail_20' ) end [2025-04-14 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:51:21] Production.INFO: ==3726== Releasing lock... [2025-04-14 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:52:05 [end_date_ymd] => 2025-04-14 23:52:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:52:05' and `end` < '2025-04-14 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-04-14 23:52:18] Production.INFO: count ==577 [2025-04-14 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:52:05 - End Time 2025-04-14 23:52:05 [2025-04-14 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909722', 'tblTempUsageDetail_20' ) start [2025-04-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909722', 'tblTempUsageDetail_20' ) end [2025-04-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909722', 'tblTempVendorCDR_20' ) start [2025-04-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909722', 'tblTempVendorCDR_20' ) end [2025-04-14 23:52:18] Production.INFO: ProcessCDR(1,14909722,1,1,2) [2025-04-14 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909722', 'tblTempUsageDetail_20' ) start [2025-04-14 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909722', 'tblTempUsageDetail_20' ) end [2025-04-14 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:52:21] Production.INFO: ==3801== Releasing lock... [2025-04-14 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:53:05 [end_date_ymd] => 2025-04-14 23:53:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:53:05' and `end` < '2025-04-14 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-04-14 23:53:18] Production.INFO: count ==577 [2025-04-14 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:53:05 - End Time 2025-04-14 23:53:05 [2025-04-14 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909727', 'tblTempUsageDetail_20' ) start [2025-04-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909727', 'tblTempUsageDetail_20' ) end [2025-04-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909727', 'tblTempVendorCDR_20' ) start [2025-04-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909727', 'tblTempVendorCDR_20' ) end [2025-04-14 23:53:18] Production.INFO: ProcessCDR(1,14909727,1,1,2) [2025-04-14 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909727', 'tblTempUsageDetail_20' ) start [2025-04-14 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909727', 'tblTempUsageDetail_20' ) end [2025-04-14 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:53:21] Production.INFO: ==3872== Releasing lock... [2025-04-14 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:54:05 [end_date_ymd] => 2025-04-14 23:54:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:54:05' and `end` < '2025-04-14 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-04-14 23:54:18] Production.INFO: count ==577 [2025-04-14 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:54:05 - End Time 2025-04-14 23:54:05 [2025-04-14 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909732', 'tblTempUsageDetail_20' ) start [2025-04-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909732', 'tblTempUsageDetail_20' ) end [2025-04-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909732', 'tblTempVendorCDR_20' ) start [2025-04-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909732', 'tblTempVendorCDR_20' ) end [2025-04-14 23:54:18] Production.INFO: ProcessCDR(1,14909732,1,1,2) [2025-04-14 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909732', 'tblTempUsageDetail_20' ) start [2025-04-14 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909732', 'tblTempUsageDetail_20' ) end [2025-04-14 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:54:21] Production.INFO: ==3945== Releasing lock... [2025-04-14 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:55:05 [end_date_ymd] => 2025-04-14 23:55:05 [RateCDR] => 1 ) [2025-04-14 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-14 20:55:05' and `end` < '2025-04-14 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-14 23:55:18] Production.INFO: count ==579 [2025-04-14 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:55:05 - End Time 2025-04-14 23:55:05 [2025-04-14 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909737', 'tblTempUsageDetail_20' ) start [2025-04-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909737', 'tblTempUsageDetail_20' ) end [2025-04-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909737', 'tblTempVendorCDR_20' ) start [2025-04-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909737', 'tblTempVendorCDR_20' ) end [2025-04-14 23:55:18] Production.INFO: ProcessCDR(1,14909737,1,1,2) [2025-04-14 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909737', 'tblTempUsageDetail_20' ) start [2025-04-14 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909737', 'tblTempUsageDetail_20' ) end [2025-04-14 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:55:22] Production.INFO: ==4016== Releasing lock... [2025-04-14 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:55:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:56:05 [end_date_ymd] => 2025-04-14 23:56:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:56:05' and `end` < '2025-04-14 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-04-14 23:56:18] Production.INFO: count ==576 [2025-04-14 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:56:05 - End Time 2025-04-14 23:56:05 [2025-04-14 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909742', 'tblTempUsageDetail_20' ) start [2025-04-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909742', 'tblTempUsageDetail_20' ) end [2025-04-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909742', 'tblTempVendorCDR_20' ) start [2025-04-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909742', 'tblTempVendorCDR_20' ) end [2025-04-14 23:56:18] Production.INFO: ProcessCDR(1,14909742,1,1,2) [2025-04-14 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909742', 'tblTempUsageDetail_20' ) start [2025-04-14 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909742', 'tblTempUsageDetail_20' ) end [2025-04-14 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:56:21] Production.INFO: ==4088== Releasing lock... [2025-04-14 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:57:05 [end_date_ymd] => 2025-04-14 23:57:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:57:05' and `end` < '2025-04-14 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-04-14 23:57:18] Production.INFO: count ==574 [2025-04-14 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:57:05 - End Time 2025-04-14 23:57:05 [2025-04-14 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909747', 'tblTempUsageDetail_20' ) start [2025-04-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909747', 'tblTempUsageDetail_20' ) end [2025-04-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909747', 'tblTempVendorCDR_20' ) start [2025-04-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909747', 'tblTempVendorCDR_20' ) end [2025-04-14 23:57:18] Production.INFO: ProcessCDR(1,14909747,1,1,2) [2025-04-14 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909747', 'tblTempUsageDetail_20' ) start [2025-04-14 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909747', 'tblTempUsageDetail_20' ) end [2025-04-14 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:57:21] Production.INFO: ==4163== Releasing lock... [2025-04-14 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:58:05 [end_date_ymd] => 2025-04-14 23:58:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:58:05' and `end` < '2025-04-14 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-04-14 23:58:18] Production.INFO: count ==574 [2025-04-14 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:58:05 - End Time 2025-04-14 23:58:05 [2025-04-14 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909752', 'tblTempUsageDetail_20' ) start [2025-04-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909752', 'tblTempUsageDetail_20' ) end [2025-04-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909752', 'tblTempVendorCDR_20' ) start [2025-04-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909752', 'tblTempVendorCDR_20' ) end [2025-04-14 23:58:18] Production.INFO: ProcessCDR(1,14909752,1,1,2) [2025-04-14 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909752', 'tblTempUsageDetail_20' ) start [2025-04-14 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909752', 'tblTempUsageDetail_20' ) end [2025-04-14 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:58:21] Production.INFO: ==4234== Releasing lock... [2025-04-14 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:58:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-14 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-14 20:59:05 [end_date_ymd] => 2025-04-14 23:59:05 [RateCDR] => 1 ) [2025-04-14 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-04-14 20:59:05' and `end` < '2025-04-14 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-04-14 23:59:18] Production.INFO: count ==573 [2025-04-14 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-14 20:59:05 - End Time 2025-04-14 23:59:05 [2025-04-14 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909757', 'tblTempUsageDetail_20' ) start [2025-04-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14909757', 'tblTempUsageDetail_20' ) end [2025-04-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909757', 'tblTempVendorCDR_20' ) start [2025-04-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14909757', 'tblTempVendorCDR_20' ) end [2025-04-14 23:59:18] Production.INFO: ProcessCDR(1,14909757,1,1,2) [2025-04-14 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14909757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14909757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-14 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14909757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14909757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-14 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909757', 'tblTempUsageDetail_20' ) start [2025-04-14 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14909757', 'tblTempUsageDetail_20' ) end [2025-04-14 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-14 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-14 23:59:22] Production.INFO: ==4309== Releasing lock... [2025-04-14 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-14 23:59:22] Production.INFO: 32.25 MB #Memory Used#